| | |
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200" fixed="right"> |
| | | <template slot-scope="scope"> |
| | | <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" |
| | | v-hasPermi="['project:donatebaseinfo:edit']">修改</el-button> |
| | | v-hasPermi="['project:donatebaseinfo:edit']">详情</el-button> |
| | | |
| | | <el-button v-if="scope.row.recordstate == 0" size="mini" type="text" icon="el-icon-delete" |
| | | <!-- <el-button v-if="scope.row.recordstate == 0" size="mini" type="text" icon="el-icon-delete" |
| | | @click="handleDelete(scope.row)" v-hasPermi="['project:donatebaseinfo:remove']">删除</el-button> |
| | | <el-button size="mini" type="text" icon="el-icon-edit" @click="handletermination(scope.row)" |
| | | v-hasPermi="['project:donatebaseinfo:edit']">终止</el-button> |
| | | <el-button size="mini" type="text" icon="el-icon-refrigerator" @click="handledownload(scope.row)">下载</el-button> |
| | | <el-button v-if="scope.row.recordstate == 0 || scope.row.recordstate == 3" size="mini" type="text" |
| | | icon="el-icon-thumb" @click="handleapproval(scope.row)">上报审核</el-button> |
| | | icon="el-icon-thumb" @click="handleapproval(scope.row)">上报审核</el-button> --> |
| | | <!-- 撤销申请 --> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | }, |
| | | /** 新增按钮操作 */ |
| | | handleAdd() { |
| | | this.reset(); |
| | | //设置报告人和部门/组 |
| | | this.form.reporterno = this.currentuser.userName; |
| | | this.form.reportername = this.currentuser.nickName; |
| | | this.form.deptid = this.currentuser.deptid; |
| | | |
| | | this.showSaveBtn = true; |
| | | //this.$refs.annex.getAnnexList(); |
| | | this.open = true; |
| | | this.$nextTick(function () { |
| | | this.$refs.annex.getAnnexList(); |
| | | this.$router.push({ |
| | | path: "/organ/donationdetails/", |
| | | query: { |
| | | organType: "add", |
| | | } |
| | | }); |
| | | // this.reset(); |
| | | // //设置报告人和部门/组 |
| | | // this.form.reporterno = this.currentuser.userName; |
| | | // this.form.reportername = this.currentuser.nickName; |
| | | // this.form.deptid = this.currentuser.deptid; |
| | | |
| | | this.title = "人体器官潜在捐献者登记表"; |
| | | // this.showSaveBtn = true; |
| | | // //this.$refs.annex.getAnnexList(); |
| | | // this.open = true; |
| | | // this.$nextTick(function () { |
| | | // this.$refs.annex.getAnnexList(); |
| | | // }); |
| | | |
| | | // this.title = "人体器官潜在捐献者登记表"; |
| | | }, |
| | | /** 修改按钮操作 */ |
| | | |
| | | handleUpdate(row) { |
| | | this.showSaveBtn = true; |
| | | const id = row.id || this.ids; |
| | | //this.$refs.annex.getAnnexList(); |
| | | |
| | | getDonatebaseinfo(id).then((response) => { |
| | | this.reset(); |
| | | |
| | | this.$nextTick(function () { |
| | | this.$refs.annex.getAnnexList(); |
| | | }); |
| | | this.form = response.data; |
| | | response.data.sex = parseInt(response.data.sex); |
| | | this.form.id = response.data.id; |
| | | this.form.diseasetype = this.form.diseasetype.split(","); |
| | | this.form.infectious = this.form.infectious.split(","); |
| | | this.form.selfwill = this.form.selfwill.split(","); |
| | | this.form.othercases = this.form.othercases.split(","); |
| | | this.form.infosources = this.form.infosources.split(","); |
| | | this.form.kinship = this.form.kinship.split(","); |
| | | this.form.patientstate = this.form.patientstate.split(","); |
| | | this.open = true; |
| | | this.title = "人体器官潜在捐献者登记表"; |
| | | this.registerAddresss.sheng = response.data.registerprovincename; |
| | | this.residenceAddresss.sheng = response.data.residenceprovincename; |
| | | this.registerAddresss.shi = response.data.registercityname; |
| | | this.residenceAddresss.shi = response.data.residencecityname; |
| | | this.residenceAddresss.qu = response.data.residencetownname; |
| | | this.registerAddresss.qu = response.data.registertownname; |
| | | this.$router.push({ |
| | | path: "/organ/donationdetails/", |
| | | query: { |
| | | id: row.id, |
| | | organType: "edit", |
| | | } |
| | | }); |
| | | // this.showSaveBtn = true; |
| | | // const id = row.id || this.ids; |
| | | // //this.$refs.annex.getAnnexList(); |
| | | |
| | | // getDonatebaseinfo(id).then((response) => { |
| | | // this.reset(); |
| | | |
| | | // this.$nextTick(function () { |
| | | // this.$refs.annex.getAnnexList(); |
| | | // }); |
| | | // this.form = response.data; |
| | | // response.data.sex = parseInt(response.data.sex); |
| | | // this.form.id = response.data.id; |
| | | // this.form.diseasetype = this.form.diseasetype.split(","); |
| | | // this.form.infectious = this.form.infectious.split(","); |
| | | // this.form.selfwill = this.form.selfwill.split(","); |
| | | // this.form.othercases = this.form.othercases.split(","); |
| | | // this.form.infosources = this.form.infosources.split(","); |
| | | // this.form.kinship = this.form.kinship.split(","); |
| | | // this.form.patientstate = this.form.patientstate.split(","); |
| | | // this.open = true; |
| | | // this.title = "人体器官潜在捐献者登记表"; |
| | | // this.registerAddresss.sheng = response.data.registerprovincename; |
| | | // this.residenceAddresss.sheng = response.data.residenceprovincename; |
| | | // this.registerAddresss.shi = response.data.registercityname; |
| | | // this.residenceAddresss.shi = response.data.residencecityname; |
| | | // this.residenceAddresss.qu = response.data.residencetownname; |
| | | // this.registerAddresss.qu = response.data.registertownname; |
| | | // }); |
| | | }, |
| | | // 终止案例 |
| | | handletermination(row) { |
| | |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-edit" |
| | | @click="handleUpdate(scope.row)" |
| | | @click="handleAdd(scope.row)" |
| | | v-hasPermi="['project:donatebaseinfo:edit']" |
| | | >修改</el-button |
| | | > |
| | |
| | | |
| | | /** 新增按钮操作 */ |
| | | handleAdd(row) { |
| | | this.reset(); |
| | | |
| | | //读取案例基本信息 |
| | | //this.curCase = row; |
| | | this.curCase = { |
| | | id: row.id, |
| | | recordstate: null, |
| | | donorno: row.donorno, |
| | | }; |
| | | this.form.coordinateduserido = row.coordinateduserido; |
| | | this.form.coordinateduseridt = row.coordinateduseridt; |
| | | this.form.coordinatedusernameo = row.coordinatedusernameo; |
| | | this.form.coordinatedusernamet = row.coordinatedusernamet; |
| | | this.form.responsibleuserid = row.responsibleuserid; |
| | | this.form.responsibleusername = row.responsibleusername; |
| | | |
| | | this.form.receivingunit = row.receivingunit; |
| | | this.form.responsibleusername = row.responsibleusername; |
| | | this.registerAddresss.sheng = row.residenceprovincename; |
| | | this.registerAddresss.shi = row.residencecityname; |
| | | this.registerAddresss.qu = row.residencetownname; |
| | | |
| | | //判断是否存在上报记录 |
| | | let searchParam = { |
| | | id: row.id, |
| | | }; |
| | | listDonatecompletioninfo(searchParam).then((response) => { |
| | | if (response.code == 200 && response.rows.length == 1) { |
| | | this.form = response.rows[0]; |
| | | this.form.donateorganList = JSON.parse(this.form.donateorgan); |
| | | this.title = "修改捐献完成登记表"; |
| | | } else { |
| | | this.curdonotor = row; |
| | | this.open = true; |
| | | this.title = "新增捐献完成登记表"; |
| | | this.$router.push({ |
| | | path: "/organ/donationdetails/", |
| | | query: { |
| | | id: row.id, |
| | | organType: "edit", |
| | | } |
| | | }); |
| | | // this.reset(); |
| | | |
| | | //获取器官信息 |
| | | let oraganqueryParam = { |
| | | infoid: row.id, |
| | | }; |
| | | listDonateorgan(oraganqueryParam).then((response) => { |
| | | if (response.code == 200) { |
| | | this.tableData = response.rows; |
| | | } else { |
| | | this.$modal.msgError("获取捐献器官失败:" + response.msg); |
| | | } |
| | | }); |
| | | // //读取案例基本信息 |
| | | // //this.curCase = row; |
| | | // this.curCase = { |
| | | // id: row.id, |
| | | // recordstate: null, |
| | | // donorno: row.donorno, |
| | | // }; |
| | | // this.form.coordinateduserido = row.coordinateduserido; |
| | | // this.form.coordinateduseridt = row.coordinateduseridt; |
| | | // this.form.coordinatedusernameo = row.coordinatedusernameo; |
| | | // this.form.coordinatedusernamet = row.coordinatedusernamet; |
| | | // this.form.responsibleuserid = row.responsibleuserid; |
| | | // this.form.responsibleusername = row.responsibleusername; |
| | | |
| | | //获取附件信息 |
| | | // this.$nextTick(function () { |
| | | // this.$refs.finishannex.getAnnexList(); |
| | | // this.form.receivingunit = row.receivingunit; |
| | | // this.form.responsibleusername = row.responsibleusername; |
| | | // this.registerAddresss.sheng = row.residenceprovincename; |
| | | // this.registerAddresss.shi = row.residencecityname; |
| | | // this.registerAddresss.qu = row.residencetownname; |
| | | |
| | | // //判断是否存在上报记录 |
| | | // let searchParam = { |
| | | // id: row.id, |
| | | // }; |
| | | // listDonatecompletioninfo(searchParam).then((response) => { |
| | | // if (response.code == 200 && response.rows.length == 1) { |
| | | // this.form = response.rows[0]; |
| | | // this.form.donateorganList = JSON.parse(this.form.donateorgan); |
| | | // this.title = "修改捐献完成登记表"; |
| | | // } else { |
| | | // this.curdonotor = row; |
| | | // this.open = true; |
| | | // this.title = "新增捐献完成登记表"; |
| | | // } |
| | | // }); |
| | | |
| | | this.loading = false; |
| | | this.open = true; |
| | | // //获取器官信息 |
| | | // let oraganqueryParam = { |
| | | // infoid: row.id, |
| | | // }; |
| | | // listDonateorgan(oraganqueryParam).then((response) => { |
| | | // if (response.code == 200) { |
| | | // this.tableData = response.rows; |
| | | // } else { |
| | | // this.$modal.msgError("获取捐献器官失败:" + response.msg); |
| | | // } |
| | | // }); |
| | | |
| | | // //获取附件信息 |
| | | // // this.$nextTick(function () { |
| | | // // this.$refs.finishannex.getAnnexList(); |
| | | // // }); |
| | | |
| | | // this.loading = false; |
| | | // this.open = true; |
| | | }, |
| | | |
| | | /** 修改按钮操作 */ |
| | |
| | | <el-button @click="cancel">取 消</el-button> |
| | | </div> |
| | | </div> |
| | | <!-- 完结流程 --> |
| | | <div class="boxdiv" v-show="actives > 6"> |
| | | <h3>全部流程已完结!</h3> |
| | | </div> |
| | | </div> |
| | | <!-- 附件弹窗 --> |
| | | <el-dialog |
| | |
| | | type="card" |
| | | @tab-click="handleClick" |
| | | > |
| | | <el-tab-pane label="潜在捐献" :name="1"> </el-tab-pane> |
| | | <el-tab-pane label="医学评估" :name="2"> </el-tab-pane> |
| | | <el-tab-pane :label="activetele" :name="1"> </el-tab-pane> |
| | | <!-- <el-tab-pane label="医学评估" :name="2"> </el-tab-pane> |
| | | <el-tab-pane label="捐献确认" :name="3"> </el-tab-pane> |
| | | <el-tab-pane label="伦理审查" :name="4"> </el-tab-pane> |
| | | <el-tab-pane label="完成登记" :name="7"> </el-tab-pane> |
| | | <el-tab-pane label="完成登记" :name="7"> </el-tab-pane> --> |
| | | </el-tabs> |
| | | <div class="pdfimg"> |
| | | <div class="box-pdf"> |
| | |
| | | registerlist: [], //完成附件 |
| | | fileList: [], |
| | | fileListto: [], |
| | | donatelist: [], //总 |
| | | activetele:'潜在捐献', |
| | | //上传附件路径 |
| | | uploadFileUrl: process.env.VUE_APP_BASE_API + "/common/upload", |
| | | //文件上传token |
| | |
| | | }; |
| | | }, |
| | | |
| | | created() { |
| | | this.infoid = this.$route.query.id; |
| | | }, |
| | | mounted() { |
| | | // this.id = this.$route.query.id; |
| | | this.Getbasicinformation(); |
| | |
| | | }, |
| | | |
| | | methods: { |
| | | // 获取主表数据 |
| | | // 获取主表及附属数据 |
| | | Getbasicinformation() { |
| | | // 左侧流程数据 |
| | | getDonatebaseinfoflow(this.infoid).then(res => { |
| | |
| | | this.residenceAddresss.qu = response.data.residencetownname; |
| | | this.registerAddresss.qu = response.data.registertownname; |
| | | }); |
| | | // 获取二级表 |
| | | this.GetAttacheddata(); |
| | | }, |
| | | // 获取二级表数据 |
| | | GetAttacheddata() { |
| | | let searchParam = { |
| | | infoid: this.form.id |
| | | infoid: this.infoid |
| | | }; |
| | | if (this.actives == 1) { |
| | | this.annexfilesList = this.medicinelist; |
| | | this.activetele="医学评估"; |
| | | listMedicalevaluation(searchParam).then(response => { |
| | | if (response.code == 200 && response.rows[0]) { |
| | | this.medicineform = response.rows[0]; |
| | |
| | | }); |
| | | } else if (this.actives == 2) { |
| | | this.annexfilesList = this.affirmlist; |
| | | this.activetele="捐献确认"; |
| | | listRelativesconfirmation(searchParam).then(response => { |
| | | if (response.code == 200 && response.rows[0]) { |
| | | this.affirmform = response.rows[0]; |
| | |
| | | }); |
| | | } else if (this.actives == 3) { |
| | | this.annexfilesList = this.ethiclist; |
| | | this.activetele="伦理审查"; |
| | | |
| | | listDonateflowchart(searchParam).then(response => { |
| | | if (response.code == 200 && response.rows.length == 1) { |
| | |
| | | if (response.code == 200) { |
| | | if (response.data) { |
| | | this.witnessform = response.data; |
| | | this.witnessform.infoid = this.form.id; |
| | | this.witnessform.infoid = this.infoid; |
| | | } |
| | | } else { |
| | | this.$modal.msgError( |
| | |
| | | }); |
| | | } else if (this.actives == 6) { |
| | | this.annexfilesList = this.registerlist; |
| | | this.activetele="完成登记"; |
| | | |
| | | let accpre = { |
| | | id: searchParam.infoid |
| | | }; |
| | | listnewDonatecompletioninfo(accpre).then(response => { |
| | | if (response.code == 200 && response.rows.length) { |
| | | this.accomplishform = response.rows[0]; |
| | | this.accomplishform.infoid = this.form.id; |
| | | this.accomplishform.infoid = this.infoid; |
| | | } else { |
| | | this.$modal.msgError("完成登记失败:" + JSON.stringify(response)); |
| | | } |
| | | }); |
| | | } else if (this.actives == 0) { |
| | | this.annexfilesList = this.registerlist; |
| | | this.activetele="潜在捐献"; |
| | | |
| | | } |
| | | }, |
| | | /** 保存主表按钮 */ |
| | |
| | | } |
| | | |
| | | if (this.form.id != null) { |
| | | if (this.form.workflow == 0) { |
| | | this.form.workflow = 1; |
| | | } |
| | | updateDonatebaseinfo(this.form).then(response => { |
| | | this.$modal.msgSuccess("保存成功"); |
| | | Modifydonationattachment(this.donatelist).then(res => { |
| | | console.log(res); |
| | | }); |
| | | this.Getbasicinformation(); |
| | | this.Processvalidation(); |
| | | // this.Processvalidation(); |
| | | this.open = false; |
| | | }); |
| | | } else { |
| | |
| | | addDonatebaseinfo(this.form).then(response => { |
| | | if (response.code == 200) { |
| | | this.$modal.msgSuccess("新增成功"); |
| | | Modifydonationattachment(this.donatelist).then(res => { |
| | | console.log(res); |
| | | }); |
| | | this.Getbasicinformation(); |
| | | this.Processvalidation(); |
| | | // this.Processvalidation(); |
| | | this.open = false; |
| | | } else { |
| | | this.$modal.msgError("新增失败:" + response.msg); |
| | |
| | | Savethedetails() { |
| | | console.log(this.actives); |
| | | if (this.actives == 1) { |
| | | this.medicineform.infoid = this.form.id; |
| | | this.medicineform.infoid = this.infoid; |
| | | this.$refs["medicineform"].validate(valid => { |
| | | if (valid) { |
| | | if (this.medicineform.id != null) { |
| | |
| | | this.$modal.msgSuccess("医学评估信息新增成功"); |
| | | }); |
| | | } |
| | | this.submitForm(); |
| | | this.Processvalidation(); |
| | | } |
| | | }); |
| | | } else if (this.actives == 2) { |
| | | this.affirmform.infoid = this.form.id; |
| | | this.affirmform.infoid = this.infoid; |
| | | this.$refs["affirmform"].validate(valid => { |
| | | if (valid) { |
| | | if (this.affirmform.id != null) { |
| | |
| | | this.$modal.msgSuccess("捐献确认信息新增成功"); |
| | | }); |
| | | } |
| | | this.submitForm(); |
| | | this.Processvalidation(); |
| | | } |
| | | }); |
| | | } else if (this.actives == 3) { |
| | | this.ethicform.infoid = this.form.id; |
| | | this.ethicform.infoid = this.infoid; |
| | | this.$refs["ethicform"].validate(valid => { |
| | | if (valid) { |
| | | if (this.ethicform.id != null) { |
| | |
| | | this.$modal.msgSuccess("伦理审查信息新增成功"); |
| | | }); |
| | | } |
| | | this.submitForm(); |
| | | this.Processvalidation(); |
| | | } |
| | | }); |
| | | } else if (this.actives == 4) { |
| | | this.allocationform.infoid = this.form.id; |
| | | this.allocationform.infoid = this.infoid; |
| | | this.$refs["allocationform"].validate(valid => { |
| | | if (valid) { |
| | | let arrallo = []; |
| | |
| | | this.$modal.msgSuccess("器官捐献信息新增成功"); |
| | | }); |
| | | } |
| | | this.submitForm(); |
| | | this.Processvalidation(); |
| | | } |
| | | }); |
| | | } else if (this.actives == 5) { |
| | | this.witnessform.infoid = this.form.id; |
| | | this.witnessform.infoid = this.infoid; |
| | | this.$refs["witnessform"].validate(valid => { |
| | | let coordinatedusernameIndex = this.coordinatorlist1.findIndex( |
| | | item => this.witnessform.coordinateduserido == item.reportNo |
| | |
| | | this.$modal.msgSuccess("获取见证信息新增成功"); |
| | | }); |
| | | } |
| | | this.submitForm(); |
| | | this.Processvalidation(); |
| | | } |
| | | }); |
| | | } else if (this.actives == 6) { |
| | | this.accomplishform.infoid = this.form.id; |
| | | this.accomplishform.infoid = this.infoid; |
| | | this.$refs["accomplishform"].validate(valid => { |
| | | if (valid) { |
| | | if (this.accomplishform.id) { |
| | |
| | | this.$modal.msgSuccess("完成登记成功"); |
| | | }); |
| | | } |
| | | this.submitForm(); |
| | | this.Processvalidation(); |
| | | } |
| | | }); |
| | | } |
| | |
| | | on_click(e) { |
| | | console.log(e); |
| | | // if (e != "" || e != null) { |
| | | this.actives = e; |
| | | if (this.form.workflow >= e) { |
| | | this.actives = e; |
| | | this.Processvalidation(e); |
| | | } else { |
| | | this.$modal.msgWarning("请先完成前部步骤"); |
| | | } |
| | | // } |
| | | this.Processvalidation(); |
| | | }, |
| | | // 器官分配栏目控制 |
| | | changeorganState(value) { |
| | |
| | | organname: temporganname, |
| | | organno: value, |
| | | id: null, |
| | | infoid: this.form.id, |
| | | infoid: this.infoid, |
| | | donorno: this.form.donorno, |
| | | transplanthospitalname: null, |
| | | transplanthospitalno: null, |
| | |
| | | this.$modal.msgSuccess("删除成功"); |
| | | }); |
| | | } else { |
| | | this.allocationform.splice(deleteIndex, 1); |
| | | this.allocationform.splice(organIndex, 1); |
| | | } |
| | | } |
| | | }) |
| | |
| | | console.log(this.actives); |
| | | if (this.form.workflow == this.actives) { |
| | | this.form.workflow++; |
| | | this.GetAttacheddata(); |
| | | this.submitForm(); |
| | | // this.GetAttacheddata(); |
| | | } else if (this.form.workflow > this.actives) { |
| | | // this.submitForm(); |
| | | this.GetAttacheddata(); |
| | | } else { |
| | | this.$modal.msgWarning("请先完成前部步骤"); |
| | |
| | | this.registerlist = arr; |
| | | } |
| | | // 删除时修改主列delFlag |
| | | console.log(delvalue); |
| | | const index = this.donatelist.indexOf(delvalue); |
| | | console.log(index); |
| | | if (index !== -1) { |
| | | if (delvalue.id) { |
| | | this.donatelist[index].delFlag = 1; |
| | | console.log("修改老数据后", this.donatelist); |
| | | } else { |
| | | this.donatelist.splice(index, 1); |
| | | console.log("删除新数据后", this.donatelist); |
| | | } |
| | | } else { |
| | | console.log("查询不到可能是新数据无id"); |
| | |
| | | // 新增时修改主列 |
| | | if (addvalue.annexurl) { |
| | | this.donatelist.push(addvalue); |
| | | console.log("新增后", this.donatelist); |
| | | } |
| | | }, |
| | | //文件上传 |
| | |
| | | // this.form.filename = file.raw.name; |
| | | this.previewpdf = true; |
| | | this.$modal.msgSuccess(response.msg); |
| | | this.fileListto.push({ |
| | | let addvalue = { |
| | | annexname: file.name, |
| | | annexurl: response.fileName |
| | | }); |
| | | annexurl: response.fileName, |
| | | delFlag: 0, |
| | | infoid: this.infoid, |
| | | annexfilestype: this.actives |
| | | }; |
| | | this.fileListto.push(addvalue); |
| | | this.Newconversion(this.fileListto, "", addvalue); |
| | | this.pdfimgsrcList.push( |
| | | this.Networkheader + "/prod-api" + response.fileName |
| | | ); |
| | |
| | | ); |
| | | this.pdfimgsrcList.splice(indexlist, 1); |
| | | const index = this.getIndexInArray(this.fileListto, row); |
| | | this.Newconversion(this.fileListto, this.fileListto[index], ""); |
| | | this.fileListto.splice(index, 1); |
| | | console.log(index); |
| | | }, |
| | | // 点击上移 |
| | | moveupdowfile(row) { |
| | |
| | | }, |
| | | /** 新增按钮操作 */ |
| | | handleAdd(row) { |
| | | this.reset(); |
| | | |
| | | const id = row.id; |
| | | this.curCase = { |
| | | id: row.id, |
| | | recordstate: null, |
| | | donorno: row.donorno, |
| | | name: row.name, |
| | | treatmenthospitalname: row.treatmenthospitalname, |
| | | sex: row.sex, |
| | | idcardtype: row.idcardtype, |
| | | idcardno: row.idcardno, |
| | | education: row.education, |
| | | nationality: row.nationality, |
| | | occupation: row.occupation, |
| | | birthday: row.birthday |
| | | }; |
| | | |
| | | getDonatebaseinfo(id).then(res => { |
| | | console.log("捐献基础表数据", res); |
| | | this.curCase.nation = res.data.nation; |
| | | this.curCase.education = res.data.education; |
| | | this.curCase.occupation = res.data.occupation; |
| | | }); |
| | | // this.open = true; |
| | | console.log("row", row); |
| | | this.form.infoid = row.id; |
| | | this.form.donorno = row.donorno; |
| | | this.form.name = row.name; |
| | | this.form.treatmenthospitalname = row.treatmenthospitalname; |
| | | this.form.dosex = row.sex; |
| | | this.form.doidcardtype = row.idcardtype; |
| | | this.form.doidcardno = row.idcardno; |
| | | this.form.doeducation = row.education; |
| | | this.form.donationality = row.nationality; |
| | | this.form.dooccupation = row.occupation; |
| | | this.form.dobirthday = row.birthday; |
| | | |
| | | //判断是否存在见证记录 |
| | | let searchParam = { |
| | | infoid: row.id |
| | | }; |
| | | this.GetDonortedList(); |
| | | const infoid = this.form.infoid; |
| | | getByInfoId(infoid).then(response => { |
| | | if (response.code == 200) { |
| | | //获取器官分配信息 |
| | | |
| | | if (response.data != null) { |
| | | // this.$modal.msgError("获取捐献器官失败1:" + response.msg); |
| | | this.open = true; |
| | | this.form = response.data; |
| | | this.form.organdonation = this.form.organdonation.split(","); |
| | | this.title = "修改人体器官捐献获取见证登记表"; |
| | | } else { |
| | | this.open = true; |
| | | this.title = "新增人体器官捐献获取见证登记表"; |
| | | } |
| | | this.$router.push({ |
| | | path: "/organ/donationdetails/", |
| | | query: { |
| | | id: row.id, |
| | | organType: "edit", |
| | | } |
| | | }); |
| | | // this.reset(); |
| | | |
| | | // const id = row.id; |
| | | // this.curCase = { |
| | | // id: row.id, |
| | | // recordstate: null, |
| | | // donorno: row.donorno, |
| | | // name: row.name, |
| | | // treatmenthospitalname: row.treatmenthospitalname, |
| | | // sex: row.sex, |
| | | // idcardtype: row.idcardtype, |
| | | // idcardno: row.idcardno, |
| | | // education: row.education, |
| | | // nationality: row.nationality, |
| | | // occupation: row.occupation, |
| | | // birthday: row.birthday |
| | | // }; |
| | | |
| | | // getDonatebaseinfo(id).then(res => { |
| | | // console.log("捐献基础表数据", res); |
| | | // this.curCase.nation = res.data.nation; |
| | | // this.curCase.education = res.data.education; |
| | | // this.curCase.occupation = res.data.occupation; |
| | | // }); |
| | | // // this.open = true; |
| | | // console.log("row", row); |
| | | // this.form.infoid = row.id; |
| | | // this.form.donorno = row.donorno; |
| | | // this.form.name = row.name; |
| | | // this.form.treatmenthospitalname = row.treatmenthospitalname; |
| | | // this.form.dosex = row.sex; |
| | | // this.form.doidcardtype = row.idcardtype; |
| | | // this.form.doidcardno = row.idcardno; |
| | | // this.form.doeducation = row.education; |
| | | // this.form.donationality = row.nationality; |
| | | // this.form.dooccupation = row.occupation; |
| | | // this.form.dobirthday = row.birthday; |
| | | |
| | | // //判断是否存在见证记录 |
| | | // let searchParam = { |
| | | // infoid: row.id |
| | | // }; |
| | | // this.GetDonortedList(); |
| | | // const infoid = this.form.infoid; |
| | | // getByInfoId(infoid).then(response => { |
| | | // if (response.code == 200) { |
| | | // //获取器官分配信息 |
| | | |
| | | // if (response.data != null) { |
| | | // // this.$modal.msgError("获取捐献器官失败1:" + response.msg); |
| | | // this.open = true; |
| | | // this.form = response.data; |
| | | // this.form.organdonation = this.form.organdonation.split(","); |
| | | // this.title = "修改人体器官捐献获取见证登记表"; |
| | | // } else { |
| | | // this.open = true; |
| | | // this.title = "新增人体器官捐献获取见证登记表"; |
| | | // } |
| | | // } |
| | | // }); |
| | | }, |
| | | /** 修改按钮操作 */ |
| | | handleUpdate(row) { |
| | |
| | | }, |
| | | /** 伦理审查弹窗 */ |
| | | showDonationEvaluationDialog(dontateInfo) { |
| | | this.$router.push({ |
| | | path: "/organ/donationdetails/", |
| | | query: { |
| | | id: row.id, |
| | | organType: "edit", |
| | | } |
| | | }); |
| | | //查找是否存在伦理审查记录 |
| | | //this.curCase = dontateInfo; |
| | | this.curCase = { |
| | | id: dontateInfo.id, |
| | | donorno: dontateInfo.donorno, |
| | | name: dontateInfo.name, |
| | | recordstate: null, |
| | | }; |
| | | // this.curCase = { |
| | | // id: dontateInfo.id, |
| | | // donorno: dontateInfo.donorno, |
| | | // name: dontateInfo.name, |
| | | // recordstate: null, |
| | | // }; |
| | | |
| | | this.reset(); |
| | | this.form.donorno = dontateInfo.donorno; |
| | | this.form.infoid = dontateInfo.id; |
| | | this.expertAdviceQueryParam.infoid = dontateInfo.id; |
| | | this.expertAdviceQueryParam.donorno = dontateInfo.donorno; |
| | | // this.listnews.ConclusionTime = this.expertAdviceForm.conclusiontime; |
| | | // this.getExpertList(); |
| | | this.form.flowname = "伦理审查"; |
| | | if (dontateInfo.fcid) { |
| | | let queryParam = { |
| | | id: dontateInfo.fcid, |
| | | flowname: "伦理审查", |
| | | }; |
| | | // flowname: "伦理审查", |
| | | listDonateflowchart(queryParam).then((response) => { |
| | | let evaluationList = response.rows; |
| | | console.log("伦理审查", response.rows); |
| | | if (evaluationList.length == 1) { |
| | | this.form = evaluationList[0]; |
| | | this.open = true; |
| | | this.$nextTick(function () { |
| | | this.$refs.ethicalannex.getAnnexList(); |
| | | }); |
| | | this.title = "修改伦理审查"; |
| | | } else if (evaluationList.length == 0) { |
| | | this.$modal.msgError("未找到本案例的伦理审查记录,请联系管理员!"); |
| | | } else { |
| | | this.$modal.msgError("数据重复"); |
| | | } |
| | | }); |
| | | } else { |
| | | this.title = "新增伦理审查"; |
| | | this.open = true; |
| | | this.$nextTick(function () { |
| | | this.$refs.ethicalannex.getAnnexList(); |
| | | }); |
| | | } |
| | | // this.reset(); |
| | | // this.form.donorno = dontateInfo.donorno; |
| | | // this.form.infoid = dontateInfo.id; |
| | | // this.expertAdviceQueryParam.infoid = dontateInfo.id; |
| | | // this.expertAdviceQueryParam.donorno = dontateInfo.donorno; |
| | | // // this.listnews.ConclusionTime = this.expertAdviceForm.conclusiontime; |
| | | // // this.getExpertList(); |
| | | // this.form.flowname = "伦理审查"; |
| | | // if (dontateInfo.fcid) { |
| | | // let queryParam = { |
| | | // id: dontateInfo.fcid, |
| | | // flowname: "伦理审查", |
| | | // }; |
| | | // // flowname: "伦理审查", |
| | | // listDonateflowchart(queryParam).then((response) => { |
| | | // let evaluationList = response.rows; |
| | | // console.log("伦理审查", response.rows); |
| | | // if (evaluationList.length == 1) { |
| | | // this.form = evaluationList[0]; |
| | | // this.open = true; |
| | | // this.$nextTick(function () { |
| | | // this.$refs.ethicalannex.getAnnexList(); |
| | | // }); |
| | | // this.title = "修改伦理审查"; |
| | | // } else if (evaluationList.length == 0) { |
| | | // this.$modal.msgError("未找到本案例的伦理审查记录,请联系管理员!"); |
| | | // } else { |
| | | // this.$modal.msgError("数据重复"); |
| | | // } |
| | | // }); |
| | | // } else { |
| | | // this.title = "新增伦理审查"; |
| | | // this.open = true; |
| | | // this.$nextTick(function () { |
| | | // this.$refs.ethicalannex.getAnnexList(); |
| | | // }); |
| | | // } |
| | | }, |
| | | /** 保存捐献评估 */ |
| | | submitForm() { |
| | |
| | | /** 新增按钮操作 */ |
| | | 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() { |
| | |
| | | </el-form> |
| | | |
| | | <el-row :gutter="20"> |
| | | <el-col :span="8"> |
| | | <el-col :span="24"> |
| | | <el-card shadow="never"> |
| | | <!-- 捐献案例列表 --> |
| | | <el-table v-loading="loading" border :data="donationCaseTableData" @row-click="selectDonotor"> |
| | | <el-table v-loading="loading" border :data="donationCaseTableData" > |
| | | <el-table-column label="姓名" align="center" prop="name" /> |
| | | |
| | | <el-table-column label="性别" align="center" prop="sex"> |
| | |
| | | <dict-tag :options="dict.type.sys_user_sex" :value="scope.row.sex" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="案例归属" align="center" prop="deptname" /> |
| | | |
| | | <el-table-column label="医疗机构" width="200px" align="center" prop="treatmenthospitalname" /> |
| | | <el-table-column |
| | | label="操作" |
| | | align="center" |
| | | class-name="small-padding fixed-width" |
| | | width="200" |
| | | fixed="right" |
| | | > |
| | | <template slot-scope="scope"> |
| | | |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-edit" |
| | | @click="selectDonotor(scope.row)" |
| | | >捐献详情</el-button |
| | | > |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <!-- hide-on-single-page --> |
| | | <pagination v-show="total > 0" small layout="prev, pager, next" :total="total" :page.sync="queryParams.pageNum" |
| | | :limit.sync="queryParams.pageSize" @pagination="getBaseInfoList" /> |
| | | </el-card> |
| | | </el-col> |
| | | <el-col :span="16"> |
| | | <!-- <div class="grid-content bg-purple-dark" style="width:100%;height:800px;background-color:purple"> |
| | | </div> --> |
| | | <!-- <el-col :span="16"> |
| | | <el-card shadow="never"> |
| | | <el-form ref="infoForm" :model="organalForm" label-width="80px"> |
| | | <el-row> |
| | |
| | | </el-form-item> |
| | | </el-form> |
| | | </el-card> |
| | | </el-col> |
| | | </el-col> --> |
| | | </el-row> |
| | | |
| | | <!-- 添加或修改器官分配对话框 --> |
| | |
| | | // this.queryParams.residencetown = this.$refs.areaSelect.getQu(); |
| | | listDonatebaseinfo(this.queryParams).then((response) => { |
| | | this.donationCaseTableData = response.rows; |
| | | console.log(this.donationCaseTableData,"Donation"); |
| | | this.total = response.total; |
| | | this.loading = false; |
| | | }); |
| | |
| | | }, |
| | | //点击捐献案例列表触发方法 |
| | | selectDonotor(row, column, event) { |
| | | this.selectedRow = row; |
| | | this.curdonorno = row.donorno; |
| | | this.curdonorname = row.name; |
| | | this.curage = row.age; |
| | | this.curInfoid = row.id; |
| | | this.distributionForm.donorno = row.donorno; |
| | | this.GetDonortedList(); |
| | | this.$router.push({ |
| | | path: "/organ/donationdetails/", |
| | | query: { |
| | | id: row.id, |
| | | organType: "edit", |
| | | } |
| | | }); |
| | | // this.selectedRow = row; |
| | | // this.curdonorno = row.donorno; |
| | | // this.curdonorname = row.name; |
| | | // this.curage = row.age; |
| | | // this.curInfoid = row.id; |
| | | // this.distributionForm.donorno = row.donorno; |
| | | // this.GetDonortedList(); |
| | | }, |
| | | //获取病人已捐献的器官列表 |
| | | GetDonortedList() { |
| | |
| | | fixed="right" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-edit" |
| | | @click="handletermination(scope.row)" |
| | | v-hasPermi="['project:donatebaseinfo:edit']" |
| | | >终止</el-button |
| | | > |
| | | |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | |
| | | this.getTimeList(); |
| | | this.getList(); |
| | | }, |
| | | mounted() { |
| | | mounted() { |
| | | this.LoadReportList(); |
| | | |
| | | // if(this.tempRecordState != undefined && this.tempRecordState != null){ |
| | |
| | | }, |
| | | /** 家属确认操作 */ |
| | | handleAdd(row) { |
| | | console.log("ppppppp", row); |
| | | this.showSaveBtn = false; |
| | | this.flowname = "家属确认登记"; |
| | | this.annexno = ""; |
| | | //查询是否存在确认登记记录 |
| | | let searchparam = { |
| | | infoid: row.id, |
| | | }; |
| | | this.loading = true; |
| | | this.curCase = { |
| | | id: row.id, |
| | | recordstate: null, |
| | | donorno: row.donorno, |
| | | }; |
| | | console.log("32323232323", searchparam); |
| | | listRelativesconfirmation(searchparam).then((response) => { |
| | | console.log("wdadwadawdawd", response); |
| | | this.loading = false; |
| | | if (response.code == 200) { |
| | | if (response.rows.length == 0) { |
| | | this.form.infoid = row.id; |
| | | this.form.donorno = row.donorno; |
| | | this.form.doname = row.name; |
| | | this.form.dosex = row.sex; |
| | | this.form.dobirthday = row.birthday; |
| | | this.form.donationality = row.nationality; |
| | | this.form.doeducation = row.education; |
| | | this.form.dooccupation = row.occupation; |
| | | this.form.donation = row.nation; |
| | | this.form.doidcardtype = row.idcardtype; |
| | | this.form.doidcardno = row.idcardno; |
| | | this.form.donativeplace = row.nativeplace; |
| | | this.open = true; |
| | | this.title = "新增人体器官捐献亲属确认登记表"; |
| | | this.$nextTick(function () { |
| | | this.$refs.confirmannex.getAnnexList(); |
| | | }); |
| | | } else if (response.rows.length == 1) { |
| | | this.form = response.rows[0]; |
| | | console.log("2222222", this.form); |
| | | console.log("编辑家属确认form", this.form); |
| | | this.form.donorno = row.donorno; |
| | | this.form.doname = row.name; |
| | | this.form.dosex = row.sex; |
| | | // 出生日期 |
| | | this.form.dobirthday = row.birthday; |
| | | // 民族 |
| | | this.form.donationality = row.nationality; |
| | | // 学历 |
| | | this.form.doeducation = row.education; |
| | | // 职业 |
| | | this.form.dooccupation = row.occupation; |
| | | this.form.donation = row.nation; |
| | | this.form.doidcardtype = row.idcardtype; |
| | | this.form.doidcardno = row.idcardno; |
| | | this.form.donativeplace = row.nativeplace; |
| | | // this.form.donativeplace = |
| | | // row.residenceProvinceName + |
| | | // row.residenceCityName + |
| | | // row.residenceTownName; |
| | | this.defultAddresss.sheng = this.form.residenceprovincename; |
| | | this.defultAddresss.shi = this.form.residencecityname; |
| | | this.defultAddresss.qu = this.form.residencetownname; |
| | | console.log("9999999", this.form.organdecision); |
| | | if (this.form.kinship) { |
| | | this.form.kinship = this.form.kinship.split(","); |
| | | } |
| | | if (this.form.organdecision) { |
| | | this.form.organdecision = this.form.organdecision.split(","); |
| | | } |
| | | this.open = true; |
| | | this.title = "修改人体器官捐献亲属确认登记表"; |
| | | this.$nextTick(function () { |
| | | this.$refs.confirmannex.getAnnexList(); |
| | | }); |
| | | } else { |
| | | this.$modal.msgError( |
| | | "查询是否存在确认登记记录失败" + |
| | | JSON.stringify(JSON.stringify(response)) |
| | | ); |
| | | } |
| | | this.$router.push({ |
| | | path: "/organ/donationdetails/", |
| | | query: { |
| | | id: row.id, |
| | | organType: "edit", |
| | | } |
| | | }); |
| | | this.reset(); |
| | | // console.log("ppppppp", row); |
| | | // this.showSaveBtn = false; |
| | | // this.flowname = "家属确认登记"; |
| | | // this.annexno = ""; |
| | | // //查询是否存在确认登记记录 |
| | | // let searchparam = { |
| | | // infoid: row.id, |
| | | // }; |
| | | // this.loading = true; |
| | | // this.curCase = { |
| | | // id: row.id, |
| | | // recordstate: null, |
| | | // donorno: row.donorno, |
| | | // }; |
| | | // console.log("32323232323", searchparam); |
| | | // listRelativesconfirmation(searchparam).then((response) => { |
| | | // console.log("wdadwadawdawd", response); |
| | | // this.loading = false; |
| | | // if (response.code == 200) { |
| | | // if (response.rows.length == 0) { |
| | | // this.form.infoid = row.id; |
| | | // this.form.donorno = row.donorno; |
| | | // this.form.doname = row.name; |
| | | // this.form.dosex = row.sex; |
| | | // this.form.dobirthday = row.birthday; |
| | | // this.form.donationality = row.nationality; |
| | | // this.form.doeducation = row.education; |
| | | // this.form.dooccupation = row.occupation; |
| | | // this.form.donation = row.nation; |
| | | // this.form.doidcardtype = row.idcardtype; |
| | | // this.form.doidcardno = row.idcardno; |
| | | // this.form.donativeplace = row.nativeplace; |
| | | // this.open = true; |
| | | // this.title = "新增人体器官捐献亲属确认登记表"; |
| | | // this.$nextTick(function () { |
| | | // this.$refs.confirmannex.getAnnexList(); |
| | | // }); |
| | | // } else if (response.rows.length == 1) { |
| | | // this.form = response.rows[0]; |
| | | // console.log("2222222", this.form); |
| | | // console.log("编辑家属确认form", this.form); |
| | | // this.form.donorno = row.donorno; |
| | | // this.form.doname = row.name; |
| | | // this.form.dosex = row.sex; |
| | | // // 出生日期 |
| | | // this.form.dobirthday = row.birthday; |
| | | // // 民族 |
| | | // this.form.donationality = row.nationality; |
| | | // // 学历 |
| | | // this.form.doeducation = row.education; |
| | | // // 职业 |
| | | // this.form.dooccupation = row.occupation; |
| | | // this.form.donation = row.nation; |
| | | // this.form.doidcardtype = row.idcardtype; |
| | | // this.form.doidcardno = row.idcardno; |
| | | // this.form.donativeplace = row.nativeplace; |
| | | // // this.form.donativeplace = |
| | | // // row.residenceProvinceName + |
| | | // // row.residenceCityName + |
| | | // // row.residenceTownName; |
| | | // this.defultAddresss.sheng = this.form.residenceprovincename; |
| | | // this.defultAddresss.shi = this.form.residencecityname; |
| | | // this.defultAddresss.qu = this.form.residencetownname; |
| | | // console.log("9999999", this.form.organdecision); |
| | | // if (this.form.kinship) { |
| | | // this.form.kinship = this.form.kinship.split(","); |
| | | // } |
| | | // if (this.form.organdecision) { |
| | | // this.form.organdecision = this.form.organdecision.split(","); |
| | | // } |
| | | // this.open = true; |
| | | // this.title = "修改人体器官捐献亲属确认登记表"; |
| | | // this.$nextTick(function () { |
| | | // this.$refs.confirmannex.getAnnexList(); |
| | | // }); |
| | | // } else { |
| | | // this.$modal.msgError( |
| | | // "查询是否存在确认登记记录失败" + |
| | | // JSON.stringify(JSON.stringify(response)) |
| | | // ); |
| | | // } |
| | | // } |
| | | // }); |
| | | // this.reset(); |
| | | }, |
| | | /** 提交按钮 */ |
| | | submitForm() { |