From ba57b519a005cd816f1a178f2c062426cff13f7c Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期二, 15 七月 2025 11:09:07 +0800 Subject: [PATCH] 测试完成 --- src/views/patient/follow/index.vue | 98 +++++++++++++++++++++++++++++++++++++++--------- 1 files changed, 79 insertions(+), 19 deletions(-) diff --git a/src/views/patient/follow/index.vue b/src/views/patient/follow/index.vue index 9ddcbc4..7cbabad 100644 --- a/src/views/patient/follow/index.vue +++ b/src/views/patient/follow/index.vue @@ -246,20 +246,34 @@ @keyup.enter.native="handleQuery" /> </el-form-item> - <!-- <el-form-item label="鎮h�呰寖鍥�" prop="tagId"> - <el-select - v-model="filtrqueryParams.searchscope" - placeholder="璇烽�夋嫨鎮h�呰寖鍥�" + <el-form-item label="浠诲姟绫诲瀷"> + <el-select + v-model="filtrqueryParams.allhosp" + placeholder="璇烽�夋嫨鏂板绫诲瀷" + > + <el-option + v-for="item in taskoptions" + :key="item.value" + :label="item.label" + :value="item.value" > - <el-option - v-for="item in source" - :key="item.value" - :label="item.label" - :value="item.value" - > - </el-option> - </el-select> - </el-form-item> --> + </el-option> + </el-select> + </el-form-item> + <el-form-item label="鎮h�呰寖鍥�" prop="tagId"> + <el-select + v-model="filtrqueryParams.searchscope" + placeholder="璇烽�夋嫨鎮h�呰寖鍥�" + > + <el-option + v-for="item in source" + :key="item.value" + :label="item.label" + :value="item.value" + > + </el-option> + </el-select> + </el-form-item> <el-form-item> <el-button @@ -272,7 +286,7 @@ </el-form-item> </el-form> <el-table v-loading="filtrloading" :data="filtruserList" height="660"> - <el-table-column type="selection" width="50" align="center" /> + <!-- <el-table-column type="selection" width="50" align="center" /> --> <el-table-column fixed label="濮撳悕" @@ -395,11 +409,11 @@ </el-table> <pagination - v-show="total > 0" - :total="total" + v-show="filtrtotal > 0" + :total="filtrtotal" :page.sync="filtrqueryParams.pageNum" :limit.sync="filtrqueryParams.pageSize" - @pagination="getList" + @pagination="distribute" /> </el-col> </el-row> @@ -521,6 +535,20 @@ { papersname: "涓浗娓境灞呮皯韬唤璇�" }, { papersname: "涓浗鍙版咕灞呮皯韬唤璇�" }, ], + source: [ + { + value: 0, + label: "鍏ㄩ儴鎮h��", + }, + { + value: 1, + label: "绉戝鎮h��", + }, + { + value: 2, + label: "鐥呭尯鎮h��", + }, + ], // 琛ㄥ崟鍙傛暟 form: { name: "", @@ -536,6 +564,8 @@ notrequiredFlag: 0, pageNum: 1, pageSize: 10, + allhosp: 0, + searchscope:0, }, //瀵煎叆杩涘害 dractive: 1, @@ -568,6 +598,24 @@ { value: 2, label: "鐥呭尯鎮h��", + }, + ], + taskoptions: [ + { + value: "4", + label: "鍑洪櫌鐥呬汉", + }, + { + value: "1", + label: "鍦ㄩ櫌鐥呬汉", + }, + { + value: "2", + label: "闂ㄨ瘖鐥呬汉", + }, + { + value: 0, + label: "鍏ㄩ儴", }, ], whether: [ @@ -604,7 +652,7 @@ queryParams: { pageNum: 1, pageSize: 10, - allhosp: "1", + allhosp: 0, notrequiredFlag: 1, idcardno: undefined, name: undefined, @@ -690,7 +738,19 @@ distribute() { this.distributeVisible = true; this.filtrloading = true; - + if (this.filtrqueryParams.searchscope == 1) { + this.filtrqueryParams.deptcodes = store.getters.belongDepts.map( + (obj) => obj.deptCode + ); + this.filtrqueryParams.hospitaldistrictcodes = []; + } else if (this.filtrqueryParams.searchscope == 2) { + this.filtrqueryParams.hospitaldistrictcodes = + store.getters.belongWards.map((obj) => obj.districtCode); + this.filtrqueryParams.deptcodes = []; + } else { + this.filtrqueryParams.deptcodes = []; + this.filtrqueryParams.hospitaldistrictcodes = []; + } messagelistpatient(this.filtrqueryParams).then((response) => { this.filtruserList = response.rows; this.filtrtotal = response.total; -- Gitblit v1.9.3