| | |
| | | if (row.shippingDate || row.shippingCarNumber) { |
| | | return '已发货' |
| | | } |
| | | if (row.shippingStatus === '发货中') { |
| | | return '发货中' |
| | | } |
| | | const status = row.shippingStatus |
| | | if (status === null || status === undefined || status === '') { |
| | | return '待发货' |
| | |
| | | '审核中': '审核中', |
| | | '审核拒绝': '审核拒绝', |
| | | '审核通过': '审核通过', |
| | | '已发货': '已发货' |
| | | '已发货': '已发货', |
| | | '发货中': '发货中' |
| | | } |
| | | return map[String(status).trim()] || '待发货' |
| | | } |
| | |
| | | '审核中': 'warning', |
| | | '审核拒绝': 'danger', |
| | | '审核通过': 'success', |
| | | '已发货': 'success' |
| | | '已发货': 'success', |
| | | '发货中': 'success' |
| | | } |
| | | return map[String(status).trim()] || 'info' |
| | | } |
| | |
| | | */ |
| | | const getShippingStatusText = (row) => { |
| | | // 如果已发货(有发货日期或车牌号),显示"已发货" |
| | | if(row.shippingStatus === '发货中') { |
| | | return '发货中'; |
| | | } |
| | | if (row.shippingDate || row.shippingCarNumber) { |
| | | return '已发货'; |
| | | } |
| | |
| | | '审核中': '审核中', |
| | | '审核拒绝': '审核拒绝', |
| | | '审核通过': '审核通过', |
| | | '已发货': '已发货' |
| | | '已发货': '已发货', |
| | | '发货中': '发货中' |
| | | }; |
| | | return statusTextMap[statusStr] || '待发货'; |
| | | }; |
| | |
| | | '审核中': 'warning', |
| | | '审核拒绝': 'danger', |
| | | '审核通过': 'success', |
| | | '已发货': 'success' |
| | | '已发货': 'success', |
| | | '发货中': 'success', |
| | | }; |
| | | return typeTextMap[statusStr] || 'info'; |
| | | }; |