| | |
| | | backgroundColor: 'action.selected', |
| | | }; |
| | | } |
| | | if (record.staSts$ === '无货') |
| | | if (record.connect) |
| | | return { |
| | | ...style, |
| | | borderLeftColor: green[500], |
| | | borderLeftWidth: 5, |
| | | borderLeftStyle: 'solid', |
| | | }; |
| | | if (record.staSts$ === '有货') |
| | | return { |
| | | ...style, |
| | | borderLeftColor: blue[500], |
| | | borderLeftWidth: 5, |
| | | borderLeftStyle: 'solid', |
| | | }; |
| | | if (record.staSts$ === '禁用') |
| | | if (!record.connect) |
| | | return { |
| | | ...style, |
| | | borderLeftColor: red[500], |
| | | borderLeftWidth: 5, |
| | | borderLeftStyle: 'solid', |
| | | }; |
| | | if (record.staSts$ === '放货预约') |
| | | if (record.rsvInCnt && record.rsvInCnt > 0) |
| | | return { |
| | | ...style, |
| | | borderLeftColor: blue[500], |
| | | borderLeftWidth: 5, |
| | | borderLeftStyle: 'solid', |
| | | }; |
| | | if (record.rsvOutCnt && record.rsvOutCnt > 0) |
| | | return { |
| | | ...style, |
| | | borderLeftColor: orange[500], |
| | | borderLeftWidth: 5, |
| | | borderLeftStyle: 'solid', |
| | | }; |
| | | if (record.staSts$ === '取货预约') |
| | | return { |
| | | ...style, |
| | | borderLeftColor: orange[500], |
| | | borderLeftWidth: 5, |
| | | borderLeftStyle: 'solid', |
| | | }; |
| | | if (record.staSts$ === '其他') |
| | | if (!record.statusBool) |
| | | return { |
| | | ...style, |
| | | borderLeftColor: grey[500], |