| | |
| | | } |
| | | 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 (json.status == 0) { |
| | | that.ItemDetail = json.data.tbBillList; |
| | | that.$refs.sectionCode.focus(); |
| | | that.$playSound('success'); |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$playSound('error'); |
| | | that.$refs.billNo.focus(); |
| | | that.ItemDetail = null; |
| | | that.billNo = null; |
| | |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | that.$playSound('error'); |
| | | that.$refs.billNo.focus(); |
| | | that.ItemDetail = null; |
| | | that.billNo = null; |
| | |
| | | var json = res; |
| | | if (json.status == 0) { |
| | | that.depot = json.data.tbBillList; |
| | | that.$playSound('success'); |
| | | that.$refs.barcode.focus(); |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$playSound('error'); |
| | | that.$refs.sectionCode.focus(); |
| | | that.depotSectionCode = null; |
| | | } |
| | |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | that.$playSound('error'); |
| | | that.$refs.sectionCode.focus(); |
| | | that.depotSectionCode = null; |
| | | console.log(error); |
| | |
| | | |
| | | if (!that.billNo) { |
| | | this.$toast.fail("申请单号不能为空"); |
| | | that.$playSound('error'); |
| | | that.$refs.billNo.focus(); |
| | | that.isLoading = false; |
| | | return; |
| | |
| | | |
| | | if (!that.depotSectionCode) { |
| | | this.$toast.fail("库位编号不能为空"); |
| | | that.$playSound('error'); |
| | | that.$refs.sectionCode.focus(); |
| | | that.depotSectionCode = null; |
| | | that.isLoading = false; |
| | |
| | | |
| | | if (!that.barcode) { |
| | | this.$toast.fail("条码编号不能为空"); |
| | | that.$playSound('error'); |
| | | that.$refs.barcode.focus(); |
| | | that.barcode = null; |
| | | that.isLoading = false; |
| | |
| | | |
| | | if (!that.userInfo.loginAccount) { |
| | | this.$toast.fail(json.message); |
| | | that.$playSound('error'); |
| | | return; |
| | | } |
| | | |
| | |
| | | |
| | | that.itemNo = json.data.tbBillList.itemNo; |
| | | that.sms = json.data.tbBillList.num; |
| | | 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); |
| | | }); |
| | | }, |