Commit 1f926b669b75a623d025a11cf1631a719a7da987

Authored by zhongnanhuang
1 parent de8a4b34

feat: update 历史记录bug修复

src/pages/Order/components/HistoryModal.tsx
... ... @@ -40,15 +40,6 @@ export default ({ subOrders, isCancelledOrder, onClose }) => {
40 40  
41 41 record.push(<span>进行了</span>);
42 42  
43   - record.push(
44   - <span className="text-[#3b83e5]">
45   - {HISTORY_OPT_TYPE.get(history.record) +
46   - (history.record === 'INVOICING'
47   - ? '(开票号码:' + history.invoiceNumber + ')'
48   - : '')}
49   - </span>,
50   - );
51   -
52 43 // let label = enumValueToLabel(history.status, ORDER_STATUS_OPTIONS);
53 44  
54 45 // if (
... ... @@ -67,15 +58,29 @@ export default ({ subOrders, isCancelledOrder, onClose }) =&gt; {
67 58  
68 59 if (history.record?.indexOf(':') !== -1) {
69 60 let values = history.record?.split(':');
  61 + let type = values[0];
  62 + let target = values[1];
  63 + if (target === 'null') {
  64 + target = '未指定';
  65 + }
70 66 //采购转发
71   - if (values[0] === 'PROCURE_CONVERT_PROCURE') {
  67 + if (type === 'PROCURE_CONVERT_PROCURE') {
72 68 record.push(
73 69 <>
74 70 <span>采购转发,{history.createByName}将订单转发给了</span>
75   - <span className="text-[#3b83e5]">{values[1]}</span>
  71 + <span className="text-[#3b83e5]">{target}</span>
76 72 </>,
77 73 );
78 74 }
  75 + } else {
  76 + record.push(
  77 + <span className="text-[#3b83e5]">
  78 + {HISTORY_OPT_TYPE.get(history.record) +
  79 + (history.record === 'INVOICING'
  80 + ? '(开票号码:' + history.invoiceNumber + ')'
  81 + : '')}
  82 + </span>,
  83 + );
79 84 }
80 85  
81 86 if (history.notes !== null) {
... ...
src/pages/Order/constant.ts
... ... @@ -390,6 +390,8 @@ export const HISTORY_OPT_TYPE = new Map&lt;string, string&gt;([
390 390 ['after-sales-CHECK', '售后审核'],
391 391 ['order-change-normal', '申请修改'],
392 392 ['order-change-normal-CHECK', '申请修改审核'],
  393 + ['modify_leader_audit', '申请修改领导审核'],
  394 + ['node_operating_audit', '申请修改节点审核'],
393 395 ['warehouse_audit', '仓库审核'],
394 396 ['post_audit', '后置审核'],
395 397 ['applyModify', '申请修改订单信息'],
... ...