Commit 0dc653ca by 李伟康

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

Feature/584/lwk

See merge request !866
2 parents a7309cc0 221b54c0
...@@ -134,7 +134,7 @@ export default { ...@@ -134,7 +134,7 @@ export default {
handler(newVal) { handler(newVal) {
this.componentData = deepClone(newVal) this.componentData = deepClone(newVal)
this.$nextTick(() => { this.$nextTick(() => {
this.formRef.clearValidate() this.formRef && this.formRef.clearValidate()
}) })
}, },
immediate: true, immediate: true,
...@@ -180,7 +180,7 @@ export default { ...@@ -180,7 +180,7 @@ export default {
{ 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: 'monthlySettlementDate', options: monthSettlementDateOptions, hide: (val) => val.e == 0 label: '兜底结算日期', key: 'monthlySettlementDate', type: 'select', viewKey: 'monthlySettlementDateText', options: monthSettlementDateOptions, hide: (val) => val.e == 0
}, },
], ],
...@@ -212,7 +212,7 @@ export default { ...@@ -212,7 +212,7 @@ export default {
getSelectText(i) { getSelectText(i) {
const value = this.componentData[i.key] const value = this.componentData[i.key]
if (this.isViewMode && i.viewKey) { if (this.isViewMode && i.viewKey) {
if (i.viewKey == 'monthlySettlementDate') return monthSettlementDateOptions.find(e => e.value == value).label || '-' if (i.viewKey == 'monthlySettlementDateText') return monthSettlementDateOptions.find(e => e.value == value).label || '-'
else return this.componentData[i.viewKey] || value || '-' else return this.componentData[i.viewKey] || value || '-'
} }
if (!value || !i?.options?.length) return '-' if (!value || !i?.options?.length) return '-'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!