| | |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$playSound('error'); |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | that.$playSound('error'); |
| | | console.log(error); |
| | | }); |
| | | }, |
| | |
| | | GetMesItemBlDetailByBillNo() { |
| | | var that = this; |
| | | that.isLoading = true; |
| | | that.AxiosHttp("post", 'MesItemBl/GetMesItemBlDetailBySccBillNo', { |
| | | that.AxiosHttp("post", 'MesItemBl/GetMesItemBlDetailByBillNo', { |
| | | billNo: that.billNo, |
| | | type:"生产超领" |
| | | }, false) |
| | |
| | | if (json.status == 0) { |
| | | that.ItemBlDetail = json.data.tbBillList.item; |
| | | that.daa001 = json.data.tbBillList.bl001; |
| | | that.$playSound('success'); |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$playSound('error'); |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | that.$playSound('error'); |
| | | console.log(error); |
| | | }); |
| | | }, |
| | |
| | | |
| | | if (!that.userInfo.loginAccount) { |
| | | this.$toast.fail("请重新检查登录状态"); |
| | | that.$playSound('error'); |
| | | that.isLoading = false; |
| | | return; |
| | | } |
| | | |
| | | if (!that.barcode) { |
| | | this.$toast.fail("条码不能为空"); |
| | | that.$playSound('error'); |
| | | that.isLoading = false; |
| | | return; |
| | | } |
| | | |
| | | if (!that.billNo) { |
| | | this.$toast.fail("补料单号不能为空"); |
| | | that.$playSound('error'); |
| | | that.isLoading = false; |
| | | return; |
| | | } |
| | | |
| | | if (!that.daa001) { |
| | | this.$toast.fail("工单号不能为空"); |
| | | that.$playSound('error'); |
| | | that.isLoading = false; |
| | | return; |
| | | } |
| | | |
| | | |
| | | that.AxiosHttp("post", 'MesItemBl/ScanBarcodeForOverPicking', { |
| | | that.AxiosHttp("post", 'MesItemBl/ScblScanBarcode', { |
| | | userName: that.userInfo.loginAccount, |
| | | barcode: that.barcode, |
| | | blNo: that.billNo, |
| | | billNo: that.daa001 |
| | | billNo: that.daa001, |
| | | type: "生产超领" |
| | | }, false) |
| | | .then(function (res) { |
| | | var json = res; |
| | |
| | | that.sms = json.data.tbBillList.item.fum; |
| | | that.num = json.data.tbBillList.item.num; |
| | | that.ItemBlDetail = json.data.tbBillList.pendingList |
| | | that.$playSound('error'); |
| | | that.$notify({ type: 'success', message: '扫描成功' }); |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$playSound('error'); |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | that.$playSound('error'); |
| | | console.log(error); |
| | | }); |
| | | }, |
| | |
| | | |
| | | if (!that.userInfo.loginAccount) { |
| | | this.$toast.fail("请重新检查登录状态"); |
| | | that.$playSound('error'); |
| | | that.isLoading = false; |
| | | return; |
| | | } |
| | | |
| | | if (!that.barcode) { |
| | | this.$toast.fail("条码不能为空"); |
| | | that.$playSound('error'); |
| | | that.isLoading = false; |
| | | return; |
| | | } |
| | | |
| | | if (!that.billNo) { |
| | | this.$toast.fail("补料单号不能为空"); |
| | | that.$playSound('error'); |
| | | that.isLoading = false; |
| | | return; |
| | | } |
| | | |
| | | if (!that.daa001) { |
| | | this.$toast.fail("工单号不能为空"); |
| | | that.$playSound('error'); |
| | | that.isLoading = false; |
| | | return; |
| | | } |
| | | |
| | | if (!that.sms) { |
| | | this.$toast.fail("发货数量不能为空"); |
| | | that.$playSound('error'); |
| | | that.isLoading = false; |
| | | return; |
| | | } |
| | | |
| | | that.AxiosHttp("post", 'MesItemBl/PrintBarcodeForOverPicking', { |
| | | that.AxiosHttp("post", 'MesItemBl/SplitBarcode', { |
| | | userName: that.userInfo.loginAccount, |
| | | barcode: that.barcode, |
| | | blNo: that.billNo, |
| | | billNo: that.daa001, |
| | | num: that.sms |
| | | num: that.sms, |
| | | type: "生产超领" |
| | | }, false) |
| | | .then(function (res) { |
| | | var json = res; |
| | | if (json.status == 0) { |
| | | that.ItemBlDetail = json.data.tbBillList.pendingList; |
| | | that.$playSound('success'); |
| | | that.$notify({ type: 'success', message: '扫描成功' }); |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$playSound('error'); |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | that.$playSound('error'); |
| | | console.log(error); |
| | | }); |
| | | } |