修改
This commit is contained in:
parent
37ec0174c3
commit
475c9b426c
@ -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>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user