|
@@ -276,6 +276,7 @@ export default {
|
|
|
'validityCount',
|
|
|
'validityPeriod',
|
|
|
'contractAmount',
|
|
|
+ 'subAccountNumbers',
|
|
|
]
|
|
|
const waitingRestoreForm = this.thisProductInfoListItem.productCardInfo?.waitingRestoreForm
|
|
|
if (waitingRestoreForm && Object.keys(waitingRestoreForm).length > 0) {
|
|
@@ -819,7 +820,8 @@ export default {
|
|
|
// 续费。取当前关联订单服务中的个数
|
|
|
if (re && re.empowerCount) {
|
|
|
// 赋值
|
|
|
- const subAccountNumbers = { payCount: re.empowerCount }
|
|
|
+ const payCount = re.empowerCount - 1 <= 0 ? 1 : re.empowerCount - 1
|
|
|
+ const subAccountNumbers = { payCount }
|
|
|
Object.assign(refreshObj, { subAccountNumbers })
|
|
|
// 禁用
|
|
|
}
|
|
@@ -1208,9 +1210,17 @@ export default {
|
|
|
this.refreshValue({ subAccountNumbers })
|
|
|
}
|
|
|
// 清空合同金额
|
|
|
- this.refreshValue({
|
|
|
- [schemaKeyMap.contractAmount]: Object.assign({}, this.value[schemaKeyMap.contractAmount], { contractMoney: '', standardMoney: '' })
|
|
|
- })
|
|
|
+ // 销售策略变为赠送,则合同金额默认值改为0
|
|
|
+ if (this.value.saleGifts === 2) {
|
|
|
+ // 1售卖 2赠送
|
|
|
+ this.refreshValue({
|
|
|
+ [schemaKeyMap.contractAmount]: Object.assign({}, this.value[schemaKeyMap.contractAmount], { contractMoney: '0' })
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.refreshValue({
|
|
|
+ [schemaKeyMap.contractAmount]: Object.assign({}, this.value[schemaKeyMap.contractAmount], { contractMoney: '', standardMoney: '' })
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
console.log(`以下字段变更了:${this.productType}`, changedArr)
|