| | |
| | | var json = res; |
| | | if (json.status == 0) { |
| | | that.ItemBlDetail = json.data.tbBillList; |
| | | that.$refs.sectionCode.focus(); |
| | | that.sectionCode = ""; |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$refs.billNo.focus(); |
| | | that.billNo = ""; |
| | | that.ItemBlDetail = null; |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | console.log(error); |
| | | that.$refs.billNo.focus(); |
| | | that.billNo = ""; |
| | | that.ItemBlDetail = null; |
| | | //console.log(error); |
| | | }); |
| | | }, |
| | | getDepot(value) { |
| | | if (!value) { |
| | | this.$toast.fail("库位编码"); |
| | | return; |
| | | } |
| | | getDepot() { |
| | | |
| | | |
| | | var that = this; |
| | | |
| | | if (that.sectionCode.length == 0) { |
| | | this.$toast.fail("库位编码不能为空"); |
| | | return; |
| | | } |
| | | |
| | | |
| | | |
| | | that.AxiosHttp("post", 'Inventory/ScanDepotNo', { |
| | | depotCode: that.depotNo |
| | | DepotCode: that.sectionCode |
| | | }, false) |
| | | .then(function (res) { |
| | | var json = res; |
| | | if (json.status == 0) { |
| | | that.$notify({ type: 'success', message: json.data.tbBillList }); |
| | | that.$refs.barcode.focus(); |
| | | that.barcode = ""; |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$refs.sectionCode.focus(); |
| | | that.sectionCode = ""; |
| | | |
| | | } |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | console.log(error); |
| | | //console.log(error); |
| | | that.$refs.sectionCode.focus(); |
| | | that.sectionCode = ""; |
| | | }); |
| | | }, |
| | | getBarcode(value) { |
| | | getBarcode() { |
| | | |
| | | this.barcode = value; |
| | | //this.barcode = value; |
| | | |
| | | var that = this; |
| | | that.isLoading = true; |
| | |
| | | |
| | | that.itemNo = json.data.form.itemNo; |
| | | that.num = json.data.form.num; |
| | | that.barcode = json.data.form.barcode; |
| | | //that.barcode = json.data.form.barcode; |
| | | that.ItemBlDetail = json.data.items |
| | | that.$notify({ type: 'success', message: '扫码成功' }); |
| | | that.$refs.barcode.focus(); |
| | | that.barcode = ""; |
| | | //that.GetMesItemBlDetailByBillNo(); |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$refs.barcode.focus(); |
| | | that.barcode = ""; |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | console.log(error); |
| | | //console.log(error); |
| | | that.$refs.barcode.focus(); |
| | | that.barcode = ""; |
| | | }); |
| | | }, |
| | | tmcf() { |