| | |
| | | var json = res; |
| | | if (json.status == 0) { |
| | | that.ItemBarKw = json.data.tbBillList; |
| | | that.$playSound('success'); |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | |
| | | |
| | | if (json.data.tbBillList.length == 0) { |
| | | that.$toast.fail("没有找到可以选择的出库单号"); |
| | | that.$playSound('error'); |
| | | } |
| | | |
| | | that.$playSound('success'); |
| | | that.actions = json.data.tbBillList.map(item => { |
| | | return { name: item } |
| | | }); |
| | |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | that.$playSound('error'); |
| | | console.log(error); |
| | | }); |
| | | }, |
| | |
| | | that.ItemYsDetail = tbBillList.ysDetails || []; // 已扫 |
| | | that.$refs.sectionCode.focus(); |
| | | that.barcode = ""; |
| | | that.sectionCode = tbBillList.allList[0].inKw; |
| | | //if (!isKeepLocation) { |
| | | // that.sectionCode = tbBillList.allList[0].inKw; |
| | | //} |
| | | // 重置库位查询中所有行的选中状态 |
| | | that.$playSound('success'); |
| | | that.currentIndex = -1; |
| | | that.ItemBarKw = []; |
| | | } |
| | |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | that.$playSound('error'); |
| | | that.$refs.billNo.focus(); |
| | | that.billNo = ""; |
| | | that.ItemBlDetail = null; |
| | |
| | | //that.ItemBlDetail = json.data.items |
| | | that.$notify({ type: 'success', message: '扫码成功' }); |
| | | that.$toast.success("扫描成功"); |
| | | that.$playSound('success'); |
| | | that.$refs.barcode.focus(); |
| | | that.barcode = ""; |
| | | //that.GetMesItemBlDetailByBillNo(); |
| | |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$playSound('error'); |
| | | that.$refs.barcode.focus(); |
| | | that.barcode = ""; |
| | | } |
| | |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | that.$playSound('error'); |
| | | //console.log(error); |
| | | that.$refs.barcode.focus(); |
| | | that.barcode = ""; |