From a9e60c109978be9e04897a87e0c5ee99042e9213 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Thu, 6 Apr 2023 11:41:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/revenue/index.vue | 276 ++++++++++++++++++++++++++++- 1 file changed, 272 insertions(+), 4 deletions(-) diff --git a/src/views/system/revenue/index.vue b/src/views/system/revenue/index.vue index 1186b40..db7f40d 100644 --- a/src/views/system/revenue/index.vue +++ b/src/views/system/revenue/index.vue @@ -8,13 +8,25 @@ v-show="showSearch" label-width="100px" > + + + {{ + queryParams.nurseStationName + }} + + - + {{ + queryParams.nursePersonName + }} + + 搜索 重置 @@ -84,6 +96,136 @@ 取 消 + + + + + + + + + + + 搜索 + 重置 + + + + + + + + + + + + + + + + + + + + + + + + + 搜索 + 重置 + + + + + + + + + + + + + + @@ -95,7 +237,8 @@ import { addRevenue, updateRevenue } from "@/api/system/revenue.js"; - +import { getListByUser } from "@/api/system/userlist.js"; +import { listPerson } from "@/api/system/person"; export default { name: "Revenue", data() { @@ -127,14 +270,40 @@ export default { revenueAmount: null, finishOrderTime: null }, + //护理站请求参数 + nurseStationqueryParams: { + pageNum: 1, + pageSize: 10 + }, + //人员请求 + nursePersonqueryParams: { + pageNum: 1, + pageSize: 10 + }, // 表单参数 form: {}, // 表单校验 - rules: {} + rules: {}, + //选择护理站 + nurseStationshow: false, + //选择人员 + nursePersonshow: false, + //护理站list + nurseStationlist: [], + nurseStationtotal: 0, + nurseStationid: null, + //选择人员 + nursePersonshow: false, + //人员list + nursePersonlist: [], + nursePersontotal: 0, + nursePersonid: null }; }, created() { this.getList(); + this.nurseStationinfo(); + this.nursePersoninfo(); }, methods: { /** 查询护理员订单佣金收益信息列表 */ @@ -166,6 +335,11 @@ export default { }; this.resetForm("form"); }, + //点击护理站 + nurseStationNameclick() { + this.nurseStationid = this.queryParams.nurseStationId; + this.nurseStationshow = true; + }, /** 搜索按钮操作 */ handleQuery() { this.queryParams.pageNum = 1; @@ -174,6 +348,10 @@ export default { /** 重置按钮操作 */ resetQuery() { this.resetForm("queryForm"); + this.queryParams = { + pageNum: 1, + pageSize: 10 + }; this.handleQuery(); }, // 多选框选中数据 @@ -243,7 +421,97 @@ export default { }, `revenue_${new Date().getTime()}.xlsx` ); + }, + /** 护理站重置按钮操作 */ + nurseStationcancel() { + this.nurseStationshow = false; + this.nurseStationreset(); + }, + //护理站重置 + nurseStationreset() { + this.nurseStationqueryParams = { + pageNum: 1, + pageSize: 10 + }; + this.nurseStationinfo(); + }, + //护理站请求 + nurseStationinfo() { + this.loading = true; + getListByUser(this.nurseStationqueryParams).then(res => { + this.nurseStationlist = res.rows; + this.nurseStationtotal = res.total; + this.loading = false; + }); + }, + //护理站搜索 + nurseStationhandleQuery() { + this.nurseStationqueryParams.pageNum = 1; + this.nurseStationinfo(); + }, + //护理站click + nurseStationclick(row) { + this.nurseStationid = row.id; + this.queryParams.nurseStationName = row.nurseStationName; + this.queryParams.nurseStationId = row.id; + this.nurseStationshow = false; + }, + + /** 护理人员重置按钮操作 */ + nursePersoncancel() { + this.nursePersonshow = false; + this.nursePersonreset(); + }, + //护理人员重置 + nursePersonreset() { + this.nursePersonqueryParams = { + pageNum: 1, + pageSize: 10 + }; + this.nursePersoninfo(); + }, + //护理人员请求 + nursePersoninfo() { + this.loading = true; + listPerson(this.nursePersonqueryParams).then(res => { + res.rows.forEach(e => { + if (e.modifyCheckStatus == "CHECKED") { + e.modifyCheckStatus = true; + } else { + e.modifyCheckStatus = false; + } + }); + this.nursePersonlist = res.rows; + this.nursePersontotal = res.total; + this.loading = false; + }); + }, + //护理人员搜索 + nursePersonhandleQuery() { + this.nursePersonqueryParams.pageNum = 1; + this.nursePersoninfo(); + }, + //护理人员click + nursePersonclick(row) { + this.nursePersonid = row.id; + this.queryParams.nursePersonName = row.nursePersonName; + this.queryParams.nurseStationPersonId = row.id; + this.nursePersonshow = false; + }, + //form点击护理人员 + nursePersonNameclick() { + this.nursePersonid = this.queryParams.nurseStationPersonId; + this.nursePersonshow = true; } } }; +