| | |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$playSound('error'); |
| | | that.depotData = []; |
| | | that.sectionCode = ""; |
| | | } |
| | |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | that.$playSound('error'); |
| | | that.depotData = []; |
| | | that.sectionCode = ""; |
| | | that.$refs.sectionCode.focus(); |
| | |
| | | }, |
| | | getScan() { |
| | | var that = this; |
| | | |
| | | |
| | | if (that.formData.barcode.length * 1 <= 0) { |
| | | that.$toast.fail("物料条码不能为空!"); |
| | | that.$playSound('error'); |
| | | return; |
| | | } |
| | | |
| | | if (that.sectionCode.length * 1 <= 0) { |
| | | that.$toast.fail("库位编码不能为空!"); |
| | | that.$playSound('error'); |
| | | return; |
| | | } |
| | | |
| | | that.isLoading = true; |
| | | that.AxiosHttp("post", 'MesInvItemInCDetails/SaveBarCodes', { |
| | | sectionCode: that.sectionCode, |
| | |
| | | //that.barMessage = json.data.tbBillList.message; |
| | | that.$refs.barcode.focus(); |
| | | that.formData.barcode = null; |
| | | that.$notify({ type: 'success', message: json.message }); |
| | | that.$playSound('success'); |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$playSound('error'); |
| | | that.$refs.barcode.focus(); |
| | | that.formData.barcode = null; |
| | | } |
| | | that.$notify({ type: 'success', message: json.message }); |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | that.$playSound('error'); |
| | | console.log(error); |
| | | that.$refs.barcode.focus(); |
| | | }); |
| | |
| | | var that = this; |
| | | if (that.modeInfo.daa001.length <= 0) { |
| | | that.$toast.fail("领料单号不能为空!"); |
| | | that.$playSound('error'); |
| | | return; |
| | | } |
| | | if (that.scanInfo.splitNum * 1 <= 0) { |
| | | that.$toast.fail("拆分数量不能为空!"); |
| | | that.$playSound('error'); |
| | | return; |
| | | } |
| | | if (that.scanInfo.barcode.length * 1 <= 0) { |
| | | that.$toast.fail("物料条码不能为空!"); |
| | | that.$playSound('error'); |
| | | return; |
| | | } |
| | | that.isLoading = true; |
| | |
| | | } |
| | | 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); |
| | | }); |
| | | }, |