Browse Source

0412 新看板

master
ruanqi 3 years ago
parent
commit
37b255afa2
  1. 4
      src/views/modules/pad/padPartAttribute.vue
  2. 19
      src/views/modules/production/cancelSfdc.vue
  3. 17
      src/views/modules/production/cancelSfdcForWareHouse.vue
  4. 11
      src/views/modules/production/generateReport.vue
  5. 3
      src/views/modules/production/inspect.vue
  6. 19
      src/views/modules/production/searchSfdc.vue
  7. 41
      src/views/modules/production/transFerPrint.vue

4
src/views/modules/pad/padPartAttribute.vue

@ -93,7 +93,7 @@
border border
style="width: 100%;margin-top: 20px"> style="width: 100%;margin-top: 20px">
<el-table-column <el-table-column
prop="partNo"
prop="componentPartNo"
header-align="center" header-align="center"
align="left" align="left"
min-width="60" min-width="60"
@ -118,7 +118,7 @@
header-align="center" header-align="center"
align="right" align="right"
min-width="30" min-width="30"
label="单位用量">
label="单位用量/比例">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="qtyFixedScrapt" prop="qtyFixedScrapt"

19
src/views/modules/production/cancelSfdc.vue

@ -8,7 +8,7 @@
<el-input v-model="searchData.orderNo" style="width: 130px"></el-input> <el-input v-model="searchData.orderNo" style="width: 130px"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label="'加工中心编码'"> <el-form-item :label="'加工中心编码'">
<el-input v-model="searchData.workCenterNo" style="width: 130px"></el-input>
<el-input v-model="searchData.workCenterNo" style="width: 120px"></el-input>
</el-form-item> </el-form-item>
<el-form-item > <el-form-item >
<span slot="label" style="" @click="getBaseList(5)"><a herf="#">产品编码</a></span> <span slot="label" style="" @click="getBaseList(5)"><a herf="#">产品编码</a></span>
@ -450,6 +450,23 @@
serialNumber: null, serialNumber: null,
columnType: null, columnType: null,
align: 'right' align: 'right'
}, {
tableId: "sfdcList",
tableName: this.$route.meta.title,
columnProp: "stopTime",
columnLabel: "暂停时间",
columnHidden: false,
columnImage: false,
columnSortable: false,
columnWidth: 70,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 0,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: 'right'
}, { }, {
tableId: "sfdcList", tableId: "sfdcList",
tableName: this.$route.meta.title, tableName: this.$route.meta.title,

17
src/views/modules/production/cancelSfdcForWareHouse.vue

@ -393,6 +393,23 @@
serialNumber: null, serialNumber: null,
columnType: null, columnType: null,
align: 'right' align: 'right'
}, {
tableId: "sfdcList",
tableName: this.$route.meta.title,
columnProp: "stopTime",
columnLabel: "暂停时间",
columnHidden: false,
columnImage: false,
columnSortable: false,
columnWidth: 70,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 0,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: 'right'
}, { }, {
tableId: "sfdcList", tableId: "sfdcList",
tableName: this.$route.meta.title, tableName: this.$route.meta.title,

11
src/views/modules/production/generateReport.vue

@ -758,6 +758,12 @@
}) })
return return
} }
if(this.saveHeaderData.printQty>30){
this.$alert('打印标签数最多为30张!', '错误信息', {
confirmButtonText: '确定'
})
return
}
if(this.moQty==null||this.moQty==''){ if(this.moQty==null||this.moQty==''){
this.saveHeaderData.moldQty=0 this.saveHeaderData.moldQty=0
}else { }else {
@ -769,9 +775,10 @@
} }
if(this.KGApprove!=null&&this.KGApprove!=''&&this.KGApprove>=0){ if(this.KGApprove!=null&&this.KGApprove!=''&&this.KGApprove>=0){
this.saveHeaderData.approveWeight=Number(this.KGApprove)-boxWeightKG this.saveHeaderData.approveWeight=Number(this.KGApprove)-boxWeightKG
if(this.KGReported!=null&&this.KGReported!=''&&this.KGReported>=0){
this.saveHeaderData.reportWeight=Number(this.KGApprove)-boxWeightKG+Number(this.KGReported)
if(this.KGReported!=null&&this.KGReported!=''){
this.KGReported=0
} }
this.saveHeaderData.reportWeight=Number(this.KGApprove)-boxWeightKG+Number(this.KGReported)
} }
saveGenerateReportForSchedule(this.saveHeaderData).then(({data}) => { saveGenerateReportForSchedule(this.saveHeaderData).then(({data}) => {
if (data.code == 0) { if (data.code == 0) {

3
src/views/modules/production/inspect.vue

@ -497,9 +497,10 @@
inspectSave(this.inspectData).then(({data}) => { inspectSave(this.inspectData).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {
this.search (); this.search ();
debugger
let printData=data.row let printData=data.row
printData.userId=this.$store.state.user.name printData.userId=this.$store.state.user.name
if(printData.toTypeFlagDb!='S'){
if(this.inspectData.toTypeFlagDb=='S'){
let array=[]; let array=[];
array.push(printData) array.push(printData)
printInspectStockLabel(array) printInspectStockLabel(array)

19
src/views/modules/production/searchSfdc.vue

@ -8,7 +8,7 @@
<el-input v-model="searchData.orderNo" style="width: 130px"></el-input> <el-input v-model="searchData.orderNo" style="width: 130px"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label="'加工中心编码'"> <el-form-item :label="'加工中心编码'">
<el-input v-model="searchData.workCenterNo" style="width: 130px"></el-input>
<el-input v-model="searchData.workCenterNo" style="width: 120px"></el-input>
</el-form-item> </el-form-item>
<el-form-item > <el-form-item >
<span slot="label" style="" @click="getBaseList(5)"><a herf="#">产品编码</a></span> <span slot="label" style="" @click="getBaseList(5)"><a herf="#">产品编码</a></span>
@ -438,6 +438,23 @@
serialNumber: null, serialNumber: null,
columnType: null, columnType: null,
align: 'right' align: 'right'
}, {
tableId: "sfdcList",
tableName: this.$route.meta.title,
columnProp: "stopTime",
columnLabel: "暂停时间",
columnHidden: false,
columnImage: false,
columnSortable: false,
columnWidth: 70,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 0,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: 'right'
}, { }, {
tableId: "sfdcList", tableId: "sfdcList",
tableName: this.$route.meta.title, tableName: this.$route.meta.title,

41
src/views/modules/production/transFerPrint.vue

@ -30,6 +30,21 @@
</el-form-item> </el-form-item>
<el-form-item :label="' '"> <el-form-item :label="' '">
<el-button @click="search()" style="margin-left: 0px;margin-top:0px" type="primary">查询</el-button> <el-button @click="search()" style="margin-left: 0px;margin-top:0px" type="primary">查询</el-button>
<download-excel
:fields="exportDataStandard"
:data="tableData"
type="xlsx"
:name="exportName"
:header="exportHeader"
:footer="exportFooter"
:defaultValue="exportDefaultValue"
:fetch="createExportData"
:before-generate="startDownload"
:before-finish="finishDownload"
worksheet="导出信息"
class="el-button el-button--primary el-button--medium">
{{'导出'}}
</download-excel>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-table <el-table
@ -71,14 +86,6 @@
style="font-size: 20px" style="font-size: 20px"
label="生产订单号"> label="生产订单号">
</el-table-column> </el-table-column>
<el-table-column
prop="site"
header-align="center"
align="left"
min-width="65"
style="font-size: 20px"
label="工厂编号">
</el-table-column>
<el-table-column <el-table-column
prop="transDate" prop="transDate"
header-align="center" header-align="center"
@ -138,7 +145,23 @@
}, },
data () { data () {
return { return {
// start
exportData: [],
exportDataStandard: {
"工厂编号": "site",
"入库通知单号": "transNo",
"生产订单": "orderNo",
"报工日期": "transDate",
"产品编号": "partNo",
"产品名称": "partDesc",
"通知单数量": "transQty",
"派工单号": "seqNo",
},
exportName: "入库通知单"+this.getStrDate(),
exportHeader: ["入库通知单"],
exportFooter: [],
exportDefaultValue: "",
// end
site: this.$store.state.user.site, site: this.$store.state.user.site,
operatorType: 0, operatorType: 0,

Loading…
Cancel
Save