| | |
| | | console.log(this.tabActive) |
| | | this.togglePopup(this.tabActive); |
| | | }, |
| | | |
| | | //生成检验单 |
| | | createByWomdaa() { |
| | | const that = this; |
| | | var guid1 = that.formData.guid;//主表id |
| | | return that.AxiosHttp("post", 'Ipqc/createByWomdaa', { |
| | | inOrderGuid1: guid1, |
| | | userAccount: that.userInfo.loginAccount, |
| | | DAA001: that.formData.lotNo |
| | | }, false).then(res1 => { |
| | | that.init(); |
| | | }).catch(error => { |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | console.error('Refresh error:', error); |
| | | }); |
| | | }, |
| | | |
| | | //检验明细刷新 |
| | | refreshJYItem() { |
| | | const that = this; |
| | |
| | | submit() { |
| | | var that = this; |
| | | that.ttrre = true; |
| | | that.AxiosHttp("post", 'MesQaItemsDetect01Manager/EditModelSubmit', { |
| | | that.AxiosHttp("post", 'FqcManager/EditModelSubmit', { |
| | | guid: that.formData.guid |
| | | }, true, 1).then(function (res1) { |
| | | if (res1.rtnData.outSum == 1) { |
| | |
| | | }, true, 0).then(res1 => { |
| | | if (res1.status === 0) { |
| | | that.$notify({ type: 'success', message: '删除成功' }); |
| | | that.init();//刷新检验项目 |
| | | |
| | | } else { |
| | | that.$toast.fail(res1.rtnMsg); |
| | | |
| | | } |
| | | that.init();//刷新检验项目 |
| | | }).catch(error => { |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | }); |
| | | |
| | | }).catch(() => { |
| | | // 取消操作 |
| | | that.init();//刷新检验项目 |
| | | }) |
| | | }, |
| | | } |