护理站 修改

This commit is contained in:
shidongli 2022-11-17 10:38:57 +08:00
parent a11c135f62
commit f453e41e81
4 changed files with 55 additions and 70 deletions

View File

@ -12,10 +12,9 @@
<el-select <el-select
v-model="queryParams.nurseStationId" v-model="queryParams.nurseStationId"
placeholder="请选择护理站" placeholder="请选择护理站"
v-loadmore="loadMore"
> >
<el-option <el-option
v-for="item in nurseStationlist" v-for="item in handstationlist"
:key="item.id" :key="item.id"
:label="item.nurseStationName" :label="item.nurseStationName"
:value="item.id" :value="item.id"
@ -427,7 +426,7 @@
> >
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-table :data="nurseStationlist" @cell-dblclick="nurseclick"> <el-table :data="nurseStationlist" @cell-dblclick="nurseclick" v-loading="loading2">
<el-table-column label="请选择" width="100" align="center"> <el-table-column label="请选择" width="100" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@ -508,6 +507,7 @@ export default {
datas: null, datas: null,
// //
loading: true, loading: true,
loading2:true,
// //
ids: [], ids: [],
// //
@ -526,6 +526,7 @@ export default {
nurseStationlist: [], nurseStationlist: [],
// //
goodsCategorylist: [], goodsCategorylist: [],
handstationlist: [], //list
// //
title: "", title: "",
// //
@ -617,6 +618,7 @@ export default {
created() { created() {
this.getList(); this.getList();
this.info(); this.info();
this.infos();
// this.getList2(); // this.getList2();
}, },
methods: { methods: {
@ -916,7 +918,7 @@ export default {
this.getList(); this.getList();
}); });
}) })
.catch(() => {}); .catch(() => { });
}, },
imgUrl(imgUrl) { imgUrl(imgUrl) {
console.log(imgUrl); console.log(imgUrl);
@ -948,6 +950,7 @@ export default {
console.log(this.form); console.log(this.form);
this.goodsCategorylist = res.rows; this.goodsCategorylist = res.rows;
}); });
this.loading2 = true
stationList(this.getListByUserquery).then((res) => { stationList(this.getListByUserquery).then((res) => {
this.nurseStationlist = res.rows; this.nurseStationlist = res.rows;
this.total2 = res.total; this.total2 = res.total;
@ -962,23 +965,18 @@ export default {
// this.form.nurseStationId = res.rows[0].id; // this.form.nurseStationId = res.rows[0].id;
// this.handleQuery(); // this.handleQuery();
// } // }
this.loading2 = false
}); });
}, },
// infos() {
loadMore() { var queryFor = {
var a = Math.ceil(this.total2 / 10); pageNum: 1,
if (this.nurseStationlist.length + 1 >= this.total2) { pageSize: 9999,
} else { };
if (this.getListByUserquery.pageNum >= a) { stationList(queryFor).then((res) => {
} else { console.log(res)
this.getListByUserquery.pageNum++; this.handstationlist = res.rows;
stationList(this.getListByUserquery).then((res) => { });
res.rows.forEach((e) => {
this.nurseStationlist.push(e);
});
});
}
}
}, },
}, },
}; };

View File

@ -12,10 +12,10 @@
<el-select <el-select
v-model="queryParams.nurseStationId" v-model="queryParams.nurseStationId"
placeholder="请选择护理站" placeholder="请选择护理站"
v-loadmore="loadMore"
> >
<el-option <el-option
v-for="item in nurseStationlist" v-for="item in handstationlist"
:key="item.id" :key="item.id"
:label="item.nurseStationName" :label="item.nurseStationName"
:value="item.id" :value="item.id"
@ -507,6 +507,7 @@ export default {
goodsInfoList: [], goodsInfoList: [],
// //
nurseStationlist: [], nurseStationlist: [],
handstationlist: [], //list
// //
goodsCategorylist: [], goodsCategorylist: [],
// //
@ -604,6 +605,7 @@ export default {
created() { created() {
this.getList(); this.getList();
this.info(); this.info();
this.infos();
// this.getList2(); // this.getList2();
}, },
methods: { methods: {
@ -978,21 +980,15 @@ export default {
} }
}); });
}, },
// infos() {
loadMore() { var queryFor = {
var a = Math.ceil(this.total2 / 10); pageNum: 1,
if (this.nurseStationlist.length + 1 >= this.total2) { pageSize:9999,
} else { };
if (this.getListByUserquery.pageNum >= a) { getListByUser(queryFor).then((res) => {
} else { console.log(res)
this.getListByUserquery.pageNum++; this.handstationlist = res.rows;
getListByUser(this.getListByUserquery).then((res) => { });
res.rows.forEach((e) => {
this.nurseStationlist.push(e);
});
});
}
}
}, },
}, },
}; };

