耗材价格 修改
This commit is contained in:
parent
61362dfe05
commit
a358920eef
@ -96,53 +96,53 @@ export default {
|
||||
required: true,
|
||||
message: "请选择所属护理站",
|
||||
trigger: "blur",
|
||||
}, ],
|
||||
},],
|
||||
consumableDetail: [{
|
||||
required: true,
|
||||
message: "请输入耗材包名称",
|
||||
trigger: "blur",
|
||||
}, ],
|
||||
},],
|
||||
consumableUnit: [{
|
||||
required: true,
|
||||
message: "请输入耗材包单位",
|
||||
trigger: "blur",
|
||||
}, ],
|
||||
},],
|
||||
consumablePrice: [{
|
||||
required: true,
|
||||
message: "请输入耗材包价格",
|
||||
trigger: "blur",
|
||||
}, ],
|
||||
},],
|
||||
sort: [{
|
||||
required: true,
|
||||
message: "请输入排序",
|
||||
trigger: "blur",
|
||||
}, ],
|
||||
},],
|
||||
nurseStationConsumables: {
|
||||
consumableDetail: [{
|
||||
required: true,
|
||||
message: "请输入耗材包名称",
|
||||
trigger: "blur",
|
||||
}, ],
|
||||
},],
|
||||
nurseStationId: [{
|
||||
required: true,
|
||||
message: "请选择所属护理站",
|
||||
trigger: "blur",
|
||||
}, ],
|
||||
},],
|
||||
consumableUnit: [{
|
||||
required: true,
|
||||
message: "请输入耗材包单位",
|
||||
trigger: "blur",
|
||||
}, ],
|
||||
},],
|
||||
consumablePrice: [{
|
||||
required: true,
|
||||
message: "请输入耗材包价格",
|
||||
trigger: "blur",
|
||||
}, ],
|
||||
},],
|
||||
sort: [{
|
||||
required: true,
|
||||
message: "请输入排序",
|
||||
trigger: "blur",
|
||||
}, ],
|
||||
},],
|
||||
},
|
||||
},
|
||||
homenumber: null,
|
||||
@ -280,7 +280,7 @@ export default {
|
||||
consumablePrice: "",
|
||||
consumableDetail: null,
|
||||
nurseStationName: "请选择所属护理站",
|
||||
}, ],
|
||||
},],
|
||||
};
|
||||
this.resetForm("form");
|
||||
},
|
||||
@ -363,6 +363,8 @@ export default {
|
||||
this.form.consumablePrice =
|
||||
this.form.nurseStationConsumables[0].consumablePrice;
|
||||
this.form.sort = this.form.nurseStationConsumables[0].sort;
|
||||
} else {
|
||||
this.form.consumablePrice = Number(this.form.consumablePrice);
|
||||
}
|
||||
this.$refs["form"].validate((valid) => {
|
||||
if (valid) {
|
||||
@ -373,6 +375,9 @@ export default {
|
||||
this.getList();
|
||||
});
|
||||
} else {
|
||||
this.form.nurseStationConsumables.forEach((e) => {
|
||||
e.consumablePrice = Number(e.consumablePrice);
|
||||
});
|
||||
addStationConsumable(this.form).then((response) => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.nurseStationName = "请选择所属护理站";
|
||||
@ -388,21 +393,21 @@ export default {
|
||||
const ids = row.id || this.ids;
|
||||
this.$modal
|
||||
.confirm("是否确认删除?")
|
||||
.then(function() {
|
||||
.then(function () {
|
||||
return delStationConsumable(ids);
|
||||
})
|
||||
.then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
})
|
||||
.catch(() => {});
|
||||
.catch(() => { });
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download(
|
||||
"system/stationConsumable/export", {
|
||||
...this.queryParams,
|
||||
},
|
||||
...this.queryParams,
|
||||
},
|
||||
`stationConsumable_${new Date().getTime()}.xlsx`
|
||||
);
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user