| | |
| | | this.barcode = value; |
| | | |
| | | var that = this; |
| | | that.isLoading = true; |
| | | |
| | | |
| | | if (!that.userInfo.loginAccount) { |
| | | this.$toast.fail("请重新检查登录状态"); |
| | |
| | | |
| | | if (!that.stafId) { |
| | | that.$toast.fail("员工不允许为空"); |
| | | return; |
| | | } |
| | | |
| | | |
| | | that.isLoading = true; |
| | | that.AxiosHttp("post", 'MesWorkProd/ScanWork', { |
| | | userNo: that.userInfo.loginAccount, |
| | | itemBarcode: that.barcode, |
| | |
| | | var json = res; |
| | | if (json.status == 0) { |
| | | |
| | | let entity = json.data.tbBillList; |
| | | let entity = json.data.result; |
| | | that.taskNo = entity.taskNo; //工单号 |
| | | that.itemNo = entity.itemNo; //物料编号 |
| | | that.planQty = entity.planQty; //计划数量 |
| | |
| | | that.itemName = entity.itemName; //物料名称 |
| | | that.itemModel = entity.itemModel; //物料型号 |
| | | that.$notify({ type: 'success', message: '扫描成功' }); |
| | | that.barcode = null; |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |