| | |
| | | fum: "", |
| | | billNo: "", |
| | | barcode:"", |
| | | ItemBlDetail:[], |
| | | |
| | | ItemBlDetail: [], // 待扫 |
| | | ItemYsDetail: [], // 已扫 |
| | | ItemDetail: [], |
| | | ItemBarKw: [], |
| | | currentIndex: -1, |
| | | |
| | | modeInfo: [], |
| | | active: 0, |
| | | show: false, |
| | |
| | | }; |
| | | }, |
| | | methods: { |
| | | handleRowClick(item, index) { |
| | | if (this.isLoading) { |
| | | return; |
| | | } |
| | | |
| | | // 重置所有行的选中状态 |
| | | this.currentIndex = -1; |
| | | |
| | | // 设置当前选中行 |
| | | this.currentIndex = index; |
| | | this.selItem = { |
| | | itemid: item.itemId, |
| | | index: index |
| | | }; |
| | | |
| | | console.log('当前选中项:', this.selItem); // 调试用 |
| | | |
| | | this.GetBarKwByItem(); |
| | | //this.active = 1; //自动切换到库位列表tab |
| | | }, |
| | | GetBarKwByItem() { |
| | | |
| | | var that = this; |
| | | that.isLoading = true; |
| | | that.AxiosHttp("post", 'Womdaa/GetBarKwByItemCK', { |
| | | itemId: that.selItem.itemid, |
| | | userName: that.userInfo.loginAccount, |
| | | type: 'DBCK',//调拨出库 |
| | | billNo: that.billNo |
| | | }, false) |
| | | .then(function (res) { |
| | | var json = res; |
| | | if (json.status == 0) { |
| | | that.ItemBarKw = json.data.tbBillList; |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$playSound('error'); |
| | | that.ItemBarKw = []; |
| | | } |
| | | that.isLoading = false; |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | that.$playSound('error'); |
| | | console.log(error); |
| | | that.ItemBarKw = []; |
| | | }); |
| | | }, |
| | | getInfo() { |
| | | this.show = true; |
| | | |
| | |
| | | this.show = false; |
| | | |
| | | this.billNo = item.name; |
| | | // 清空库位列表 |
| | | this.ItemBarKw = []; |
| | | this.GetMesItemBlDetailByBillNo(); |
| | | //this.$toast(item.name); |
| | | |
| | |
| | | .then(function (res) { |
| | | var json = res; |
| | | if (json.status == 0) { |
| | | that.ItemDetail = json.data.tbBillList; |
| | | //that.ItemDetail = json.data.tbBillList; |
| | | var tbBillList = json.data.tbBillList || {}; |
| | | that.ItemBlDetail = tbBillList.blDetails || []; // 待扫 |
| | | that.ItemYsDetail = tbBillList.ysDetails || []; // 已扫 |
| | | that.$refs.barcode.focus(); |
| | | that.barcode = ""; |
| | | } |
| | |
| | | ////that.fum = json.data.form.fum; |
| | | //that.ItemBlDetail = json.data.items |
| | | that.$notify({ type: 'success', message: '扫码成功' }); |
| | | |
| | | that.$toast.success("扫描成功"); |
| | | that.$refs.barcode.focus(); |
| | | that.barcode = ""; |
| | | //that.GetMesItemBlDetailByBillNo(); |