|
|
@ -71,6 +71,7 @@ |
|
|
<div style="display: flex;"> |
|
|
<div style="display: flex;"> |
|
|
<el-button class="commonbutton" @click="dialogWin.CustomerOrgGroupEdit = false">关闭</el-button> |
|
|
<el-button class="commonbutton" @click="dialogWin.CustomerOrgGroupEdit = false">关闭</el-button> |
|
|
<el-button type="success" @click="computePrice">同比折算组合项目价格</el-button> |
|
|
<el-button type="success" @click="computePrice">同比折算组合项目价格</el-button> |
|
|
|
|
|
<el-button type="success" @click="computePricePerson">同步已登记人员的分组组合项目价格</el-button> |
|
|
<el-button class="commonbutton" type="primary" @click="onSubmit('form')">确定</el-button> |
|
|
<el-button class="commonbutton" type="primary" @click="onSubmit('form')">确定</el-button> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
@ -265,7 +266,7 @@ export default { |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
|
// 同比折算组合项目价格 |
|
|
computePrice() { |
|
|
computePrice() { |
|
|
if (!this.form.id) { |
|
|
if (!this.form.id) { |
|
|
this.$message.warning("尚未保存信息,不可执行此操作!"); |
|
|
this.$message.warning("尚未保存信息,不可执行此操作!"); |
|
|
@ -308,6 +309,19 @@ export default { |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 同步已登记人员的分组组合项目价格 |
|
|
|
|
|
computePricePerson(){ |
|
|
|
|
|
if (!this.form.id) { |
|
|
|
|
|
this.$message.warning("尚未保存信息,不可执行此操作!"); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
let customerOrgGroupId = this.form.id; //分组ID |
|
|
|
|
|
let customerOrgGroupAsbitems = []; //分组包含的套餐 |
|
|
|
|
|
|
|
|
|
|
|
this.$message.warning({showClose:true,message:"开发中……"}) |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
madeNewGroupAsbitems(oldGroupAsbitems, newTotal) { |
|
|
madeNewGroupAsbitems(oldGroupAsbitems, newTotal) { |
|
|
newTotal = Math.round(Number(newTotal) * 100) / 100; |
|
|
newTotal = Math.round(Number(newTotal) * 100) / 100; |
|
|
let newGroupAsbitems = []; |
|
|
let newGroupAsbitems = []; |
|
|
|