This commit is contained in:
闫晓茹 2023-02-21 14:21:34 +08:00
parent 175dad837a
commit c7d530830a

View File

@ -8,13 +8,31 @@
v-show="showSearch" v-show="showSearch"
label-width="110px" label-width="110px"
> >
<el-form-item label="护理站名称" prop="nurseStationId"> <el-form-item
label="护理站名称"
prop="nurseStationId"
label-width="100px"
>
<el-select
v-model="queryParams.nurseStationId"
placeholder="请选择护理站"
>
<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="nurseStationId">
<el-button type="" class="stationbtn" @click="ParamsStation(true)">{{ <el-button type="" class="stationbtn" @click="ParamsStation(true)">{{
queryParams.nurseStationName queryParams.nurseStationName
}}</el-button> }}</el-button>
</el-form-item> </el-form-item> -->
<el-form-item label="护理项目" prop="nurseItemId" label-width="100px"> <el-form-item label="护理项目" prop="nurseItemId" label-width="100px">
<el-button type="" class="stationbtn" @click="ParamsStationxm(true)">{{ <el-button type="" class="stationbtn" @click="ParamsStationitem(true)">{{
queryParams.nurseItemName queryParams.nurseItemName
}}</el-button> }}</el-button>
</el-form-item> </el-form-item>
@ -28,10 +46,10 @@
</el-form-item> </el-form-item>
<el-form-item label="海报所属模块" prop="moduleType"> <el-form-item label="海报所属模块" prop="moduleType">
<el-select <el-select
clearable
v-model="queryParams.moduleType" v-model="queryParams.moduleType"
placeholder="请选择" placeholder="请选择"
style="width: 208px" style="width: 208px"
clearable
> >
<el-option <el-option
v-for="item in options" v-for="item in options"
@ -595,12 +613,15 @@ import {
delPoser, delPoser,
addPoser, addPoser,
getListByUser, getListByUser,
getListBy,
updatePoser, updatePoser,
updatePicture, updatePicture,
} from "@/api/system/poser"; } from "@/api/system/poser";
import { list } from "@/api/system/nurseItem"; import { list } from "@/api/system/nurseItem";
// import { getListByUser } from "@/api/system/userlist.js";
import stationAcatar from "../stationAvatar/index.vue"; import stationAcatar from "../stationAvatar/index.vue";
import editor from "@/components/Editor"; import editor from "@/components/Editor";
export default { export default {
name: "Poser", name: "Poser",
components: { stationAcatar, editor }, components: { stationAcatar, editor },
@ -622,6 +643,7 @@ export default {
itemids: [], itemids: [],
Types: [], Types: [],
idd: 9999999, idd: 9999999,
handstationlist: [],
// //
single: true, single: true,
// //
@ -759,9 +781,32 @@ export default {
created() { created() {
this.videourl = baseurl + "/system/station/updateNurseStationHeads"; this.videourl = baseurl + "/system/station/updateNurseStationHeads";
this.getList(); this.getList();
this.info();
this.nurseItemlistInfo(); this.nurseItemlistInfo();
// this.infos();
}, },
methods: { methods: {
// infos() {
// var queryFor = {
// pageNum: 1,
// pageSize: 9999,
// };
// getListByUser(queryFor).then((res) => {
// this.handstationlist = res.rows;
// this.queryParams.nurseStationId = res.rows[0].id;
// this.getListlb();
// });
// },
// /** */
// getListlb() {
// this.loading = true;
// list(this.queryParams).then((response) => {
// this.nurseItemList = response.rows;
// this.total = response.total;
// this.loading = false;
// });
// },
// //
delPictureUrl(item) { delPictureUrl(item) {
console.log(item); console.log(item);
@ -832,6 +877,7 @@ export default {
list(this.nurseItemquery).then((res) => { list(this.nurseItemquery).then((res) => {
this.nurseItemlist = res.rows; this.nurseItemlist = res.rows;
this.nurseItemtotal = res.total; this.nurseItemtotal = res.total;
this.getList();
}); });
}, },
// //
@ -856,15 +902,35 @@ export default {
} else { } else {
this.nurseitemid = this.form.nurseItemId; this.nurseitemid = this.form.nurseItemId;
} }
} else { }
else {
this.$modal.msgError("请先选择所属护理站"); this.$modal.msgError("请先选择所属护理站");
} }
}, },
//list ParamsStationitem(item){
if (this.queryParams.nurseStationId) {
this.nurseItemlistInfo();
// this.homenumber = item;
this.nurseItemshow = true;
if (this.homenumber) {
this.nurseitemid = this.queryParams.nurseItemId;
} else {
this.nurseitemid = this.form.nurseItemId;
}
}
else {
this.$modal.msgError("请先选择所属护理站");
}
} ,
//list
info() { info() {
getListByUser(this.getListByUserquery).then((res) => { getListBy(this.queryParams).then((res) => {
this.nurseStationlist = res.rows; this.nurseStationlist = res.rows;
this.total4 = res.total; console.log(this.nurseStationlist)
// this.total4 = res.total;
this.queryParams.nurseStationId = res.rows[0].id;
// this.getList();
}); });
}, },
// //
@ -872,6 +938,7 @@ export default {
this.stationcancel(); this.stationcancel();
this.stationid = this.form.nurseStationId; this.stationid = this.form.nurseStationId;
this.nurseStationshow = true; this.nurseStationshow = true;
}, },
// //
stationcancel() { stationcancel() {
@ -966,7 +1033,7 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
}; };
this.stationid = ""; // this.stationid = "";
this.nurseitemid = ""; this.nurseitemid = "";
this.queryParams = { this.queryParams = {
pageNum: 1, pageNum: 1,
@ -1021,6 +1088,9 @@ export default {
this.form.poserSort = parseInt(this.form.poserSort); this.form.poserSort = parseInt(this.form.poserSort);
} }
addPoser(this.form).then((response) => { addPoser(this.form).then((response) => {
if (this.form.poserSort) {
this.form.poserSort = parseInt(this.form.poserSort);
}
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
this.getList(); this.getList();