| | |
| | | }, |
| | | { |
| | | field: "orderId", |
| | | title: "䏿¸¸ç产åå·", |
| | | title: "æç¨å·", |
| | | type: "string", |
| | | width: 160, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "number", |
| | | title: "ç¨çº¸åºå·", |
| | | type: "string", |
| | | width: 90, |
| | | align: "left", |
| | | }, |
| | | { |
| | |
| | | { |
| | | field: "outSGOrderStatus", |
| | | title: "åºåºåç¶æ", |
| | | type: "string", |
| | | type: "tag", |
| | | width: 110, |
| | | align: "left", |
| | | bind: { key: "outboundStatusEnum", data: [] }, |
| | | getColor: (row) => { |
| | | const status = row.outSGOrderStatus; |
| | | if (status === 3) { // 缺æ |
| | | return 'danger'; // çº¢è² |
| | | } else if (status === 0) { // æªå¼å§ |
| | | return 'success'; // ç»¿è² |
| | | } else if (status === 1) { // åºåºä¸ |
| | | return 'primary'; // èè² |
| | | } |
| | | return ''; // é»è®¤æ é¢è² |
| | | } |
| | | }, |
| | | { |
| | | field: "createDate", |
| | |
| | | type: "string", |
| | | width: 100, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "isLackMaterial", |
| | | title: "æ¯å¦ç¼ºæ", |
| | | type: "string", |
| | | width: 100, |
| | | align: "center", |
| | | formatter: (row) => { |
| | | const isLack = Boolean(row.isLackMaterial); |
| | | const text = isLack ? "æ¯" : "å¦"; |
| | | const bgColor = isLack ? '#ff4d4f' : '#52c41a'; |
| | | return `<div style="background-color: ${bgColor}; color: #ffffff; text-align: center; font-weight: bold; width: 100%; height: 100%; padding: 10px 0; display: flex; justify-content: center; align-items: center;">${text}</div>`; |
| | | } |
| | | }, |
| | | ]); |
| | | const detail = ref({ |
| | |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "outBSTOrderDetailStatus", |
| | | field: "outSGOrderDetailStatus", |
| | | title: "订åæç»ç¶æ", |
| | | type: "string", |
| | | type: "tag", |
| | | width: 180, |
| | | align: "left", |
| | | bind: { key: "outboundStatusEnum", data: [] }, |
| | | getColor: (row) => { |
| | | const status = row.outSGOrderDetailStatus; |
| | | if (status === 3) { // 缺æ |
| | | return 'danger'; // çº¢è² |
| | | } else if (status === 0) { // æªå¼å§ |
| | | return 'success'; // ç»¿è² |
| | | } else if (status === 1) { // åºåºä¸ |
| | | return 'primary'; // èè² |
| | | } |
| | | return ''; // é»è®¤æ é¢è² |
| | | } |
| | | }, |
| | | { |
| | | field: "createDate", |