From b7092c2bf77696eb13fd680cb006211c17b48f5c Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期四, 15 五月 2025 18:00:15 +0800 Subject: [PATCH] 测试完成 --- src/views/patient/medtechnician/SpecializedService.vue | 135 +++++++++++++++++++++++++++++++------------- 1 files changed, 94 insertions(+), 41 deletions(-) diff --git a/src/views/patient/medtechnician/SpecializedService.vue b/src/views/patient/medtechnician/SpecializedService.vue index 4fe475b..a5a9493 100644 --- a/src/views/patient/medtechnician/SpecializedService.vue +++ b/src/views/patient/medtechnician/SpecializedService.vue @@ -17,7 +17,7 @@ font-weight: 600; " > - {{ item.value }} + {{ item.value ? item.value : 0 }} </div> </div> </el-card> @@ -60,18 +60,13 @@ ></el-input> </el-form-item> <el-form-item label="鎮h�呰寖鍥�" prop="status"> - <el-select - v-model="topqueryParams.searchscope" - placeholder="璇烽�夋嫨鎮h�呰寖鍥�" - > - <el-option - v-for="item in source" - :key="item.value" - :label="item.label" - :value="item.value" - > - </el-option> - </el-select> + <el-cascader + v-model="topqueryParams.scopetype" + placeholder="榛樿鍏ㄩ儴" + :options="sourcetype" + :props="{ expandTrigger: 'hover' }" + @change="handleChange" + ></el-cascader> </el-form-item> <el-form-item label="浠诲姟缁勭姸鎬�" prop="status"> @@ -120,7 +115,6 @@ icon="el-icon-upload2" size="medium" @click="handleExport" - v-hasPermi="['system:user:export']" >瀵煎嚭</el-button > </div> @@ -158,7 +152,7 @@ <el-table v-loading="loading" :data="userList" - height="660" + height="808" :row-class-name="tableRowClassName" @selection-change="handleSelectionChange" > @@ -174,6 +168,7 @@ <!-- <el-table-column label="搴忓彿" fixed align="center" key="id" prop="id" /> --> <el-table-column label="濮撳悕" + width="100" fixed align="center" key="sendname" @@ -189,17 +184,17 @@ <template slot-scope="scope"> <div v-if="scope.row.sendstate == 1"> <el-tag type="primary" :disable-transitions="false" - >琚鍙�</el-tag + >琛ㄥ崟宸查鍙�</el-tag > </div> <div v-if="scope.row.sendstate == 2"> <el-tag type="primary" :disable-transitions="false" - >寰呭彂閫�</el-tag + >寰呴殢璁�</el-tag > </div> <div v-if="scope.row.sendstate == 3"> <el-tag type="success" :disable-transitions="false" - >宸插彂閫佹湭棰嗗彇</el-tag + >琛ㄥ崟宸插彂閫�</el-tag > </div> <div v-if="scope.row.sendstate == 4"> @@ -224,7 +219,7 @@ /> <el-table-column - label="浜哄伐澶勭悊鎰忚" + label="澶勭悊鎰忚" align="center" key="suggest" prop="suggest" @@ -240,12 +235,12 @@ <el-table-column label="闅忚浜哄憳" align="center" - key="createBy" - prop="createBy" + key="updateBy" + prop="updateBy" width="120" /> <el-table-column - label="闅忚鏃堕棿" + label="闅忚瀹屾垚鏃堕棿" sortable align="center" prop="finishtime" @@ -286,7 +281,7 @@ > <template slot-scope="scope"> <span>{{ - scope.row.endDay ? scope.row.endDay + "澶�" : "鏃ユ湡缂哄け" + scope.row.endDay ? scope.row.endDay + "澶�" : "" }}</span> </template> </el-table-column> @@ -329,7 +324,7 @@ /> --> <!-- <el-table-column label="骞撮緞" align="center" key="age" prop="age" /> --> - <!-- <el-table-column label="鎬у埆" align="center" key="sex" prop="sex" /> --> + <!-- <el-table-column label="鎬у埆"width="100" align="center" key="sex" prop="sex" /> --> <!-- <el-table-column label="搴婂彿" align="center" key="badNo" prop="badNo" /> --> <el-table-column label="绉戝" @@ -467,7 +462,7 @@ @pagination="getList" /> </el-row> - <!-- 娣诲姞鎴栦慨鏀归棬璇婇殢璁垮璇濇 --> + <!-- 娣诲姞鎴栦慨鏀瑰奖鍍忛殢璁垮璇濇 --> <el-dialog :title="title" :visible.sync="addalteropen" @@ -510,7 +505,7 @@ </el-row> <el-row :gutter="20"> <el-col :span="24"> - <el-form-item label="闂ㄨ瘖闅忚瑕佹眰"> + <el-form-item label="褰卞儚闅忚瑕佹眰"> <el-input type="textarea" v-model="form.desc"></el-input> </el-form-item> </el-col> @@ -635,7 +630,7 @@ // 鐢ㄦ埛琛ㄦ牸鏁版嵁 userList: null, // 寮瑰嚭灞傛爣棰� - title: "鏂板闂ㄨ瘖闅忚", + title: "鏂板褰卞儚闅忚", // 鏄惁鏄剧ず淇敼銆佹坊鍔犲脊鍑哄眰 addalteropen: false, // 淇敼鍙戦�佹椂闂村璇濇 @@ -651,16 +646,32 @@ ruleForm: { type: [], }, + sourcetype: [ + { + value: 1, + label: "绉戝", + children: [], + }, + { + value: 2, + label: "鐥呭尯", + children: [], + }, + { + value: 3, + label: "鍏ㄩ儴", + }, + ], dynamicTags: ["閫夐」涓�", "閫夐」浜�", "閫夐」涓�"], //閫夐」 inputVisible: false, inputValue: "", - previewVisible: false, //闂ㄨ瘖闅忚棰勮寮规 + previewVisible: false, //褰卞儚闅忚棰勮寮规 radio: "", radios: [], - previewtype: 2, //棰勮闂ㄨ瘖闅忚绫诲瀷 + previewtype: 2, //棰勮褰卞儚闅忚绫诲瀷 total: 0, // 鎬绘潯鏁� - ImportQuantity: 999, //瀵奸棬璇婇殢璁挎暟閲� - //棰勮闂ㄨ瘖闅忚淇℃伅 + ImportQuantity: 999, //瀵煎奖鍍忛殢璁挎暟閲� + //棰勮褰卞儚闅忚淇℃伅 previewvalue: { username: "杩欎釜鍖荤敓瀵逛綘鎬庝箞鏍�", }, @@ -703,11 +714,11 @@ value: 0, }, { - name: "琚鍙�", + name: "琛ㄥ崟宸查鍙�", value: 0, }, { - name: "宸插彂閫佹湭棰嗗彇", + name: "琛ㄥ崟宸插彂閫�", value: 0, }, ], @@ -754,7 +765,11 @@ pageNum: 1, pageSize: 10, serviceType: 2, + sendstate:2, searchscope: 2, + scopetype: [], + leaveldeptcodes: [], + leavehospitaldistrictcodes: [], }, propss: { multiple: true }, options: [], @@ -762,15 +777,15 @@ topicoptions: [ { value: 1, - label: "琚鍙�", + label: "琛ㄥ崟宸查鍙�", }, { value: 2, - label: "寰呭彂閫�", + label: "寰呴殢璁�", }, { value: 3, - label: "宸插彂閫佹湭棰嗗彇", + label: "琛ㄥ崟宸插彂閫�", }, { value: 4, @@ -805,7 +820,18 @@ created() { this.serviceState = store.getters.serviceState; this.checkboxlist = store.getters.checkboxlist; - + this.sourcetype[0].children = store.getters.belongDepts.map((dept) => { + return { + label: dept.deptName, + value: dept.deptCode, + }; + }); + this.sourcetype[1].children = store.getters.belongWards.map((dept) => { + return { + label: dept.districtName, + value: dept.districtCode, + }; + }); this.getList(); this.getConfigKey("sys.user.initPassword").then((response) => { this.initPassword = response.msg; @@ -815,7 +841,7 @@ this.getList(); }, methods: { - /** 鏌ヨ闂ㄨ瘖闅忚鏈嶅姟鍒楄〃 */ + /** 鏌ヨ褰卞儚闅忚鏈嶅姟鍒楄〃 */ getList() { if (this.topqueryParams.searchscope == 1) { this.topqueryParams.leaveldeptcodes = store.getters.belongDepts.map( @@ -834,6 +860,11 @@ store.getters.belongWards.map((obj) => obj.districtCode); } this.loading = true; + 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.cardlist[0].value = @@ -860,7 +891,7 @@ this.loading = false; }); }, - // 鏌ョ湅闂ㄨ瘖闅忚璇︽儏 + // 鏌ョ湅褰卞儚闅忚璇︽儏 Referencequestion(row) { this.previewVisible = true; }, @@ -878,7 +909,7 @@ this.options = []; } }, - // 闂ㄨ瘖闅忚鐘舵�佷慨鏀� + // 褰卞儚闅忚鐘舵�佷慨鏀� handleStatusChange(row) { let text = row.status === "0" ? "鍚敤" : "鍋滅敤"; this.$modal @@ -897,6 +928,25 @@ cancel() { this.addalteropen = false; this.reset(); + }, + // 鎮h�呰寖鍥村鐞� + handleChange(value) { + let type = value[0]; + let code = value.slice(-1)[0]; + this.topqueryParams.leavehospitaldistrictcodes = []; + this.topqueryParams.leaveldeptcodes = []; + + if (type == 1) { + this.topqueryParams.leaveldeptcodes.push(code); + this.topqueryParams.leavehospitaldistrictcodes = []; + this.topqueryParams.searchscope = 1; + } else if (type == 2) { + this.topqueryParams.leavehospitaldistrictcodes.push(code); + this.topqueryParams.leaveldeptcodes = []; + this.topqueryParams.searchscope = 2; + } else { + this.topqueryParams.searchscope = 3; + } }, // 琛ㄥ崟閲嶇疆 reset() { @@ -948,6 +998,7 @@ pageSize: 10, serviceType: 2, searchscope: 2, + sendstate:2, }; this.handleQuery(); }, @@ -1101,8 +1152,10 @@ }, /** 瀵煎嚭鎸夐挳鎿嶄綔 */ handleExport() { + this.topqueryParams.pageNum = null; + this.topqueryParams.pageSize = null; this.download( - "system/user/export", + "smartor/serviceSubtask/patItemExport", { ...this.topqueryParams, }, -- Gitblit v1.9.3