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