| | |
| | | /** 新增按钮操作 */ |
| | | handleAdd(data) { |
| | | console.log("datadata", data); |
| | | |
| | | this.$router.push({ |
| | | path: "/organ/donationdetails/", |
| | | query: { |
| | | id: data.id, |
| | | organType: "edit" |
| | | } |
| | | }); |
| | | // if(data.recordstate != 2 && data.recordstate != 4 && data.recordstate != 5 && data.recordstate != 13){ |
| | | // this.$modal.msgError("当前捐献案例不能进行医学捐献评估"); |
| | | // return |
| | | // } |
| | | |
| | | this.flowname = "捐献医学评估"; |
| | | this.annexno = ""; |
| | | this.reset(); |
| | | //this.curCase = data; |
| | | this.curCase = { |
| | | id: data.id, |
| | | recordstate: null, |
| | | donorno: data.donorno |
| | | }; |
| | | //获取医学捐献评估记录 |
| | | this.loading = true; |
| | | if (data.meid) { |
| | | let searchParam = { |
| | | id: data.meid |
| | | }; |
| | | //listDonatebaseinfo(searchParam).then((response) => { |
| | | listMedicalevaluation(searchParam).then(response => { |
| | | if (response.code == 200 && response.rows.length == 1) { |
| | | this.title = "修改捐献医学评估"; |
| | | this.form = response.rows[0]; |
| | | this.form.infoid = data.id; |
| | | this.open = true; |
| | | this.$nextTick(function() { |
| | | this.$refs.evaluationannex.getAnnexList(); |
| | | }); |
| | | } else { |
| | | this.$modal.msgError( |
| | | "获取医学评估记录失败:" + JSON.stringify(response) |
| | | ); |
| | | } |
| | | }); |
| | | } else { |
| | | this.title = "新增捐献医学评估"; |
| | | this.form.infoid = data.id; |
| | | this.form.donorno = data.donorno; |
| | | // this.flowname = "捐献医学评估"; |
| | | // this.annexno = ""; |
| | | // this.reset(); |
| | | // //this.curCase = data; |
| | | // this.curCase = { |
| | | // id: data.id, |
| | | // recordstate: null, |
| | | // donorno: data.donorno |
| | | // }; |
| | | // //获取医学捐献评估记录 |
| | | // this.loading = true; |
| | | // if (data.meid) { |
| | | // let searchParam = { |
| | | // id: data.meid |
| | | // }; |
| | | // //listDonatebaseinfo(searchParam).then((response) => { |
| | | // listMedicalevaluation(searchParam).then(response => { |
| | | // if (response.code == 200 && response.rows.length == 1) { |
| | | // this.title = "修改捐献医学评估"; |
| | | // this.form = response.rows[0]; |
| | | // this.form.infoid = data.id; |
| | | // this.open = true; |
| | | // this.$nextTick(function() { |
| | | // this.$refs.evaluationannex.getAnnexList(); |
| | | // }); |
| | | // } else { |
| | | // this.$modal.msgError( |
| | | // "获取医学评估记录失败:" + JSON.stringify(response) |
| | | // ); |
| | | // } |
| | | // }); |
| | | // } else { |
| | | // this.title = "新增捐献医学评估"; |
| | | // this.form.infoid = data.id; |
| | | // this.form.donorno = data.donorno; |
| | | |
| | | this.open = true; |
| | | this.$nextTick(function() { |
| | | this.$refs.evaluationannex.getAnnexList(); |
| | | }); |
| | | } |
| | | this.loading = false; |
| | | // this.open = true; |
| | | // this.$nextTick(function() { |
| | | // this.$refs.evaluationannex.getAnnexList(); |
| | | // }); |
| | | // } |
| | | // this.loading = false; |
| | | }, |
| | | /** 提交按钮 */ |
| | | submitForm() { |