| | |
| | | |
| | | if (that.formData.barcode == "" || that.formData.barcode == null) { |
| | | that.$refs.barcode.focus(); |
| | | that.$playSound('success'); |
| | | that.isLoading = false; |
| | | } else { |
| | | that.getScan(); |
| | |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$playSound('error'); |
| | | that.formData.sectionCode = null; |
| | | that.$refs.sectionCode.focus(); |
| | | that.isLoading = false; |
| | |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | that.$playSound('error'); |
| | | console.log(error); |
| | | that.formData.sectionCode = null; |
| | | that.$refs.sectionCode.focus(); |
| | |
| | | //that.formData.sumQuantity = json.data.tbMesItems.quantity; |
| | | if (that.formData.sectionCode == "" || that.formData.sectionCode == null) { |
| | | that.$refs.sectionCode.focus(); |
| | | that.$playSound('sucess'); |
| | | that.isLoading = false; |
| | | } else { |
| | | that.getScan(); |
| | |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | | that.$playSound('error'); |
| | | that.$refs.barcode.focus(); |
| | | that.formData.barcode = null; |
| | | that.isLoading = false; |
| | |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$playSound('error'); |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | console.log(error); |
| | | that.$refs.barcode.focus(); |
| | |
| | | |
| | | if (that.formData.sectionCode.length * 1 <= 0) { |
| | | that.$toast.fail("库位编码不能为空!"); |
| | | that.$playSound('error'); |
| | | return; |
| | | } |
| | | if (that.formData.barcode.length * 1 <= 0) { |
| | | that.$toast.fail("物料条码不能为空!"); |
| | | that.$playSound('error'); |
| | | return; |
| | | } |
| | | that.isLoading = true; |
| | |
| | | that.$refs.barcode.focus(); |
| | | that.formData.barcode = null; |
| | | that.formData.cfNum = null; |
| | | that.$playSound('success'); |
| | | that.$notify({ type: 'success', message: json.message }); |
| | | } |
| | | else { |
| | | that.$playSound('error'); |
| | | that.$toast.fail(json.message); |
| | | that.$refs.barcode.focus(); |
| | | that.formData.barcode = null; |
| | |
| | | }) |
| | | .catch(function (error) { |
| | | that.isLoading = false; |
| | | that.$playSound('error'); |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | console.log(error); |
| | | }); |
| | |
| | | this.Message = ""; |
| | | if (this.tableData.length == 0) { |
| | | this.Message = "条码为空,无法推送ERP"; |
| | | that.$playSound('error'); |
| | | return; |
| | | } |
| | | let userName = this.$loginInfo.account; |
| | |
| | | this.messageCenter.dealWith = 0; |
| | | this.messageCenter.status = 1; |
| | | this.messageCenter.resultData = res.msg; |
| | | that.$playSound('success'); |
| | | this.updateMessage(this.messageCenter); |
| | | } |
| | | }); |
| | |
| | | }).then(res => { |
| | | if (res.data.tbBillList) { |
| | | this.Message += " 审核成功!"; |
| | | that.$playSound('success'); |
| | | } else { |
| | | this.Message += " 审核失败:"; |
| | | that.$playSound('error'); |
| | | } |
| | | |
| | | let entity = { |