| | |
| | | |
| | | if (!value) { |
| | | this.$toast.fail("库位编码"); |
| | | that.$playSound('error'); |
| | | return; |
| | | } |
| | | |
| | |
| | | /*that.$notify({ type: 'success', message: json.data.tbBillList });*/ |
| | | if (!that.barcode?.trim()) { |
| | | that.$refs.barcode.focus(); |
| | | that.$playSound('succcess'); |
| | | } else { |
| | | that.scanBarcode(); |
| | | } |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$playSound('error'); |
| | | } |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | that.$playSound('error'); |
| | | console.log(error); |
| | | }); |
| | | }, |
| | |
| | | that.num = res.data.tbBillList.quantity; |
| | | if (!that.depotNo?.trim()) { |
| | | that.$refs.depotNo.focus(); |
| | | that.$playSound('success'); |
| | | } else { |
| | | that.scanBarcode(); |
| | | } |
| | | } |
| | | else { |
| | | that.$playSound('error'); |
| | | that.$toast.fail(json.message); |
| | | that.$refs.barcode.focus(); |
| | | that.barcode = null; |
| | |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$playSound('error'); |
| | | that.$toast.fail("网络错误,请重试!" + error.message); |
| | | that.$refs.barcode.focus(); |
| | | }); |
| | |
| | | var that = this; |
| | | if (!that.userInfo.loginAccount) { |
| | | this.$toast.fail("请重新检查登录状态"); |
| | | that.$playSound('error'); |
| | | that.isLoading = false; |
| | | return; |
| | | } |
| | | |
| | | if (!that.barcode?.trim()) { |
| | | this.$toast.fail("条码不能为空"); |
| | | that.$playSound('error'); |
| | | that.isLoading = false; |
| | | return; |
| | | } |
| | | |
| | | if (!that.depotNo?.trim()) { |
| | | this.$toast.fail("仓库不能为空"); |
| | | that.$playSound('error'); |
| | | that.isLoading = false; |
| | | return; |
| | | } |
| | |
| | | var json = res; |
| | | if (json.status == 0) { |
| | | that.$notify({ type: 'success', message: json.data.tbBillList.message }); |
| | | that.$playSound('success'); |
| | | that.barcode = null; |
| | | that.num = null; |
| | | that.barInfo = []; |
| | |
| | | } |
| | | 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); |
| | | }); |
| | | } |