| | |
| | | <el-col :span="6"> |
| | | <el-form-item label="捐献进度" prop="recordstate"> |
| | | <el-select |
| | | v-model="queryParams.recordstate" |
| | | v-model="queryParams.workflow" |
| | | placeholder="请选择捐献进度" |
| | | clearable |
| | | size="small" |
| | | > |
| | | <el-option |
| | | v-for="dict in dict.type.sys_DonationStatus" |
| | | v-for="dict in dict.type.sys_donornode" |
| | | :key="dict.value" |
| | | :label="dict.label" |
| | | :value="dict.value" |
| | |
| | | prop="recordstate" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <dict-tag |
| | | :options="dict.type.sys_DonationStatus" |
| | | :value="scope.row.recordstate" |
| | | /> |
| | | |
| | | <div v-if="!scope.row.terminationCase"> |
| | | <dict-tag |
| | | :options="dict.type.sys_donornode" |
| | | :value="scope.row.workflow" |
| | | /> |
| | | </div> |
| | | <div v-else>任务中止</div> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | |
| | | import Li_area_select from "@/components/Address"; |
| | | import OrgSelecter from "@/views/project/components/orgselect"; |
| | | import AnnexUpload from "@/views/project/components/annexupload"; |
| | | import { getToken } from "@/utils/auth"; |
| | | import { |
| | | listOrganization, |
| | | listReportname, |
| | |
| | | "sys_FamilyRelation", |
| | | "sys_CoreAssessConclusion", |
| | | "sys_BaseAssessConclusion", |
| | | 'sys_donornode' |
| | | ], |
| | | data() { |
| | | return { |
| | |
| | | reporttime: null, |
| | | city: null, |
| | | treatmenthospitalno: null, |
| | | }, |
| | | headers: { |
| | | Authorization: "Bearer " + getToken() |
| | | }, |
| | | // 表单参数 |
| | | form: {}, |
| | |
| | | }, |
| | | /** 家属确认操作 */ |
| | | handleAdd(row) { |
| | | this.$router.push({ |
| | | path: "/organ/donationdetails/", |
| | | query: { |
| | | id: row.id, |
| | | organType: "edit", |
| | | } |
| | | }); |
| | | // 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(); |
| | | // return ; |
| | | 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() { |
| | |
| | | handledownload(row) { |
| | | const id = row.id || this.ids; |
| | | |
| | | downloadconfirmationinfo(id).then((response) => { |
| | | var fileUrl = response; |
| | | downloadconfirmationinfo(id).then((res) => { |
| | | var fileUrl = res; |
| | | //获取当前网址 |
| | | var urlBase = process.env.VUE_APP_BASE_API; |
| | | var curWWWPath = window.document.location.href; |
| | |
| | | var aEle = document.createElement("a"); |
| | | aEle.href = |
| | | curWWWPath.substring(0, pos) + urlBase + fileUrl["downloadUrl"]; |
| | | aEle.click(); |
| | | console.log(aEle.href); |
| | | // 添加Authorization头部 |
| | | fetch(aEle.href, { |
| | | headers: this.headers |
| | | }) |
| | | .then(response => { |
| | | // 将文件下载链接作为blob对象进行下载 |
| | | return response.blob(); |
| | | }) |
| | | .then(blob => { |
| | | const url = window.URL.createObjectURL(new Blob([blob])); |
| | | console.log(url); |
| | | const link = document.createElement("a"); |
| | | link.href = url; |
| | | const name=fileUrl["downloadName"] |
| | | link.setAttribute("download", name); // 替换file.pdf为实际的文件名 |
| | | document.body.appendChild(link); |
| | | link.click(); |
| | | link.parentNode.removeChild(link); |
| | | }); |
| | | }); |
| | | }, |
| | | |