This commit is contained in:
曹辉 2023-04-06 11:42:12 +08:00
parent 37ec0174c3
commit 475c9b426c

View File

@ -8,13 +8,33 @@
v-show="showSearch"
label-width="100px"
>
<el-form-item label="护理站" prop="nurseStationId">
<el-select
v-model="queryParams.nurseStationId"
placeholder="请选择护理站"
@keyup.enter.native="handleQuery"
@change="handleQuery"
>
<el-option
v-for="item in nurseStationlist"
:key="item.id"
:label="item.nurseStationName"
:value="item.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="护理人员名称" prop="nursePersonName">
<el-input
<el-button type class="stationbtn" @click="nursePersonNameclick(true)">
{{
queryParams.nursePersonName
}}
</el-button>
<!-- <el-input
v-model="queryParams.nursePersonName"
placeholder="请输入护理人员名称"
clearable
@keyup.enter.native="handleQuery"
/>
/>-->
</el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
@ -84,6 +104,71 @@
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
<!-- // -->
<el-dialog
title="选择护理站"
:visible.sync="nursePersonshow"
width="1000px"
append-to-body
:before-close="nursePersoncancel"
>
<el-form ref="queryForm" :model="nursePersonqueryParams" :inline="true">
<el-form-item label="护理人员名称" prop="nursePersonName" label-width="120">
<el-input
v-model="nursePersonqueryParams.nursePersonName"
placeholder="请输入护理人员名称"
clearable
/>
</el-form-item>
<!-- <el-form-item label="护理人员编号" prop="nursePersonCode" label-width="120">
<el-input
v-model="nursePersonqueryParams.nursePersonCode"
placeholder="请输入护理人员编号"
clearable
/>
</el-form-item> -->
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="nursePersonhandleQuery"
>搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="nursePersonreset">重置</el-button>
</el-form-item>
</el-form>
<el-table :data="nursePersonlist" @cell-dblclick="nursePersonclick">
<el-table-column label="请选择" width="100" align="center">
<template slot-scope="scope">
<el-button
type="primary"
style="width: 15px; height: 15px"
v-if="nursePersonid == scope.row.id"
circle
@click="nursePersonclick(scope.row)"
></el-button>
<el-button
v-else
style="width: 15px; height: 15px"
circle
@click="nursePersonclick(scope.row)"
></el-button>
</template>
</el-table-column>
<el-table-column property="nurseStationName" label="所属护理站" align="center"></el-table-column>
<el-table-column property="nursePersonCode" label="护理人员编号" align="center"></el-table-column>
<el-table-column property="nursePersonName" label="护理人员名称" align="center"></el-table-column>
<el-table-column property="phone" label="联系电话" align="center"></el-table-column>
<el-table-column property="address" label="护理站地址" align="center"></el-table-column>
</el-table>
<pagination
v-show="nursePersontotal > 0"
:total="nursePersontotal"
:page.sync="nursePersonqueryParams.pageNum"
:limit.sync="nursePersonqueryParams.pageSize"
@pagination="nursePersoninfo"
/>
</el-dialog>
</div>
</template>
@ -95,7 +180,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 +213,35 @@ export default {
revenueAmount: null,
finishOrderTime: null
},
//
nurseStationqueryParams: {
pageNum: 1,
pageSize: 10
},
//
nursePersonqueryParams: {
pageNum: 1,
pageSize: 10
},
//
form: {},
//
rules: {}
rules: {},
//
nursePersonshow: false,
//list
nurseStationlist: [],
//
nursePersonshow: false,
//list
nursePersonlist: [],
nursePersontotal: 0,
nursePersonid: null
};
},
created() {
this.getList();
this.nurseStationinfo();
this.nursePersoninfo();
},
methods: {
/** 查询护理员订单佣金收益信息列表 */
@ -174,6 +281,10 @@ export default {
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.queryParams.pageNum = 1;
this.queryParams.pageSize = 10;
this.queryParams.nursePersonName = null;
this.queryParams.nurseStationPersonId = null;
this.handleQuery();
},
//
@ -243,7 +354,70 @@ export default {
},
`revenue_${new Date().getTime()}.xlsx`
);
},
//
nurseStationinfo() {
getListByUser(this.nurseStationqueryParams).then(res => {
this.nurseStationlist = res.rows;
this.nurseStationtotal = res.total;
this.queryParams.nurseStationId = res.rows[0].id;
this.queryParams.nurseStationName = res.rows[0].nurseStationName;
this.getList();
});
},
/** 护理人员重置按钮操作 */
nursePersoncancel() {
this.nursePersonshow = false;
this.nursePersonreset();
},
//
nursePersonreset() {
this.nursePersonqueryParams = {
pageNum: 1,
pageSize: 10
};
this.nursePersoninfo();
},
//
nursePersoninfo() {
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;
});
},
//
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;
}
}
};
</script>
<style scoped>
.stationbtn {
width: 208px;
text-align: left;
height: 32px;
overflow: hidden;
font-size: 14px;
}
</style>