From 510b43356f18aa5be351a0990c7cdc1d4478b5e7 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期三, 09 七月 2025 14:27:00 +0800 Subject: [PATCH] 测试完成 --- src/views/patient/patient/outpatient.vue | 46 +++++++++++++++++++++++++++++----------------- 1 files changed, 29 insertions(+), 17 deletions(-) diff --git a/src/views/patient/patient/outpatient.vue b/src/views/patient/patient/outpatient.vue index 511dfb1..465026d 100644 --- a/src/views/patient/patient/outpatient.vue +++ b/src/views/patient/patient/outpatient.vue @@ -20,9 +20,9 @@ @keyup.enter.native="handleQuery" /> </el-form-item> - <el-form-item label="鎮h�呯紪鍙�" prop="patid"> + <el-form-item label="鎮h�呯紪鍙�" prop="patno"> <el-input - v-model="queryParams.patid" + v-model="queryParams.patno" placeholder="璇疯緭鍏ユ偅鑰呯紪鍙�" clearable style="width: 250px" @@ -43,12 +43,21 @@ </el-form-item> <el-row> <el-form-item label=" 灏辫瘖鏃ユ湡 " prop="createTime"> - <el-date-picker + <!-- <el-date-picker clearable v-model="queryParams.createTime" type="date" value-format="yyyy-MM-dd" placeholder="璇烽�夋嫨 灏辫瘖鏃ユ湡 " + > + </el-date-picker> --> + <el-date-picker + v-model="pickertime" + type="daterange" + range-separator="鑷�" + value-format="yyyy-MM-dd" + start-placeholder="寮�濮嬫棩鏈�" + end-placeholder="缁撴潫鏃ユ湡" > </el-date-picker> </el-form-item> @@ -151,20 +160,20 @@ <el-table-column label="灏辫瘖鏃堕棿" align="center" - key="createTime" - prop="createTime" + key="admitdate" + prop="admitdate" width="160" > <template slot-scope="scope"> - <span>{{ formatTime(scope.row.createTime) }}</span> + <span>{{ formatTime(scope.row.admitdate) }}</span> </template> </el-table-column> <el-table-column - label="闂ㄨ瘖鍙�" + label="鎮h�呯紪鍙�" align="center" - key="patid" - prop="patid" + key="patno" + prop="patno" /> <el-table-column label="濮撳悕" @@ -247,7 +256,7 @@ @click=" $router.push({ path: '/patient/patient/profile/', - query: { id: scope.row.patid }, + query: { id: scope.row.patno }, }) " v-hasPermi="['system:user:edit']" @@ -407,7 +416,7 @@ initPassword: undefined, amendtag: false, //鏄惁淇敼 // 鏃ユ湡鑼冨洿 - dateRange: [], + pickertime:[], paperstypes: [ { papersname: "韬唤璇�" }, { papersname: "鎶ょ収" }, @@ -468,6 +477,7 @@ pageNum: 1, pageSize: 10, }, + // 琛ㄥ崟鏍¢獙 rules: { // userName: [ @@ -594,20 +604,22 @@ /** 鎼滅储鎸夐挳鎿嶄綔 */ handleQuery() { this.queryParams.pageNum = 1; + this.queryParams.starttime=this.pickertime[0]; + this.queryParams.endtime=this.pickertime[1]; this.getList(); }, /** 閲嶇疆鎸夐挳鎿嶄綔 */ resetQuery() { - this.dateRange = []; - this.queryParams= { + this.pickertime = []; + (this.queryParams = { pageNum: 1, pageSize: 10, - }, - this.handleQuery(); + }), + this.handleQuery(); }, // 澶氶�夋閫変腑鏁版嵁 handleSelectionChange(selection) { - this.ids = selection.map((item) => item.patid); + this.ids = selection.map((item) => item.patno); this.single = selection.length != 1; this.multiple = !selection.length; }, @@ -621,7 +633,7 @@ /** 淇敼鎸夐挳鎿嶄綔 */ handleUpdate(row) { console.log(row); - const userIds = row.patid || this.ids; + const userIds = row.patno || this.ids; particularpatient(userIds).then((response) => { console.log(response); this.form = response.data; -- Gitblit v1.9.3