| | |
| | | boardStyle: "" |
| | | }, |
| | | isShowTable: false, |
| | | tableData: [], |
| | | tableData: [],//返回的检验项目 |
| | | jymxData: [],//展示的检验项目 |
| | | |
| | | ttrre: false |
| | | ttrre: false, |
| | | show: false, |
| | | tableMxData: [], |
| | | tabActive: 0, |
| | | inputValue: '',//特征值输入 |
| | | resultValue: '',//检验结果录入 |
| | | showButton: false,//右上角菜单触发 |
| | | okValue: '', |
| | | ngValue: '' |
| | | } |
| | | }, |
| | | mounted() { |
| | |
| | | this.init(); |
| | | }, |
| | | methods: { |
| | | init() { |
| | | togglePopup(index) { |
| | | // 切换指定索引的 popup 状态 |
| | | var that = this; |
| | | this.show = true; |
| | | console.log(index); |
| | | console.log(that.tableData[index].guid); |
| | | var mxguid = that.tableData[index].guid; |
| | | that.jymxData = that.tableData[index]; |
| | | that.tabActive = index; |
| | | that.AxiosHttp("post", 'MesQaItemsDetect01Manager/GetModel12', { |
| | | parentGuid : "", |
| | | guid : mxguid , |
| | | }, true, 1).then(function (res1) { |
| | | if (res1.rtnCode == 1) { |
| | | that.tableMxData = res1.rtnData; |
| | | } else { |
| | | that.$toast.fail(res1.rtnMsg); |
| | | } |
| | | }).catch(function (error) { |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | console.log(error); |
| | | }); |
| | | |
| | | |
| | | }, |
| | | |
| | | handleTabClick() { |
| | | console.log(this.tabActive) |
| | | this.togglePopup(this.tabActive) |
| | | }, |
| | | |
| | | init() { |
| | | |
| | | //alert(this.Request("id")); |
| | | var that = this; |
| | | that.showButton = false; |
| | | that.AxiosHttp("post", 'LLJ/getPage', { |
| | | id: this.formData.id, |
| | | id: that.Request("id"), |
| | | pageIndex: 1, |
| | | limit: 1, |
| | | }, false) |
| | |
| | | that.formData = data; |
| | | |
| | | that.AxiosHttp("post", 'LLJ/getJYItem', { |
| | | id: that.formData.id, |
| | | //id: that.formData.guid, |
| | | releaseNo: that.formData.releaseNo |
| | | }, false).then(function (res1) { |
| | | let tableData = res1.data.tbBillList |
| | |
| | | } |
| | | }); |
| | | that.tableData = tableData; |
| | | if (that.tableData.length === 0) { |
| | | that.isShowTable = true; |
| | | } |
| | | //if (that.tableData.length === 0) { |
| | | // that.isShowTable = true; |
| | | //} |
| | | }).catch(function (error) { |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | console.log(error); |
| | |
| | | submit() { |
| | | var that = this; |
| | | |
| | | //if (that.formdata.remarks == undefined && that.formdata.fcheckresu == "不合格") { |
| | | // that.$toast.fail("检验结果为不合格时,需要填写不合格描述!"); |
| | | // return; |
| | | //} |
| | | |
| | | |
| | | |
| | | that.ttrre = true; |
| | | |
| | | that.AxiosHttp("post", 'LLJ/IqcQaSubmit', { |
| | | userNo: this.userInfo.loginAccount, |
| | | releaseNo: this.formData.releaseNo |
| | | }, false).then(function (res1) { |
| | | if (res1.status == 1) { |
| | | that.$toast.fail(res1.message); |
| | | } else { |
| | | //that.AxiosHttp("post", 'LLJ/IqcQaSubmit', { |
| | | // userNo: this.userInfo.loginAccount, |
| | | // releaseNo: this.formData.releaseNo |
| | | //}, false).then(function (res1) { |
| | | // if (res1.status == 1) { |
| | | // that.$toast.fail(res1.message); |
| | | // } else { |
| | | // that.$notify({ type: 'success', message: '提交成功' }); |
| | | // that.init(); |
| | | // } |
| | | // that.ttrre = false |
| | | //}).catch(function (error) { |
| | | // that.$toast.fail("网络错误,请重试!"); |
| | | // that.ttrre = false |
| | | // console.log(error); |
| | | //}); |
| | | that.AxiosHttp("post", 'MesQaItemsDetect01Manager/EditModelSubmit', { |
| | | guid: that.formData.guid |
| | | }, true, 1).then(function (res1) { |
| | | if (res1.rtnCode == 1) { |
| | | that.$notify({ type: 'success', message: '提交成功' }); |
| | | that.init(); |
| | | } else { |
| | | that.$toast.fail(res1.rtnMsg); |
| | | } |
| | | that.ttrre = false |
| | | }).catch(function (error) { |
| | |
| | | |
| | | var that = this; |
| | | |
| | | that.ttrre = true; |
| | | |
| | | that.AxiosHttp("post", 'MesQaItemsDetect01Manager/ReloadModel5', { |
| | | guid: "158f4324-955e-4a3b-aafa-09babf3c3368" |
| | | guid: that.formData.guid |
| | | }, true, 1).then(function (res1) { |
| | | if (res1.status == 1) { |
| | | that.$toast.fail(res1.message); |
| | | } else { |
| | | that.$notify({ type: 'success', message: '提交成功' }); |
| | | if (res1.rtnCode == 1) { |
| | | that.$notify({ type: 'success', message: '重新加载成功' }); |
| | | that.init(); |
| | | } else { |
| | | that.$toast.fail(res1.rtnMsg); |
| | | } |
| | | that.ttrre = false |
| | | }).catch(function (error) { |
| | | that.$toast.fail("网络错误,请重试!"); |
| | | that.ttrre = false |
| | | console.log(error); |
| | | }); |
| | | |
| | | }, |
| | | GetBack1() { |
| | | window.history.back(); |
| | | } |
| | | }, |
| | | onClickRight() { |
| | | |
| | | }, |
| | | } |
| | | }) |