View File

@ -12,10 +12,9 @@
<el-select <el-select
v-model="queryParams.nurseStationId" v-model="queryParams.nurseStationId"
placeholder="请选择护理站" placeholder="请选择护理站"
v-loadmore="loadMore"
> >
<el-option <el-option
v-for="item in nurseStationlist" v-for="item in handstationlist"
:key="item.id" :key="item.id"
:label="item.nurseStationName" :label="item.nurseStationName"
:value="item.id" :value="item.id"
@ -672,6 +671,7 @@ export default {
total: 0, total: 0,
// //
goodsOrderList: [], goodsOrderList: [],
handstationlist: [], //list
// //
title: "", title: "",
// //
@ -712,6 +712,7 @@ export default {
created() { created() {
this.getList(); this.getList();
this.info(); this.info();
this.infos();
}, },
methods: { methods: {
// 退 // 退
@ -1022,23 +1023,18 @@ export default {
} }
}); });
}, },
// infos() {
loadMore() { var queryFor = {
var a = Math.ceil(this.total2 / 10); pageNum: 1,
if (this.nurseStationlist.length + 1 >= this.total2) { pageSize:9999,
} else { };
if (this.getListByUserquery.pageNum >= a) { getListByUser(queryFor).then((res) => {
} else { console.log(res)
this.getListByUserquery.pageNum++; this.handstationlist = res.rows;
getListByUser(this.getListByUserquery).then((res) => { });
res.rows.forEach((e) => {
this.nurseStationlist.push(e);
});
});
}
}
}, },
}, },
}; };
</script> </script>

View File

@ -12,10 +12,9 @@
<el-select <el-select
v-model="queryParams.nurseStationId" v-model="queryParams.nurseStationId"
placeholder="请选择护理站" placeholder="请选择护理站"
v-loadmore="loadMore"
> >
<el-option <el-option
v-for="item in nurseStationlist" v-for="item in handstationlist"
:key="item.id" :key="item.id"
:label="item.nurseStationName" :label="item.nurseStationName"
:value="item.id" :value="item.id"
@ -584,6 +583,7 @@ export default {
total: 0, total: 0,
// //
OrderDetailsList: [], OrderDetailsList: [],
handstationlist: [], //list
dispatchlist: [], dispatchlist: [],
nurseName: "请选择护理员", nurseName: "请选择护理员",
nursePersonid: "", nursePersonid: "",
@ -627,6 +627,7 @@ export default {
created() { created() {
this.getList(); this.getList();
this.info(); this.info();
this.infos();
}, },
methods: { methods: {
// //
@ -802,21 +803,15 @@ export default {
} }
}); });
}, },
// infos() {
loadMore() { var queryFor = {
var a = Math.ceil(this.total / 10); pageNum: 1,
if (this.nurseStationlist.length + 1 >= this.total) { pageSize:9999,
} else { };
if (this.queryParams.pageNum >= a) { getListByUser(queryFor).then((res) => {
} else { console.log(res)
this.queryParams.pageNum++; this.handstationlist = res.rows;
getListByUser(this.queryParams).then((res) => { });
res.rows.forEach((e) => {
this.nurseStationlist.push(e);
});
});
}
}
}, },
resetQuery2() { resetQuery2() {
this.resetForm("queryForm"); this.resetForm("queryForm");