From e0c4ede7fdcacf281bd6b3303d625d87bd4e728c Mon Sep 17 00:00:00 2001 From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com> Date: 星期五, 20 十月 2023 18:08:54 +0800 Subject: [PATCH] hzymxg --- src/views/hosp/Summary/index.vue | 41 ++++++++++++++++++++++++----------------- 1 files changed, 24 insertions(+), 17 deletions(-) diff --git a/src/views/hosp/Summary/index.vue b/src/views/hosp/Summary/index.vue index 6535666..09db6ef 100644 --- a/src/views/hosp/Summary/index.vue +++ b/src/views/hosp/Summary/index.vue @@ -1,7 +1,7 @@ <template> <div class="app-container"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px"> - <el-form-item label="鏀惰垂鍛�" prop="tollCollectorId"> + <el-form-item label="姹囨�讳汉鍛�" prop="tollCollectorId"> <el-select v-model="queryParams.tollCollectorId" filterable style="width: 130px" placeholder="璇烽�夋嫨浜ゆ鍛�" clearable @clear="getCompanyList"> <el-option v-for="dict in CompanyList" :key="dict.userId" :label="dict.nickName" :value="dict.userId" /> @@ -24,19 +24,18 @@ <el-row :gutter="10" class="mb8"> <el-col :span="1.5"> - <el-button type="primary" size="mini" :disabled="single" @click="handleUpdate" - >姹囨��</el-button> + <el-button type="primary" size="mini" @click="handleUpdate">姹囨��</el-button> </el-col> </el-row> - <el-table style="width: 80%" :data="list" border max-height="720px" @selection-change="handleSelect"> + <el-table style="width: 80%" :data="list" border max-height="720px" @selection-change="handleSelect"> <el-table-column type="selection" width="55"> </el-table-column> - <el-table-column label="浜ゆ鍛�" align="center" prop="tollCollector" :show-overflow-tooltip="true" /> + <el-table-column label="姹囨�讳汉鍛�" align="center" prop="tollCollector" :show-overflow-tooltip="true" /> <el-table-column label="鏀惰垂閲戦" align="center" prop="amountReceived" :show-overflow-tooltip="true" /> <el-table-column label="閫�璐归噾棰�" align="center" prop="refundAmount" :show-overflow-tooltip="true" /> <el-table-column label="搴斾氦娆�" align="center" prop="payable" :show-overflow-tooltip="true" /> <el-table-column label="浜よ处鏃堕棿" align="center" prop="createTime" :show-overflow-tooltip="true" /> - <el-table-column label="璧锋鏃ユ湡" align="center" prop="accountBeginTime" :show-overflow-tooltip="true" /> - <el-table-column label="缁堟鏃ユ湡" align="center" prop="accountEndTime" :show-overflow-tooltip="true" /> + <el-table-column label="璧峰鏃堕棿" align="center" prop="accountBeginTime" :show-overflow-tooltip="true" /> + <el-table-column label="鎴鏃堕棿" align="center" prop="accountEndTime" :show-overflow-tooltip="true" /> </el-table> <!-- <pagination v-show="total>0" @@ -49,8 +48,8 @@ </template> <script> -import { getlistWater, getWater, getdatalist, addTjSummary } from "@/api/hosp/water"; -import { getHzList, } from "@/api/hosp/Summary"; +import { getlistWater, getWater, getdatalist, addTjSummary, getNewDate,getbigntime } from "@/api/hosp/water"; +import { getInfo } from "@/api/login"; import moment from "moment"; export default { name: "Water", @@ -64,8 +63,6 @@ // 閫変腑鏁扮粍 ids: [], CompanyList: [], - // 闈炲崟涓鐢� - single: true, // 闈炲涓鐢� multiple: true, // 鏄剧ず鎼滅储鏉′欢 @@ -114,6 +111,20 @@ getdatalist().then((response) => { this.CompanyList = response.data; this.loading = false; + getInfo().then((response) => { + this.queryParams.tollCollectorId = response.user.userId; + }); + }); + getNewDate().then((response) => { + if (response.code === 200) { + this.queryParams.accountEndTime = moment(response.data).format("YYYY-MM-DD HH:mm:ss") + } + }); + getbigntime().then((response) => { + if (response.code === 200) { + this.queryParams.accountBeginTime = + moment(response.data).format("YYYY-MM-DD HH:mm:ss") + } }); }, /** 鏌ヨ浣撴娴佹按鍒楄〃 */ @@ -165,15 +176,11 @@ }, handleSelect(selection, val) { - if (selection.length > 1) { - this.single = false - } else { - this.single = true - } + this.ids = [] selection.forEach(element => { this.ids.push(element.id) }); - + console.log(this.ids);//姝や紶閫掍釜浜虹粨璐﹀崟鍙锋湁閲嶅 }, /** 淇敼鎸夐挳鎿嶄綔 */ -- Gitblit v1.8.0