From 4434fc4e9fa6819452596445b71eb67f4b422f0d Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期一, 16 十月 2023 18:02:37 +0800 Subject: [PATCH] 11 --- src/views/project/medicalevaluation/index.vue | 142 ++++++++++++++++++++++++----------------------- 1 files changed, 73 insertions(+), 69 deletions(-) diff --git a/src/views/project/medicalevaluation/index.vue b/src/views/project/medicalevaluation/index.vue index a3a9d24..157fda8 100644 --- a/src/views/project/medicalevaluation/index.vue +++ b/src/views/project/medicalevaluation/index.vue @@ -9,7 +9,6 @@ label-width="70px" > <el-row :gutter="8"> - <el-col :span="6"> <el-form-item label="濮撳悕" prop="name"> <el-input @@ -35,7 +34,7 @@ </el-form-item> </el-col> - <el-col :span="6"> + <el-col :span="6"> <el-form-item label="鎹愮尞鍦板競"> <el-select v-model="queryParams.city" placeholder="璇烽�夋嫨鍦板競"> <el-option @@ -48,7 +47,7 @@ </el-select> </el-form-item> </el-col> - + <el-col :span="6"> <el-form-item label="鎹愮尞杩涘害" prop="recordstate"> <el-select @@ -70,7 +69,10 @@ <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" @@ -204,7 +206,7 @@ /> </template> </el-table-column> - + <el-table-column label="鎿嶄綔" align="center" @@ -571,7 +573,7 @@ listDonatebaseinfo, getDonatebaseinfo, addDonatebaseinfo, - updateDonatebaseinfo, + updateDonatebaseinfo // exportProvincemessage, } from "@/api/project/donatebaseinfo"; @@ -584,7 +586,7 @@ delMedicalevaluation, addMedicalevaluation, updateMedicalevaluation, - exportMedicalevaluation, + exportMedicalevaluation } from "@/api/project/medicalevaluation"; import { listRelativesconfirmation } from "@/api/project/relativesconfirmation"; @@ -599,7 +601,7 @@ components: { Li_area_select, OrgSelecter, - AnnexUpload, + AnnexUpload }, name: "Medicalevaluation", dicts: [ @@ -626,7 +628,7 @@ "sys_organstate", "sys_CoreAssessConclusion", "sys_BaseAssessConclusion", - "sys_OrganDecision", + "sys_OrganDecision" ], data() { //杩欓噷瀛樻斁鏁版嵁 @@ -645,7 +647,7 @@ sheng: "", shi: "", qu: "", - organizationname: null, + organizationname: null }, provinceData: [ { label: "鍏ㄩ儴", value: "" }, @@ -659,22 +661,22 @@ { label: "琛㈠窞甯�", value: "8" }, { label: "鑸熷北甯�", value: "9" }, { label: "鍙板窞甯�", value: "A" }, - { label: "涓芥按甯�", value: "B" }, + { label: "涓芥按甯�", value: "B" } ], residenceAddresss: { sheng: "娴欐睙鐪�", shi: "", - qu: "", + qu: "" }, registerAddresss: { sheng: "娴欐睙鐪�", shi: "", - qu: "", + qu: "" }, defultAddresss: { sheng: "娴欐睙鐪�", shi: "", - qu: "", + qu: "" }, // 閬僵灞� loading: true, @@ -716,7 +718,7 @@ donorno: null, reportername: null, reporttime: null, - city: null, + city: null }, // 琛ㄥ崟鍙傛暟 form: {}, @@ -734,7 +736,7 @@ //纭鐧昏琛╰itle confirmationTitle: "", //鐢ㄦ埛琛� - users: [], + users: [] }; }, //鐩戝惉灞炴�� 绫讳技浜巇ata姒傚康 @@ -753,7 +755,7 @@ this.$moment(this.$route.params.starttime).format("YYYY-MM-DD"), this.$moment(this.$route.params.endtime) .add(-1, "month") - .format("YYYY-MM-DD"), + .format("YYYY-MM-DD") ]; } if (this.$route.params.reporterno != "") { @@ -790,7 +792,7 @@ methods: { //鑾峰彇鐢ㄦ埛鍒楄〃 getuserlist() { - listUser().then((res) => { + listUser().then(res => { this.users = res.data; }); }, @@ -849,13 +851,13 @@ } }, LoadReportList() { - listDonatebaseinfo().then((res) => { + listDonatebaseinfo().then(res => { let list = res.rows; let reportlist = []; - list.forEach((element) => { + list.forEach(element => { reportlist.push({ reporterno: element.reporterno, - reportername: element.reportername, + reportername: element.reportername }); }); @@ -867,7 +869,7 @@ }, resetArr(Arr) { var hash = {}; - Arr = Arr.reduce(function (arr, current) { + Arr = Arr.reduce(function(arr, current) { hash[current.reporterno] ? "" : (hash[current.reporterno] = true && arr.push(current)); @@ -904,7 +906,7 @@ } this.queryParams.reportervalue = this.reportervalue; this.$nextTick(() => { - listnewMedicalevaluation(this.queryParams).then((response) => { + listnewMedicalevaluation(this.queryParams).then(response => { this.VMedicalevaluation = response.rows; console.log("1111111"); this.total = response.total; @@ -940,7 +942,7 @@ coreteamassesstime: null, treatmenthospitalname: null, coreteamassessconclusion: null, - assessannex: null, + assessannex: null }; this.resetForm("form"); }, @@ -973,7 +975,7 @@ acquisitiontissueno: null, reportername: null, reporttime: null, - city: null, + city: null }; this.selecttime = []; this.getTimeList(); @@ -981,7 +983,7 @@ sheng: "", shi: "", qu: "", - organizationname: null, + organizationname: null }; this.resetForm("queryForm"); @@ -1006,7 +1008,7 @@ } this.setState({ birthday, - sex, + sex }); }, @@ -1025,22 +1027,22 @@ this.curCase = { id: data.id, recordstate: null, - donorno: data.donorno, + donorno: data.donorno }; //鑾峰彇鍖诲鎹愮尞璇勪及璁板綍 this.loading = true; if (data.meid) { let searchParam = { - id: data.meid, + id: data.meid }; //listDonatebaseinfo(searchParam).then((response) => { - listMedicalevaluation(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.$nextTick(function() { this.$refs.evaluationannex.getAnnexList(); }); } else { @@ -1055,7 +1057,7 @@ this.form.donorno = data.donorno; this.open = true; - this.$nextTick(function () { + this.$nextTick(function() { this.$refs.evaluationannex.getAnnexList(); }); } @@ -1064,27 +1066,30 @@ /** 鎻愪氦鎸夐挳 */ submitForm() { this.loading = true; - this.$refs["form"].validate((valid) => { + this.$refs["form"].validate(valid => { if (valid) { + console.log(this.form.id); if (this.form.id != null) { - updateMedicalevaluation(this.form).then((response) => { + updateMedicalevaluation(this.form).then(response => { this.loading = false; this.$modal.msgSuccess("淇敼鎴愬姛"); //鏌ヨ鏄惁瀛樺湪纭鐧昏璁板綍 let searchConfirmParam = { - infoid: this.curCase.id.toString(), + infoid: this.curCase.id.toString() }; this.loading = true; - listRelativesconfirmation(searchConfirmParam).then((response) => { + listRelativesconfirmation(searchConfirmParam).then(response => { this.loading = false; + console.log(789); if (response.code == 200) { if (response.rows.length > 0) { this.curCase.recordstate = 7; } else { this.curCase.recordstate = 4; } - updateDonatebaseinfo(this.curCase).then((response1) => { - this.getList(); + updateDonatebaseinfo(this.curCase).then(response1 => { + // this.getList(); + console.log(456); if (response1.code == 200) { if (this.curCase.recordstate == 7) { this.$modal.msgSuccess("鎹愮尞璇勪及瀹屾垚骞朵笂鎶ヤ鸡鐞嗗鏌�"); @@ -1099,19 +1104,20 @@ }); } }); + console.log(123); this.open = false; this.getList(); }); } else { - addMedicalevaluation(this.form).then((response) => { + addMedicalevaluation(this.form).then(response => { this.loading = false; this.$modal.msgSuccess("鏂板鎴愬姛"); //鏌ヨ鏄惁瀛樺湪纭鐧昏璁板綍 let searchConfirmParam = { - infoid: this.curCase.id.toString(), + infoid: this.curCase.id.toString() }; this.loading = true; - listRelativesconfirmation(searchConfirmParam).then((response) => { + listRelativesconfirmation(searchConfirmParam).then(response => { this.loading = false; if (response.code == 200) { if (response.rows.length > 0) { @@ -1119,7 +1125,7 @@ } else { this.curCase.recordstate = 4; } - updateDonatebaseinfo(this.curCase).then((response1) => { + updateDonatebaseinfo(this.curCase).then(response1 => { this.getList(); if (response1.code == 200) { if (this.curCase.recordstate == 7) { @@ -1185,7 +1191,7 @@ createBy: null, createTime: null, updateBy: null, - updateTime: null, + updateTime: null }; this.resetForm("confirmationform"); }, @@ -1202,13 +1208,13 @@ this.annexno = ""; //鏌ヨ鏄惁瀛樺湪纭鐧昏璁板綍 let searchConfirmParam = { - infoid: row.id.toString(), + infoid: row.id.toString() }; this.curCase = row; this.resetConfirmForm(); this.loading = true; - listRelativesconfirmation(searchConfirmParam).then((response) => { + listRelativesconfirmation(searchConfirmParam).then(response => { this.loading = false; if (response.code == 200) { if (response.rows.length == 0) { @@ -1230,7 +1236,7 @@ row.residencetownname; this.confirmationTitle = "鏂板浜轰綋鍣ㄥ畼鎹愮尞浜插睘纭鐧昏琛�"; this.isShowConfirmationDialog = true; - this.$nextTick(function () { + this.$nextTick(function() { this.$refs.confirmannex.getAnnexList(); }); } else if (response.rows.length == 1) { @@ -1250,16 +1256,16 @@ row.residenceprovincename + row.residencecityname + row.residencetownname; - this.defultAddresss.sheng = - this.confirmationform.residenceprovincename; + this.defultAddresss.sheng = this.confirmationform.residenceprovincename; this.defultAddresss.shi = this.confirmationform.residencecityname; this.defultAddresss.qu = this.confirmationform.residencetownname; //this.form.kinship = this.form.kinship.split(","); - this.confirmationform.organdecision = - this.confirmationform.organdecision.split(","); + this.confirmationform.organdecision = this.confirmationform.organdecision.split( + "," + ); this.isShowConfirmationDialog = true; this.title = "淇敼浜轰綋鍣ㄥ畼鎹愮尞浜插睘纭鐧昏琛�"; - this.$nextTick(function () { + this.$nextTick(function() { this.$refs.confirmannex.getAnnexList(); }); } else { @@ -1275,39 +1281,37 @@ //淇濆瓨瀹跺睘纭琛� saveConfirmationForm() { - this.$refs["confirmationform"].validate((valid) => { + this.$refs["confirmationform"].validate(valid => { if (valid) { // this.form.kinship = this.form.kinship.join(","); - this.confirmationform.organdecision = - this.confirmationform.organdecision.join(","); - this.confirmationform.kinship = - this.confirmationform.kinship.join(","); - this.confirmationform.residenceprovince = - this.$refs.residenceaddresss.getSheng(); - this.confirmationform.residenceprovincename = - this.defultAddresss.sheng; - this.confirmationform.residencecity = - this.$refs.residenceaddresss.getShi(); + this.confirmationform.organdecision = this.confirmationform.organdecision.join( + "," + ); + this.confirmationform.kinship = this.confirmationform.kinship.join( + "," + ); + this.confirmationform.residenceprovince = this.$refs.residenceaddresss.getSheng(); + this.confirmationform.residenceprovincename = this.defultAddresss.sheng; + this.confirmationform.residencecity = this.$refs.residenceaddresss.getShi(); this.confirmationform.residencecityname = this.defultAddresss.shi; - this.confirmationform.residencetown = - this.$refs.residenceaddresss.getQu(); + this.confirmationform.residencetown = this.$refs.residenceaddresss.getQu(); this.confirmationform.residencetownname = this.defultAddresss.qu; if (this.confirmationform.id != null) { updateRelativesconfirmation(this.confirmationform).then( - (response) => { + response => { this.$modal.msgSuccess("淇敼鎴愬姛"); this.isShowConfirmationDialog = false; this.getList(); } ); } else { - addRelativesconfirmation(this.confirmationform).then((response) => { + addRelativesconfirmation(this.confirmationform).then(response => { this.$modal.msgSuccess("鏂板鎴愬姛"); this.isShowConfirmationDialog = false; //涓婃姤浼︾悊瀹℃煡 this.curCase.recordstate = 7; - updateDonatebaseinfo(this.curCase).then((response1) => { + updateDonatebaseinfo(this.curCase).then(response1 => { this.getList(); if (response1.code == 200) { this.$modal.msgSuccess("涓婃姤浼︾悊瀹℃煡鎴愬姛"); @@ -1321,7 +1325,7 @@ } } }); - }, + } }, //鐢熷懡鍛ㄦ湡 - 鍒涘缓瀹屾垚锛堝彲浠ヨ闂綋鍓峵his瀹炰緥锛� @@ -1330,7 +1334,7 @@ this.getuserlist(); //鑾峰彇鍒楄〃 this.getList(); - }, + } // //鐢熷懡鍛ㄦ湡 - 鎸傝浇瀹屾垚锛堝彲浠ヨ闂瓺OM鍏冪礌锛� // mounted() {}, // beforeCreate() {}, //鐢熷懡鍛ㄦ湡 - 鍒涘缓涔嬪墠 -- Gitblit v1.9.3