Commit 73a5f4a2 by Jaxon

fix(profitSharingConfig): 修正realityShopLevel字段赋值错误

修复将userType错误赋值给realityShopLevel的问题,现在正确使用realityShopLevel字段。同时在store中为不同商户类型初始化对应的realityShopLevel值。
1 parent 83449f55
...@@ -774,7 +774,7 @@ export default { ...@@ -774,7 +774,7 @@ export default {
this.profitSharingForm.realityShopMerchantName = realityMerchant.merchantName; this.profitSharingForm.realityShopMerchantName = realityMerchant.merchantName;
// 同步修改 realityShopLevel // 同步修改 realityShopLevel
this.profitSharingForm.realityShopUserType = realityMerchant?.userType; this.profitSharingForm.realityShopUserType = realityMerchant?.userType;
this.profitSharingForm.realityShopLevel = realityMerchant?.userType; this.profitSharingForm.realityShopLevel = realityMerchant?.realityShopLevel;
// 公共部分只要有变更, 就提交接口 // 公共部分只要有变更, 就提交接口
await this.handleSaveDivisionRuleAutoForm(); await this.handleSaveDivisionRuleAutoForm();
......
...@@ -316,6 +316,7 @@ export default { ...@@ -316,6 +316,7 @@ export default {
showMerchantName: res.merchantName, showMerchantName: res.merchantName,
merchantName: res.merchantName, merchantName: res.merchantName,
userType: res.merchantAccountLevel, userType: res.merchantAccountLevel,
realityShopLevel: 1,
}, },
]; ];
// merchantId: res[item.confLabel + "MerchantId"], // merchantId: res[item.confLabel + "MerchantId"],
...@@ -332,6 +333,7 @@ export default { ...@@ -332,6 +333,7 @@ export default {
showMerchantName: `${userType[item.confId]}:${merchantName}`, showMerchantName: `${userType[item.confId]}:${merchantName}`,
merchantName, merchantName,
userType: item.confId, userType: item.confId,
realityShopLevel: 2,
}; };
}); });
merchantLevel.push(...additionalMerchants); merchantLevel.push(...additionalMerchants);
...@@ -395,7 +397,6 @@ export default { ...@@ -395,7 +397,6 @@ export default {
realityShopUserType: state.profitSharingForm.realityShopUserType, realityShopUserType: state.profitSharingForm.realityShopUserType,
realityShopLevel: state.profitSharingForm.realityShopLevel, realityShopLevel: state.profitSharingForm.realityShopLevel,
realityShopMerchantId: state.profitSharingForm.realityShopMerchantId, realityShopMerchantId: state.profitSharingForm.realityShopMerchantId,
}); });
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!