| | |
| | | |
| | | let itemOut = this.itemOutNoList.filter(it => it.billNo == that.scanFormData.itemOutNo); |
| | | |
| | | this.invItemOutId = itemOut[0].id; |
| | | //this.invItemOutId = itemOut[0].id; |
| | | |
| | | that.AxiosHttp("post", 'MesCgthSq/GetSumItem', { |
| | | id: that.invItemOutId, |
| | | //id: that.invItemOutId, |
| | | billNo: that.scanFormData.itemOutNo, |
| | | barcode: that.scanFormData.barcode, |
| | | }, false) |
| | |
| | | that.getItem(); |
| | | that.$refs.barcode.focus(); |
| | | that.scanFormData.barcode = null; |
| | | that.$playSound('success'); |
| | | that.$notify({ type: 'success', message: json.message }); |
| | | } |
| | | else if (json.status == 2) { |
| | | that.$refs.splitNum.focus(); |
| | | that.scanInfo.splitNum = json.data.tbBillList.splitNum; |
| | | that.scanFormData.quantity = json.data.tbBillList.barcodeNum; |
| | | } |
| | | else { |
| | | that.$playSound('error'); |
| | |
| | | that.$refs.barcode.focus(); |
| | | that.scanFormData.barcode = null; |
| | | } |
| | | success |
| | | that.$notify({ type: 'success', message: json.message }); |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(function (error) { |
| | |
| | | that.$toast.fail("拆分数量不能为空!"); |
| | | return; |
| | | } |
| | | if (that.scanInfo.barcode.length * 1 <= 0) { |
| | | if (that.scanFormData.barcode.length * 1 <= 0) { |
| | | that.$playSound('error'); |
| | | that.$toast.fail("物料条码不能为空!"); |
| | | return; |
| | |
| | | //} |
| | | |
| | | that.isLoading = true; |
| | | that.AxiosHttp("post", 'Womdaa/ScanCodeCF', { |
| | | daa001: that.modeInfo.daa001, |
| | | that.AxiosHttp("post", 'MesCgthSq/ScanCodeCF', { |
| | | billNo: that.scanFormData.itemOutNo, |
| | | userName: that.userInfo.loginAccount, |
| | | barcode: that.scanInfo.barcode, |
| | | barcode: that.scanFormData.barcode, |
| | | Num: that.scanInfo.splitNum, |
| | | }, false) |
| | | .then(function (res) { |
| | |
| | | if (json.status == 0) { |
| | | // that.modeInfo = json.data.tbBillList; |
| | | that.scanInfo.splitNum = null; |
| | | that.scanInfo.barcodeNum = null; |
| | | that.scanInfo.barcode = null; |
| | | that.scanFormData.quantity = null; |
| | | that.scanFormData.barcode = null; |
| | | that.$notify({ type: 'success', message: json.message }); |
| | | that.$playSound('success'); |
| | | |
| | | that.sendMessage(json.data.tbBillList); |
| | | that.getItem(); |
| | | //that.sendMessage(json.data.tbBillList); |
| | | that.sendPrintMessage(json.data.tbBillList); |
| | | |
| | | that.$refs.barcode.focus(); |
| | | that.getModel(); |
| | | |
| | | } |
| | | else { |
| | | that.$playSound('error'); |
| | | that.$toast.fail(json.message); |
| | | that.$playSound('error'); |
| | | } |
| | | that.isLoading = false; |
| | | }) |