Commit 5f0b213a by 张晓玮

Merge branch 'zhangxw_dev_v4.21.1' into 'dev_v4.21.1'

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

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