| | |
| | | quantity:0 |
| | | }, |
| | | formData: {}, |
| | | tableData: [], |
| | | ItemDetail: [], |
| | | codeTableData: [], |
| | | itemOutNoList: [], |
| | | itemOutNoStr: [], |
| | |
| | | |
| | | this.getItem(); |
| | | |
| | | //var that = this; |
| | | |
| | | //that.isLoading = true; |
| | | //that.AxiosHttp("post", 'MesInvItemOuts/GetPage', { |
| | | // billNo: this.scanFormData.itemOutNo, |
| | | // pageIndex: 1, |
| | | // limit: 1, |
| | | //}, false) |
| | | // .then(function (res) { |
| | | // var json = res; |
| | | // if (json.status == 0) { |
| | | // that.formData = json.data.tbBillList[0]; |
| | | // that.formData.billTypeName = "出库单"; |
| | | |
| | | // that.getScanBarcode(); |
| | | // } |
| | | // else { |
| | | // that.$toast.fail(json.message); |
| | | // } |
| | | // that.isLoading = false; |
| | | // }) |
| | | // .catch(function (error) { |
| | | // that.isLoading = false; |
| | | // that.$toast.fail("网络错误,请重试!"); |
| | | // console.log(error); |
| | | // }); |
| | | |
| | | }, |
| | | getItem() { |
| | | var that = this; |
| | |
| | | .then(function (res) { |
| | | var json = res; |
| | | if (json.status == 0) { |
| | | that.tableData = json.data.tbBillList.sumItem; |
| | | that.scanFormData.itemNo = json.data.tbBillList.itemNo |
| | | //that.scanFormData.quantity = json.data.tbBillList.quantity |
| | | //console.log(json); |
| | | that.ItemDetail = json.data.tbBillList; |
| | | that.$refs.barcode.focus(); |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.ItemDetail = []; |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | console.log(error); |
| | | that.ItemDetail = []; |
| | | }); |
| | | }, |
| | | //getScanBarcode() { |
| | | |
| | | // var that = this; |
| | | // that.isLoading = true; |
| | | // that.AxiosHttp("post", 'MesInvItemOuts/GetScanBarcode', { |
| | | // id: that.formData.guid |
| | | // }, false) |
| | | // .then(function (res) { |
| | | // var json = res; |
| | | // if (json.status == 0) { |
| | | // that.codeTableData = res.data.tbBillList; |
| | | // } |
| | | // else { |
| | | // that.$toast.fail(json.message); |
| | | // } |
| | | // that.isLoading = false; |
| | | // }) |
| | | // .catch(function (error) { |
| | | // that.isLoading = false; |
| | | // that.$toast.fail("网络错误,请重试!"); |
| | | // console.log(error); |
| | | // }); |
| | | //}, |
| | | SaveBarCodes() { |
| | | |
| | | //if (!this.scanFormData.barcode) { |