+
同比折算组合项目价格
同步已登记人员的分组组合项目价格
确定
@@ -110,7 +111,7 @@ export default {
maritalStatusId: "A",
ageLowerLimit: 0,
ageUpperLimit: 200,
- canAddMoney:0,
+ canAddMoney: 0,
jobPost: "",
jobTitle: "",
remark: "",
@@ -170,7 +171,7 @@ export default {
}
})
} else {
- console.log('this.formInit',this.formInit)
+ console.log('this.formInit', this.formInit)
this.form = deepCopy(this.formInit)
this.form.customerOrgId = this.params.customerOrgId
this.form.customerOrgRegisterId = this.params.customerOrgRegisterId
@@ -247,25 +248,25 @@ export default {
.then((res) => {
// console.log(res)
if (res.code != -1) {
- console.log("保存分组成功!");
+ console.log("保存分组成功!");
this.dataTransOpts.refresh.customer_org_group_detail.M
}
})
-
+
} else {
//新增
postapi("/api/customerorggroup/createcustomerorggroupincustomerorgregister", body)
.then(res => {
if (res.code != -1) {
console.log("操作成功!");
- this.dataTransOpts.tableS.customer_org_group.id = res.data.id
+ this.dataTransOpts.tableS.customer_org_group.id = res.data.id
this.dialogWin.CustomerOrgGroupEdit = false;
}
});
}
});
},
-
+
// 同比折算组合项目价格
computePrice() {
if (!this.form.id) {
@@ -310,16 +311,27 @@ export default {
},
// 同步已登记人员的分组组合项目价格
- computePricePerson(){
+ computePricePerson() {
if (!this.form.id) {
this.$message.warning("尚未保存信息,不可执行此操作!");
return;
}
- let customerOrgGroupId = this.form.id; //分组ID
- let customerOrgGroupAsbitems = []; //分组包含的套餐
-
- this.$message.warning({showClose:true,message:"开发中……"})
-
+ // {
+ // "customerOrgGroupId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
+ // "startDate": "string",
+ // "endDate": "string",
+ // "syncMode": "string" //同步模式 0-标准价格 1-折扣价格 2-标准价格+折扣价格
+ // }
+ let body = {
+ customerOrgGroupId: this.form.id,
+ syncMode: '2'
+ }
+ postapi('/api/app/CustomerOrgGroup/SyncCustomerOrgGroupAsbitemPrice', body)
+ .then(res => {
+ if (res.code > -1) {
+ this.$message.success({ showClose: true, message: '操作成功!' })
+ }
+ })
},
madeNewGroupAsbitems(oldGroupAsbitems, newTotal) {