From 5319d5b95497b5b546947ac340c14c71e5b54ca6 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期三, 10 十二月 2025 09:57:58 +0800
Subject: [PATCH] 测试完成
---
src/views/patient/physical/index.vue | 119 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 119 insertions(+), 0 deletions(-)
diff --git a/src/views/patient/physical/index.vue b/src/views/patient/physical/index.vue
index 2d49c44..eb49521 100644
--- a/src/views/patient/physical/index.vue
+++ b/src/views/patient/physical/index.vue
@@ -78,7 +78,27 @@
placeholder="璇烽�夋嫨浠诲姟鍚嶇О"
></el-input>
</el-form-item>
+ <el-form-item label="寰楀垎鍖洪棿">
+ <el-input
+ v-model="topqueryParams.scoreStart"
+ placeholder="寮�濮嬪垎"
+ style="width: 100px"
+ ></el-input>
+ <span style="margin: 0 10px">-</span>
+ <el-input
+ v-model="topqueryParams.scoreEnd"
+ placeholder="缁撴潫鍒�"
+ style="width: 100px"
+ ></el-input>
+ </el-form-item>
+ <el-form-item label="绛旀鏌ヨ">
+ <el-input
+ v-model="topqueryParams.detailResult"
+ placeholder="璇疯緭鍏ョ瓟妗堝叧閿瘝"
+ style="width: 200px"
+ ></el-input>
+ </el-form-item>
<el-form-item label="鍑洪櫌鏃堕棿">
<el-date-picker
v-model="dateRange"
@@ -133,6 +153,19 @@
>
</el-form-item>
</el-form>
+ <el-row :gutter="10" style="margin-bottom: 15px;">
+ <!-- <el-col :span="24">
+ <span style="margin-right: 10px; font-size: 14px; color: #606266;">蹇�熼�夋嫨锛�</span>
+ <el-button-group>
+ <el-button size="mini" @click="quickScoreRange('excellent')">浼樼(90-100)</el-button>
+ <el-button size="mini" @click="quickScoreRange('good')">鑹ソ(80-89)</el-button>
+ <el-button size="mini" @click="quickScoreRange('medium')">涓瓑(70-79)</el-button>
+ <el-button size="mini" @click="quickScoreRange('pass')">鍙婃牸(60-69)</el-button>
+ <el-button size="mini" @click="quickScoreRange('fail')">涓嶅強鏍�(0-59)</el-button>
+ <el-button size="mini" @click="resetScoreQuery">閲嶇疆</el-button>
+ </el-button-group>
+ </el-col> -->
+</el-row>
<el-divider></el-divider>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
@@ -269,6 +302,17 @@
:options="dict.type.sys_suggest"
:value="scope.row.suggest"
/>
+ </template>
+ </el-table-column>
+ <el-table-column
+ label="寰楀垎"
+ align="center"
+ key="score"
+ prop="score"
+ width="100"
+ >
+ <template slot-scope="scope">
+ <span>{{ scope.row.score || "-" }}</span>
</template>
</el-table-column>
<el-table-column
@@ -765,6 +809,9 @@
pageSize: 10,
serviceType: 1,
searchscope: 3,
+ scoreStart: undefined, // 寰楀垎寮�濮�
+ scoreEnd: undefined, // 寰楀垎缁撴潫
+ detailResult: undefined, // 缁撴灉鏌ヨ
scopetype: [],
leaveldeptcodes: [],
leavehospitaldistrictcodes: [],
@@ -850,6 +897,8 @@
methods: {
/** 鏌ヨ闂ㄨ瘖闅忚鏈嶅姟鍒楄〃 */
getList(refresh) {
+ // 澶勭悊寰楀垎鍖洪棿鏌ヨ閫昏緫
+ this.handleScoreQuery();
// 榛樿鍏ㄩ儴
if (this.topqueryParams.searchscope == 3) {
this.topqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
@@ -869,6 +918,7 @@
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);
@@ -906,6 +956,47 @@
this.total = response.total;
});
},
+ /** 寰楀垎鍖洪棿蹇�熼�夋嫨 */
+ quickScoreRange(range) {
+ const ranges = {
+ 'excellent': { start: 90, end: 100 },
+ 'good': { start: 80, end: 89 },
+ 'medium': { start: 70, end: 79 },
+ 'pass': { start: 60, end: 69 },
+ 'fail': { start: 0, end: 59 }
+ };
+
+ if (ranges[range]) {
+ this.topqueryParams.scoreStart = ranges[range].start;
+ this.topqueryParams.scoreEnd = ranges[range].end;
+ this.handleQuery();
+ }
+ },
+ /** 澶勭悊寰楀垎鍖洪棿鏌ヨ */
+ handleScoreQuery() {
+ // 楠岃瘉寰楀垎鍖洪棿杈撳叆
+ if (this.topqueryParams.scoreStart && isNaN(this.topqueryParams.scoreStart)) {
+ this.$message.warning('寮�濮嬪垎蹇呴』涓烘暟瀛�');
+ this.topqueryParams.scoreStart = undefined;
+ return;
+ }
+
+ if (this.topqueryParams.scoreEnd && isNaN(this.topqueryParams.scoreEnd)) {
+ this.$message.warning('缁撴潫鍒嗗繀椤讳负鏁板瓧');
+ this.topqueryParams.scoreEnd = undefined;
+ return;
+ }
+
+ // 纭繚寮�濮嬪垎涓嶅ぇ浜庣粨鏉熷垎
+ if (this.topqueryParams.scoreStart && this.topqueryParams.scoreEnd) {
+ if (parseFloat(this.topqueryParams.scoreStart) > parseFloat(this.topqueryParams.scoreEnd)) {
+ this.$message.warning('寮�濮嬪垎涓嶈兘澶т簬缁撴潫鍒�');
+ // 浜ゆ崲鍊�
+ [this.topqueryParams.scoreStart, this.topqueryParams.scoreEnd] =
+ [this.topqueryParams.scoreEnd, this.topqueryParams.scoreStart];
+ }
+ }
+ },
// 鏌ョ湅闂ㄨ瘖闅忚璇︽儏
Referencequestion(row) {
this.previewVisible = true;
@@ -1013,6 +1104,11 @@
this.single = selection.length != 1;
this.multiple = !selection.length;
},
+ resetScoreQuery() {
+ this.topqueryParams.scoreStart = undefined;
+ this.topqueryParams.scoreEnd = undefined;
+ this.topqueryParams.detailResult = undefined;
+ },
//鍒犻櫎閫夐」
handleClose(tag) {
this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1);
@@ -1222,7 +1318,30 @@
font-size: 23px;
}
}
+/* 寰楀垎鍖洪棿杈撳叆妗嗘牱寮� */
+.score-range-input {
+ display: flex;
+ align-items: center;
+ .score-separator {
+ margin: 0 10px;
+ color: #909399;
+ }
+}
+
+/* 缁撴灉鏍囩鏍峰紡 */
+.result-tag {
+ margin: 2px;
+}
+
+/* 蹇�熼�夋嫨鎸夐挳鏍峰紡 */
+.quick-score-buttons {
+ margin-bottom: 15px;
+
+ .el-button-group {
+ margin-left: 10px;
+ }
+}
.uploading {
margin-top: 20px;
margin: 20px;
--
Gitblit v1.9.3