耗材价格 修改
This commit is contained in:
parent
61362dfe05
commit
a358920eef
@ -363,6 +363,8 @@ export default {
|
|||||||
this.form.consumablePrice =
|
this.form.consumablePrice =
|
||||||
this.form.nurseStationConsumables[0].consumablePrice;
|
this.form.nurseStationConsumables[0].consumablePrice;
|
||||||
this.form.sort = this.form.nurseStationConsumables[0].sort;
|
this.form.sort = this.form.nurseStationConsumables[0].sort;
|
||||||
|
} else {
|
||||||
|
this.form.consumablePrice = Number(this.form.consumablePrice);
|
||||||
}
|
}
|
||||||
this.$refs["form"].validate((valid) => {
|
this.$refs["form"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
@ -373,6 +375,9 @@ export default {
|
|||||||
this.getList();
|
this.getList();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
this.form.nurseStationConsumables.forEach((e) => {
|
||||||
|
e.consumablePrice = Number(e.consumablePrice);
|
||||||
|
});
|
||||||
addStationConsumable(this.form).then((response) => {
|
addStationConsumable(this.form).then((response) => {
|
||||||
this.$modal.msgSuccess("新增成功");
|
this.$modal.msgSuccess("新增成功");
|
||||||
this.nurseStationName = "请选择所属护理站";
|
this.nurseStationName = "请选择所属护理站";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user