| | |
| | | itemInsFormData: {}, |
| | | tableData: [], |
| | | itemTableData: [], |
| | | itemDetail: [], |
| | | barcodeDetail: [], |
| | | barMessage: "", |
| | | |
| | | Message: "", |
| | |
| | | .then(function (res) { |
| | | var json = res; |
| | | if (json.status == 0) { |
| | | that.formData.itemNo = json.data.tbMesItems.itemNo; |
| | | that.formData.itemName = json.data.tbMesItems.itemName; |
| | | that.formData.itemModel = json.data.tbMesItems.itemModel; |
| | | that.formData.barQuantity = json.data.tbBillList.quantity; |
| | | that.formData.DAA001 = json.data.tbBillList.billNo; |
| | | that.formData.itemNo = json.data.tbBillList.barcodeInfo[0].ITEM_NO; |
| | | that.formData.itemName = json.data.tbBillList.barcodeInfo[0].item_name; |
| | | that.formData.itemModel = json.data.tbBillList.barcodeInfo[0].item_model; |
| | | that.formData.barQuantity = json.data.tbBillList.barcodeInfo[0].QUANTITY; |
| | | that.formData.DAA001 = json.data.tbBillList.barcodeInfo[0].BILL_NO; |
| | | //that.formData.sumQuantity = json.data.tbMesItems.quantity; |
| | | if (that.formData.sectionCode == "" || that.formData.sectionCode == null) { |
| | | that.$refs.sectionCode.focus(); |
| | |
| | | getScan() { |
| | | var that = this; |
| | | |
| | | that.AxiosHttp("post", 'MesCprk/GetBarInfo', { |
| | | sectionCode: that.formData.sectionCode, |
| | | userName: that.userInfo.loginAccount, |
| | | barcode: that.formData.barcode, |
| | | }, false) |
| | | .then(function (res) { |
| | | var json = res; |
| | | if (json.status == 0) { |
| | | that.itemDetail = json.data.tbBillList.xcslItemList |
| | | that.barcodeDetail = json.data.tbBillList.xcslWjsBarList |
| | | } |
| | | else { |
| | | that.formData.barcode = null; |
| | | that.isLoading = false; |
| | | } |
| | | |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$playSound('error'); |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | console.log(error); |
| | | that.$refs.barcode.focus(); |
| | | }); |
| | | |
| | | if (that.formData.sectionCode.length * 1 <= 0) { |
| | | that.$toast.fail("库位编码不能为空!"); |
| | | that.$playSound('error'); |
| | |
| | | that.formData.cfNum = null; |
| | | that.$playSound('success'); |
| | | that.$notify({ type: 'success', message: json.message }); |
| | | |
| | | } |
| | | else { |
| | | that.$playSound('error'); |