护理站 修改

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

View File

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

View File

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

View File

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