修改
This commit is contained in:
parent
a48df0556a
commit
c08eb3567e
@ -183,7 +183,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="海报显示顺序" prop="poserSort">
|
<el-form-item label="海报显示顺序" prop="poserSort">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="form.poserSort"
|
v-model.number="form.poserSort"
|
||||||
placeholder="请输入海报显示顺序"
|
placeholder="请输入海报显示顺序"
|
||||||
oninput="value=value.replace(/[^\d]/g,'')"
|
oninput="value=value.replace(/[^\d]/g,'')"
|
||||||
maxlength="5"
|
maxlength="5"
|
||||||
@ -533,11 +533,11 @@ export default {
|
|||||||
nurseItemContent: "",
|
nurseItemContent: "",
|
||||||
advanceAppointDuration: "",
|
advanceAppointDuration: "",
|
||||||
itemPictureUrl: "",
|
itemPictureUrl: "",
|
||||||
sort: "",
|
poserSort: null,
|
||||||
nurseStationId: "",
|
nurseStationId: null,
|
||||||
nurseStationName: "请选择所属护理站",
|
nurseStationName: "请选择所属护理站",
|
||||||
nurseItemName: "请选择所属护理项目",
|
nurseItemName: "请选择所属护理项目",
|
||||||
nurseItemId: ""
|
nurseItemId: null
|
||||||
},
|
},
|
||||||
imgsurl: { pictureUrlList: [] },
|
imgsurl: { pictureUrlList: [] },
|
||||||
// 表单校验
|
// 表单校验
|
||||||
@ -901,11 +901,6 @@ export default {
|
|||||||
this.getList();
|
this.getList();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
if (this.form.poserSort) {
|
|
||||||
this.form.poserSort = parseInt(this.form.poserSort);
|
|
||||||
} else {
|
|
||||||
this.form.poserSort = null;
|
|
||||||
}
|
|
||||||
addPoser(this.form).then(response => {
|
addPoser(this.form).then(response => {
|
||||||
this.$modal.msgSuccess("新增成功");
|
this.$modal.msgSuccess("新增成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
|
|||||||
@ -517,27 +517,10 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
response.data.nurseStationItemConsumables = []
|
response.data.nurseStationItemConsumables = []
|
||||||
}
|
}
|
||||||
|
|
||||||
this.StationConsumablequeryParams.nurseStationId =
|
this.StationConsumablequeryParams.nurseStationId =
|
||||||
response.data.nurseStationItem.nurseStationId;
|
response.data.nurseStationItem.nurseStationId;
|
||||||
this.imgone = this.form.nurseStationItem.itemPictureUrl;
|
this.imgone = this.form.nurseStationItem.itemPictureUrl;
|
||||||
if (this.form.nurseStationItemPrices == []) {
|
if (this.form.nurseStationItemPrices.length > 0) {
|
||||||
var obj = {
|
|
||||||
serveDurationUnit: "",
|
|
||||||
price: "",
|
|
||||||
description: "",
|
|
||||||
idd: this.idd,
|
|
||||||
};
|
|
||||||
this.form.nurseStationItemPrices.push(obj);
|
|
||||||
} else if (this.form.nurseStationItemPrices.length == 0) {
|
|
||||||
var obj = {
|
|
||||||
serveDurationUnit: "",
|
|
||||||
price: "",
|
|
||||||
description: "",
|
|
||||||
idd: this.idd,
|
|
||||||
};
|
|
||||||
this.form.nurseStationItemPrices.push(obj);
|
|
||||||
} else if (this.form.nurseStationItemPrices == null) {
|
|
||||||
var obj = {
|
var obj = {
|
||||||
serveDurationUnit: "",
|
serveDurationUnit: "",
|
||||||
price: "",
|
price: "",
|
||||||
@ -546,7 +529,6 @@ export default {
|
|||||||
};
|
};
|
||||||
this.form.nurseStationItemPrices.push(obj);
|
this.form.nurseStationItemPrices.push(obj);
|
||||||
}
|
}
|
||||||
console.log(this.form)
|
|
||||||
this.open = true;
|
this.open = true;
|
||||||
this.title = "修改护理站护理项目";
|
this.title = "修改护理站护理项目";
|
||||||
});
|
});
|
||||||
@ -574,7 +556,6 @@ export default {
|
|||||||
this.form.nurseStationItemPrices.forEach(e => {
|
this.form.nurseStationItemPrices.forEach(e => {
|
||||||
e.price = Number(e.price)
|
e.price = Number(e.price)
|
||||||
})
|
})
|
||||||
|
|
||||||
updateNurseItem(this.form).then((response) => {
|
updateNurseItem(this.form).then((response) => {
|
||||||
this.$modal.msgSuccess("修改成功");
|
this.$modal.msgSuccess("修改成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
@ -617,4 +598,4 @@ export default {
|
|||||||
this.upload.open = true;
|
this.upload.open = true;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
Loading…
Reference in New Issue
Block a user