From 401c8356fba9004e3f3301002bbb2267cb1f973f Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期三, 16 四月 2025 20:04:16 +0800 Subject: [PATCH] 测试完成 --- src/views/patient/patient/outpatient.vue | 106 +++++++++++++++++++++++++++++++++-------------------- 1 files changed, 66 insertions(+), 40 deletions(-) diff --git a/src/views/patient/patient/outpatient.vue b/src/views/patient/patient/outpatient.vue index cf24dc1..0619aca 100644 --- a/src/views/patient/patient/outpatient.vue +++ b/src/views/patient/patient/outpatient.vue @@ -11,8 +11,7 @@ v-show="showSearch" label-width="98px" > - <el-form-item label="濮撳悕" - width="100" prop="name"> + <el-form-item label="濮撳悕" width="100" prop="name"> <el-input v-model="queryParams.patname" placeholder="璇疯緭鍏ュ鍚�" @@ -32,22 +31,42 @@ </el-form-item> <el-form-item label="鎮h�呰寖鍥�" prop="status"> - <el-cascader - v-model="queryParams.scopetype" - placeholder="榛樿鍏ㄩ儴" - :options="sourcetype" - :props="{ expandTrigger: 'hover' }" - @change="handleChange" - ></el-cascader> - </el-form-item> + <el-cascader + v-model="queryParams.scopetype" + placeholder="榛樿鍏ㄩ儴" + :options="sourcetype" + :props="{ expandTrigger: 'hover' }" + @change="handleChange" + ></el-cascader> + </el-form-item> <el-row> - <el-form-item label=" 灏辫瘖鏃ユ湡 " prop="admitdate"> + <!-- <el-form-item label=" 灏辫瘖鏃ユ湡 " prop="admitdate"> <el-date-picker clearable v-model="queryParams.admitdate" type="date" value-format="yyyy-MM-dd" placeholder="璇烽�夋嫨 灏辫瘖鏃ユ湡 " + > + </el-date-picker> + </el-form-item> --> + <el-form-item label="灏辫瘖鏃ユ湡"> + <!-- <el-date-picker + v-model="dateRange" + style="width: 240px" + value-format="yyyy-MM-dd" + type="daterange" + range-separator="-" + start-placeholder="寮�濮嬫棩鏈�" + end-placeholder="缁撴潫鏃ユ湡" + ></el-date-picker> --> + <el-date-picker + v-model="dateRange" + type="datetimerange" + value-format="yyyy-MM-dd HH:mm:ss" + start-placeholder="寮�濮嬫棩鏈�" + end-placeholder="缁撴潫鏃ユ湡" + :default-time="['12:00:00']" > </el-date-picker> </el-form-item> @@ -166,29 +185,35 @@ prop="outhospno" /> <el-table-column - label="濮撳悕" - width="100" - align="center" - key="patname" - prop="patname" - > - <template slot-scope="scope"> - <el-button - size="medium" - type="text" - @click=" - $router.push({ + label="濮撳悕" + width="100" + align="center" + key="patname" + prop="patname" + > + <template slot-scope="scope"> + <el-button + size="medium" + type="text" + @click=" + $router.push({ path: '/patient/indexls/', query: { sfzh: scope.row.idcardno }, }) - " - ><span class="button-textsc" - >{{scope.row.patname}}</span - ></el-button - > - </template> - </el-table-column> - <el-table-column label="鎬у埆"width="100" align="center" key="sex" prop="sex"> + " + ><span class="button-textsc">{{ + scope.row.patname + }}</span></el-button + > + </template> + </el-table-column> + <el-table-column + label="鎬у埆" + width="100" + align="center" + key="sex" + prop="sex" + > <template slot-scope="scope"> <span>{{ scope.row.sex == 1 ? "鐢�" : "濂�" }}</span> </template> @@ -334,9 +359,10 @@ <div class="uploading" v-else-if="dractive == 2"> <el-table :data="uploadingData" style="width: 100%"> <el-table-column prop="serial" label="搴忓彿"> </el-table-column> - <el-table-column prop="name" label="濮撳悕" - width="100"> </el-table-column> - <el-table-column prop="sex" label="鎬у埆"width="100"> </el-table-column> + <el-table-column prop="name" label="濮撳悕" width="100"> + </el-table-column> + <el-table-column prop="sex" label="鎬у埆" width="100"> + </el-table-column> <el-table-column prop="certificate" label="璇佷欢绫诲瀷"> </el-table-column> <el-table-column prop="certificatenum" label="璇佷欢鍙风爜"> @@ -387,9 +413,7 @@ updatePatouthosp, delPatouthosp, } from "@/api/smartor/patouthosp"; -import { - particularpatient, -} from "@/api/patient/homepage"; +import { particularpatient } from "@/api/patient/homepage"; import { listtag } from "@/api/system/label"; import { getToken } from "@/utils/auth"; import Treeselect from "@riophae/vue-treeselect"; @@ -590,6 +614,8 @@ this.queryParams.leavehospitaldistrictcodes = store.getters.belongWards.map((obj) => obj.districtCode); } + this.queryParams.beginTime = this.dateRange[0]; + this.queryParams.endTime = this.dateRange[1]; listPatouthosp(this.queryParams).then((response) => { this.userList = response.rows; this.total = response.total; @@ -678,11 +704,11 @@ resetQuery() { this.dateRange = []; this.resetForm("queryForm"); - this.queryParams= { + (this.queryParams = { pageNum: 1, pageSize: 10, - }, - this.handleQuery(); + }), + this.handleQuery(); }, // 澶氶�夋閫変腑鏁版嵁 handleSelectionChange(selection) { -- Gitblit v1.9.3