From 0516a6bf61d07b035e1a7c361d1566963a313fdd Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期二, 11 三月 2025 14:34:41 +0800 Subject: [PATCH] 测试完成 --- src/views/followvisit/outpatient/index.vue | 6 + src/views/patient/physical/index.vue | 153 ++++++++++++++++++++++++++++---------- src/views/patient/propaganda/index.vue | 6 + src/store/getters.js | 16 ++-- src/views/patient/questionnaire/index.vue | 8 + src/views/patient/subsequent/index.vue | 6 + src/views/followvisit/discharge/index.vue | 6 + src/views/patient/ycquestionnaire/index.vue | 8 + 8 files changed, 151 insertions(+), 58 deletions(-) diff --git a/src/store/getters.js b/src/store/getters.js index 0c4af54..0c052cf 100644 --- a/src/store/getters.js +++ b/src/store/getters.js @@ -450,14 +450,14 @@ listClass: "", }, }, - // { - // value: "8", - // label: "鏅鸿兘鏈哄櫒浜�", - // raw: { - // cssClass: "", - // listClass: "", - // }, - // }, + { + value: "8", + label: "鏅鸿兘鏈哄櫒浜�", + raw: { + cssClass: "", + listClass: "", + }, + }, ], // 璇█ languagelist: (state) => [ diff --git a/src/views/followvisit/discharge/index.vue b/src/views/followvisit/discharge/index.vue index 302d46c..dc2c913 100644 --- a/src/views/followvisit/discharge/index.vue +++ b/src/views/followvisit/discharge/index.vue @@ -888,7 +888,11 @@ console.log(this.topqueryParams.leavehospitaldistrictcodes, "11"); } this.loading = true; - this.topqueryParams.deptOrDistrict=2; + if (this.topqueryParams.leavehospitaldistrictcodes[0]&&this.topqueryParams.leaveldeptcodes[0]) { + this.topqueryParams.deptOrDistrict=2; + }else{ + this.topqueryParams.deptOrDistrict=1; + } getTaskservelist(this.topqueryParams).then((response) => { this.userList = response.rows[0].serviceSubtaskList; this.total = response.total; diff --git a/src/views/followvisit/outpatient/index.vue b/src/views/followvisit/outpatient/index.vue index 71c8090..957c7bf 100644 --- a/src/views/followvisit/outpatient/index.vue +++ b/src/views/followvisit/outpatient/index.vue @@ -660,7 +660,11 @@ /** 鏌ヨ闂ㄨ瘖闅忚鍒楄〃 */ getList() { this.loading = true; - this.topqueryParams.deptOrDistrict=2; + if (this.topqueryParams.leavehospitaldistrictcodes[0]&&this.topqueryParams.leaveldeptcodes[0]) { + this.topqueryParams.deptOrDistrict=2; + }else{ + this.topqueryParams.deptOrDistrict=1; + } getTaskservelist(this.topqueryParams).then( (response) => { this.userList = response.rows; diff --git a/src/views/patient/physical/index.vue b/src/views/patient/physical/index.vue index dc1e89c..50f4422 100644 --- a/src/views/patient/physical/index.vue +++ b/src/views/patient/physical/index.vue @@ -188,6 +188,19 @@ </div> </div> </el-col> + <el-col :span="1.5"> + <div class="documentf"> + <div class="document"> + <el-button + type="success" + plain + size="medium" + @click="buidegetTasklist()" + >寰呭姙鏈嶅姟</el-button + > + </div> + </div> + </el-col> </el-row> <el-table v-loading="loading" @@ -221,32 +234,41 @@ width="120" > <template slot-scope="scope"> - <div v-if="scope.row.sendstate == 1"> - <el-tag type="primary" :disable-transitions="false" - >琛ㄥ崟宸查鍙�</el-tag - > - </div> - <div v-if="scope.row.sendstate == 2"> - <el-tag type="primary" :disable-transitions="false" - >寰呮墽琛�</el-tag - > - </div> - <div v-if="scope.row.sendstate == 3"> - <el-tag type="success" :disable-transitions="false" - >琛ㄥ崟宸插彂閫�</el-tag - > - </div> - <div v-if="scope.row.sendstate == 4"> - <el-tag type="info" :disable-transitions="false">涓嶆墽琛�</el-tag> - </div> - <div v-if="scope.row.sendstate == 5"> - <el-tag type="danger" :disable-transitions="false" - >鍙戦�佸け璐�</el-tag - > - </div> - <div v-if="scope.row.sendstate == 6"> - <el-tag type="danger" :disable-transitions="false">宸插畬鎴�</el-tag> - </div> + <el-tooltip + class="item" + effect="dark" + :content="scope.row.remark" + placement="top-start" + > + <div v-if="scope.row.sendstate == 1"> + <el-tag type="primary" :disable-transitions="false" + >琛ㄥ崟宸查鍙�</el-tag + > + </div> + <div v-if="scope.row.sendstate == 2"> + <el-tag type="primary" :disable-transitions="false" + >寰呮墽琛�</el-tag + > + </div> + <div v-if="scope.row.sendstate == 3"> + <el-tag type="success" :disable-transitions="false" + >琛ㄥ崟宸插彂閫�</el-tag + > + </div> + <div v-if="scope.row.sendstate == 4"> + <el-tag type="info" :disable-transitions="false">涓嶆墽琛�</el-tag> + </div> + <div v-if="scope.row.sendstate == 5"> + <el-tag type="danger" :disable-transitions="false" + >鍙戦�佸け璐�</el-tag + > + </div> + <div v-if="scope.row.sendstate == 6"> + <el-tag type="danger" :disable-transitions="false" + >宸插畬鎴�</el-tag + > + </div> + </el-tooltip> </template> </el-table-column> <!-- <el-table-column @@ -289,17 +311,6 @@ <span>{{ parseTime(scope.row.finishtime) }}</span> </template> </el-table-column> - <el-table-column - label="鍑洪櫌鏃ユ湡" - width="200" - align="center" - key="endtime" - prop="endtime" - > - <template slot-scope="scope"> - <span>{{ formatTime(scope.row.endtime) }}</span> - </template></el-table-column - > <el-table-column label="搴旈殢璁挎棩鏈�" width="200" @@ -635,7 +646,7 @@ resetUserPwd, changeUserStatus, } from "@/api/system/user"; -import { getTaskservelist } from "@/api/AiCentre/index"; +import { getTaskservelist, buidegetTasklist } from "@/api/AiCentre/index"; import Treeselect from "@riophae/vue-treeselect"; import store from "@/store"; import "@riophae/vue-treeselect/dist/vue-treeselect.css"; @@ -866,8 +877,70 @@ console.log(this.topqueryParams.leavehospitaldistrictcodes, "11"); } this.loading = true; - this.topqueryParams.deptOrDistrict=2; + if (this.topqueryParams.leavehospitaldistrictcodes[0]&&this.topqueryParams.leaveldeptcodes[0]) { + this.topqueryParams.deptOrDistrict=2; + }else{ + this.topqueryParams.deptOrDistrict=1; + } getTaskservelist(this.topqueryParams).then((response) => { + this.userList = response.rows[0].serviceSubtaskList; + this.total = response.total; + if (refresh) { + this.cardlist[0].value = + Number(response.rows[0].wzx) + Number(response.rows[0].ysf); + this.cardlist[1].value = response.rows[0].wzx; + this.cardlist[2].value = response.rows[0].ysf; + this.ycvalue = response.rows[0].yc; + this.cardlist[3].value = response.rows[0].fssb; + this.cardlist[4].value = response.rows[0].dfs; + this.cardlist[5].value = response.rows[0].yfs2; + this.yfsvalue = response.rows[0].yfs; + } + this.loading = false; + this.userList.forEach((item) => { + let idArray = null; + + + if (item.preachform) { + + item.preachformson = item.preachform; + idArray = item.preachform.split(","); + + item.preachform = idArray.map((value) => { + // 鏌ユ壘id瀵瑰簲鐨勫璞� + const item = this.checkboxlist.find( + (item) => item.value == value + ); + // 濡傛灉鎵惧埌瀵瑰簲鐨刬d锛岃繑鍥瀕abel鍊硷紝鍚﹀垯杩斿洖null + return item ? item.label : null; + }); + } + }); + this.total = response.total; + }); + }, + buidegetTasklist(type) { + if (this.topqueryParams.searchscope == 3) { + this.topqueryParams.leaveldeptcodes = store.getters.belongDepts.map( + (obj) => obj.deptCode + ); + this.topqueryParams.leavehospitaldistrictcodes = + store.getters.belongWards.map((obj) => obj.districtCode); + } + // 鎺ュ彈寮傚父璺宠浆 + if (this.errtype) { + this.topqueryParams.leavehospitaldistrictcodes.push( + this.leavehospitaldistrictcode + ); + } + let obj = { + pageNum: 1, + pageSize: 10, + leavehospitaldistrictcodes: this.topqueryParams.leavehospitaldistrictcodes, + sendstates: [2, 3], + leaveldeptcodes: this.topqueryParams.leaveldeptcodes, + }; + buidegetTasklist(obj).then((response) => { this.userList = response.rows[0].serviceSubtaskList; this.total = response.total; if (refresh) { @@ -1004,7 +1077,7 @@ pageNum: 1, pageSize: 10, serviceType: 1, - searchscope: 2, + searchscope: 3, }; this.handleQuery(1); }, diff --git a/src/views/patient/propaganda/index.vue b/src/views/patient/propaganda/index.vue index 0131541..51964e9 100644 --- a/src/views/patient/propaganda/index.vue +++ b/src/views/patient/propaganda/index.vue @@ -806,7 +806,11 @@ store.getters.belongWards.map((obj) => obj.districtCode); } this.loading = true; - this.topqueryParams.deptOrDistrict=2; + if (this.topqueryParams.leavehospitaldistrictcodes[0]&&this.topqueryParams.leaveldeptcodes[0]) { + this.topqueryParams.deptOrDistrict=2; + }else{ + this.topqueryParams.deptOrDistrict=1; + } getTaskservelist(this.topqueryParams).then((response) => { this.userList = response.rows[0].serviceSubtaskList; diff --git a/src/views/patient/questionnaire/index.vue b/src/views/patient/questionnaire/index.vue index 2dc63d8..d7807b9 100644 --- a/src/views/patient/questionnaire/index.vue +++ b/src/views/patient/questionnaire/index.vue @@ -866,7 +866,11 @@ console.log(this.topqueryParams.leavehospitaldistrictcodes, "11"); } this.loading = true; - this.topqueryParams.deptOrDistrict=2; + if (this.topqueryParams.leavehospitaldistrictcodes[0]&&this.topqueryParams.leaveldeptcodes[0]) { + this.topqueryParams.deptOrDistrict=2; + }else{ + this.topqueryParams.deptOrDistrict=1; + } getTaskservelist(this.topqueryParams).then((response) => { this.userList = response.rows[0].serviceSubtaskList; this.total = response.total; @@ -889,10 +893,8 @@ } if (item.preachform) { - if (item.endtime) { item.preachformson = item.preachform; idArray = item.preachform.split(","); - } item.preachform = idArray.map((value) => { // 鏌ユ壘id瀵瑰簲鐨勫璞� diff --git a/src/views/patient/subsequent/index.vue b/src/views/patient/subsequent/index.vue index 2ea5237..b8e9133 100644 --- a/src/views/patient/subsequent/index.vue +++ b/src/views/patient/subsequent/index.vue @@ -702,7 +702,11 @@ /** 鏌ヨ闂ㄨ瘖闅忚鍒楄〃 */ getList() { this.loading = true; - this.topqueryParams.deptOrDistrict=2; + if (this.topqueryParams.leavehospitaldistrictcodes[0]&&this.topqueryParams.leaveldeptcodes[0]) { + this.topqueryParams.deptOrDistrict=2; + }else{ + this.topqueryParams.deptOrDistrict=1; + } getTaskservelist(this.topqueryParams).then((response) => { this.userList = response.rows; this.total = response.total; diff --git a/src/views/patient/ycquestionnaire/index.vue b/src/views/patient/ycquestionnaire/index.vue index 55b089c..67c3af9 100644 --- a/src/views/patient/ycquestionnaire/index.vue +++ b/src/views/patient/ycquestionnaire/index.vue @@ -866,7 +866,11 @@ console.log(this.topqueryParams.leavehospitaldistrictcodes, "11"); } this.loading = true; - this.topqueryParams.deptOrDistrict=2; + if (this.topqueryParams.leavehospitaldistrictcodes[0]&&this.topqueryParams.leaveldeptcodes[0]) { + this.topqueryParams.deptOrDistrict=2; + }else{ + this.topqueryParams.deptOrDistrict=1; + } getTaskservelist(this.topqueryParams).then((response) => { this.userList = response.rows[0].serviceSubtaskList; this.total = response.total; @@ -889,10 +893,8 @@ } if (item.preachform) { - if (item.endtime) { item.preachformson = item.preachform; idArray = item.preachform.split(","); - } item.preachform = idArray.map((value) => { // 鏌ユ壘id瀵瑰簲鐨勫璞� -- Gitblit v1.9.3