From 45b297a5943cc7b68b03acde46ec317431402066 Mon Sep 17 00:00:00 2001 From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com> Date: 星期四, 19 十月 2023 19:00:28 +0800 Subject: [PATCH] sjtj --- src/views/hosp/about/index.vue | 33 ++++++++++++++++++++++----------- 1 files changed, 22 insertions(+), 11 deletions(-) diff --git a/src/views/hosp/about/index.vue b/src/views/hosp/about/index.vue index 046b9b0..181961c 100644 --- a/src/views/hosp/about/index.vue +++ b/src/views/hosp/about/index.vue @@ -2,7 +2,7 @@ <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: 200px" placeholder="璇烽�夋嫨浜ゆ鍛�" clearable + <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> @@ -19,11 +19,10 @@ <el-row :gutter="10" class="mb8"> <el-col :span="1.5"> - <el-button icon="el-icon-edit" size="mini" @click="handleDelete" >鎾ら攢</el-button> + <el-button icon="el-icon-edit" size="mini" @click="handleDelete">鎾ら攢</el-button> </el-col> <el-col :span="1.5"> - <el-button icon="el-icon-edit" size="mini" @click="handledocument" - >琛ユ墦鍗曟嵁</el-button> + <el-button icon="el-icon-edit" size="mini" @click="handledocument">琛ユ墦鍗曟嵁</el-button> </el-col> </el-row> @@ -57,7 +56,7 @@ </template> <script> -import { getcolllist, getdatalist, delById } from "@/api/hosp/water"; +import { getcolllist, getdatalist, delById, getNewDate } from "@/api/hosp/water"; import { getInfo } from "@/api/login"; import moment from "moment"; @@ -68,7 +67,7 @@ pickerOptions: { shortcuts: [ { - text: "鏈�杩戜竴鍛�", + text: "杩戜竴鍛�", onClick(picker) { const end = new Date(); const start = new Date(); @@ -77,7 +76,7 @@ }, }, { - text: "鏈�杩戜竴涓湀", + text: "杩戜竴鏈�", onClick(picker) { const end = new Date(); const start = new Date(); @@ -86,7 +85,7 @@ }, }, { - text: "鏈�杩戜笁涓湀", + text: "杩戜笁鏈�", onClick(picker) { const end = new Date(); const start = new Date(); @@ -121,6 +120,7 @@ showSearch: true, // 鎬绘潯鏁� total: 0, + item: "", userId: "", // 寮瑰嚭灞傛爣棰� title: "", @@ -157,10 +157,20 @@ this.userId = response.user.userId; this.queryParams.tollCollectorName = response.user.nickName; }); + + getNewDate().then((response) => { + if (response.code === 200) { + this.value1 = [ + moment(response.data).format("YYYY-MM-DD 00:00:00"), + moment(response.data).format("YYYY-MM-DD HH:mm:ss") + ]; + } + }); + let data = { tollCollectorId: this.tollCollectorId, accountBeginTime: this.value1[0], - accountEndTime: new Date(new Date().getTime() + 8 * 3600 * 1000) + accountEndTime: this.value1[1] .toJSON() .substr(0, 19) .replace("T", " "), @@ -259,7 +269,7 @@ }, handledocument() { const viewNum = "809743614817824768"; - let accountId = this.selectList[0].accountId + let accountId = this.selectList[0].accountId const params = { viewNum, accountId }; this.$tab.openPage("缁撹处鍗�", "/report/settlement", params); }, @@ -311,4 +321,5 @@ .el-table .warning-row { background: #e5f3ff !important; -}</style> \ No newline at end of file +} +</style> \ No newline at end of file -- Gitblit v1.8.0