| | |
| | | that.formData.itemNo = json.data.tbMesItems.itemNo; |
| | | that.formData.itemName = json.data.tbMesItems.itemName; |
| | | that.formData.itemModel = json.data.tbMesItems.itemModel; |
| | | that.ytdh = ""; |
| | | that.ItemDetail = []; |
| | | that.tableData = []; |
| | | } |
| | | else { |
| | | that.$toast.fail(json.message); |
| | |
| | | |
| | | |
| | | handleSubmit() { |
| | | if (this.ttrre) { |
| | | if (this.isLoading) { |
| | | return; |
| | | } |
| | | |
| | | var that = this; |
| | | that.ttrre = true; |
| | | that.AxiosHttp("post", 'MesBarCF/EditModelSubmit', { |
| | | guid: that.formData.guid |
| | | }, true, 1).then(function (res1) { |
| | | that.isLoading = true; |
| | | that.AxiosHttp("post", 'MesCgthSq/ScanCgyt', { |
| | | barcode: that.formData.barcode, |
| | | userName: that.userInfo.loginAccount, |
| | | }, true, 0).then(function (res1) { |
| | | if (res1.status == 0) { |
| | | that.$notify({ type: 'success', message: res1.data.tbBillList.msg }); |
| | | that.ytdh = res1.data.tbBillList.ytdh; |
| | | that.ItemDetail = res1.data.ytItem; |
| | | that.tableData = res1.data.ytBarInfo; |
| | | } |
| | | else { |
| | | that.$toast.fail(res1.message); |
| | | } |
| | | that.isLoading = false |
| | | }).catch(function (error) { |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | that.isLoading = false |
| | | console.log(error); |
| | | }); |
| | | }, |
| | | |
| | | deleteCgyt() { |
| | | if (this.isLoading) { |
| | | return; |
| | | } |
| | | |
| | | var that = this; |
| | | that.isLoading = true; |
| | | that.AxiosHttp("post", 'MesCgthSq/deleteCgyt', { |
| | | ytdh: that.ytdh, |
| | | userName: that.userInfo.loginAccount, |
| | | }, true, 0).then(function (res1) { |
| | | if (res1.rtnData.outSum == 1) { |
| | | that.$notify({ type: 'success', message: '提交成功' }); |
| | | that.init(); |
| | | } else { |
| | | that.$toast.fail(res1.rtnData.outMsg); |
| | | } |
| | | that.ttrre = false |
| | | that.isLoading = false |
| | | }).catch(function (error) { |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | that.ttrre = false |
| | | that.isLoading = false |
| | | console.log(error); |
| | | }); |
| | | }, |
| | |
| | | that.ttrre = true; |
| | | that.AxiosHttp("post", 'FqcManager/EditModelSubmit', { |
| | | guid: that.formData.guid |
| | | }, true, 1).then(function (res1) { |
| | | }, true, 0).then(function (res1) { |
| | | if (res1.rtnData.outSum == 1) { |
| | | that.$notify({ type: 'success', message: '提交成功' }); |
| | | that.init(); |