diff --git a/src/assets/enum.js b/src/assets/enum.js index aba970e2..3287266a 100644 --- a/src/assets/enum.js +++ b/src/assets/enum.js @@ -43,7 +43,11 @@ const menu = { }, orderStatusBg(params) { - switch (params) { + /* 立减金 */ + if (params.status === 1 && params.type === 2) { + return "#43A65D" + } + switch (params.status) { case 0: return "#3575C7" case 1: diff --git a/src/pages/order/list/list.js b/src/pages/order/list/list.js index 343c3905..dcc61401 100644 --- a/src/pages/order/list/list.js +++ b/src/pages/order/list/list.js @@ -667,11 +667,11 @@ export default class orderList extends React.Component { {rowData.status_text} - {rowData.type === 2 && rowData.status === 2 + {rowData.type === 2 && [1, 2].includes(rowData.status) ? `(${rowData.received_num}/${rowData.num})` : ""} @@ -798,7 +798,7 @@ export default class orderList extends React.Component { ) : null} {rowData.type === 2 && - rowData.status === 2 && + [1, 2].includes(rowData.status) && rowData.received_num !== rowData.num ? (