This commit is contained in:
曹辉 2023-04-06 11:41:18 +08:00
parent b936fa6f66
commit a9e60c1099

View File

@ -8,13 +8,25 @@
v-show="showSearch"
label-width="100px"
>
<el-form-item label="护理站名称" prop="nursePersonName">
<el-button type class="stationbtn" @click="nurseStationNameclick(true)">
{{
queryParams.nurseStationName
}}
</el-button>
</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 +96,136 @@
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
<!-- // -->
<el-dialog
title="选择护理站"
:visible.sync="nurseStationshow"
width="1000px"
append-to-body
:before-close="nurseStationcancel"
>
<el-form ref="queryForm" :model="nurseStationqueryParams" :inline="true">
<el-form-item label="护理站编码" prop="nurseStationCode" label-width="120">
<el-input
v-model="nurseStationqueryParams.nurseStationCode"
placeholder="请输入护理站编码"
clearable
/>
</el-form-item>
<el-form-item label="护理站名称" prop="nurseStationName" label-width="120">
<el-input
v-model="nurseStationqueryParams.nurseStationName"
placeholder="请输入护理站名称"
clearable
/>
</el-form-item>
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="nurseStationhandleQuery"
>搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="nurseStationreset">重置</el-button>
</el-form-item>
</el-form>
<el-table :data="nurseStationlist" @cell-dblclick="nurseStationclick">
<el-table-column label="请选择" width="100" align="center">
<template slot-scope="scope">
<el-button
type="primary"
style="width: 15px; height: 15px"
v-if="nurseStationid == scope.row.id"
circle
@click="nurseStationclick(scope.row)"
></el-button>
<el-button
v-else
style="width: 15px; height: 15px"
circle
@click="nurseStationclick(scope.row)"
></el-button>
</template>
</el-table-column>
<el-table-column property="nurseStationCode" label="护理站编码" align="center"></el-table-column>
<el-table-column property="nurseStationName" 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="nurseStationtotal > 0"
:total="nurseStationtotal"
:page.sync="nurseStationqueryParams.pageNum"
:limit.sync="nurseStationqueryParams.pageSize"
@pagination="nurseStationinfo"
/>
</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="nurseStationhandleQuery"
>搜索</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="nurseStationid == 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 +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;
}
}
};
</script>
<style scoped>
.stationbtn {
width: 208px;
text-align: left;
height: 32px;
overflow: hidden;
font-size: 14px;
}
</style>