| | |
| | | var that = this; |
| | | |
| | | that.isLoading = true; |
| | | that.AxiosHttp("post", 'MesBarCF/GetBarInfo', { |
| | | that.AxiosHttp("post", 'MesBarCF/GetBarInfoBefore', { |
| | | barcode: that.formData.barcode, |
| | | }, false) |
| | | .then(function (res) { |
| | |
| | | that.$toast.fail("拆分数量不能为空!"); |
| | | return; |
| | | } |
| | | if (that.formData.cfNum > that.formData.sumQuantity) { |
| | | // ... existing code ... |
| | | if (parseFloat(that.formData.cfNum) > parseFloat(that.formData.sumQuantity)) { |
| | | that.$toast.fail("拆分数量不能大于条码数量!"); |
| | | return; |
| | | } |
| | | // ... existing code ... |
| | | if (that.formData.barcode.length * 1 <= 0) { |
| | | that.$toast.fail("物料条码不能为空!"); |
| | | return; |
| | | } |
| | | that.isLoading = true; |
| | | that.AxiosHttp("post", 'MesBarCF/BarCF', { |
| | | that.AxiosHttp("post", 'MesBarCF/BarCfBefore', { |
| | | userName: that.userInfo.loginAccount, |
| | | barcode: that.formData.barcode, |
| | | CfNum: that.formData.cfNum, |