| | |
| | | <el-row :gutter="8"> |
| | | <el-col :span="6"> |
| | | <el-form-item label="报告人"> |
| | | <el-select v-model="queryParams.reporterno" placeholder="请选择报告人"> |
| | | <el-select |
| | | v-model="queryParams.reporterno" |
| | | placeholder="请选择报告人" |
| | | > |
| | | <el-option |
| | | v-for="item in reportlist" |
| | | :key="item.index" |
| | |
| | | width="100" |
| | | /> |
| | | |
| | | <el-table-column |
| | | label="捐献进度" |
| | | align="center" |
| | | prop="recordstate" |
| | | > |
| | | <el-table-column label="捐献进度" align="center" prop="recordstate"> |
| | | <template slot-scope="scope"> |
| | | |
| | | <div v-if="!scope.row.terminationCase"> |
| | | <dict-tag |
| | | :options="dict.type.sys_donornode" |
| | |
| | | fixed="right" |
| | | > |
| | | <template slot-scope="scope"> |
| | | |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | |
| | | getDonatebaseinfo, |
| | | delDonatebaseinfo, |
| | | // addDonatebaseinfo, |
| | | updateDonatebaseinfo, |
| | | updateDonatebaseinfo |
| | | // exportDonatebaseinfo, |
| | | // exportProvincemessage, |
| | | } from "@/api/project/donatebaseinfo"; |
| | |
| | | // exportRelativesconfirmation, |
| | | updatedonatorno, |
| | | updateDonateNumber, |
| | | downloadconfirmationinfo, |
| | | downloadconfirmationinfo |
| | | } from "@/api/project/relativesconfirmation"; |
| | | import { |
| | | listMedicalevaluation, |
| | |
| | | delMedicalevaluation, |
| | | addMedicalevaluation, |
| | | updateMedicalevaluation, |
| | | exportMedicalevaluation, |
| | | exportMedicalevaluation |
| | | } from "@/api/project/medicalevaluation"; |
| | | import Li_area_select from "@/components/Address"; |
| | | import OrgSelecter from "@/views/project/components/orgselect"; |
| | |
| | | import { |
| | | listOrganization, |
| | | listReportname, |
| | | listUser, |
| | | listUser |
| | | } from "@/api/project/organization"; |
| | | |
| | | export default { |
| | | components: { |
| | | Li_area_select, |
| | | OrgSelecter, |
| | | AnnexUpload, |
| | | AnnexUpload |
| | | }, |
| | | name: "Relativesconfirmation", |
| | | dicts: [ |
| | |
| | | "sys_FamilyRelation", |
| | | "sys_CoreAssessConclusion", |
| | | "sys_BaseAssessConclusion", |
| | | 'sys_donornode' |
| | | "sys_donornode" |
| | | ], |
| | | data() { |
| | | return { |
| | |
| | | defultAddresss: { |
| | | sheng: "浙江省", |
| | | shi: "", |
| | | qu: "", |
| | | qu: "" |
| | | }, |
| | | //默认值设置,可为空 |
| | | searchAddress: { |
| | | sheng: "", |
| | | shi: "", |
| | | qu: "", |
| | | organizationname: null, |
| | | organizationname: null |
| | | }, |
| | | provinceData: [ |
| | | { label: "全部", value: "" }, |
| | |
| | | { label: "衢州市", value: "8" }, |
| | | { label: "舟山市", value: "9" }, |
| | | { label: "台州市", value: "A" }, |
| | | { label: "丽水市", value: "B" }, |
| | | { label: "丽水市", value: "B" } |
| | | ], |
| | | showSaveBtn: false, |
| | | showTerminationBtn: false, |
| | |
| | | residencecity: null, |
| | | residencetown: null, |
| | | // "2" |
| | | recordstate: "2", |
| | | recordstate: null, |
| | | treatmenthospitalname: null, |
| | | donorno: null, |
| | | acquisitiontissueno: null, |
| | | reportername: null, |
| | | reporttime: null, |
| | | city: null, |
| | | treatmenthospitalno: null, |
| | | treatmenthospitalno: null |
| | | }, |
| | | headers: { |
| | | Authorization: "Bearer " + getToken() |
| | |
| | | // 表单校验 |
| | | rules: { |
| | | name: [ |
| | | { required: true, message: "亲属姓名不能为空", trigger: "blur" }, |
| | | { required: true, message: "亲属姓名不能为空", trigger: "blur" } |
| | | ], |
| | | phone: [ |
| | | { required: true, message: "家属联系电话不为空", trigger: "blur" }, |
| | | { required: true, message: "家属联系电话不为空", trigger: "blur" } |
| | | ], |
| | | signfamilyrelations: [ |
| | | { required: true, message: "与捐献者关系", trigger: "blur" }, |
| | | { required: true, message: "与捐献者关系", trigger: "blur" } |
| | | ], |
| | | idcardno: [ |
| | | { required: true, message: "证件号不能为空", trigger: "blur" }, |
| | | { required: true, message: "证件号不能为空", trigger: "blur" } |
| | | ], |
| | | organdecision: [ |
| | | { required: true, message: "捐献决定不能为空", trigger: "blur" }, |
| | | { required: true, message: "捐献决定不能为空", trigger: "blur" } |
| | | ], |
| | | responsibleuserid: [ |
| | | { required: true, message: "负责人不能为空", trigger: "blur" }, |
| | | { required: true, message: "负责人不能为空", trigger: "blur" } |
| | | ], |
| | | coordinateduserido: [ |
| | | { required: true, message: "协调员1不能为空", trigger: "blur" }, |
| | | { required: true, message: "协调员1不能为空", trigger: "blur" } |
| | | ], |
| | | coordinateduseridt: [ |
| | | { required: true, message: "协调员2不能为空", trigger: "blur" }, |
| | | ], |
| | | { required: true, message: "协调员2不能为空", trigger: "blur" } |
| | | ] |
| | | // esidenceaddresss:[{ required: true, message: "请选择户籍地", trigger: "blur" }], |
| | | // residenceaddress:[{ required: true, message: "现住地址不能为空", trigger: "blur" }], |
| | | }, |
| | |
| | | evaluationTitle: "", |
| | | evaluationRules: {}, |
| | | starttime: "", |
| | | endtime: "", |
| | | endtime: "" |
| | | }; |
| | | }, |
| | | created() { |
| | |
| | | this.getLeaderList(); |
| | | this.getCoordinatorList1(); |
| | | this.getCoordinatorList2(); |
| | | |
| | | this.getList(); |
| | | }, |
| | | activated() { |
| | | activated() {}, |
| | | mounted() { |
| | | this.selecttime = ""; |
| | | this.reportervalue = ""; |
| | | this.reportlist = []; |
| | |
| | | if (this.$route.params.starttime != null && this.$route.params.endtime) { |
| | | this.selecttime = [ |
| | | this.$moment(this.$route.params.starttime).format("YYYY-MM-DD"), |
| | | this.$moment(this.$route.params.endtime) |
| | | .add(-1, "month") |
| | | .format("YYYY-MM-DD"), |
| | | this.$moment(this.$route.params.endtime).format("YYYY-MM-DD") |
| | | ]; |
| | | this.endtime = this.selecttime[1]; |
| | | this.starttime = this.selecttime[0]; |
| | | console.log(this.selecttime); |
| | | } |
| | | if (this.$route.params.reporterno != "") { |
| | | this.reporterno = this.$route.params.reporterno; |
| | |
| | | if (this.$route.params.city != "") { |
| | | this.queryParams.city = this.$route.params.city; |
| | | } |
| | | this.getTimeList(); |
| | | this.getList(); |
| | | }, |
| | | mounted() { |
| | | this.getTimeList(); |
| | | this.LoadReportList(); |
| | | |
| | | // if(this.tempRecordState != undefined && this.tempRecordState != null){ |
| | |
| | | } |
| | | }, |
| | | LoadReportList() { |
| | | listDonatebaseinfo().then((res) => { |
| | | listDonatebaseinfo().then(res => { |
| | | let list = res.rows; |
| | | let reportlist = []; |
| | | reportlist.push({ reporterno: "", reportername: "全部" }); |
| | | list.forEach((element) => { |
| | | list.forEach(element => { |
| | | reportlist.push({ |
| | | reporterno: element.reporterno, |
| | | reportername: element.reportername, |
| | | reportername: element.reportername |
| | | }); |
| | | }); |
| | | |
| | |
| | | this.annexno = ""; |
| | | //查询是否存在确认登记记录 |
| | | let searchparam = { |
| | | infoid: row.id, |
| | | infoid: row.id |
| | | }; |
| | | this.loading = true; |
| | | this.curCase = row; |
| | | listRelativesconfirmation(searchparam).then((response) => { |
| | | listRelativesconfirmation(searchparam).then(response => { |
| | | this.loading = false; |
| | | if (response.code == 200) { |
| | | if (response.rows.length == 0) { |
| | |
| | | // console.log(row.id) |
| | | // }, |
| | | updatedonorno(row) { |
| | | updateDonateNumber(row.infoid).then((res) => { |
| | | updateDonateNumber(row.infoid).then(res => { |
| | | //console.log('更新捐献者编号亲属表',res) |
| | | console.log("dwdawdwadwad", res); |
| | | this.getList(); |
| | |
| | | }, |
| | | getuserlist() { |
| | | //用户列表 |
| | | listUser().then((res) => { |
| | | listUser().then(res => { |
| | | this.users = res.data; |
| | | }); |
| | | }, |
| | | getLeaderList() { |
| | | //负责人 |
| | | // let userType = {"userType":"fzr"}; |
| | | listReportname("fzr").then((res) => { |
| | | listReportname("fzr").then(res => { |
| | | this.leaderlist = res.data; |
| | | }); |
| | | }, |
| | | |
| | | //协调员一 |
| | | getCoordinatorList1() { |
| | | listReportname("xty1").then((res) => { |
| | | listReportname("xty1").then(res => { |
| | | this.coordinatorlist1 = res.data; |
| | | }); |
| | | }, |
| | | getCoordinatorList2() { |
| | | //协调员二 |
| | | listReportname("xty2").then((res) => { |
| | | listReportname("xty2").then(res => { |
| | | this.coordinatorlist2 = res.data; |
| | | }); |
| | | }, |
| | | updateMessage() { |
| | | const reg = |
| | | /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/; |
| | | const reg = /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/; |
| | | if (reg.test(this.form.idcardno)) { |
| | | // 身份证号码是否合法 |
| | | var org_birthday = this.form.idcardno.substring(6, 14); |
| | |
| | | } |
| | | this.setState({ |
| | | birthday, |
| | | sex, |
| | | sex |
| | | }); |
| | | }, |
| | | changeAddress(data) {}, |
| | |
| | | this.loading = true; |
| | | |
| | | if (null != this.daterangeReporttime && "" != this.daterangeReporttime) { |
| | | this.queryParams.params["beginReporttime"] = |
| | | this.daterangeReporttime[0]; |
| | | this.queryParams.params[ |
| | | "beginReporttime" |
| | | ] = this.daterangeReporttime[0]; |
| | | this.queryParams.params["endReporttime"] = this.daterangeReporttime[1]; |
| | | } |
| | | |
| | |
| | | if (this.endtime != "") { |
| | | this.queryParams.endtime = this.endtime; |
| | | } |
| | | console.log(this.queryParams, "cans"); |
| | | this.$nextTick(() => { |
| | | listnewRelativesconfirmation(this.queryParams).then((response) => { |
| | | listnewRelativesconfirmation(this.queryParams).then(response => { |
| | | // console.log('带有city的接口',response) |
| | | this.listnewRelativesconfirm = response.rows; |
| | | console.log("response.rows", response.rows); |
| | |
| | | createBy: null, |
| | | createTime: null, |
| | | updateBy: null, |
| | | updateTime: null, |
| | | updateTime: null |
| | | }; |
| | | this.resetForm("form"); |
| | | }, |
| | |
| | | reportername: null, |
| | | reporttime: null, |
| | | city: null, |
| | | treatmenthospitalno: null, |
| | | treatmenthospitalno: null |
| | | }; |
| | | this.selecttime = []; |
| | | this.getTimeList(); |
| | |
| | | sheng: "", |
| | | shi: "", |
| | | qu: "", |
| | | organizationname: null, |
| | | organizationname: null |
| | | }; |
| | | |
| | | this.resetForm("queryForm"); |
| | |
| | | // }, |
| | | // 多选框选中数据 |
| | | handleSelectionChange(selection) { |
| | | this.ids = selection.map((item) => item.id); |
| | | this.ids = selection.map(item => item.id); |
| | | this.single = selection.length !== 1; |
| | | this.multiple = !selection.length; |
| | | }, |
| | |
| | | this.annexno = ""; |
| | | //查询是否存在确认登记记录 |
| | | let searchparam = { |
| | | infoid: row.id, |
| | | infoid: row.id |
| | | }; |
| | | this.loading = true; |
| | | this.curCase = { |
| | | id: row.id, |
| | | recordstate: null, |
| | | donorno: row.donorno, |
| | | donorno: row.donorno |
| | | }; |
| | | console.log("32323232323", searchparam); |
| | | listRelativesconfirmation(searchparam).then((response) => { |
| | | listRelativesconfirmation(searchparam).then(response => { |
| | | console.log("wdadwadawdawd", response); |
| | | this.loading = false; |
| | | if (response.code == 200) { |
| | |
| | | }, |
| | | /** 提交按钮 */ |
| | | submitForm() { |
| | | this.$refs["form"].validate((valid) => { |
| | | this.$refs["form"].validate(valid => { |
| | | if (valid) { |
| | | console.log("提交的form", this.form); |
| | | if (this.form.kinship.length > 0) { |
| | |
| | | this.form.residencetownname = this.defultAddresss.qu; |
| | | //负责人 //leaderlist |
| | | let responsibleuseridIndex = this.leaderlist.findIndex( |
| | | (item) => this.form.responsibleuserid == item.reportNo |
| | | item => this.form.responsibleuserid == item.reportNo |
| | | ); |
| | | if (responsibleuseridIndex > -1) { |
| | | this.form.responsibleusername = |
| | | this.leaderlist[responsibleuseridIndex].reportName; |
| | | this.form.responsibleusername = this.leaderlist[ |
| | | responsibleuseridIndex |
| | | ].reportName; |
| | | } |
| | | //协调员1 |
| | | let coordinatedusernameIndex = this.coordinatorlist1.findIndex( |
| | | (item) => this.form.coordinateduserido == item.reportNo |
| | | item => this.form.coordinateduserido == item.reportNo |
| | | ); |
| | | if (coordinatedusernameIndex > -1) { |
| | | this.form.coordinatedusernameo = |
| | | this.coordinatorlist1[coordinatedusernameIndex].reportName; |
| | | this.form.coordinatedusernameo = this.coordinatorlist1[ |
| | | coordinatedusernameIndex |
| | | ].reportName; |
| | | } |
| | | //协调员2 |
| | | let coordinatedusernametIndex = this.coordinatorlist1.findIndex( |
| | | (item) => this.form.coordinateduseridt == item.reportNo |
| | | item => this.form.coordinateduseridt == item.reportNo |
| | | ); |
| | | if (coordinatedusernametIndex > -1) { |
| | | this.form.coordinatedusernamet = |
| | | this.coordinatorlist1[coordinatedusernametIndex].reportName; |
| | | this.form.coordinatedusernamet = this.coordinatorlist1[ |
| | | coordinatedusernametIndex |
| | | ].reportName; |
| | | } |
| | | //console.log("协调员2:"+ this.form.coordinatedusernamet); |
| | | |
| | | if (this.form.id != null) { |
| | | updateRelativesconfirmation(this.form).then((response) => { |
| | | updateRelativesconfirmation(this.form).then(response => { |
| | | console.log("1s212198989898", this.form.infoid); |
| | | let donornoobj = { |
| | | id: this.form.infoid, |
| | | id: this.form.infoid |
| | | }; |
| | | let donornoobj1 = { |
| | | infoid: this.form.infoid, |
| | | infoid: this.form.infoid |
| | | }; |
| | | console.log("infoid:", this.form.infoid); |
| | | // 更新捐献者编号接口 |
| | |
| | | this.getList(); |
| | | //查询是否存在医学评估记录 |
| | | let searchevaluationParam = { |
| | | donorno: this.curCase.donorno, |
| | | donorno: this.curCase.donorno |
| | | }; |
| | | this.loading = true; |
| | | listMedicalevaluation(searchevaluationParam).then((response) => { |
| | | listMedicalevaluation(searchevaluationParam).then(response => { |
| | | this.loading = false; |
| | | if (response.code == 200) { |
| | | if (response.rows.length > 0) { |
| | |
| | | this.curCase.recordstate = 99; |
| | | } |
| | | console.log("curCase", this.curCase); |
| | | updateDonatebaseinfo(this.curCase).then((response1) => { |
| | | updateDonatebaseinfo(this.curCase).then(response1 => { |
| | | this.getList(); |
| | | if (response1.code == 200) { |
| | | if (this.curCase.recordstate == 7) { |
| | |
| | | }); |
| | | }); |
| | | } else { |
| | | addRelativesconfirmation(this.form).then((response) => { |
| | | addRelativesconfirmation(this.form).then(response => { |
| | | this.$modal.msgSuccess("新增成功"); |
| | | this.getList(); |
| | | //查询是否存在医学评估记录 |
| | | let searchevaluationParam = { |
| | | donorno: this.curCase.donorno, |
| | | donorno: this.curCase.donorno |
| | | }; |
| | | this.loading = true; |
| | | listMedicalevaluation(searchevaluationParam).then((response) => { |
| | | listMedicalevaluation(searchevaluationParam).then(response => { |
| | | this.loading = false; |
| | | if (response.code == 200) { |
| | | if (response.rows.length > 0) { |
| | |
| | | } else { |
| | | this.$modal.msgError("获取医学评估记录失败:" + response.msg); |
| | | } |
| | | updateDonatebaseinfo(this.curCase).then((response1) => { |
| | | updateDonatebaseinfo(this.curCase).then(response1 => { |
| | | this.getList(); |
| | | if (response1.code == 200) { |
| | | if (this.curCase.recordstate == 7) { |
| | |
| | | this.getList(); |
| | | }); |
| | | } |
| | | updateDonateNumber(this.form.infoid).then((res) => { |
| | | updateDonateNumber(this.form.infoid).then(res => { |
| | | //console.log('更新捐献者编号亲属表',res) |
| | | this.getList(); |
| | | }); |
| | |
| | | .then(() => { |
| | | this.loading = true; |
| | | row.recordstate = 7; |
| | | updateDonatebaseinfo(row).then((response1) => { |
| | | updateDonatebaseinfo(row).then(response1 => { |
| | | if (response1.code == 200) { |
| | | this.$modal.msgSuccess("上报伦理审查成功"); |
| | | } else { |
| | |
| | | coreteamassessdoctor: null, |
| | | coreteamassesstime: null, |
| | | coreteamassessconclusion: null, |
| | | assessannex: null, |
| | | assessannex: null |
| | | }; |
| | | this.resetForm("evaluationForm"); |
| | | }, |
| | |
| | | this.annexno = ""; |
| | | //获取医学捐献评估记录 |
| | | let searchParam = { |
| | | donorno: data.donorno, |
| | | donorno: data.donorno |
| | | }; |
| | | this.loading = true; |
| | | listMedicalevaluation(searchParam).then((response) => { |
| | | listMedicalevaluation(searchParam).then(response => { |
| | | this.loading = false; |
| | | if (response.code == 200) { |
| | | if (response.rows.length == 0) { |
| | |
| | | handledownload(row) { |
| | | const id = row.id || this.ids; |
| | | |
| | | downloadconfirmationinfo(id).then((res) => { |
| | | downloadconfirmationinfo(id).then(res => { |
| | | var fileUrl = res; |
| | | //获取当前网址 |
| | | var urlBase = process.env.VUE_APP_BASE_API; |
| | |
| | | console.log(url); |
| | | const link = document.createElement("a"); |
| | | link.href = url; |
| | | const name=fileUrl["downloadName"] |
| | | const name = fileUrl["downloadName"]; |
| | | link.setAttribute("download", name); // 替换file.pdf为实际的文件名 |
| | | document.body.appendChild(link); |
| | | link.click(); |
| | |
| | | //保存或更新捐献评估 |
| | | saveEvaluation() { |
| | | this.loading = true; |
| | | this.$refs["evaluationForm"].validate((valid) => { |
| | | this.$refs["evaluationForm"].validate(valid => { |
| | | if (valid) { |
| | | if (this.evaluationForm.id != null) { |
| | | updateMedicalevaluation(this.evaluationForm).then((response) => { |
| | | updateMedicalevaluation(this.evaluationForm).then(response => { |
| | | this.loading = false; |
| | | this.$modal.msgSuccess("修改成功"); |
| | | this.isShowEvaluation = false; |
| | | this.getList(); |
| | | }); |
| | | } else { |
| | | addMedicalevaluation(this.evaluationForm).then((response) => { |
| | | addMedicalevaluation(this.evaluationForm).then(response => { |
| | | this.loading = false; |
| | | this.$modal.msgSuccess("新增成功"); |
| | | //更新捐献状态为已上报伦理审查 |
| | | this.curCase.recordstate = 7; |
| | | updateDonatebaseinfo(this.curCase).then((response1) => { |
| | | updateDonatebaseinfo(this.curCase).then(response1 => { |
| | | this.getList(); |
| | | if (response1.code == 200) { |
| | | this.$modal.msgSuccess("上报伦理审查成功"); |
| | |
| | | } |
| | | } |
| | | }); |
| | | }, |
| | | }, |
| | | } |
| | | } |
| | | }; |
| | | </script> |