| | |
| | | } |
| | | 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); |
| | | }); |
| | | }, |
| | |
| | | that.ItemDetail = json.data.tbBillList; |
| | | that.daa001 = json.data.tbBillList.daa001; |
| | | that.$refs.barcode.focus(); |
| | | that.$playSound('success'); |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$playSound('error'); |
| | | that.$refs.billNo.focus(); |
| | | that.billNo = ""; |
| | | that.daa001 = ""; |
| | |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | that.$playSound('error'); |
| | | //console.log(error); |
| | | tthat.$refs.billNo.focus(); |
| | | that.billNo = ""; |
| | |
| | | |
| | | 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.num = null; |
| | | //that.ItemBlDetail = json.data.tbBillList.item2 |
| | | that.$notify({ type: 'success', message: '扫描成功' }); |
| | | that.$playSound('success'); |
| | | that.GetMesItemBlDetailByBillNo(); |
| | | that.$refs.barcode.focus(); |
| | | that.barcode = ""; |
| | |
| | | |
| | | |
| | | } else if (json.status == 2) { |
| | | that.$playSound('error'); |
| | | that.$refs.splitNum.focus(); |
| | | that.splitNum = json.data.cfNum; |
| | | that.num = json.data.num; |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$playSound('error'); |
| | | that.$refs.barcode.focus(); |
| | | that.barcode = ""; |
| | | that.num = ""; |
| | |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$playSound('error'); |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | //console.log(error); |
| | | that.$refs.barcode.focus(); |
| | |
| | | |
| | | 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.splitNum) { |
| | | this.$toast.fail("发货数量不能为空"); |
| | | that.$playSound('error'); |
| | | that.isLoading = false; |
| | | return; |
| | | } |
| | |
| | | if (json.status == 0) { |
| | | that.ItemBlDetail = json.data.pendingList; |
| | | that.$notify({ type: 'success', message: '扫描成功' }); |
| | | that.$playSound('success'); |
| | | that.$refs.barcode.focus(); |
| | | that.barcode = ""; |
| | | that.num = ""; |
| | |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$playSound('error'); |
| | | that.$refs.barcode.focus(); |
| | | } |
| | | that.isLoading = false; |
| | |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | that.$playSound('error'); |
| | | //console.log(error); |
| | | that.$refs.barcode.focus(); |
| | | that.barcode = ""; |