| | |
| | | <div> |
| | | <el-steps direction="vertical" :active="workflow"> |
| | | <el-step title="潜在捐献" icon="el-icon-user"> |
| | | <template |
| | | slot="description" |
| | | v-if="Processdata.donatebaseinfo.createtime" |
| | | > |
| | | <template slot="description" v-if="donatebaseinfo.createtime"> |
| | | <p> |
| | | 提交:<span |
| | | >{{ Processdata.donatebaseinfo.createperson }} |
| | | {{ parseTime(Processdata.donatebaseinfo.createtime) }}</span |
| | | >{{ donatebaseinfo.createperson }} |
| | | {{ parseTime(donatebaseinfo.createtime) }}</span |
| | | > |
| | | </p> |
| | | <p> |
| | | 更新:<span |
| | | >{{ Processdata.donatebaseinfo.updateperson }} |
| | | {{ parseTime(Processdata.donatebaseinfo.updatetime) }}</span |
| | | >{{ donatebaseinfo.updateperson }} |
| | | {{ parseTime(donatebaseinfo.updatetime) }}</span |
| | | > |
| | | </p> |
| | | </template> |
| | |
| | | icon="el-icon-edit-outline" |
| | | description="请先完成前部步骤" |
| | | > |
| | | <template |
| | | slot="description" |
| | | v-if="Processdata.medicalevaluation.createtime" |
| | | > |
| | | <template slot="description" v-if="medicalevaluation.createtime"> |
| | | <p> |
| | | 提交:<span> |
| | | {{ Processdata.medicalevaluation.createperson }} |
| | | {{ |
| | | parseTime(Processdata.medicalevaluation.createtime) |
| | | }}</span |
| | | {{ medicalevaluation.createperson }} |
| | | {{ parseTime(medicalevaluation.createtime) }}</span |
| | | > |
| | | </p> |
| | | <p> |
| | | 更新:<span> |
| | | {{ Processdata.medicalevaluation.updateperson }} |
| | | {{ |
| | | parseTime(Processdata.medicalevaluation.updatetime) |
| | | }}</span |
| | | {{ medicalevaluation.updateperson }} |
| | | {{ parseTime(medicalevaluation.updatetime) }}</span |
| | | > |
| | | </p> |
| | | </template> |
| | |
| | | > |
| | | <template |
| | | slot="description" |
| | | v-if="Processdata.relativesconfirmation.createtime" |
| | | v-if="relativesconfirmation.createtime" |
| | | > |
| | | <p> |
| | | 提交:<span> |
| | | {{ Processdata.relativesconfirmation.createperson }} |
| | | {{ |
| | | parseTime(Processdata.relativesconfirmation.createtime) |
| | | }}</span |
| | | {{ relativesconfirmation.createperson }} |
| | | {{ parseTime(relativesconfirmation.createtime) }}</span |
| | | > |
| | | </p> |
| | | <p> |
| | | 更新:<span> |
| | | {{ Processdata.relativesconfirmation.updateperson }} |
| | | {{ |
| | | parseTime(Processdata.relativesconfirmation.updatetime) |
| | | }}</span |
| | | {{ relativesconfirmation.updateperson }} |
| | | {{ parseTime(relativesconfirmation.updatetime) }}</span |
| | | > |
| | | </p> |
| | | </template> |
| | |
| | | description="请先完成前部步骤" |
| | | icon="el-icon-s-order" |
| | | > |
| | | <template |
| | | slot="description" |
| | | v-if="Processdata.donateflowcharts.createtime" |
| | | > |
| | | <template slot="description" v-if="donateflowcharts.createtime"> |
| | | <p> |
| | | 提交:<span> |
| | | {{ Processdata.donateflowcharts.createperson }} |
| | | {{ |
| | | parseTime(Processdata.donateflowcharts.createtime) |
| | | }}</span |
| | | {{ donateflowcharts.createperson }} |
| | | {{ parseTime(donateflowcharts.createtime) }}</span |
| | | > |
| | | </p> |
| | | <p> |
| | | 更新:<span> |
| | | {{ Processdata.donateflowcharts.updateperson }} |
| | | {{ |
| | | parseTime(Processdata.donateflowcharts.updatetime) |
| | | }}</span |
| | | {{ donateflowcharts.updateperson }} |
| | | {{ parseTime(donateflowcharts.updatetime) }}</span |
| | | > |
| | | </p> |
| | | </template> |
| | |
| | | > |
| | | <template |
| | | slot="description" |
| | | v-if="Processdata.donateorgansService.createtime" |
| | | v-if="donateorgansService.createtime" |
| | | > |
| | | <p> |
| | | 提交:<span> |
| | | {{ Processdata.donateorgansService.createperson }} |
| | | {{ |
| | | parseTime(Processdata.donateorgansService.createtime) |
| | | }}</span |
| | | {{ donateorgansService.createperson }} |
| | | {{ parseTime(donateorgansService.createtime) }}</span |
| | | > |
| | | </p> |
| | | <p> |
| | | 更新:<span> |
| | | {{ Processdata.donateorgansService.updateperson }} |
| | | {{ |
| | | parseTime(Processdata.donateorgansService.updatetime) |
| | | }}</span |
| | | {{ donateorgansService.updateperson }} |
| | | {{ parseTime(donateorgansService.updatetime) }}</span |
| | | > |
| | | </p> |
| | | </template> |
| | |
| | | description="请先完成前部步骤" |
| | | icon="el-icon-s-management" |
| | | > |
| | | <template |
| | | slot="description" |
| | | v-if="Processdata.donationwitness.createtime" |
| | | > |
| | | <template slot="description" v-if="donationwitness.createtime"> |
| | | <p> |
| | | 提交:<span> |
| | | {{ Processdata.donationwitness.createperson }} |
| | | {{ |
| | | parseTime(Processdata.donationwitness.createtime) |
| | | }}</span |
| | | {{ donationwitness.createperson }} |
| | | {{ parseTime(donationwitness.createtime) }}</span |
| | | > |
| | | </p> |
| | | <p> |
| | | 更新:<span> |
| | | {{ Processdata.donationwitness.updateperson }} |
| | | {{ |
| | | parseTime(Processdata.donationwitness.updatetime) |
| | | }}</span |
| | | {{ donationwitness.updateperson }} |
| | | {{ parseTime(donationwitness.updatetime) }}</span |
| | | > |
| | | </p> |
| | | </template> |
| | |
| | | > |
| | | <template |
| | | slot="description" |
| | | v-if="Processdata.donatecompletioninfo.createtime" |
| | | v-if="donatecompletioninfo.createtime" |
| | | > |
| | | <p> |
| | | 提交:<span> |
| | | {{ Processdata.donatecompletioninfo.createperson }} |
| | | {{ |
| | | parseTime(Processdata.donatecompletioninfo.createtime) |
| | | }}</span |
| | | {{ donatecompletioninfo.createperson }} |
| | | {{ parseTime(donatecompletioninfo.createtime) }}</span |
| | | > |
| | | </p> |
| | | <p> |
| | | 更新:<span> |
| | | {{ Processdata.donatecompletioninfo.updateperson }} |
| | | {{ |
| | | parseTime(Processdata.donatecompletioninfo.updatetime) |
| | | }}</span |
| | | {{ donatecompletioninfo.updateperson }} |
| | | {{ parseTime(donatecompletioninfo.updatetime) }}</span |
| | | > |
| | | </p> |
| | | </template> |
| | |
| | | label="移植医院" |
| | | align="center" |
| | | width="230" |
| | | prop="gainhospitalno" |
| | | prop="transplanthospitalno" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <div class="elldiv"> |
| | | <org-selecter |
| | | ref="tranHosSelect" |
| | | :org-type="'4'" |
| | | v-model="scope.row.gainhospitalno" |
| | | v-model="scope.row.transplanthospitalno" |
| | | /> |
| | | </div> |
| | | </template> |
| | |
| | | label="移植医院" |
| | | align="center" |
| | | width="220" |
| | | prop="transplanthospitalname" |
| | | 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> |
| | |
| | | size="small" |
| | | style="width: 100%" |
| | | v-model="scope.row.transplanttime" |
| | | type="datetime" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | type="date" |
| | | value-format="yyyy-MM-dd" |
| | | placeholder="选择移植时间" |
| | | > |
| | | </el-date-picker> |
| | |
| | | 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", |
| | |
| | | allocateddataform: {}, |
| | | procureddata: [], |
| | | transplantdata: [], |
| | | sysOrganlistL:[ |
| | | {label:'心脏', value:'C38',}, |
| | | {label:'肝脏', value:'C22',}, |
| | | {label:'左肾', value:'C64L',}, |
| | | {label:'右肾', value:'C64R',}, |
| | | {label:'全肺', value:'C34',}, |
| | | {label:'左肺', value:'C34L',}, |
| | | {label:'右肺', value:'C34R',}, |
| | | {label:'小肠', value:'C17',}, |
| | | {label:'胰腺', value:'C25',}, |
| | | {label:'遗体', value:'C00',}, |
| | | {label:'左眼角膜', value:'C69L',}, |
| | | {label:'右眼角膜', value:'C69R',}, |
| | | {label:'其他', value:'C01',}, |
| | | sysOrganlistL: [ |
| | | { label: "心脏", value: "C38" }, |
| | | { label: "肝脏", value: "C22" }, |
| | | { label: "左肾", value: "C64L" }, |
| | | { label: "右肾", value: "C64R" }, |
| | | { label: "全肺", value: "C34" }, |
| | | { label: "左肺", value: "C34L" }, |
| | | { label: "右肺", value: "C34R" }, |
| | | { label: "小肠", value: "C17" }, |
| | | { label: "胰腺", value: "C25" }, |
| | | { label: "遗体", value: "C00" }, |
| | | { label: "左眼角膜", value: "C69L" }, |
| | | { label: "右眼角膜", value: "C69R" }, |
| | | { label: "其他", value: "C01" } |
| | | ], |
| | | witnessform: { |
| | | infoid: null |
| | |
| | | showTerminationBtn: 0, //终止状态 0-未终止 1-已终止 |
| | | // 流程数据:donatebaseinfo[createtime,updatetime]、medicalevaluation、relativesconfirmation、donateflowcharts、donateorgansService、donationwitness、donatecompletioninfo |
| | | Processdata: {}, |
| | | |
| | | donatebaseinfo: {}, |
| | | medicalevaluation: {}, |
| | | relativesconfirmation: {}, |
| | | donateflowcharts: {}, |
| | | donateorgansService: {}, |
| | | donationwitness: {}, |
| | | donatecompletioninfo: {}, |
| | | //省市区默认值设置,可为空 |
| | | searchAddress: { |
| | | sheng: "", |
| | |
| | | Getbasicinformation() { |
| | | // 左侧流程数据 |
| | | getDonatebaseinfoflow(this.infoid).then(res => { |
| | | this.Processdata = res.data; |
| | | if (res.code == 200) { |
| | | this.Processdata = res.data; |
| | | this.donatebaseinfo = this.Processdata.donatebaseinfo; |
| | | this.medicalevaluation = this.Processdata.medicalevaluation; |
| | | this.relativesconfirmation = this.Processdata.relativesconfirmation; |
| | | this.donateflowcharts = this.Processdata.donateflowcharts; |
| | | this.donateorgansService = this.Processdata.donateorgansService; |
| | | this.donationwitness = this.Processdata.donationwitness; |
| | | this.donatecompletioninfo = this.Processdata.donatecompletioninfo; |
| | | } else { |
| | | this.$message.error("侧边栏信息获取失败"); |
| | | } |
| | | }); |
| | | |
| | | // 表单数据 |
| | |
| | | }; |
| | | if (this.actives == 1) { |
| | | this.activetele = "医学评估"; |
| | | if (this.medicineform.infoid) { |
| | | return; |
| | | } |
| | | |
| | | listMedicalevaluation(searchParam).then(response => { |
| | | if (response.code == 200 && response.rows[0]) { |
| | | this.medicineform = response.rows[0]; |
| | |
| | | }); |
| | | } else if (this.actives == 2) { |
| | | this.activetele = "捐献确认"; |
| | | if (this.affirmform.infoid) { |
| | | return; |
| | | } |
| | | |
| | | listRelativesconfirmation(searchParam).then(response => { |
| | | if (response.code == 200 && response.rows[0]) { |
| | | this.affirmform = response.rows[0]; |
| | |
| | | }); |
| | | } else if (this.actives == 3) { |
| | | this.activetele = "伦理审查"; |
| | | if (this.ethicform.infoid) { |
| | | return; |
| | | } |
| | | |
| | | //listDonateflowchart(searchParam).then(response => { |
| | | listEthicalreviewopinions(searchParam).then(response => { |
| | | if (response.code == 200 && response.rows.length) { |
| | |
| | | console.log("伦理审查数据为空"); |
| | | } |
| | | }); |
| | | } else if (this.actives == 4 && !this.allocateddata[0]) { |
| | | } else if (this.actives == 4) { |
| | | listDonateorgan(searchParam).then(res => { |
| | | if (res.code == 200) { |
| | | if (res.rows[0]) { |
| | |
| | | // ); |
| | | } |
| | | }); |
| | | } else if (this.actives == 5 && !this.witnessform.infoid) { |
| | | } else if (this.actives == 5 && !this.witnessform.id) { |
| | | // 不存在时获取器官信息 |
| | | if (this.witnessform.infoid) { |
| | | if (this.witnessform.id) { |
| | | return; |
| | | } |
| | | |
| | | listDonationwitnessorgan(searchParam).then(res => { |
| | | if (res.code == 200) { |
| | | if (res.rows[0]) { |
| | | this.procureddata = res.rows; |
| | | this.procureddata.infoid = this.infoid; |
| | | } else { |
| | | this.procureddata = this.allocateddata; |
| | | this.procureddata = this.allocateddata.filter( |
| | | obj => obj.organname !== "左肝" && obj.organname !== "右肝" |
| | | ); |
| | | this.procureddata.infoid = this.infoid; |
| | | } |
| | | this.organList.organprocured = []; |
| | |
| | | }); |
| | | } else if (this.actives == 6) { |
| | | this.activetele = "完成登记"; |
| | | if (this.accomplishform.infoid) { |
| | | if (this.accomplishform.id) { |
| | | return; |
| | | } |
| | | |
| | |
| | | // 保存捐献器官移植信息 |
| | | 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 { |
| | | item.id = null; |
| | | addDonorchargeorgan(item).then(res2 => {}); |
| | | } |
| | | }); |
| | | }); |
| | | saveDonatecomporgan(this.transplantdata).then(res => { |
| | | if (res == 200) { |
| | | this.$modal.msgSuccess("捐献器官获取信息保存成功!"); |
| | | }else{ |
| | | this.$modal.msgSuccess(res.msg); |
| | | return |
| | | } else { |
| | | this.$modal.msgSuccess(res.msg); |
| | | return; |
| | | } |
| | | }); |
| | | |
| | | console.log(this.accomplishform.id, "完成id"); |
| | | // 保存确认信息 |
| | | if (this.accomplishform.id) { |
| | |
| | | addDonatecompletioninfo(this.accomplishform).then(response => { |
| | | this.$modal.msgSuccess("完成登记成功"); |
| | | this.$modal.closeLoading(); |
| | | this.$modal |
| | | .confirm( |
| | | '案例已完成是否跳转案例费用页面进行费用单保存?' |
| | | ) |
| | | .then(() => { |
| | | this.$router.push({ |
| | | path: "/finance/donorchargedetail/", |
| | | query: { id: 0, operation: "add", data: this.form } |
| | | }); |
| | | }) |
| | | .catch(() => {}); |
| | | // this.$modal |
| | | // .confirm("案例已完成是否跳转案例费用页面进行费用单保存?") |
| | | // .then(() => { |
| | | // this.$router.push({ |
| | | // path: "/finance/donorchargedetail/", |
| | | // query: { gxinzt: true, operation: "add", data: this.form, } |
| | | // }); |
| | | // }) |
| | | // .catch(() => {}); |
| | | }); |
| | | } |
| | | |
| | |
| | | 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 { |
| | |
| | | this.submitForm(); |
| | | Modifydonationattachment(this.donatelist).then(res => {}); |
| | | this.listDonateannex(); |
| | | this.GetAttacheddata(); |
| | | // this.GetAttacheddata(); |
| | | } else { |
| | | this.submitForm(); |
| | | // this.$modal.msgWarning("请先完成前部步骤"); |
| | |
| | | if (this.form.workflow == 9) { |
| | | this.form.workflow = 8; |
| | | this.submitForm(); |
| | | this.$router.go(-1); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "撤销成功!" |
| | | }); |
| | | } else { |
| | | this.$confirm("即将进行案例归档, 确认所有数据已保存?", "提示", { |
| | | confirmButtonText: "确定", |