Commit 336ad81b by 李伟康

fix(sales): 修复兜底结算日期字段显示条件

- 修改兜底结算日期字段的隐藏条件,从 val.e == 0 改为 val.hasGuarantee == 0
- 确保兜底结算日期仅在存在兜底配置时显示
1 parent 8cb4611f
...@@ -179,9 +179,7 @@ export default { ...@@ -179,9 +179,7 @@ export default {
{ label: "其他(房租、水电、耗材等)/月", labelWidth: "240px", key: "otherCostPerMonth", type: 'input', filterRule: "decimalRange", min: 0, max: 99999999, precision: 2 }, { label: "其他(房租、水电、耗材等)/月", labelWidth: "240px", key: "otherCostPerMonth", type: 'input', filterRule: "decimalRange", min: 0, max: 99999999, precision: 2 },
{ label: "预估毛利率", key: "estimatedGrossMargin", type: 'input', unit: "%", filterRule: "decimalRange", min: 0, max: 100, precision: 2 }, { label: "预估毛利率", key: "estimatedGrossMargin", type: 'input', unit: "%", filterRule: "decimalRange", min: 0, max: 100, precision: 2 },
{ label: "是否存在兜底", key: "hasGuarantee", type: 'addComponent', addComponent: 'BottomLineCondition', class: !this.isViewMode ? 'w100' : '', listKey: 'guaranteeConfigs' }, { label: "是否存在兜底", key: "hasGuarantee", type: 'addComponent', addComponent: 'BottomLineCondition', class: !this.isViewMode ? 'w100' : '', listKey: 'guaranteeConfigs' },
{ { label: '兜底结算日期', key: 'monthlySettlementDate', type: 'select', viewKey: 'monthlySettlementDateText', options: monthSettlementDateOptions, hide: (val) => val.hasGuarantee == 0 },
label: '兜底结算日期', key: 'monthlySettlementDate', type: 'select', viewKey: 'monthlySettlementDateText', options: monthSettlementDateOptions, hide: (val) => val.e == 0
},
], ],
rules: { rules: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!