Commit ea4f8531 by 李伟康

Merge branch 'feature/584/lwk' into 'SAAS+V5.8.4'

Feature/584/lwk

See merge request !903
2 parents 337835f1 41af0dd6
...@@ -55,7 +55,7 @@ export default { ...@@ -55,7 +55,7 @@ export default {
expenseCategoryMap: { expenseCategoryMap: {
1: '流量费', 1: '流量费',
2: '服务商分润', 2: '服务商分润',
302: '资源费', 1301: '资源费',
1300: '其他费用', 1300: '其他费用',
3: '产品成本', 3: '产品成本',
4: '手续费', 4: '手续费',
......
...@@ -345,8 +345,9 @@ export default { ...@@ -345,8 +345,9 @@ export default {
const option = i.options.find(item => item.value === value), const option = i.options.find(item => item.value === value),
selectOptions = this.getExpenseCategoryCalculateTypeOptions(i.targetType), selectOptions = this.getExpenseCategoryCalculateTypeOptions(i.targetType),
selectValue = selectOptions.find(item => item.expenseCategoryCalculateType == data[i.selectKey]), selectValue = selectOptions.find(item => item.expenseCategoryCalculateType == data[i.selectKey]),
unit = [3, 10].includes(Number(data[i.selectKey])) ? '元' : '%' unit = [3, 10].includes(Number(data[i.selectKey])) ? '元' : '%',
return `${option?.label}    ${selectValue?.label}:${data[i.inputKey]}${unit}` label = selectValue?.label ? `${selectValue?.label}:` : ''
return `${option?.label || ''}    ${label}${data[i.inputKey] || ''}${data[i.inputKey] ? (unit || '') : ''}`
}, },
handleSelectChange(val, item) { handleSelectChange(val, item) {
this.componentData.productCategoryRules[this.productCategoryIndex][item.inputKey] = '' this.componentData.productCategoryRules[this.productCategoryIndex][item.inputKey] = ''
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!