| | |
| | | label="移植医院" |
| | | align="center" |
| | | width="220" |
| | | prop="transplanthospitalno" |
| | | prop="hospitalno" |
| | | v-if="actives == 6" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <org-selecter |
| | | ref="tranHosSelect" |
| | | :org-type="'4'" |
| | | v-model="scope.row.transplanthospitalno" |
| | | v-model="scope.row.hospitalno" |
| | | style="width: 100%" |
| | | /> |
| | | </template> |
| | |
| | | saveDonatecomporgan, |
| | | delDonatecomporgan |
| | | } from "@/api/project/donatecompletioninfo"; |
| | | import { |
| | | listDonorchargeorgan, |
| | | updateDonorchargeorgan, |
| | | addDonorchargeorgan, |
| | | saveDonorchargeorgan, |
| | | delDonorchargeorgan |
| | | } from "@/api/project/donorcharge"; |
| | | import Li_area_select from "@/components/Address"; |
| | | import OrgSelecter from "@/views/project/components/orgselect"; |
| | | import AnnexUpload from "@/views/project/components/annexupload"; |
| | | import ReportName from "@/views/project/components/organizationUser"; |
| | | import { getToken } from "@/utils/auth"; |
| | | import { formatDate } from "@/utils/index"; |
| | | import { forEach } from "lodash"; |
| | | |
| | | export default { |
| | | name: "donationdetails", |
| | |
| | | // 保存捐献器官移植信息 |
| | | this.transplantdata.infoid = this.infoid; |
| | | console.log(this.form); |
| | | this.transplantdata.forEach(item => { |
| | | listDonorchargeorgan({ |
| | | infoid: item.infoid, |
| | | organno: item.organno |
| | | }).then(res => { |
| | | console.log("aaa"); |
| | | if (res.rows[0]) { |
| | | let objfn = res.rows[0]; |
| | | console.log(objfn, "sass"); |
| | | |
| | | objfn.caseno = item.caseno; |
| | | objfn.hospitalno = item.hospitalno; |
| | | objfn.name = item.name; |
| | | objfn.receiveTime = item.transplanttime; |
| | | console.log(objfn, "sass"); |
| | | updateDonorchargeorgan(objfn).then(res1 => {}); |
| | | } else { |
| | | addDonorchargeorgan(item).then(res2 => {}); |
| | | } |
| | | }); |
| | | }); |
| | | saveDonatecomporgan(this.transplantdata).then(res => { |
| | | if (res == 200) { |
| | | this.$modal.msgSuccess("捐献器官获取信息保存成功!"); |
| | |
| | | return; |
| | | } |
| | | }); |
| | | |
| | | console.log(this.accomplishform.id, "完成id"); |
| | | // 保存确认信息 |
| | | if (this.accomplishform.id) { |
| | |
| | | this.$modal.msgSuccess( |
| | | "删除成功,如果需要增加该器官,请重新选择器官!" |
| | | ); |
| | | listDonorchargeorgan({ |
| | | infoid: this.transplantdata[organIndex].infoid, |
| | | organno: this.transplantdata[organIndex].organno |
| | | }).then(res => { |
| | | delDonorchargeorgan(res.rows[0].id); |
| | | }); |
| | | } |
| | | ); |
| | | }) |
| | |
| | | id: null, |
| | | infoid: this.infoid, |
| | | donorno: this.form.donorno, |
| | | organstate: 1 |
| | | organstate: 1, |
| | | transplantstate:1, |
| | | }); |
| | | } |
| | | } else { |