|
@@ -569,7 +569,7 @@ export default {
|
|
|
|
|
|
// 个人身份、超级订阅特殊判断。全国则禁用升级
|
|
|
const personal = this.pageForm.buySubject === 1
|
|
|
- if (personal && this.productType === productKeyMap.cjdy && currentProductTypeList[0]?.provinceCount < 0) {
|
|
|
+ if (personal && this.utilCheckIsSvipMaxSpec(currentProductTypeList[0])) {
|
|
|
stMap.canUpgrade = false
|
|
|
stMap.personalMaxSpec = true
|
|
|
}
|
|
@@ -828,6 +828,27 @@ export default {
|
|
|
// if (uc.props.options.length === 1) {
|
|
|
// this.refreshValue({ [schemaKeyMap.upgradeContent]: [uc.props.options[0].value] })
|
|
|
// }
|
|
|
+
|
|
|
+ // 选项禁用: 补充权益置灰(超级订阅全国升级)
|
|
|
+ const ent = this.pageForm.buySubject === 2
|
|
|
+ // 1. 判断是否符合禁用条件
|
|
|
+ // (首先需要展示最少2个选项)企业身份、超级订阅特殊判断。购买全国,不能点击增购服务
|
|
|
+ if (uc.props.options.length > 1 && ent && this.utilCheckIsSvipMaxSpec(this.selectedRelatedOrder)) {
|
|
|
+ uc.props.options.forEach(c => {
|
|
|
+ if (c.addBenefits) {
|
|
|
+ c.disabled = true
|
|
|
+ }
|
|
|
+ })
|
|
|
+ const enableValue = uc.props.options.filter(c => !c.disabled)
|
|
|
+ if (enableValue.length > 0) {
|
|
|
+ this.refreshValue({ [schemaKeyMap.upgradeContent]: [enableValue[0].value] })
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ // 解除禁用
|
|
|
+ uc.props.options.forEach(c => {
|
|
|
+ c.disabled = false
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
// 账号数量、主账号/子账号数量
|
|
@@ -1216,6 +1237,10 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ // 工具:判断是否超级订阅全国
|
|
|
+ utilCheckIsSvipMaxSpec(relatedOrdersInfo = {}) {
|
|
|
+ return this.productType === productKeyMap.cjdy && relatedOrdersInfo?.provinceCount < 0
|
|
|
+ },
|
|
|
cjdyChangeSpecificationSchema(hide = false) {
|
|
|
// 有“补充服务”或为空:仅可选择不低于关联订单的产品规格
|
|
|
const ma = this.getSchemaItemWithKey(schemaKeyMap.specification)
|