提交 3a0669da authored 作者: huang's avatar huang

调整

上级 b82ce2ec
......@@ -17,6 +17,12 @@ export function getDeductionById(id) {
}
//更新获取扣费方案
export function updateDeduction(data) {
data.breakfastBasePrice*=100
data.breakfastFormalPrice*=100
data.lunchBasePrice*=100
data.lunchFormalPrice*=100
data.supperBasePrice*=100
data.supperFormalPrice*=100
return request({
url: '/deductionPlan/updateDeduction',
method: 'put',
......
......@@ -157,6 +157,12 @@
const deptId = row.deptId || this.ids[0]
getDeductionById(deptId).then(response => {
this.form = response.data;
this.form.breakfastBasePrice/=100
this.form.breakfastFormalPrice/=100
this.form.lunchBasePrice/=100
this.form.lunchFormalPrice/=100
this.form.supperBasePrice/=100
this.form.supperFormalPrice/=100
this.open = true;
this.title = this.form.planName;
});
......@@ -167,12 +173,12 @@
if (valid) {
if (this.form.id !== undefined) {
this.form.breakfastBasePrice = this.form.breakfastBasePrice*100
this.form.breakfastFormalPrice = this.form.breakfastFormalPrice * 100
this.form.lunchBasePrice = this.form.lunchBasePrice * 100
this.form.lunchFormalPrice = this.form.lunchFormalPrice * 100
this.form.supperBasePrice = this.form.supperBasePrice * 100
this.form.supperFormalPrice = this.form.supperFormalPrice * 100
/*this.form.breakfastBasePrice*=100
this.form.breakfastFormalPrice *= 100
this.form.lunchBasePrice *= 100
this.form.lunchFormalPrice *= 100
this.form.supperBasePrice *=100
this.form.supperFormalPrice *= 100*/
updateDeduction(this.form).then(response => {
if (response.code === 200) {
this.msgSuccess("修改成功");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论