Commit c5ff0078 by chenwq

fix(CustomerDetailDialog): 为expectedOperationDate添加日期格式化显示

添加日期格式化函数,将expectedOperationDate字段显示为YYYY-MM-DD格式,若无值则显示'-'
1 parent 82ba141c
...@@ -217,7 +217,10 @@ export default { ...@@ -217,7 +217,10 @@ export default {
name: 'expectedOperationDate', name: 'expectedOperationDate',
type: 'showTxt', type: 'showTxt',
style: editItemStyle, style: editItemStyle,
txtStyle: contentStyle txtStyle: contentStyle,
formatter: (cellValue) => {
return cellValue.expectedOperationDate ? dayjs(cellValue.expectedOperationDate).format('YYYY-MM-DD') : '-'
}
}, { }, {
label: '分润规则', label: '分润规则',
name: 'profitRule', name: 'profitRule',
...@@ -251,7 +254,10 @@ export default { ...@@ -251,7 +254,10 @@ export default {
name: 'expectedOperationDate', name: 'expectedOperationDate',
type: 'showTxt', type: 'showTxt',
style: editItemStyle, style: editItemStyle,
txtStyle: contentStyle txtStyle: contentStyle,
formatter: (cellValue) => {
return cellValue.expectedOperationDate ? dayjs(cellValue.expectedOperationDate).format('YYYY-MM-DD') : '-'
}
}, { }, {
label: '分润规则', label: '分润规则',
name: 'profitRule', name: 'profitRule',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!