| | |
| | | console.log(error); |
| | | }); |
| | | }, |
| | | getSectionCode(value) { |
| | | getSectionCode() { |
| | | var that = this; |
| | | that.sectionCode = value; |
| | | //that.sectionCode = value; |
| | | |
| | | if (!that.barcode) { |
| | | this.$toast.fail("条码不能为空"); |
| | | //if (!that.barcode) { |
| | | // this.$toast.fail("条码不能为空"); |
| | | // that.isLoading = false; |
| | | // return; |
| | | //} |
| | | |
| | | if (!that.billNo) { |
| | | this.$toast.fail("申请单号不能为空"); |
| | | that.$refs.sectionCode.focus(); |
| | | that.sectionCode = null; |
| | | that.isLoading = false; |
| | | return; |
| | | } |
| | |
| | | that.isLoading = false; |
| | | return; |
| | | } |
| | | |
| | | that.AxiosHttp("post", 'MesItemQtrk/ScanInDepotsQT', { |
| | | billNo: that.billNo, |
| | | sectionCode: that.sectionCode |
| | |
| | | var json = res; |
| | | if (json.status == 0) { |
| | | that.$notify({ type: 'success', message: json.data.tbBillList }); |
| | | that.$refs.barcode.focus(); |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$refs.sectionCode.focus(); |
| | | that.sectionCode = null; |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | |
| | | console.log(error); |
| | | }); |
| | | }, |
| | | getBarcode(value) { |
| | | getBarcode() { |
| | | |
| | | this.barcode = value; |
| | | //this.barcode = value; |
| | | |
| | | var that = this; |
| | | that.isLoading = true; |
| | |
| | | that.barcode = null; |
| | | that.ItemBlDetail = json.data.items; |
| | | that.$notify({ type: 'success', message: '扫描成功' }); |
| | | that.$refs.barcode.focus(); |
| | | //that.GetMesItemBlDetailByBillNo() |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$refs.barcode.focus(); |
| | | that.barcode = null; |
| | | } |
| | | that.isLoading = false; |
| | | }) |