| | |
| | | that.saveForm(codeInfo); |
| | | that.getHandelList(); |
| | | } |
| | | if (codeInfo.BN) { |
| | | // 扫描报工单二维码 |
| | | that.CopperReportingWork(codeInfo); |
| | | } |
| | | } |
| | | }); |
| | | }, |
| | |
| | | }, |
| | | }, |
| | | methods: { |
| | | // 铜杆报工 |
| | | CopperReportingWork(val) { |
| | | const copperList = {}; |
| | | copperList.outBatchNo = val.BN |
| | | copperList.partNo = val.PN |
| | | copperList.weighingClerk = val.WC |
| | | copperList.executiveStandard = val.ES |
| | | copperList.netWeitht = val.NW |
| | | copperList.specificationType = val.ST |
| | | copperList.grossWeight = val.TR |
| | | copperList.operationTaskId = this.form.id |
| | | this.form.productOutputList = []; |
| | | this.form.operationTaskId = this.form.id; |
| | | this.form.productOutputList.push(copperList); |
| | | console.log('this.form',this.form) |
| | | this.$u.api.workReporting.submitPDA(this.form).then((res) => { |
| | | this.subdisabled = true; |
| | | this.getHandelList(); |
| | | this.$u.toast("报工成功"); |
| | | }); |
| | | }, |
| | | // 点击确认后获取取消报工记录 |
| | | confirmModle() { |
| | | console.log("点击确认后获取取消报工记录"); |