|
|
|
@ -49,7 +49,7 @@ |
|
|
|
</el-date-picker> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item > |
|
|
|
<span slot="label" style="" @click="getBaseList(26)"><a herf="#">操作员姓名</a></span> |
|
|
|
<span slot="label" style="" @click="getBaseList(26,3)"><a herf="#">操作员姓名</a></span> |
|
|
|
<el-input v-model="searchData.operatorName" style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item > |
|
|
|
@ -496,6 +496,7 @@ |
|
|
|
showviewer: false, |
|
|
|
url: '', |
|
|
|
height2:600, |
|
|
|
tagNo2:'', |
|
|
|
} |
|
|
|
}, |
|
|
|
mounted () { |
|
|
|
@ -575,6 +576,7 @@ |
|
|
|
// 获取基础数据列表S |
|
|
|
getBaseList (val, type) { |
|
|
|
this.tagNo = val |
|
|
|
this.tagNo2 = type |
|
|
|
this.$nextTick(() => { |
|
|
|
let strVal = '' |
|
|
|
if (val === 24) { |
|
|
|
@ -584,7 +586,13 @@ |
|
|
|
strVal = this.searchData.partNo |
|
|
|
} |
|
|
|
if (val === 26) { |
|
|
|
strVal = this.searchData.operatorName |
|
|
|
if(type==1) { |
|
|
|
strVal = this.saveHeaderData.operatorId |
|
|
|
}else if(type==2){ |
|
|
|
strVal = this.saveHeaderData.operatorId2 |
|
|
|
}else { |
|
|
|
strVal = this.searchData.operatorName |
|
|
|
} |
|
|
|
} |
|
|
|
if (val === 88) { |
|
|
|
strVal = this.searchData.sResourceID |
|
|
|
@ -600,31 +608,39 @@ |
|
|
|
this.searchData.partNo = val.PartNo |
|
|
|
} |
|
|
|
if (this.tagNo === 26) { |
|
|
|
this.searchData.operatorName = val.OperatorName |
|
|
|
if(this.tagNo2==1) { |
|
|
|
this.saveHeaderData.operatorId = val.OperatorID |
|
|
|
this.saveHeaderData.operatorName = val.OperatorName |
|
|
|
}else if(this.tagNo2==2){ |
|
|
|
this.saveHeaderData.operatorId2 = val.OperatorID |
|
|
|
this.saveHeaderData.operatorIdName2 = val.OperatorName |
|
|
|
}else { |
|
|
|
this.searchData.operatorName = val.OperatorName |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.tagNo === 88) { |
|
|
|
this.searchData.sResourceID = val.ResourceID |
|
|
|
} |
|
|
|
}, |
|
|
|
initReportModal (row) { |
|
|
|
this.setUp.reviewFlag = true |
|
|
|
this.setUp.disabled = true |
|
|
|
let currentData = JSON.parse(JSON.stringify(row)) |
|
|
|
this.saveHeaderData.site = currentData.site |
|
|
|
this.saveHeaderData.seqNo = currentData.seqNo |
|
|
|
this.saveHeaderData.itemNo = currentData.itemNo |
|
|
|
this.saveHeaderData.operationDesc = currentData.itemDesc |
|
|
|
this.saveHeaderData.partNo = currentData.partNo |
|
|
|
this.saveHeaderData.partDescription = currentData.partSpec |
|
|
|
this.saveHeaderData.workCenterNo = currentData.sWorkCenterNo |
|
|
|
this.saveHeaderData.workCenterDesc = currentData.workCenterDesc |
|
|
|
this.saveHeaderData.orderRef1=currentData.orderRef1 |
|
|
|
this.saveHeaderData.scheduleType=currentData.scheduleType |
|
|
|
this.saveHeaderData.operatorId=currentData.operatorId |
|
|
|
this.saveHeaderData.operatorName=currentData.operatorName |
|
|
|
this.saveHeaderData.userId=this.$store.state.user.name |
|
|
|
|
|
|
|
|
|
|
|
this.setUp.reviewFlag = true; |
|
|
|
this.setUp.disabled = true; |
|
|
|
let currentData = JSON.parse(JSON.stringify(row)); |
|
|
|
this.saveHeaderData.site = currentData.site; |
|
|
|
this.saveHeaderData.seqNo = currentData.seqNo; |
|
|
|
this.saveHeaderData.itemNo = currentData.itemNo; |
|
|
|
this.saveHeaderData.operationDesc = currentData.itemDesc; |
|
|
|
this.saveHeaderData.partNo = currentData.partNo; |
|
|
|
this.saveHeaderData.partDescription = currentData.partSpec; |
|
|
|
this.saveHeaderData.workCenterNo = currentData.sWorkCenterNo; |
|
|
|
this.saveHeaderData.workCenterDesc = currentData.workCenterDesc; |
|
|
|
this.saveHeaderData.orderRef1=currentData.orderRef1; |
|
|
|
this.saveHeaderData.scheduleType=currentData.scheduleType; |
|
|
|
this.saveHeaderData.operatorId=currentData.operatorId; |
|
|
|
this.saveHeaderData.operatorName=currentData.operatorName; |
|
|
|
this.saveHeaderData.userId=this.$store.state.user.name; |
|
|
|
this.qty1=''; |
|
|
|
this.qty2 =''; |
|
|
|
this.saveHeaderData.planStartTime = this.dayjs(new Date()).format('YYYY-MM-DD 00:00:00') |
|
|
|
searchReportedQty(this.saveHeaderData).then(({data}) => { |
|
|
|
this.qty1 = data.row.qtyReported; |
|
|
|
@ -714,6 +730,8 @@ |
|
|
|
lastPicture(){ |
|
|
|
if(this.photoDatas.length==0){ |
|
|
|
this.fileTitle="文件名 ("+0+"/"+0+")"; |
|
|
|
this.fileName=''; |
|
|
|
this.photoUrl=''; |
|
|
|
this.$alert('该物料没有上传图片!', '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
|