From cb1f69717eed3b6a61b6c61a8934bac752782b2d Mon Sep 17 00:00:00 2001 From: wwl <xchao828@163.com> Date: 星期三, 05 三月 2025 17:00:38 +0800 Subject: [PATCH] 1 --- src/views/hosp/about/index.vue | 120 ++++++++++++++++++++++++++++++++---------------------------- 1 files changed, 64 insertions(+), 56 deletions(-) diff --git a/src/views/hosp/about/index.vue b/src/views/hosp/about/index.vue index 181961c..e7e2494 100644 --- a/src/views/hosp/about/index.vue +++ b/src/views/hosp/about/index.vue @@ -1,20 +1,28 @@ <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="tollCollectorName"> - <el-select v-model="queryParams.tollCollectorName" filterable style="width: 128px" placeholder="璇烽�夋嫨浜ゆ鍛�" clearable - @clear="getCompanyList" @change="idFn"> - <el-option v-for="dict in CompanyList" :key="dict.userId" :label="dict.nickName" :value="dict.userId" /> - </el-select> - </el-form-item> - <el-form-item label="浜よ处鏃堕棿" prop="tollCollectorName"> - <el-date-picker v-model="value1" type="datetimerange" :picker-options="pickerOptions" - value-format="yyyy-MM-dd HH:mm:ss" start-placeholder="璧锋鏃ユ湡" end-placeholder="缁堟鏃ユ湡" :default-time="['12:00:00']"> - </el-date-picker> - </el-form-item> - <el-form-item> - <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">鎼滅储</el-button> - </el-form-item> + <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="78px"> + + <el-form-item label="浜ゆ鍛�" prop="tollCollectorName" > + <el-select v-model="queryParams.tollCollectorName" filterable placeholder="璇烽�夋嫨浜ゆ鍛�" clearable + @clear="getCompanyList" @change="idFn"> + <el-option v-for="dict in CompanyList" :key="dict.userId" :label="dict.nickName" :value="dict.userId" /> + </el-select> + </el-form-item> + + <el-form-item label="浜よ处鏃堕棿" prop="tollCollectorName" > + <el-date-picker v-model="value1" type="datetimerange" :picker-options="pickerOptions" + value-format="yyyy-MM-dd HH:mm:ss" start-placeholder="璧锋鏃ユ湡" end-placeholder="缁堟鏃ユ湡" + :default-time="['12:00:00']"> + </el-date-picker> + </el-form-item> + + <el-form-item> + <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">鎼滅储</el-button> + </el-form-item> + + + + </el-form> <el-row :gutter="10" class="mb8"> @@ -34,8 +42,8 @@ <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> <div class="pag"> @@ -167,42 +175,39 @@ } }); - let data = { - tollCollectorId: this.tollCollectorId, - accountBeginTime: this.value1[0], - accountEndTime: this.value1[1] - .toJSON() - .substr(0, 19) - .replace("T", " "), - pageNum: this.queryParams.pageNum, - pageSize: this.queryParams.pageSize, - }; - getcolllist(data).then((res) => { - this.tableData = res.data.list; - if (this.tableData.length === 0) { - this.$message({ - message: '璇锋悳绱㈣鎾ら攢鏁版嵁鐨勬椂闂存鍝', - type: 'warning' - }); - } - if (res.code === 200) { - if (this.tableData.length != 0) { - this.$nextTick(() => { - this.$refs.multipleTable.toggleRowSelection( - this.tableData[0], - true - ); - }); - } else { - this.$refs.multipleTable.clearSelection(); - } - } + // let data = { + // tollCollectorId: this.tollCollectorId, + // accountBeginTime: this.value1[0], + // accountEndTime: this.value1[1], + // pageNum: this.queryParams.pageNum, + // pageSize: this.queryParams.pageSize, + // }; + // getcolllist(data).then((res) => { + // this.tableData = res.data.list; + // if (this.tableData.length === 0) { + // this.$message({ + // message: '璇锋悳绱㈣鎾ら攢鏁版嵁鐨勬椂闂存鍝', + // type: 'warning' + // }); + // } + // if (res.code === 200) { + // if (this.tableData.length != 0) { + // this.$nextTick(() => { + // this.$refs.multipleTable.toggleRowSelection( + // this.tableData[0], + // true + // ); + // }); + // } else { + // this.$refs.multipleTable.clearSelection(); + // } + // } - // this.tableData.forEach(item => { - // this.allList = item.tjTollCollectorDetailList - // }) - this.total = res.data.total; - }); + // // this.tableData.forEach(item => { + // // this.allList = item.tjTollCollectorDetailList + // // }) + // this.total = res.data.total; + // }); }, // 閫変腑涓嬫媺妗咺d idFn(value) { @@ -222,15 +227,13 @@ let data = { tollCollectorId: this.tollCollectorId, accountBeginTime: this.value1[0], - accountEndTime: new Date(new Date().getTime() + 8 * 3600 * 1000) - .toJSON() - .substr(0, 19) - .replace("T", " "), + accountEndTime: this.value1[1], pageNum: this.queryParams.pageNum, pageSize: this.queryParams.pageSize, }; getcolllist(data).then((res) => { this.tableData = res.data.list; + this.allList = [] if (this.tableData.length != 0) { this.$nextTick(() => { this.$refs.multipleTable.toggleRowSelection( @@ -292,6 +295,7 @@ type: "success", }); this.getList(); + this.handleQuery() }); }, }, @@ -303,6 +307,10 @@ display: none; } +.el-date-editor--datetimerange.el-input, .el-date-editor--datetimerange.el-input__inner { + width: 100%; +} + .pag { width: 100%; display: flex; -- Gitblit v1.8.0