Commit d802de6d by 张立顺

fix bug

1 parent 11cfd61c
......@@ -187,8 +187,8 @@ export default {
// const optIndex = this.tableSelectOptions.findIndex((opt) => { return opt.merchantId == findObj?.merchantId })
// console.log(optIndex, 'optIndex')
// 兼容多商户的id 处理
console.log(findObj, tableSelectOptionsId)
console.log(findObj.targetMerchantType == 3 && tableSelectOptionsId)
// console.log(findObj, tableSelectOptionsId)
// console.log(findObj.targetMerchantType == 3 && tableSelectOptionsId)
form[name] = parseInt(findObj.targetMerchantType == 3 && tableSelectOptionsId ? findObj?.targetMerchantLevel : findObj?.merchantId) || ""
})
}
......
......@@ -93,11 +93,12 @@ export default {
id
}).then((result) => {
console.log(result, "result")
const partnerMerchantName = result.shelfType == 1 ? result.merchantSettleDistributeRule.realityShopMerchantName : result.merchantSettleDistributeRule.realityShopLevel == 1 ? '门店' : '上级'
const realityShopMerchantName = result.basicInfo.shelfType == 1 ? result.merchantSettleDistributeRule.realityShopMerchantName : result.merchantSettleDistributeRule.realityShopLevel == 1 ? '门店' : '上级'
// console.log(partnerMerchantName, 'partnerMerchantName')
this.divisiObj = Object.assign(result.merchantSettleDistributeRule, {
partnerMerchantName,
partnerMerchantId:
result.merchantSettleDistributeRule.realityShopMerchantId
realityShopMerchantName,
partnerMerchantName: result.createBusinessApproveMerchantList[0].partnerMerchantName,
partnerMerchantId: result.createBusinessApproveMerchantList[0].parentMerchantId
})
this.financialObj = result.merchantReconciliationRule
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!