工作提交
This commit is contained in:
parent
09954788b2
commit
ddb3514ac7
@ -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.64:8080'
|
VUE_APP_BASE_API = 'http://192.168.16.87:8080'
|
||||||
|
|
||||||
# 路由懒加载
|
# 路由懒加载
|
||||||
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
|
||||||
@ -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
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -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="请输入护理站编号"
|
||||||
@ -137,7 +164,6 @@
|
|||||||
icon="el-icon-upload2"
|
icon="el-icon-upload2"
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="handledata"
|
@click="handledata"
|
||||||
v-hasPermi="['system:station:importData']"
|
|
||||||
>导入</el-button
|
>导入</el-button
|
||||||
>
|
>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -714,7 +740,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 +759,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 +826,7 @@ export default {
|
|||||||
showSearch: true,
|
showSearch: true,
|
||||||
// 总条数
|
// 总条数
|
||||||
total: 0,
|
total: 0,
|
||||||
|
total2: 0,
|
||||||
//所属护理类型
|
//所属护理类型
|
||||||
typelooks: [],
|
typelooks: [],
|
||||||
//所属标签
|
//所属标签
|
||||||
@ -813,12 +839,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 +936,7 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getList();
|
this.getList();
|
||||||
|
this.info();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
imgUrl(imgUrl) {
|
imgUrl(imgUrl) {
|
||||||
@ -1062,6 +1095,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 +1117,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 +1222,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 +1303,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