Commit 7c0111aa by zhangxw

采购管理列表 状态显示报错修改

1 parent 2420b747
......@@ -190,7 +190,7 @@ export default {
label: '订单状态',
prop: 'status',
formatter: (cellValue) => {
return defaultStatusOptions.find(item => item.id == cellValue.status).label || '-'
return defaultStatusOptions.find(item => item.id == cellValue.status)?.label || '-'
},
className: (cellValue) => {
return {
......
......@@ -279,7 +279,7 @@ export default {
label: '订单状态',
prop: 'status',
formatter: (cellValue) => {
return defaultStatusOptions.find(item => item.id == cellValue.status).label || '-'
return defaultStatusOptions.find(item => item.id == cellValue.status)?.label || '-'
},
className: (cellValue) => {
return {
......
......@@ -236,7 +236,7 @@ export default {
label: '入库状态',
prop: 'putStatus',
formatter: (cellValue) => {
return defaultPutStatusOptions.find(item => item.id == cellValue.putStatus).label || '-'
return defaultPutStatusOptions.find(item => item.id == cellValue.putStatus)?.label || '-'
},
className: (cellValue) => {
return {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!