| | |
| | | depot: {}, |
| | | show: false, |
| | | actions: [], |
| | | ItemTblDetail:[] |
| | | ItemBlDetail: [], // 待扫 |
| | | ItemYsDetail: [], // 已扫 |
| | | ItemTblDetail: [], |
| | | ItemDetail: [], |
| | | ItemBarKw: [], |
| | | currentIndex: -1, |
| | | } |
| | | }, |
| | | mounted() { |
| | |
| | | if (json.status == 0) { |
| | | if (json.data.tbBillList.length <= 0) { |
| | | that.$toast.fail("没有可用的数据"); |
| | | that.show = false; |
| | | } else { |
| | | that.actions = json.data.tbBillList.map(item => { |
| | | return { name: item } |
| | |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | console.log(error); |
| | | that.show = false; |
| | | }); |
| | | }, |
| | | //onClick(index, title) { |
| | |
| | | // 可以通过 close-on-click-action 属性开启自动收起 |
| | | this.show = false; |
| | | this.billNo = item.name; |
| | | // 清空库位列表 |
| | | this.ItemBarKw = []; |
| | | this.getMesItemDetailByBillNo(); |
| | | //this.$toast(item.name); |
| | | }, |
| | |
| | | .then(function (res) { |
| | | var json = res; |
| | | if (json.status == 0) { |
| | | that.ItemTblDetail = json.data.tbBillList; |
| | | var tbBillList = json.data.tbBillList || {}; |
| | | that.ItemBlDetail = tbBillList.blDetails || []; // 待扫 |
| | | that.ItemYsDetail = tbBillList.ysDetails || []; // 已扫 |
| | | that.$refs.sectionCode.focus(); |
| | | } |
| | | else { |
| | |
| | | that.itemNo = json.data.tbBillList.itemNo; |
| | | that.sms = json.data.tbBillList.num; |
| | | that.$notify({ type: 'success', message: '扫描成功' }); |
| | | that.$toast.success("扫描成功"); |
| | | that.$refs.barcode.focus(); |
| | | that.barcode = null; |
| | | that.getMesItemDetailByBillNo(); |