| | |
| | | return; |
| | | } |
| | | // 不存在时获取器官 |
| | | let accpre = { |
| | | id: searchParam.infoid |
| | | }; |
| | | // let accpre = { |
| | | // id: searchParam.infoid |
| | | // }; |
| | | if (!this.organList.organtransplant[0]) { |
| | | listDonatecomporgan(searchParam).then(res => { |
| | | if (res.code == 200) { |
| | |
| | | } |
| | | // 获取完成登记信息 |
| | | // listnewDonatecompletioninfo(accpre).then(response => { |
| | | listDonatecompletioninfo(accpre).then(response => { |
| | | listDonatecompletioninfo(searchParam).then(response => { |
| | | if (response.code == 200 && response.rows.length) { |
| | | this.accomplishform = response.rows[0]; |
| | | this.accomplishform.infoid = this.infoid; |
| | |
| | | this.$modal.msgSuccess("捐献器官获取信息保存成功!"); |
| | | } |
| | | }); |
| | | |
| | | console.log(this.accomplishform.id,'完成id'); |
| | | // 保存确认信息 |
| | | if (this.accomplishform.id) { |
| | | updateDonatecompletioninfo(this.accomplishform).then(response => { |
| | |
| | | if (organIndex != -1) { |
| | | if (this.transplantdata[organIndex].id > 0) { |
| | | this.$confirm( |
| | | "删除器官数据后将不法恢复,您确认删除该条记录吗?", |
| | | "删除器官数据后将无法恢复,您确认删除该条记录吗?", |
| | | "提示", |
| | | { |
| | | confirmButtonText: "确定", |