From 66b105cc45d8c3eec33954fffe0cd63a29774a13 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期二, 10 六月 2025 14:37:27 +0800 Subject: [PATCH] 测试完成 --- src/views/followvisit/discharge/index.vue | 183 +++++++++++++++++++++++++++++++++++++-------- 1 files changed, 150 insertions(+), 33 deletions(-) diff --git a/src/views/followvisit/discharge/index.vue b/src/views/followvisit/discharge/index.vue index 624a9cb..9f4590a 100644 --- a/src/views/followvisit/discharge/index.vue +++ b/src/views/followvisit/discharge/index.vue @@ -26,7 +26,7 @@ <div class="ysfleftvlue"> <el-card shadow="hover"> <div style="padding: 8px"> - <span>宸插彂閫佹湭棰嗗彇</span> + <span>琛ㄥ崟宸插彂閫�</span> <div style=" text-align: center; @@ -95,6 +95,7 @@ <el-input v-model="topqueryParams.sendname" placeholder="璇疯緭鍏ユ偅鑰呭鍚�" + @keyup.enter.native="handleQuery" ></el-input> </el-form-item> @@ -119,6 +120,14 @@ </el-option> </el-select> </el-form-item> + <el-form-item label="鎮h�呮爣绛�" prop="tagname"> + <el-input + v-model="topqueryParams.tagname" + placeholder="杈撳叆杩涜妯$硦鏌ヨ" + maxlength="30" + @keyup.enter.native="handleQuery" + /> + </el-form-item> <el-form-item> <el-button @@ -188,6 +197,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 +243,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 @@ -272,14 +303,34 @@ </template> </el-table-column> <el-table-column + label="鏍囩" + align="center" + key="tagname" + prop="tagname" + show-overflow-tooltip + width="180" + /> + <el-table-column label="闅忚浜哄憳" align="center" key="createBy" prop="createBy" width="120" /> + <el-table-column label="闅忚鏃堕棿" + sortable + align="center" + prop="visitTime" + width="160" + > + <template slot-scope="scope"> + <span>{{ parseTime(scope.row.visitTime) }}</span> + </template> + </el-table-column> + <el-table-column + label="瀹屾垚鏃堕棿" sortable align="center" prop="finishtime" @@ -635,7 +686,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"; @@ -736,7 +787,7 @@ value: 0, }, { - name: "寰呭彂閫�", + name: "寰呮墽琛�", value: 0, }, { @@ -745,7 +796,7 @@ }, // { - // name: "宸插彂閫佹湭棰嗗彇", + // name: "琛ㄥ崟宸插彂閫�", // value: 0, // }, ], @@ -775,15 +826,15 @@ topicoptions: [ { value: 1, - label: "琚鍙�", + label: "琛ㄥ崟宸查鍙�", }, { value: 2, - label: "寰呭彂閫�", + label: "寰呮墽琛�", }, { value: 3, - label: "宸插彂閫佹湭棰嗗彇", + label: "琛ㄥ崟宸插彂閫�", }, { value: 4, @@ -835,6 +886,11 @@ value: dept.districtCode, }; }); + + if (store.getters.belongWards.length) { + this.topqueryParams.leavehospitaldistrictcodes=[store.getters.belongWards[0].districtCode] + this.topqueryParams.scopetype=[2,store.getters.belongWards[0].districtCode] + } if (this.errtype) { this.toleadExport(2); } else { @@ -906,6 +962,67 @@ 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) { + 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.endtime) { + item.endDay = this.daysBetween(item.endtime); + } + + if (item.preachform) { + if (item.endtime) { + 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; + }); + }, // 鏌ョ湅闂ㄨ瘖闅忚璇︽儏 Referencequestion(row) { this.previewVisible = true; -- Gitblit v1.9.3