| | |
| | | "loginGuid": '', |
| | | "loginAccount": '', |
| | | }, |
| | | sms: "", |
| | | num:"", |
| | | billNo:"", |
| | | splitNum: "", |
| | | num: "", |
| | | type: "", |
| | | billNo: "", |
| | | selectType: "", |
| | | daa001: "", |
| | | barcode:"", |
| | | barcode: "", |
| | | ItemBlDetail:[], |
| | | modeInfo: [], |
| | | active: 0, |
| | |
| | | loginGuid: this.GetLoginInfor().loginGuid, |
| | | loginAccount: this.GetLoginInfor().loginAccount, |
| | | }; |
| | | this.type = this.Request("type"); |
| | | selectType = this.type == "bl" ? selectType = "生产补料" : selectType = "生产超领"; |
| | | }, |
| | | methods: { |
| | | getInfo() { |
| | |
| | | |
| | | var that = this; |
| | | that.isLoading = true; |
| | | |
| | | |
| | | |
| | | that.AxiosHttp("post", 'MesItemBl/GetSCBLBillNo', { |
| | | type: "生产补料", |
| | | type: selectType, |
| | | }, false) |
| | | .then(function (res) { |
| | | var json = res; |
| | |
| | | that.isLoading = true; |
| | | that.AxiosHttp("post", 'MesItemBl/GetMesItemBlDetailByBillNo', { |
| | | billNo: that.billNo, |
| | | type: "生产补料" |
| | | type: selectType |
| | | }, false) |
| | | .then(function (res) { |
| | | var json = res; |
| | | if (json.status == 0) { |
| | | that.ItemBlDetail = json.data.tbBillList.item2; |
| | | that.daa001 = json.data.tbBillList.item1; |
| | | that.$refs.barcode.focus(); |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$refs.billNo.focus(); |
| | | that.billNo = ""; |
| | | that.daa001 = ""; |
| | | that.ItemBlDetail = []; |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | console.log(error); |
| | | //console.log(error); |
| | | tthat.$refs.billNo.focus(); |
| | | that.billNo = ""; |
| | | that.daa001 = ""; |
| | | that.ItemBlDetail = []; |
| | | }); |
| | | }, |
| | | getBarcode(value) { |
| | | getBarcode() { |
| | | |
| | | this.barcode = value; |
| | | //this.barcode = value; |
| | | |
| | | var that = this; |
| | | that.isLoading = true; |
| | |
| | | userName: that.userInfo.loginAccount, |
| | | barcode: that.barcode, |
| | | blNo: that.billNo, |
| | | billNo: that.daa001 |
| | | billNo: that.daa001, |
| | | type: selectType |
| | | }, false) |
| | | .then(function (res) { |
| | | var json = res; |
| | |
| | | //that.ItemBlDetail = json.data.tbBillList.item2 |
| | | that.$notify({ type: 'success', message: '扫描成功' }); |
| | | that.GetMesItemBlDetailByBillNo(); |
| | | that.$refs.barcode.focus(); |
| | | that.barcode = ""; |
| | | that.num = ""; |
| | | that.splitNum = ""; |
| | | |
| | | |
| | | } else if (json.status == 2) { |
| | | that.$refs.splitNum.focus(); |
| | | that.scanInfo.splitNum = json.data.tbBillList.splitNum; |
| | | that.scanInfo.barcodeNum = json.data.tbBillList.barcodeNum; |
| | | that.splitNum = json.data.cfNum; |
| | | that.num = json.data.num; |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$refs.barcode.focus(); |
| | | that.barcode = ""; |
| | | that.num = ""; |
| | | that.splitNum = ""; |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | console.log(error); |
| | | //console.log(error); |
| | | that.$refs.barcode.focus(); |
| | | that.barcode = ""; |
| | | that.num = ""; |
| | | that.splitNum = ""; |
| | | }); |
| | | }, |
| | | tmcf() { |
| | |
| | | return; |
| | | } |
| | | |
| | | if (!that.sms) { |
| | | if (!that.splitNum) { |
| | | this.$toast.fail("发货数量不能为空"); |
| | | that.isLoading = false; |
| | | return; |
| | |
| | | barcode: that.barcode, |
| | | blNo: that.billNo, |
| | | billNo: that.daa001, |
| | | num: that.sms |
| | | num: that.splitNum, |
| | | type: selectType |
| | | }, false) |
| | | .then(function (res) { |
| | | var json = res; |
| | | if (json.status == 0) { |
| | | that.ItemBlDetail = json.data.pendingList; |
| | | that.$notify({ type: 'success', message: '扫描成功' }); |
| | | that.$refs.barcode.focus(); |
| | | that.barcode = ""; |
| | | that.num = ""; |
| | | that.splitNum = ""; |
| | | that.GetMesItemBlDetailByBillNo(); |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$refs.barcode.focus(); |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | console.log(error); |
| | | //console.log(error); |
| | | that.$refs.barcode.focus(); |
| | | that.barcode = ""; |
| | | that.num = ""; |
| | | that.splitNum = ""; |
| | | }); |
| | | } |
| | | } |