Commit cdacd5b4cafc73d84dfe094eff5240f5b1336a15
1 parent
df25509d
refactor(OrderList): 移除重新开票(旧)和重新开票(新)按钮
- 删除了 OrderList 组件中的重新开票(旧)和重新开票(新)按钮 -移除了相关的状态管理和事件处理逻辑 - 优化了代码结构,提高了代码的可读性和维护性
Showing
1 changed file
with
0 additions
and
68 deletions
src/pages/Order/OrderList/OrderList.tsx
@@ -1415,39 +1415,6 @@ const OrderList = ({ paramsNew, searchShow, toolbarShow }) => { | @@ -1415,39 +1415,6 @@ const OrderList = ({ paramsNew, searchShow, toolbarShow }) => { | ||
1415 | ) : ( | 1415 | ) : ( |
1416 | '' | 1416 | '' |
1417 | )} | 1417 | )} |
1418 | - {optRecord.paths?.includes('reissue_old') ? ( | ||
1419 | - /*optRecord.afterInvoicingStatus==='PARTIAL_INVOICING'|| | ||
1420 | - optRecord.afterInvoicingStatus==='COMPLETE_INVOICING'*/ | ||
1421 | - <Button | ||
1422 | - className="p-0" | ||
1423 | - type="link" | ||
1424 | - onClick={() => { | ||
1425 | - setCurrentMainId(record.id); | ||
1426 | - setReissueVisibleOld(true); | ||
1427 | - }} | ||
1428 | - > | ||
1429 | - 重新开票(旧) | ||
1430 | - </Button> | ||
1431 | - ) : ( | ||
1432 | - '' | ||
1433 | - )} | ||
1434 | - {optRecord.paths?.includes('reissue') ? ( | ||
1435 | - /*optRecord.afterInvoicingStatus==='PARTIAL_INVOICING'|| | ||
1436 | - optRecord.afterInvoicingStatus==='COMPLETE_INVOICING'*/ | ||
1437 | - <Button | ||
1438 | - className="p-0" | ||
1439 | - type="link" | ||
1440 | - onClick={() => { | ||
1441 | - setCurrentMainId(record.id); | ||
1442 | - setCurretnOptSubId(optRecord.id); | ||
1443 | - setReissueVisible(true); | ||
1444 | - }} | ||
1445 | - > | ||
1446 | - 重新开票(新) | ||
1447 | - </Button> | ||
1448 | - ) : ( | ||
1449 | - '' | ||
1450 | - )} | ||
1451 | 1418 | ||
1452 | {optRecord.paths?.includes('confirmReissue_old') ? ( | 1419 | {optRecord.paths?.includes('confirmReissue_old') ? ( |
1453 | <Button | 1420 | <Button |
@@ -2965,24 +2932,6 @@ const OrderList = ({ paramsNew, searchShow, toolbarShow }) => { | @@ -2965,24 +2932,6 @@ const OrderList = ({ paramsNew, searchShow, toolbarShow }) => { | ||
2965 | '' | 2932 | '' |
2966 | )} | 2933 | )} |
2967 | 2934 | ||
2968 | - {record.paths?.includes('reissue_old') ? ( | ||
2969 | - /*optRecord.afterInvoicingStatus==='PARTIAL_INVOICING'|| | ||
2970 | - optRecord.afterInvoicingStatus==='COMPLETE_INVOICING'*/ | ||
2971 | - <Button | ||
2972 | - className="p-0" | ||
2973 | - type="link" | ||
2974 | - onClick={() => { | ||
2975 | - setCurrentMainId(record.id); | ||
2976 | - setReissueVisibleOld(true); | ||
2977 | - console.log(reissueVisible); | ||
2978 | - }} | ||
2979 | - > | ||
2980 | - 重新开票(旧) | ||
2981 | - </Button> | ||
2982 | - ) : ( | ||
2983 | - '' | ||
2984 | - )} | ||
2985 | - | ||
2986 | {record.paths?.includes('confirmReissue_old') ? ( | 2935 | {record.paths?.includes('confirmReissue_old') ? ( |
2987 | <Button | 2936 | <Button |
2988 | className="p-0" | 2937 | className="p-0" |
@@ -3000,23 +2949,6 @@ const OrderList = ({ paramsNew, searchShow, toolbarShow }) => { | @@ -3000,23 +2949,6 @@ const OrderList = ({ paramsNew, searchShow, toolbarShow }) => { | ||
3000 | '' | 2949 | '' |
3001 | )} | 2950 | )} |
3002 | 2951 | ||
3003 | - {record.paths?.includes('reissue') ? ( | ||
3004 | - /*optRecord.afterInvoicingStatus==='PARTIAL_INVOICING'|| | ||
3005 | - optRecord.afterInvoicingStatus==='COMPLETE_INVOICING'*/ | ||
3006 | - <Button | ||
3007 | - className="p-0" | ||
3008 | - type="link" | ||
3009 | - onClick={() => { | ||
3010 | - setCurrentMainId(record.id); | ||
3011 | - setReissueVisible(true); | ||
3012 | - }} | ||
3013 | - > | ||
3014 | - 重新开票(新) | ||
3015 | - </Button> | ||
3016 | - ) : ( | ||
3017 | - '' | ||
3018 | - )} | ||
3019 | - | ||
3020 | {record.paths?.includes('confirmReissue') ? ( | 2952 | {record.paths?.includes('confirmReissue') ? ( |
3021 | <Button | 2953 | <Button |
3022 | className="p-0" | 2954 | className="p-0" |