Merge remote-tracking branch 'origin/sdl_20220916_护理站人员功能' into yan_0916_护理类型信息
# Conflicts: # src/api/baseurl.js # src/api/system/userlist.js # src/views/system/station/index.vue # src/views/system/userlist/index.vue
This commit is contained in:
commit
6459f04081
@ -6,7 +6,7 @@ ENV = 'development'
|
|||||||
|
|
||||||
# 全医通护理站管理平台/开发环境
|
# 全医通护理站管理平台/开发环境
|
||||||
# VUE_APP_BASE_API = '/dev-api'
|
# VUE_APP_BASE_API = '/dev-api'
|
||||||
VUE_APP_BASE_API = 'http://192.168.16.85:8080'
|
VUE_APP_BASE_API = 'http://192.168.16.85:8081'
|
||||||
|
|
||||||
# 路由懒加载
|
# 路由懒加载
|
||||||
VUE_CLI_BABEL_TRANSPILE_MODULES = true
|
VUE_CLI_BABEL_TRANSPILE_MODULES = true
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
var baseurl = "http://192.168.16.81:8080";
|
var baseurl = "http://192.168.16.81:8082";
|
||||||
|
|
||||||
export default baseurl
|
export default baseurl
|
||||||
@ -31,6 +31,13 @@ export function SecondaryLevelInfo(id) {
|
|||||||
method: 'get',
|
method: 'get',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
//省市区
|
||||||
|
export function SubordinateRegions(Code) {
|
||||||
|
return request({
|
||||||
|
url: `/system/area/getSubordinateRegions?areaCode=${Code}`,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
// 新增居住社区信息
|
// 新增居住社区信息
|
||||||
export function addCommunityInfo(data) {
|
export function addCommunityInfo(data) {
|
||||||
return request({
|
return request({
|
||||||
|
|||||||
@ -1,8 +1,9 @@
|
|||||||
import request from '@/utils/request'
|
import request from '@/utils/request'
|
||||||
|
|
||||||
export function getListByUser(data) {
|
export function getListByUser(query) {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/user/getListByUser',
|
url: '/system/user/getListByUser',
|
||||||
method: 'GET'
|
method: 'GET',
|
||||||
|
params: query
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -237,7 +237,8 @@
|
|||||||
<div
|
<div
|
||||||
v-for="(item, index) in form.communityInfoList"
|
v-for="(item, index) in form.communityInfoList"
|
||||||
:key="index"
|
:key="index"
|
||||||
style="margin-top: 20px"
|
style="margin-top: 20px; border-bottom: 1px solid #f3f3f3"
|
||||||
|
|
||||||
>
|
>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
label="所属区域"
|
label="所属区域"
|
||||||
@ -361,23 +362,82 @@
|
|||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
<!-- 修改居住社区信息对话框 -->
|
<!-- 修改居住社区信息对话框 -->
|
||||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
<el-dialog :title="title" :visible.sync="open" width="1060px" append-to-body>
|
||||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px" :inline="true">
|
||||||
<!-- <el-form-item label="所属区域编码" prop="areaCode">
|
<!-- <el-form-item label="所属区域" prop="areaCode">
|
||||||
<el-input v-model="form.areaCode" placeholder="请输入所属区域编码" />
|
|
||||||
</el-form-item> -->
|
|
||||||
<el-form-item label="所属区域" prop="areaCode">
|
|
||||||
<el-input
|
<el-input
|
||||||
v-model="form.areaName"
|
v-model="form.areaName"
|
||||||
placeholder="请输入所属区域"
|
placeholder="请输入所属区域"
|
||||||
maxlength="20"
|
maxlength="20"
|
||||||
/>
|
/>
|
||||||
|
</el-form-item> -->
|
||||||
|
<el-form-item
|
||||||
|
label="所属区域"
|
||||||
|
prop="areaCode"
|
||||||
|
>
|
||||||
|
<el-select v-model="form.province" clearable placeholder="请选择省" >
|
||||||
|
<el-option
|
||||||
|
v-for="item in arealist"
|
||||||
|
:key="item.areaCode"
|
||||||
|
:label="item.areaName"
|
||||||
|
:value="item.areaCode"
|
||||||
|
@click.native="province3(item)"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
|
||||||
|
<el-select
|
||||||
|
v-model="form.city"
|
||||||
|
clearable
|
||||||
|
placeholder="请选择市"
|
||||||
|
style="margin-left: 10px"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in citylist"
|
||||||
|
:key="item.areaCode"
|
||||||
|
:label="item.areaName"
|
||||||
|
:value="item.areaCode"
|
||||||
|
@click.native="clickcity3(item)"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
<el-select
|
||||||
|
v-model="form.area"
|
||||||
|
clearable
|
||||||
|
placeholder="请选择区"
|
||||||
|
style="margin-left: 10px"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in arealists"
|
||||||
|
:key="item.areaCode"
|
||||||
|
:label="item.areaName"
|
||||||
|
:value="item.areaCode"
|
||||||
|
@click.native="clickarea3(item)"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
<el-select
|
||||||
|
v-model="form.areaCode"
|
||||||
|
clearable
|
||||||
|
placeholder="请选择街道"
|
||||||
|
style="margin-left: 10px"
|
||||||
|
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in streetlist"
|
||||||
|
:key="item.areaCode"
|
||||||
|
:label="item.areaName"
|
||||||
|
:value="item.areaCode"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="社区名称" prop="communityName">
|
<el-form-item label="社区名称" prop="communityName">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="form.communityName"
|
v-model="form.communityName"
|
||||||
placeholder="请输入社区名称"
|
placeholder="请输入社区名称"
|
||||||
maxlength="30"
|
maxlength="30"
|
||||||
|
style="width:200px"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="社区经度" prop="communityLongitude">
|
<el-form-item label="社区经度" prop="communityLongitude">
|
||||||
@ -385,6 +445,7 @@
|
|||||||
v-model="form.communityLongitude"
|
v-model="form.communityLongitude"
|
||||||
placeholder="请输入社区经度"
|
placeholder="请输入社区经度"
|
||||||
maxlength="20"
|
maxlength="20"
|
||||||
|
style="width:200px"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="社区纬度" prop="communityLatitude">
|
<el-form-item label="社区纬度" prop="communityLatitude">
|
||||||
@ -392,6 +453,7 @@
|
|||||||
v-model="form.communityLatitude"
|
v-model="form.communityLatitude"
|
||||||
placeholder="请输入社区纬度"
|
placeholder="请输入社区纬度"
|
||||||
maxlength="20"
|
maxlength="20"
|
||||||
|
style="width:200px"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
@ -412,6 +474,7 @@ import {
|
|||||||
updateCommunityInfo,
|
updateCommunityInfo,
|
||||||
FirstLevels,
|
FirstLevels,
|
||||||
SecondaryLevelInfo,
|
SecondaryLevelInfo,
|
||||||
|
SubordinateRegions,
|
||||||
} from "@/api/system/communityInfo";
|
} from "@/api/system/communityInfo";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -560,7 +623,7 @@ export default {
|
|||||||
this.queryParams.areaCode = "";
|
this.queryParams.areaCode = "";
|
||||||
SecondaryLevelInfo(item.id).then((res) => {
|
SecondaryLevelInfo(item.id).then((res) => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
this.SecondaryLevelInfolist = res.data;
|
// this.SecondaryLevelInfolist = res.data;
|
||||||
// console.log(this.SecondaryLevelInfolist);
|
// console.log(this.SecondaryLevelInfolist);
|
||||||
this.citylist = res.data;
|
this.citylist = res.data;
|
||||||
});
|
});
|
||||||
@ -573,7 +636,21 @@ export default {
|
|||||||
console.log(item);
|
console.log(item);
|
||||||
SecondaryLevelInfo(item.id).then((res) => {
|
SecondaryLevelInfo(item.id).then((res) => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
this.SecondaryLevelInfolist = res.data;
|
// this.SecondaryLevelInfolist = res.data;
|
||||||
|
// console.log(this.SecondaryLevelInfolist);
|
||||||
|
this.citylist = res.data;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 修改
|
||||||
|
province3(item) {
|
||||||
|
// this.form.xxx[index].code=''
|
||||||
|
console.log(item);
|
||||||
|
this.form.city = "";
|
||||||
|
this.form.area = "";
|
||||||
|
this.form.areaCode = "";
|
||||||
|
SecondaryLevelInfo(item.id).then((res) => {
|
||||||
|
console.log(res);
|
||||||
|
// this.SecondaryLevelInfolist = res.data;
|
||||||
// console.log(this.SecondaryLevelInfolist);
|
// console.log(this.SecondaryLevelInfolist);
|
||||||
this.citylist = res.data;
|
this.citylist = res.data;
|
||||||
});
|
});
|
||||||
@ -582,6 +659,8 @@ export default {
|
|||||||
clickcity(item) {
|
clickcity(item) {
|
||||||
console.log(item);
|
console.log(item);
|
||||||
SecondaryLevelInfo(item.id).then((res) => {
|
SecondaryLevelInfo(item.id).then((res) => {
|
||||||
|
this.queryParams.area = "";
|
||||||
|
this.queryParams.areaCode = "";
|
||||||
console.log(res);
|
console.log(res);
|
||||||
this.arealists = res.data;
|
this.arealists = res.data;
|
||||||
});
|
});
|
||||||
@ -592,14 +671,27 @@ export default {
|
|||||||
// this.queryParams.areaCode = "";
|
// this.queryParams.areaCode = "";
|
||||||
// this.value2 = "";
|
// this.value2 = "";
|
||||||
// this.value3 = "";
|
// this.value3 = "";
|
||||||
|
this.form.communityInfoList[index].area = "";
|
||||||
|
this.form.communityInfoList[index].areaCode = "";
|
||||||
console.log(item);
|
console.log(item);
|
||||||
SecondaryLevelInfo(item.id).then((res) => {
|
SecondaryLevelInfo(item.id).then((res) => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
this.arealists = res.data;
|
this.arealists = res.data;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
// 修改
|
||||||
|
clickcity3(item) {
|
||||||
|
console.log(item);
|
||||||
|
SecondaryLevelInfo(item.id).then((res) => {
|
||||||
|
this.form.area = "";
|
||||||
|
this.form.areaCode = "";
|
||||||
|
console.log(res);
|
||||||
|
this.arealists = res.data;
|
||||||
|
});
|
||||||
|
},
|
||||||
//点击区县城
|
//点击区县城
|
||||||
clickarea(item) {
|
clickarea(item) {
|
||||||
|
this.queryParams.areaCode = "";
|
||||||
// this.queryParams.areaCode = "";
|
// this.queryParams.areaCode = "";
|
||||||
// this.value3 = "";
|
// this.value3 = "";
|
||||||
console.log(item);
|
console.log(item);
|
||||||
@ -612,6 +704,19 @@ export default {
|
|||||||
clickarea2(item, index) {
|
clickarea2(item, index) {
|
||||||
// this.queryParams.areaCode = "";
|
// this.queryParams.areaCode = "";
|
||||||
// this.value3 = "";
|
// this.value3 = "";
|
||||||
|
|
||||||
|
this.form.communityInfoList[index].areaCode = "";
|
||||||
|
console.log(item);
|
||||||
|
SecondaryLevelInfo(item.id).then((res) => {
|
||||||
|
console.log(res);
|
||||||
|
this.streetlist = res.data;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
clickarea3(item) {
|
||||||
|
this.form.areaCode = "";
|
||||||
|
// this.queryParams.areaCode = "";
|
||||||
|
// this.value3 = "";
|
||||||
console.log(item);
|
console.log(item);
|
||||||
SecondaryLevelInfo(item.id).then((res) => {
|
SecondaryLevelInfo(item.id).then((res) => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
@ -623,6 +728,10 @@ export default {
|
|||||||
this.form.areaCode = item.areaCode;
|
this.form.areaCode = item.areaCode;
|
||||||
console.log(this.form);
|
console.log(this.form);
|
||||||
},
|
},
|
||||||
|
// clickstreet3(item) {
|
||||||
|
// this.form.areaCode = item.areaCode;
|
||||||
|
// // console.log(this.queryParams);
|
||||||
|
// },
|
||||||
// 所属省下拉框
|
// 所属省下拉框
|
||||||
loadMore() {
|
loadMore() {
|
||||||
console.log("1");
|
console.log("1");
|
||||||
@ -716,6 +825,10 @@ export default {
|
|||||||
/** 重置按钮操作 */
|
/** 重置按钮操作 */
|
||||||
resetQuery() {
|
resetQuery() {
|
||||||
this.resetForm("queryForm");
|
this.resetForm("queryForm");
|
||||||
|
// this.arealist="",
|
||||||
|
this.arealists="",
|
||||||
|
this.streetlist="",
|
||||||
|
this.citylist="",
|
||||||
(this.queryParams = {
|
(this.queryParams = {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
@ -749,8 +862,22 @@ export default {
|
|||||||
const id = row.id || this.ids;
|
const id = row.id || this.ids;
|
||||||
getCommunityInfo(id).then((response) => {
|
getCommunityInfo(id).then((response) => {
|
||||||
this.form = response.data;
|
this.form = response.data;
|
||||||
|
// this.form.province=response.data;
|
||||||
|
// this.form.city=response.data;
|
||||||
|
// this.form.area=response.data;
|
||||||
|
// this.form.areaCode=response.data;
|
||||||
this.open = true;
|
this.open = true;
|
||||||
this.title = "修改居住社区信息";
|
this.title = "修改居住社区信息";
|
||||||
|
SubordinateRegions(response.data.areaCode).then((res) => {
|
||||||
|
console.log(res)
|
||||||
|
if(res.data!==null){
|
||||||
|
this.form.province = res.data.provinceCode;
|
||||||
|
this.form.city = res.data.cityName;
|
||||||
|
this.form.area = res.data.regionName;
|
||||||
|
this.form.areaCode = res.data.streetName;
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
@ -761,7 +888,7 @@ export default {
|
|||||||
updateCommunityInfo(this.form).then((response) => {
|
updateCommunityInfo(this.form).then((response) => {
|
||||||
this.$modal.msgSuccess("修改成功");
|
this.$modal.msgSuccess("修改成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
|
this.open2 = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -172,7 +172,7 @@
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- 添加或修改被护理人基本信息对话框 -->
|
<!-- 添加或修改被护理人基本信息对话框 -->
|
||||||
<el-dialog :title="title" :visible.sync="open" width="1018px" append-to-body >
|
<el-dialog :title="title" :visible.sync="open" width="1040px" append-to-body >
|
||||||
<el-form ref="form" :model="form" :rules="rules" label-width="110px" :inline="true">
|
<el-form ref="form" :model="form" :rules="rules" label-width="110px" :inline="true">
|
||||||
<el-form-item label="姓名" prop="patientName">
|
<el-form-item label="姓名" prop="patientName">
|
||||||
<el-input v-model="form.patientName" placeholder="请输入姓名" :disabled="true"/>
|
<el-input v-model="form.patientName" placeholder="请输入姓名" :disabled="true"/>
|
||||||
|
|||||||
@ -8,10 +8,10 @@
|
|||||||
v-show="showSearch"
|
v-show="showSearch"
|
||||||
label-width="68px"
|
label-width="68px"
|
||||||
>
|
>
|
||||||
<el-form-item label="护理站" prop="nurseStationId">
|
<el-form-item label="护理站" prop="nurseStationId" v-if="nurseStationlist.find((e) => e.isAdmin == '1')">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="queryParams.nurseStationId"
|
v-model="queryParams.nurseStationId"
|
||||||
clearable
|
|
||||||
placeholder="请选择护理站"
|
placeholder="请选择护理站"
|
||||||
v-loadmore="loadMore"
|
v-loadmore="loadMore"
|
||||||
@keyup.enter.native="handleQuery"
|
@keyup.enter.native="handleQuery"
|
||||||
@ -25,6 +25,22 @@
|
|||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item label="护理站" prop="nurseStationId" v-else>
|
||||||
|
<el-select
|
||||||
|
v-model="queryParams.nurseStationId"
|
||||||
|
placeholder="请选择护理站"
|
||||||
|
v-loadmore="loadMore"
|
||||||
|
>
|
||||||
|
<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="departmentName">
|
<el-form-item label="所属科室" prop="departmentName">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="queryParams.departmentName"
|
v-model="queryParams.departmentName"
|
||||||
@ -1030,6 +1046,7 @@ import {
|
|||||||
StationDepartmentList,
|
StationDepartmentList,
|
||||||
} from "@/api/system/person";
|
} from "@/api/system/person";
|
||||||
import { getToken } from "@/utils/auth";
|
import { getToken } from "@/utils/auth";
|
||||||
|
import { getListByUser } from "@/api/system/userlist.js";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "Person",
|
name: "Person",
|
||||||
@ -1133,6 +1150,7 @@ export default {
|
|||||||
// 是否显示弹出层
|
// 是否显示弹出层
|
||||||
open: false,
|
open: false,
|
||||||
open2: false,
|
open2: false,
|
||||||
|
//权限查询
|
||||||
// 查询参数
|
// 查询参数
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
@ -1252,16 +1270,14 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getList();
|
this.getList();
|
||||||
|
this.getList2();
|
||||||
this.nurselist();
|
this.nurselist();
|
||||||
|
this.info();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// // 新增所属科室按钮
|
// // 新增所属科室按钮
|
||||||
departclick(item, index) {
|
departclick(item, index) {
|
||||||
StationDepartmentList(this.queryParams3).then((res) => {
|
|
||||||
this.StationDepartmentLists = res.rows;
|
|
||||||
this.total3 = res.total;
|
|
||||||
this.loading = false;
|
|
||||||
});
|
|
||||||
console.log(item);
|
console.log(item);
|
||||||
this.departid = item.departmentCode;
|
this.departid = item.departmentCode;
|
||||||
this.innerVisible2 = true;
|
this.innerVisible2 = true;
|
||||||
@ -1281,11 +1297,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 新增护理站按钮
|
// 新增护理站按钮
|
||||||
clickinnerVisible(item, index) {
|
clickinnerVisible(item, index) {
|
||||||
stationList(this.queryParams2).then((res) => {
|
|
||||||
this.stationLists = res.rows;
|
|
||||||
this.total2 = res.total;
|
|
||||||
this.loading = false;
|
|
||||||
});
|
|
||||||
// console.log(item);
|
// console.log(item);
|
||||||
this.stationid = item.nurseStationId;
|
this.stationid = item.nurseStationId;
|
||||||
this.innerVisible = true;
|
this.innerVisible = true;
|
||||||
@ -1304,24 +1316,24 @@ export default {
|
|||||||
// this.index = index;
|
// this.index = index;
|
||||||
},
|
},
|
||||||
//xialakuang
|
//xialakuang
|
||||||
loadMore() {
|
// loadMore() {
|
||||||
console.log("1");
|
// console.log("1");
|
||||||
var a = Math.ceil(this.total4 / 10);
|
// var a = Math.ceil(this.total4 / 10);
|
||||||
console.log(this.nurseStationlist.length);
|
// console.log(this.nurseStationlist.length);
|
||||||
if (this.nurseStationlist.length + 1 >= this.total4) {
|
// if (this.nurseStationlist.length + 1 >= this.total4) {
|
||||||
} else {
|
// } else {
|
||||||
if (this.nurseStationqueryParams.pageNum >= a) {
|
// if (this.nurseStationqueryParams.pageNum >= a) {
|
||||||
} else {
|
// } else {
|
||||||
this.nurseStationqueryParams.pageNum++;
|
// this.nurseStationqueryParams.pageNum++;
|
||||||
stationList(this.nurseStationqueryParams).then((res) => {
|
// stationList(this.nurseStationqueryParams).then((res) => {
|
||||||
console.log(res);
|
// console.log(res);
|
||||||
res.rows.forEach((e) => {
|
// res.rows.forEach((e) => {
|
||||||
this.nurseStationlist.push(e);
|
// this.nurseStationlist.push(e);
|
||||||
});
|
// });
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
nurselist() {
|
nurselist() {
|
||||||
stationList(this.nurseStationqueryParams).then((res) => {
|
stationList(this.nurseStationqueryParams).then((res) => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
@ -1417,6 +1429,21 @@ export default {
|
|||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
getList2() {
|
||||||
|
// 护理站名称
|
||||||
|
this.loading = true;
|
||||||
|
stationList(this.queryParams2).then((res) => {
|
||||||
|
this.stationLists = res.rows;
|
||||||
|
this.total2 = res.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
StationDepartmentList(this.queryParams3).then((res) => {
|
||||||
|
this.StationDepartmentLists = res.rows;
|
||||||
|
this.total3 = res.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
|
||||||
|
},
|
||||||
// 取消按钮
|
// 取消按钮
|
||||||
cancel() {
|
cancel() {
|
||||||
this.open = false;
|
this.open = false;
|
||||||
@ -1428,6 +1455,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 表单重置
|
// 表单重置
|
||||||
reset() {
|
reset() {
|
||||||
|
|
||||||
this.form = {
|
this.form = {
|
||||||
id: null,
|
id: null,
|
||||||
nurseStationId: null,
|
nurseStationId: null,
|
||||||
@ -1461,6 +1489,7 @@ export default {
|
|||||||
],
|
],
|
||||||
};
|
};
|
||||||
this.resetForm("form");
|
this.resetForm("form");
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/** 搜索按钮操作 */
|
/** 搜索按钮操作 */
|
||||||
@ -1485,12 +1514,12 @@ export default {
|
|||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
handleQuery() {
|
handleQuery() {
|
||||||
stationList(this.nurseStationqueryParams).then((res) => {
|
// stationList(this.nurseStationqueryParams).then((res) => {
|
||||||
console.log(res);
|
// console.log(res);
|
||||||
this.nurseStationlist = res.rows;
|
// this.nurseStationlist = res.rows;
|
||||||
this.total4 = res.total;
|
// this.total4 = res.total;
|
||||||
console.log(this.nurseStationlist);
|
// console.log(this.nurseStationlist);
|
||||||
});
|
// });
|
||||||
this.queryParams.pageNum = 1;
|
this.queryParams.pageNum = 1;
|
||||||
this.getList();
|
this.getList();
|
||||||
// this.nurselist()
|
// this.nurselist()
|
||||||
@ -1506,7 +1535,6 @@ export default {
|
|||||||
id: null,
|
id: null,
|
||||||
nurseStationId: null,
|
nurseStationId: null,
|
||||||
};
|
};
|
||||||
|
|
||||||
stationList(this.queryParams2).then((res) => {
|
stationList(this.queryParams2).then((res) => {
|
||||||
this.stationLists = res.rows;
|
this.stationLists = res.rows;
|
||||||
this.total2 = res.total;
|
this.total2 = res.total;
|
||||||
@ -1522,7 +1550,6 @@ export default {
|
|||||||
departmentName: null,
|
departmentName: null,
|
||||||
nurseStationId: null,
|
nurseStationId: null,
|
||||||
};
|
};
|
||||||
|
|
||||||
StationDepartmentList(this.queryParams3).then((response) => {
|
StationDepartmentList(this.queryParams3).then((response) => {
|
||||||
this.StationDepartmentLists = response.rows;
|
this.StationDepartmentLists = response.rows;
|
||||||
this.total3 = response.total;
|
this.total3 = response.total;
|
||||||
@ -1531,6 +1558,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
resetQuery() {
|
resetQuery() {
|
||||||
|
if (this.nurseStationlist[0].isAdmin == "1") {
|
||||||
this.resetForm("queryForm");
|
this.resetForm("queryForm");
|
||||||
this.queryParams = {
|
this.queryParams = {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
@ -1544,11 +1572,15 @@ export default {
|
|||||||
phone: null,
|
phone: null,
|
||||||
address: null,
|
address: null,
|
||||||
};
|
};
|
||||||
stationList(this.queryParams2).then((res) => {
|
|
||||||
this.stationLists = res.rows;
|
|
||||||
this.total2 = res.total;
|
|
||||||
});
|
|
||||||
this.handleQuery();
|
this.handleQuery();
|
||||||
|
} else {
|
||||||
|
console.log(1);
|
||||||
|
this.queryParams.departmentName = null;
|
||||||
|
this.queryParams.pageSize = 10;
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.queryParams.nursePersonName = null;
|
||||||
|
this.handleQuery();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// 多选框选中数据
|
// 多选框选中数据
|
||||||
handleSelectionChange(selection) {
|
handleSelectionChange(selection) {
|
||||||
@ -1672,6 +1704,58 @@ export default {
|
|||||||
`person_${new Date().getTime()}.xlsx`
|
`person_${new Date().getTime()}.xlsx`
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
//权限列表
|
||||||
|
info() {
|
||||||
|
getListByUser(this.nurseStationqueryParams).then((res) => {
|
||||||
|
console.log(res);
|
||||||
|
if (res.rows[0].isAdmin == "1") {
|
||||||
|
console.log(true);
|
||||||
|
this.nurseStationlist = res.rows;
|
||||||
|
this.total2 = res.total;
|
||||||
|
} else {
|
||||||
|
this.total2 = res.total;
|
||||||
|
this.nurseStationlist = res.rows;
|
||||||
|
this.queryParams.nurseStationId = res.rows[0].id;
|
||||||
|
this.handleQuery();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
//滑动下拉框
|
||||||
|
loadMore() {
|
||||||
|
var a = Math.ceil(this.total4 / 10);
|
||||||
|
if (this.nurseStationlist.length + 1 >= this.total4) {
|
||||||
|
} else {
|
||||||
|
if (this.nurseStationqueryParams.pageNum >= a) {
|
||||||
|
} else {
|
||||||
|
this.nurseStationqueryParams.pageNum++;
|
||||||
|
console.log(this.nurseStationqueryParams.pageNum);
|
||||||
|
getListByUser(this.nurseStationqueryParams).then((res) => {
|
||||||
|
console.log(res);
|
||||||
|
res.rows.forEach((e) => {
|
||||||
|
this.nurseStationlist.push(e);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// loadMore() {
|
||||||
|
// console.log("1");
|
||||||
|
// var a = Math.ceil(this.total4 / 10);
|
||||||
|
// console.log(this.nurseStationlist.length);
|
||||||
|
// if (this.nurseStationlist.length + 1 >= this.total4) {
|
||||||
|
// } else {
|
||||||
|
// if (this.nurseStationqueryParams.pageNum >= a) {
|
||||||
|
// } else {
|
||||||
|
// this.nurseStationqueryParams.pageNum++;
|
||||||
|
// stationList(this.nurseStationqueryParams).then((res) => {
|
||||||
|
// console.log(res);
|
||||||
|
// res.rows.forEach((e) => {
|
||||||
|
// this.nurseStationlist.push(e);
|
||||||
|
// });
|
||||||
|
// });
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// },
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -16,15 +16,42 @@
|
|||||||
@keyup.enter.native="handleQuery"
|
@keyup.enter.native="handleQuery"
|
||||||
/>
|
/>
|
||||||
</el-form-item> -->
|
</el-form-item> -->
|
||||||
|
<el-form-item
|
||||||
<el-form-item label="护理站名称" prop="nurseStationName">
|
label="护理站名称"
|
||||||
<el-input
|
prop="nurseStationName"
|
||||||
v-model="queryParams.nurseStationName"
|
v-if="nurseStationlist.find((e) => e.isAdmin == '1')"
|
||||||
placeholder="请输入护理站名称"
|
>
|
||||||
|
<el-select
|
||||||
|
v-model="queryParams.nurseStationCode"
|
||||||
clearable
|
clearable
|
||||||
@keyup.enter.native="handleQuery"
|
placeholder="请选择护理站"
|
||||||
/> </el-form-item
|
v-loadmore="loadMore"
|
||||||
><el-form-item label="护理站编号" prop="nurseStationCode">
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in nurseStationlist"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.nurseStationName"
|
||||||
|
:value="item.nurseStationCode"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="所属护理站" prop="nurseStationName" v-else>
|
||||||
|
<el-select
|
||||||
|
v-model="queryParams.nurseStationCode"
|
||||||
|
placeholder="请选择护理站"
|
||||||
|
v-loadmore="loadMore"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in nurseStationlist"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.nurseStationName"
|
||||||
|
:value="item.nurseStationCode"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="护理站编号" prop="nurseStationCode">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="queryParams.nurseStationCode"
|
v-model="queryParams.nurseStationCode"
|
||||||
placeholder="请输入护理站编号"
|
placeholder="请输入护理站编号"
|
||||||
@ -714,7 +741,6 @@
|
|||||||
<el-button @click="upload.open = false">取 消</el-button>
|
<el-button @click="upload.open = false">取 消</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<!-- <userlist /> -->
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -734,11 +760,11 @@ import {
|
|||||||
} from "@/api/system/station";
|
} from "@/api/system/station";
|
||||||
import { getInfoList } from "@/api/system/nurseItem";
|
import { getInfoList } from "@/api/system/nurseItem";
|
||||||
import stationAcatar from "../stationAvatar/index.vue";
|
import stationAcatar from "../stationAvatar/index.vue";
|
||||||
|
import { getListByUser } from "@/api/system/userlist.js";
|
||||||
import { getToken } from "@/utils/auth";
|
import { getToken } from "@/utils/auth";
|
||||||
import editor from "@/components/Editor";
|
import editor from "@/components/Editor";
|
||||||
import userlist from "../userlist/index.vue";
|
|
||||||
export default {
|
export default {
|
||||||
components: { stationAcatar, editor, userlist },
|
components: { stationAcatar, editor },
|
||||||
name: "Station",
|
name: "Station",
|
||||||
data() {
|
data() {
|
||||||
// 验证手机号的规则
|
// 验证手机号的规则
|
||||||
@ -801,6 +827,7 @@ export default {
|
|||||||
showSearch: true,
|
showSearch: true,
|
||||||
// 总条数
|
// 总条数
|
||||||
total: 0,
|
total: 0,
|
||||||
|
total2: 0,
|
||||||
//所属护理类型
|
//所属护理类型
|
||||||
typelooks: [],
|
typelooks: [],
|
||||||
//所属标签
|
//所属标签
|
||||||
@ -813,12 +840,18 @@ export default {
|
|||||||
],
|
],
|
||||||
// 护理站信息表格数据
|
// 护理站信息表格数据
|
||||||
stationList: [],
|
stationList: [],
|
||||||
|
nurseStationlist: [],
|
||||||
// 弹出层标题
|
// 弹出层标题
|
||||||
title: "",
|
title: "",
|
||||||
// 是否显示弹出层
|
// 是否显示弹出层
|
||||||
open: false,
|
open: false,
|
||||||
typeopen: false,
|
typeopen: false,
|
||||||
nurseStationLabelopen: false,
|
nurseStationLabelopen: false,
|
||||||
|
//权限查询
|
||||||
|
getListByUserquery: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
},
|
||||||
// 查询参数
|
// 查询参数
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
@ -904,6 +937,7 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getList();
|
this.getList();
|
||||||
|
this.info();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
imgUrl(imgUrl) {
|
imgUrl(imgUrl) {
|
||||||
@ -1052,6 +1086,7 @@ export default {
|
|||||||
liststationinfo() {
|
liststationinfo() {
|
||||||
listStation(this.queryParams).then((response) => {
|
listStation(this.queryParams).then((response) => {
|
||||||
this.stationList = response.rows;
|
this.stationList = response.rows;
|
||||||
|
console.log('this.stationList :>> ', this.stationList);
|
||||||
this.total = response.total;
|
this.total = response.total;
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
@ -1062,6 +1097,7 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 重置按钮操作 */
|
/** 重置按钮操作 */
|
||||||
resetQuery() {
|
resetQuery() {
|
||||||
|
if (this.nurseStationlist[0].isAdmin == "1") {
|
||||||
this.queryParams = {
|
this.queryParams = {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
@ -1083,6 +1119,14 @@ export default {
|
|||||||
};
|
};
|
||||||
this.resetForm("queryForm");
|
this.resetForm("queryForm");
|
||||||
this.handleQuery();
|
this.handleQuery();
|
||||||
|
} else {
|
||||||
|
console.log(1);
|
||||||
|
// this.queryParams.nurseStationCode = null;
|
||||||
|
this.queryParams.pageSize = 10;
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.queryParams.nurseStationType = null;
|
||||||
|
this.handleQuery();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// 多选框选中数据
|
// 多选框选中数据
|
||||||
handleSelectionChange(selection) {
|
handleSelectionChange(selection) {
|
||||||
@ -1180,6 +1224,7 @@ export default {
|
|||||||
console.log(this.form);
|
console.log(this.form);
|
||||||
this.$refs["form"].validate((valid) => {
|
this.$refs["form"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
this.form.areaCode = Number(this.form.areaCode);
|
||||||
this.form.nurseStationType = this.form.nurseStationType2.join(",");
|
this.form.nurseStationType = this.form.nurseStationType2.join(",");
|
||||||
if (this.form.id != null) {
|
if (this.form.id != null) {
|
||||||
updateStation(this.form).then((response) => {
|
updateStation(this.form).then((response) => {
|
||||||
@ -1260,6 +1305,40 @@ export default {
|
|||||||
handleFileUploadProgress(event, file, fileList) {
|
handleFileUploadProgress(event, file, fileList) {
|
||||||
this.upload.isUploading = true;
|
this.upload.isUploading = true;
|
||||||
},
|
},
|
||||||
|
//权限列表
|
||||||
|
info() {
|
||||||
|
getListByUser(this.getListByUserquery).then((res) => {
|
||||||
|
console.log(res);
|
||||||
|
if (res.rows[0].isAdmin == "1") {
|
||||||
|
console.log(true);
|
||||||
|
this.nurseStationlist = res.rows;
|
||||||
|
this.total2 = res.total;
|
||||||
|
} else {
|
||||||
|
this.total2 = res.total;
|
||||||
|
this.nurseStationlist = res.rows;
|
||||||
|
this.queryParams.nurseStationCode = res.rows[0].nurseStationCode;
|
||||||
|
this.handleQuery();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
//滑动下拉框
|
||||||
|
loadMore() {
|
||||||
|
var a = Math.ceil(this.total2 / 10);
|
||||||
|
if (this.nurseStationlist.length + 1 >= this.total2) {
|
||||||
|
} else {
|
||||||
|
if (this.getListByUserquery.pageNum >= a) {
|
||||||
|
} else {
|
||||||
|
this.getListByUserquery.pageNum++;
|
||||||
|
console.log(this.getListByUserquery.pageNum);
|
||||||
|
getListByUser(this.getListByUserquery).then((res) => {
|
||||||
|
console.log(res);
|
||||||
|
res.rows.forEach((e) => {
|
||||||
|
this.nurseStationlist.push(e);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -8,7 +8,7 @@
|
|||||||
v-show="showSearch"
|
v-show="showSearch"
|
||||||
label-width="100px"
|
label-width="100px"
|
||||||
>
|
>
|
||||||
<el-form-item label="护理站名称" prop="">
|
<el-form-item label="护理站名称" prop="" v-if="nurseStationlist.find((e) => e.isAdmin == '1')">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="queryParams.nurseStationId"
|
v-model="queryParams.nurseStationId"
|
||||||
clearable
|
clearable
|
||||||
@ -24,6 +24,35 @@
|
|||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item label="所属护理站" prop="" v-else>
|
||||||
|
<el-select
|
||||||
|
v-model="queryParams.nurseStationId"
|
||||||
|
placeholder="请选择护理站"
|
||||||
|
v-loadmore="loadMore"
|
||||||
|
>
|
||||||
|
<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="consumableCode">
|
<el-form-item label="耗材包编号" prop="consumableCode">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="queryParams.consumableCode"
|
v-model="queryParams.consumableCode"
|
||||||
@ -124,7 +153,6 @@
|
|||||||
icon="el-icon-upload2"
|
icon="el-icon-upload2"
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="handleport"
|
@click="handleport"
|
||||||
v-hasPermi="['system:stationConsumable:importData']"
|
|
||||||
>导入</el-button
|
>导入</el-button
|
||||||
>
|
>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -461,7 +489,7 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
<el-table
|
<el-table
|
||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
:data="nurseStationlist"
|
:data="nurseStationlist2"
|
||||||
@cell-dblclick="clicknurseStation"
|
@cell-dblclick="clicknurseStation"
|
||||||
>
|
>
|
||||||
<el-table-column width="60" align="center" label="请选择">
|
<el-table-column width="60" align="center" label="请选择">
|
||||||
@ -561,6 +589,7 @@ import {
|
|||||||
updateStationConsumable,
|
updateStationConsumable,
|
||||||
list,
|
list,
|
||||||
} from "@/api/system/stationConsumable";
|
} from "@/api/system/stationConsumable";
|
||||||
|
import { getListByUser } from "@/api/system/userlist.js";
|
||||||
import { getToken } from "@/utils/auth";
|
import { getToken } from "@/utils/auth";
|
||||||
export default {
|
export default {
|
||||||
name: "StationConsumable",
|
name: "StationConsumable",
|
||||||
@ -593,9 +622,11 @@ export default {
|
|||||||
// 总条数
|
// 总条数
|
||||||
total: 0,
|
total: 0,
|
||||||
total2: 0,
|
total2: 0,
|
||||||
|
total3: 0,
|
||||||
// 护理站耗材信息表格数据
|
// 护理站耗材信息表格数据
|
||||||
stationConsumableList: [],
|
stationConsumableList: [],
|
||||||
nurseStationlist: [],
|
nurseStationlist: [],
|
||||||
|
nurseStationlist2: [],
|
||||||
// 弹出层标题
|
// 弹出层标题
|
||||||
title: "",
|
title: "",
|
||||||
// 是否显示弹出层
|
// 是否显示弹出层
|
||||||
@ -603,6 +634,11 @@ export default {
|
|||||||
open2: false,
|
open2: false,
|
||||||
xgopen: false,
|
xgopen: false,
|
||||||
index: "",
|
index: "",
|
||||||
|
//权限查询
|
||||||
|
getListByUserquery: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
},
|
||||||
// 查询参数
|
// 查询参数
|
||||||
nurseStationqueryParams: {
|
nurseStationqueryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
@ -708,6 +744,7 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getList();
|
this.getList();
|
||||||
|
this.info();
|
||||||
this.listinfo();
|
this.listinfo();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -741,24 +778,6 @@ export default {
|
|||||||
handleFileUploadProgress(event, file, fileList) {
|
handleFileUploadProgress(event, file, fileList) {
|
||||||
this.upload.isUploading = true;
|
this.upload.isUploading = true;
|
||||||
},
|
},
|
||||||
loadMore() {
|
|
||||||
console.log("1");
|
|
||||||
var a = Math.ceil(this.total2 / 10);
|
|
||||||
console.log(this.nurseStationlist.length);
|
|
||||||
if (this.nurseStationlist.length + 1 >= this.total2) {
|
|
||||||
} else {
|
|
||||||
if (this.nurseStationqueryParams.pageNum >= a) {
|
|
||||||
} else {
|
|
||||||
this.nurseStationqueryParams.pageNum++;
|
|
||||||
list(this.nurseStationqueryParams).then((res) => {
|
|
||||||
console.log(res);
|
|
||||||
res.rows.forEach((e) => {
|
|
||||||
this.nurseStationlist.push(e);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
delnurseStationConsumables(index) {
|
delnurseStationConsumables(index) {
|
||||||
this.form.nurseStationConsumables.splice(index, 1);
|
this.form.nurseStationConsumables.splice(index, 1);
|
||||||
console.log(this.form.nurseStationConsumables);
|
console.log(this.form.nurseStationConsumables);
|
||||||
@ -872,7 +891,7 @@ export default {
|
|||||||
listinfo() {
|
listinfo() {
|
||||||
list(this.nurseStationqueryParams).then((res) => {
|
list(this.nurseStationqueryParams).then((res) => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
this.nurseStationlist = res.rows;
|
this.nurseStationlist2 = res.rows;
|
||||||
this.total2 = res.total;
|
this.total2 = res.total;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -884,6 +903,7 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 重置按钮操作 */
|
/** 重置按钮操作 */
|
||||||
sresetQuery() {
|
sresetQuery() {
|
||||||
|
if (this.nurseStationlist[0].isAdmin == "1") {
|
||||||
this.resetForm("queryForm");
|
this.resetForm("queryForm");
|
||||||
this.queryParams = {
|
this.queryParams = {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
@ -897,6 +917,14 @@ export default {
|
|||||||
sort: null,
|
sort: null,
|
||||||
};
|
};
|
||||||
this.handleQuery();
|
this.handleQuery();
|
||||||
|
} else {
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.queryParams.consumableCode = null;
|
||||||
|
this.queryParams.consumableDetail = null;
|
||||||
|
this.queryParams.consumableUnit = null;
|
||||||
|
this.queryParams.consumablePrice = null;
|
||||||
|
this.handleQuery();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
//护理站重置
|
//护理站重置
|
||||||
resetQuery() {
|
resetQuery() {
|
||||||
@ -977,6 +1005,41 @@ export default {
|
|||||||
this.upload.title = "用户导入";
|
this.upload.title = "用户导入";
|
||||||
this.upload.open = true;
|
this.upload.open = true;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
//权限列表
|
||||||
|
info() {
|
||||||
|
getListByUser(this.getListByUserquery).then((res) => {
|
||||||
|
console.log(res);
|
||||||
|
if (res.rows[0].isAdmin == "1") {
|
||||||
|
console.log(true);
|
||||||
|
this.nurseStationlist = res.rows;
|
||||||
|
this.total3 = res.total;
|
||||||
|
} else {
|
||||||
|
this.total3 = res.total;
|
||||||
|
this.nurseStationlist = res.rows;
|
||||||
|
this.queryParams.nurseStationId = res.rows[0].id;
|
||||||
|
this.handleQuery();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
loadMore() {
|
||||||
|
console.log(1);
|
||||||
|
var a = Math.ceil(this.total3 / 10);
|
||||||
|
if (this.nurseStationlist.length + 1 >= this.total3) {
|
||||||
|
} else {
|
||||||
|
if (this.getListByUserquery.pageNum >= a) {
|
||||||
|
} else {
|
||||||
|
this.getListByUserquery.pageNum++;
|
||||||
|
getListByUser(this.getListByUserquery).then((res) => {
|
||||||
|
console.log(res);
|
||||||
|
res.rows.forEach((e) => {
|
||||||
|
this.nurseStationlist.push(e);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -9,9 +9,10 @@
|
|||||||
label-width="110px"
|
label-width="110px"
|
||||||
>
|
>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
label="所属护理站"
|
label="护理站名称"
|
||||||
prop="nurseStationId"
|
prop="nurseStationId"
|
||||||
label-width="100px"
|
label-width="100px"
|
||||||
|
v-if="nurseStationlist.find((e) => e.isAdmin == '1')"
|
||||||
>
|
>
|
||||||
<el-select
|
<el-select
|
||||||
v-model="queryParams.nurseStationId"
|
v-model="queryParams.nurseStationId"
|
||||||
@ -28,6 +29,27 @@
|
|||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item
|
||||||
|
label="所属护理站"
|
||||||
|
prop="nurseStationId"
|
||||||
|
label-width="100px"
|
||||||
|
v-else
|
||||||
|
>
|
||||||
|
<el-select
|
||||||
|
v-model="queryParams.nurseStationId"
|
||||||
|
placeholder="请选择护理站"
|
||||||
|
v-loadmore="loadMore"
|
||||||
|
>
|
||||||
|
<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="nurseTypeId" label-width="90px">
|
<el-form-item label="护理类型" prop="nurseTypeId" label-width="90px">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="queryParams.nurseTypeId"
|
v-model="queryParams.nurseTypeId"
|
||||||
@ -82,7 +104,7 @@
|
|||||||
icon="el-icon-plus"
|
icon="el-icon-plus"
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="handleAdd"
|
@click="handleAdd"
|
||||||
v-hasPermi="['system:nurseItem:add']"
|
v-hasPermi="['system:stationItem:add']"
|
||||||
>新增</el-button
|
>新增</el-button
|
||||||
>
|
>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -94,7 +116,7 @@
|
|||||||
size="mini"
|
size="mini"
|
||||||
:disabled="single"
|
:disabled="single"
|
||||||
@click="handleUpdate"
|
@click="handleUpdate"
|
||||||
v-hasPermi="['system:nurseItem:edit']"
|
v-hasPermi="['system:stationItem:edit']"
|
||||||
>修改</el-button
|
>修改</el-button
|
||||||
>
|
>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -106,7 +128,7 @@
|
|||||||
size="mini"
|
size="mini"
|
||||||
:disabled="multiple"
|
:disabled="multiple"
|
||||||
@click="handleDelete"
|
@click="handleDelete"
|
||||||
v-hasPermi="['system:nurseItem:remove']"
|
v-hasPermi="['system:stationItem:remove']"
|
||||||
>删除</el-button
|
>删除</el-button
|
||||||
>
|
>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -117,7 +139,6 @@
|
|||||||
icon="el-icon-upload2"
|
icon="el-icon-upload2"
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="handleExport"
|
@click="handleExport"
|
||||||
v-hasPermi="['system:nurseItem:importData']"
|
|
||||||
>导入</el-button
|
>导入</el-button
|
||||||
>
|
>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -292,8 +313,9 @@
|
|||||||
<el-form-item label="提前预约时长" prop="advanceAppointDuration">
|
<el-form-item label="提前预约时长" prop="advanceAppointDuration">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="form.nurseStationItem.advanceAppointDuration"
|
v-model="form.nurseStationItem.advanceAppointDuration"
|
||||||
placeholder="请输入提前预约时长(小时)"
|
placeholder="提前预约时长(单位小时)"
|
||||||
type="number"
|
type="number"
|
||||||
|
min="0"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="排序" prop="sort">
|
<el-form-item label="排序" prop="sort">
|
||||||
@ -465,7 +487,6 @@
|
|||||||
<el-button @click="cancel">取 消</el-button>
|
<el-button @click="cancel">取 消</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
<!-- 护理站 -->
|
<!-- 护理站 -->
|
||||||
<el-dialog
|
<el-dialog
|
||||||
title="选择护理站"
|
title="选择护理站"
|
||||||
@ -507,7 +528,7 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
<el-table
|
<el-table
|
||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
:data="nurseStationlist"
|
:data="nurseStationlist2"
|
||||||
@cell-dblclick="choicestationid"
|
@cell-dblclick="choicestationid"
|
||||||
>
|
>
|
||||||
<el-table-column label="请选择" width="70" align="center">
|
<el-table-column label="请选择" width="70" align="center">
|
||||||
@ -725,6 +746,7 @@ import {
|
|||||||
liststation,
|
liststation,
|
||||||
} from "@/api/system/nurseItem";
|
} from "@/api/system/nurseItem";
|
||||||
import { getToken } from "@/utils/auth";
|
import { getToken } from "@/utils/auth";
|
||||||
|
import { getListByUser } from "@/api/system/userlist.js";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: { stationAcatar },
|
components: { stationAcatar },
|
||||||
@ -761,6 +783,7 @@ export default {
|
|||||||
total: 0,
|
total: 0,
|
||||||
total2: 0,
|
total2: 0,
|
||||||
total3: 0,
|
total3: 0,
|
||||||
|
total4: 0,
|
||||||
//耗材
|
//耗材
|
||||||
stationConsumableList: [],
|
stationConsumableList: [],
|
||||||
// 护理站护理项目表格数据
|
// 护理站护理项目表格数据
|
||||||
@ -771,6 +794,13 @@ export default {
|
|||||||
title: "",
|
title: "",
|
||||||
// 是否显示弹出层
|
// 是否显示弹出层
|
||||||
open: false,
|
open: false,
|
||||||
|
//权限查询
|
||||||
|
nurseStationlist: [],
|
||||||
|
nurseStationlist2: [],
|
||||||
|
getListByUserquery: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
},
|
||||||
// 查询参数
|
// 查询参数
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
@ -795,7 +825,6 @@ export default {
|
|||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
},
|
},
|
||||||
nurseStationlist: [],
|
|
||||||
// 表单参数
|
// 表单参数
|
||||||
form: {
|
form: {
|
||||||
nurseStationItem: {
|
nurseStationItem: {
|
||||||
@ -833,6 +862,7 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getList();
|
this.getList();
|
||||||
|
this.info();
|
||||||
this.getInfoListinfo();
|
this.getInfoListinfo();
|
||||||
this.stationlist();
|
this.stationlist();
|
||||||
// this.listStationConsumableinfo();
|
// this.listStationConsumableinfo();
|
||||||
@ -875,7 +905,6 @@ export default {
|
|||||||
handleFileUploadProgress(event, file, fileList) {
|
handleFileUploadProgress(event, file, fileList) {
|
||||||
this.upload.isUploading = true;
|
this.upload.isUploading = true;
|
||||||
},
|
},
|
||||||
|
|
||||||
//耗材包选择完成
|
//耗材包选择完成
|
||||||
stationConsumablechoiceok() {
|
stationConsumablechoiceok() {
|
||||||
this.form.nurseStationItemConsumables.forEach((e) => {
|
this.form.nurseStationItemConsumables.forEach((e) => {
|
||||||
@ -940,29 +969,13 @@ export default {
|
|||||||
};
|
};
|
||||||
this.stationlist();
|
this.stationlist();
|
||||||
},
|
},
|
||||||
|
|
||||||
//下拉框
|
//下拉框
|
||||||
stationlist() {
|
stationlist() {
|
||||||
liststation(this.nurseStationqueryParams).then((res) => {
|
liststation(this.nurseStationqueryParams).then((res) => {
|
||||||
this.nurseStationlist = res.rows;
|
this.nurseStationlist2 = res.rows;
|
||||||
this.total2 = res.total;
|
this.total2 = res.total;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
loadMore() {
|
|
||||||
var a = Math.ceil(this.total2 / 10);
|
|
||||||
if (this.nurseStationlist.length + 1 >= this.total2) {
|
|
||||||
} else {
|
|
||||||
if (this.nurseStationqueryParams.pageNum >= a) {
|
|
||||||
} else {
|
|
||||||
this.nurseStationqueryParams.pageNum++;
|
|
||||||
liststation(this.nurseStationqueryParams).then((res) => {
|
|
||||||
res.rows.forEach((e) => {
|
|
||||||
this.nurseStationlist.push(e);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
//护理类型
|
//护理类型
|
||||||
getInfoListinfo() {
|
getInfoListinfo() {
|
||||||
getInfoList().then((res) => {
|
getInfoList().then((res) => {
|
||||||
@ -978,7 +991,6 @@ export default {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
listStationConsumableinfo() {
|
listStationConsumableinfo() {
|
||||||
if (this.form.nurseStationItem.nurseStationId != null) {
|
if (this.form.nurseStationItem.nurseStationId != null) {
|
||||||
listStationConsumable(this.StationConsumablequeryParams).then(
|
listStationConsumable(this.StationConsumablequeryParams).then(
|
||||||
@ -1086,7 +1098,10 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 重置按钮操作 */
|
/** 重置按钮操作 */
|
||||||
resetQuery() {
|
resetQuery() {
|
||||||
this.resetForm("queryForm");
|
this.queryParams.pageNu = 1;
|
||||||
|
this.queryParams.nurseTypeId = null;
|
||||||
|
this.queryParams.nurseItemCode = null;
|
||||||
|
this.queryParams.nurseItemName = null;
|
||||||
this.handleQuery();
|
this.handleQuery();
|
||||||
},
|
},
|
||||||
// 多选框选中数据
|
// 多选框选中数据
|
||||||
@ -1181,6 +1196,38 @@ export default {
|
|||||||
this.upload.title = "用户导入";
|
this.upload.title = "用户导入";
|
||||||
this.upload.open = true;
|
this.upload.open = true;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
//权限列表
|
||||||
|
info() {
|
||||||
|
getListByUser(this.getListByUserquery).then((res) => {
|
||||||
|
console.log(res);
|
||||||
|
if (res.rows[0].isAdmin == "1") {
|
||||||
|
console.log(true);
|
||||||
|
this.nurseStationlist = res.rows;
|
||||||
|
this.total4 = res.total;
|
||||||
|
} else {
|
||||||
|
this.total4 = res.total;
|
||||||
|
this.nurseStationlist = res.rows;
|
||||||
|
this.queryParams.nurseStationId = res.rows[0].id;
|
||||||
|
this.handleQuery();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
loadMore() {
|
||||||
|
var a = Math.ceil(this.total4 / 10);
|
||||||
|
if (this.nurseStationlist.length + 1 >= this.total4s) {
|
||||||
|
} else {
|
||||||
|
if (this.getListByUserquery.pageNum >= a) {
|
||||||
|
} else {
|
||||||
|
this.getListByUserquery.pageNum++;
|
||||||
|
getListByUser(this.getListByUserquery).then((res) => {
|
||||||
|
res.rows.forEach((e) => {
|
||||||
|
this.nurseStationlist.push(e);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
@ -8,12 +8,17 @@ export default {
|
|||||||
return {};
|
return {};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.info()
|
this.info();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
info() {
|
info() {
|
||||||
getListByUser().then((res) => {
|
getListByUser().then((res) => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
|
if (res.rows[0].isAdmin == "1") {
|
||||||
|
console.log(true);
|
||||||
|
} else {
|
||||||
|
this.$emit("itemlist", res.rows);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user