| | |
| | | selItem: {}, |
| | | ItemBarKw: [],//当天行相关条码库位信息 |
| | | DaaInfo: {}, |
| | | billno:"", |
| | | } |
| | | }, |
| | | mounted() { |
| | |
| | | getModel() { |
| | | var that = this; |
| | | that.isLoading = true; |
| | | that.AxiosHttp("post", 'WwGd/GetItemsByDaa001', { |
| | | daa001: that.modeInfo.daa001, |
| | | that.AxiosHttp("post", 'WwGd/GetItemsByWwckNo', { |
| | | daa001: that.billno, |
| | | userName: that.userInfo.loginAccount |
| | | }, false) |
| | | .then(function (res) { |
| | |
| | | that.DaaInfo = json.data.tbBillList.daaInfo; |
| | | that.modeInfo.planNo = json.data.tbBillList.planNo; |
| | | that.modeInfo.startTime = json.data.tbBillList.startTime; |
| | | that.modeInfo.daa001 = json.data.tbBillList.allList[0].daA001; |
| | | that.$refs.barcode.focus(); |
| | | // 重置所有行的选中状态 |
| | | that.currentIndex = -1; |
| | | that.ItemBarKw = []; |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | |
| | | return; |
| | | } |
| | | that.isLoading = true; |
| | | that.AxiosHttp("post", 'WwGd/ScanCode', { |
| | | that.AxiosHttp("post", 'WwGd/WwckScanCode', { |
| | | daa001: that.modeInfo.daa001, |
| | | userName: that.userInfo.loginAccount, |
| | | barcode: that.scanInfo.barcode, |
| | | blNo: that.billno, |
| | | type: '委外领料', |
| | | }, false) |
| | | .then(function (res) { |
| | | var json = res; |
| | |
| | | return; |
| | | } |
| | | that.isLoading = true; |
| | | that.AxiosHttp("post", 'WwGd/ScanCodeCF', { |
| | | that.AxiosHttp("post", 'WwGd/WwckScanCodeCF', { |
| | | daa001: that.modeInfo.daa001, |
| | | userName: that.userInfo.loginAccount, |
| | | barcode: that.scanInfo.barcode, |
| | | Num: that.scanInfo.splitNum, |
| | | blNo: that.billno, |
| | | type: '委外领料', |
| | | }, false) |
| | | .then(function (res) { |
| | | var json = res; |
| | |
| | | // 可以通过 close-on-click-action 属性开启自动收起 |
| | | this.show = false; |
| | | console.log(item); |
| | | // 正则匹配第一个方括号内容 |
| | | const regex = /\[([^\]]+)\]/; |
| | | const matchResult = item.name.match(regex); |
| | | |
| | | if (matchResult && matchResult[1]) { |
| | | this.modeInfo.daa001 = matchResult[1]; // PPBOM00000088-1 |
| | | console.log('提取的DAA001:', this.modeInfo.daa001); |
| | | } else { |
| | | this.$toast.fail('工单号格式异常'); |
| | | this.modeInfo.daa001 = ''; |
| | | } |
| | | this.billno = item.name; |
| | | this.getModel(); |
| | | //this.$toast(item.name); |
| | | }, |