| | |
| | | <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: 200px" 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="110px"> |
| | | <el-row> |
| | | <el-col :span="6"> |
| | | <el-form-item label="交款员" prop="tollCollectorName" style="display: flex;"> |
| | | <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-col> |
| | | <el-col :span="14"> |
| | | <el-form-item label="交账时间" prop="tollCollectorName" style="display: flex;"> |
| | | <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-col> |
| | | <el-col :span="3"> |
| | | <el-form-item> |
| | | <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | |
| | | |
| | | </el-form> |
| | | |
| | | <el-row :gutter="10" class="mb8"> |
| | | <el-col :span="1.5"> |
| | | <el-button icon="el-icon-edit" size="mini" @click="handleDelete" v-hasPermi="['hosp:water:edit']">撤销</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" |
| | | v-hasPermi="['hosp:water:edit']">补打单据</el-button> |
| | | <el-button icon="el-icon-edit" size="mini" @click="handledocument">补打单据</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | |
| | | <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"> |
| | |
| | | </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"; |
| | | |
| | |
| | | pickerOptions: { |
| | | shortcuts: [ |
| | | { |
| | | text: "最近一周", |
| | | text: "近一周", |
| | | onClick(picker) { |
| | | const end = new Date(); |
| | | const start = new Date(); |
| | |
| | | }, |
| | | }, |
| | | { |
| | | text: "最近一个月", |
| | | text: "近一月", |
| | | onClick(picker) { |
| | | const end = new Date(); |
| | | const start = new Date(); |
| | |
| | | }, |
| | | }, |
| | | { |
| | | text: "最近三个月", |
| | | text: "近三月", |
| | | onClick(picker) { |
| | | const end = new Date(); |
| | | const start = new Date(); |
| | |
| | | showSearch: true, |
| | | // 总条数 |
| | | total: 0, |
| | | item: "", |
| | | userId: "", |
| | | // 弹出层标题 |
| | | title: "", |
| | |
| | | this.userId = response.user.userId; |
| | | this.queryParams.tollCollectorName = response.user.nickName; |
| | | }); |
| | | let data = { |
| | | tollCollectorId: this.tollCollectorId, |
| | | accountBeginTime: this.value1[0], |
| | | accountEndTime: new Date(new Date().getTime() + 8 * 3600 * 1000) |
| | | .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(); |
| | | } |
| | | } |
| | | |
| | | // this.tableData.forEach(item => { |
| | | // this.allList = item.tjTollCollectorDetailList |
| | | // }) |
| | | this.total = res.data.total; |
| | | 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: 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; |
| | | // }); |
| | | }, |
| | | // 选中下拉框Id |
| | | idFn(value) { |
| | |
| | | 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( |
| | |
| | | }, |
| | | 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); |
| | | }, |
| | |
| | | type: "success", |
| | | }); |
| | | this.getList(); |
| | | this.handleQuery() |
| | | }); |
| | | }, |
| | | }, |
| | |
| | | <style> |
| | | .el-table__header-wrapper .el-checkbox { |
| | | display: none; |
| | | } |
| | | |
| | | .el-date-editor--datetimerange.el-input, .el-date-editor--datetimerange.el-input__inner { |
| | | width: 100%; |
| | | } |
| | | |
| | | .pag { |
| | |
| | | |
| | | .el-table .warning-row { |
| | | background: #e5f3ff !important; |
| | | }</style> |
| | | } |
| | | </style> |