Commit a948eae226a99dbc88b3ea38b3fd3fffbbd3c592
1 parent
77954e9c
feat: update
Showing
4 changed files
with
84 additions
and
53 deletions
src/pages/Order/components/HistoryModal.tsx
@@ -54,7 +54,7 @@ export default ({ subOrders, onClose }) => { | @@ -54,7 +54,7 @@ export default ({ subOrders, onClose }) => { | ||
54 | <Row className="max-h-[500px] overflow-auto" gutter={[0, 14]}> | 54 | <Row className="max-h-[500px] overflow-auto" gutter={[0, 14]}> |
55 | {data.map((item) => { | 55 | {data.map((item) => { |
56 | return ( | 56 | return ( |
57 | - <Col span={24} key="key"> | 57 | + <Col span={24} key={i}> |
58 | <Flex vertical> | 58 | <Flex vertical> |
59 | <div> | 59 | <div> |
60 | <span className="py-2 text-[#5E5E5E]"> | 60 | <span className="py-2 text-[#5E5E5E]"> |
@@ -68,7 +68,7 @@ export default ({ subOrders, onClose }) => { | @@ -68,7 +68,7 @@ export default ({ subOrders, onClose }) => { | ||
68 | <Flex vertical> | 68 | <Flex vertical> |
69 | {item.historySubOrderRecordDto?.map((history) => { | 69 | {item.historySubOrderRecordDto?.map((history) => { |
70 | return ( | 70 | return ( |
71 | - <div className="py-1" key="key"> | 71 | + <div className="py-1" key={history.id}> |
72 | <span className="pr-2 text-[#5E5E5E]"> | 72 | <span className="pr-2 text-[#5E5E5E]"> |
73 | {formatDateTime(history.createTime)} | 73 | {formatDateTime(history.createTime)} |
74 | </span> | 74 | </span> |
src/pages/Order/components/OrderDrawer.tsx
@@ -276,6 +276,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | @@ -276,6 +276,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | ||
276 | > | 276 | > |
277 | <h2>订单基本信息</h2> | 277 | <h2>订单基本信息</h2> |
278 | <ProFormText | 278 | <ProFormText |
279 | + key="id" | ||
279 | name="id" | 280 | name="id" |
280 | width="lg" | 281 | width="lg" |
281 | disabled | 282 | disabled |
@@ -285,6 +286,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | @@ -285,6 +286,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | ||
285 | /> | 286 | /> |
286 | <ProFormSelect | 287 | <ProFormSelect |
287 | name="salesCode" | 288 | name="salesCode" |
289 | + key="salesCode" | ||
288 | width="lg" | 290 | width="lg" |
289 | showSearch | 291 | showSearch |
290 | label="销售代表" | 292 | label="销售代表" |
@@ -294,7 +296,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | @@ -294,7 +296,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | ||
294 | // disabled={mainInfoDisbled} | 296 | // disabled={mainInfoDisbled} |
295 | /> | 297 | /> |
296 | <ProFormSelect | 298 | <ProFormSelect |
297 | - key="key" | 299 | + key="customerName" |
298 | label="收货人" | 300 | label="收货人" |
299 | width="lg" | 301 | width="lg" |
300 | showSearch | 302 | showSearch |
@@ -389,6 +391,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | @@ -389,6 +391,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | ||
389 | /> | 391 | /> |
390 | <ProFormText | 392 | <ProFormText |
391 | width="lg" | 393 | width="lg" |
394 | + key="customerContactNumber" | ||
392 | name="customerContactNumber" | 395 | name="customerContactNumber" |
393 | label="联系方式" | 396 | label="联系方式" |
394 | placeholder="请输入联系方式" | 397 | placeholder="请输入联系方式" |
@@ -397,6 +400,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | @@ -397,6 +400,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | ||
397 | /> | 400 | /> |
398 | <ProFormText | 401 | <ProFormText |
399 | width="lg" | 402 | width="lg" |
403 | + key="institution" | ||
400 | name="institution" | 404 | name="institution" |
401 | label="单位" | 405 | label="单位" |
402 | placeholder="请输入单位" | 406 | placeholder="请输入单位" |
@@ -405,6 +409,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | @@ -405,6 +409,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | ||
405 | /> | 409 | /> |
406 | <ProFormText | 410 | <ProFormText |
407 | width="lg" | 411 | width="lg" |
412 | + key="institutionContactName" | ||
408 | name="institutionContactName" | 413 | name="institutionContactName" |
409 | label="单位联系人" | 414 | label="单位联系人" |
410 | placeholder="请输入单位联系人" | 415 | placeholder="请输入单位联系人" |
@@ -413,6 +418,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | @@ -413,6 +418,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | ||
413 | /> | 418 | /> |
414 | <ProFormTextArea | 419 | <ProFormTextArea |
415 | width="lg" | 420 | width="lg" |
421 | + key="customerShippingAddress" | ||
416 | name="customerShippingAddress" | 422 | name="customerShippingAddress" |
417 | label="收货地址" | 423 | label="收货地址" |
418 | placeholder="请输入收货地址" | 424 | placeholder="请输入收货地址" |
@@ -423,6 +429,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | @@ -423,6 +429,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | ||
423 | <ProFormDigit | 429 | <ProFormDigit |
424 | name="totalPayment" | 430 | name="totalPayment" |
425 | width="lg" | 431 | width="lg" |
432 | + key="totalPayment" | ||
426 | label="支付总额(¥)" | 433 | label="支付总额(¥)" |
427 | rules={[{ required: true, message: '支付总额必填' }]} | 434 | rules={[{ required: true, message: '支付总额必填' }]} |
428 | tooltip="点击计算,合计所有子订单金额" | 435 | tooltip="点击计算,合计所有子订单金额" |
@@ -445,6 +452,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | @@ -445,6 +452,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | ||
445 | placeholder="请输入支付渠道" | 452 | placeholder="请输入支付渠道" |
446 | name="paymentChannel" | 453 | name="paymentChannel" |
447 | width="lg" | 454 | width="lg" |
455 | + key="paymentChannel" | ||
448 | label="支付渠道" | 456 | label="支付渠道" |
449 | options={enumToSelect(PAYMENT_CHANNEL_OPTIONS)} | 457 | options={enumToSelect(PAYMENT_CHANNEL_OPTIONS)} |
450 | rules={[{ required: true, message: '支付渠道必填' }]} | 458 | rules={[{ required: true, message: '支付渠道必填' }]} |
@@ -454,6 +462,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | @@ -454,6 +462,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | ||
454 | placeholder="请输入支付方式" | 462 | placeholder="请输入支付方式" |
455 | name="paymentMethod" | 463 | name="paymentMethod" |
456 | width="lg" | 464 | width="lg" |
465 | + key="paymentMethod" | ||
457 | label="支付方式" | 466 | label="支付方式" |
458 | options={enumToSelect(PAYMENT_METHOD_OPTIONS)} | 467 | options={enumToSelect(PAYMENT_METHOD_OPTIONS)} |
459 | rules={[{ required: true, message: '支付方式必填' }]} | 468 | rules={[{ required: true, message: '支付方式必填' }]} |
@@ -463,6 +472,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | @@ -463,6 +472,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | ||
463 | placeholder="选择是否需要开票" | 472 | placeholder="选择是否需要开票" |
464 | name="invoicingStatus" | 473 | name="invoicingStatus" |
465 | width="lg" | 474 | width="lg" |
475 | + key="invoicingStatus" | ||
466 | label="是否需要开票" | 476 | label="是否需要开票" |
467 | options={getInvoicingSelect()} | 477 | options={getInvoicingSelect()} |
468 | // disabled={mainInfoDisbled} | 478 | // disabled={mainInfoDisbled} |
@@ -480,6 +490,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | @@ -480,6 +490,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | ||
480 | width="lg" | 490 | width="lg" |
481 | name="invoiceIdentificationNumber" | 491 | name="invoiceIdentificationNumber" |
482 | label="开票信息" | 492 | label="开票信息" |
493 | + key="invoiceIdentificationNumber" | ||
483 | // disabled={mainInfoDisbled} | 494 | // disabled={mainInfoDisbled} |
484 | hidden={invoicingStatus === 'UN_INVOICE'} | 495 | hidden={invoicingStatus === 'UN_INVOICE'} |
485 | placeholder="请输入开票信息" | 496 | placeholder="请输入开票信息" |
@@ -494,6 +505,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | @@ -494,6 +505,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | ||
494 | {getUserInfo().roleSmallVO?.code === 'admin' ? ( | 505 | {getUserInfo().roleSmallVO?.code === 'admin' ? ( |
495 | <ProFormDateTimePicker | 506 | <ProFormDateTimePicker |
496 | width="lg" | 507 | width="lg" |
508 | + key="invoicingTime" | ||
497 | name="invoicingTime" | 509 | name="invoicingTime" |
498 | // disabled={mainInfoDisbled} | 510 | // disabled={mainInfoDisbled} |
499 | hidden={invoicingStatus === 'UN_INVOICE'} | 511 | hidden={invoicingStatus === 'UN_INVOICE'} |
@@ -506,6 +518,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | @@ -506,6 +518,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | ||
506 | <ProFormText | 518 | <ProFormText |
507 | width="lg" | 519 | width="lg" |
508 | name="bank" | 520 | name="bank" |
521 | + key="bank" | ||
509 | label="开户银行" | 522 | label="开户银行" |
510 | // disabled={mainInfoDisbled} | 523 | // disabled={mainInfoDisbled} |
511 | hidden={invoicingStatus === 'UN_INVOICE'} | 524 | hidden={invoicingStatus === 'UN_INVOICE'} |
@@ -513,6 +526,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | @@ -513,6 +526,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | ||
513 | /> | 526 | /> |
514 | <ProFormText | 527 | <ProFormText |
515 | width="lg" | 528 | width="lg" |
529 | + key="bankAccountNumber" | ||
516 | name="bankAccountNumber" | 530 | name="bankAccountNumber" |
517 | hidden={invoicingStatus === 'UN_INVOICE'} | 531 | hidden={invoicingStatus === 'UN_INVOICE'} |
518 | label="银行账号" | 532 | label="银行账号" |
@@ -523,6 +537,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | @@ -523,6 +537,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | ||
523 | width="lg" | 537 | width="lg" |
524 | name="notes" | 538 | name="notes" |
525 | label="备注" | 539 | label="备注" |
540 | + key="notes" | ||
526 | // disabled={mainInfoDisbled} | 541 | // disabled={mainInfoDisbled} |
527 | placeholder="请输入备注" | 542 | placeholder="请输入备注" |
528 | rules={[ | 543 | rules={[ |
@@ -668,7 +683,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | @@ -668,7 +683,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | ||
668 | }} | 683 | }} |
669 | />, | 684 | />, |
670 | <ProFormText | 685 | <ProFormText |
671 | - key="productCode" | 686 | + key={'productCode' + listMeta.index} |
672 | width="lg" | 687 | width="lg" |
673 | name="productCode" | 688 | name="productCode" |
674 | disabled | 689 | disabled |
@@ -683,7 +698,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | @@ -683,7 +698,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | ||
683 | placeholder="未输入商品名称" | 698 | placeholder="未输入商品名称" |
684 | />, | 699 | />, |
685 | <ProFormText | 700 | <ProFormText |
686 | - key="parameters" | 701 | + key={'parameters' + listMeta.index} |
687 | width="lg" | 702 | width="lg" |
688 | name="parameters" | 703 | name="parameters" |
689 | label="商品参数" | 704 | label="商品参数" |
@@ -691,7 +706,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | @@ -691,7 +706,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | ||
691 | rules={[{ required: true, message: '商品参数必填' }]} | 706 | rules={[{ required: true, message: '商品参数必填' }]} |
692 | />, | 707 | />, |
693 | <ProFormDigit | 708 | <ProFormDigit |
694 | - key="quantity" | 709 | + key={'quantity' + listMeta.index} |
695 | width="lg" | 710 | width="lg" |
696 | name="quantity" | 711 | name="quantity" |
697 | label="商品数量" | 712 | label="商品数量" |
@@ -705,7 +720,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | @@ -705,7 +720,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | ||
705 | rules={[{ required: true, message: '商品数量必填' }]} | 720 | rules={[{ required: true, message: '商品数量必填' }]} |
706 | />, | 721 | />, |
707 | <ProFormDigit | 722 | <ProFormDigit |
708 | - key="productPrice" | 723 | + key={'productPrice' + listMeta.index} |
709 | width="lg" | 724 | width="lg" |
710 | name="productPrice" | 725 | name="productPrice" |
711 | label="商品单价" | 726 | label="商品单价" |
@@ -719,7 +734,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | @@ -719,7 +734,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | ||
719 | rules={[{ required: true, message: '商品单价必填' }]} | 734 | rules={[{ required: true, message: '商品单价必填' }]} |
720 | />, | 735 | />, |
721 | <ProFormText | 736 | <ProFormText |
722 | - key="unit" | 737 | + key={'unit' + listMeta.index} |
723 | width="lg" | 738 | width="lg" |
724 | name="unit" | 739 | name="unit" |
725 | label="商品单位" | 740 | label="商品单位" |
@@ -729,7 +744,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | @@ -729,7 +744,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | ||
729 | 744 | ||
730 | <ProFormDigit | 745 | <ProFormDigit |
731 | width="lg" | 746 | width="lg" |
732 | - key="subOrderPayment" | 747 | + key={'subOrderPayment' + listMeta.index} |
733 | name="subOrderPayment" | 748 | name="subOrderPayment" |
734 | label="子订单金额" | 749 | label="子订单金额" |
735 | placeholder="请输入子订单金额" | 750 | placeholder="请输入子订单金额" |
@@ -737,7 +752,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | @@ -737,7 +752,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | ||
737 | rules={[{ required: true, message: '子订单金额必填' }]} | 752 | rules={[{ required: true, message: '子订单金额必填' }]} |
738 | />, | 753 | />, |
739 | <ProFormSelect | 754 | <ProFormSelect |
740 | - key="productBelongBusiness" | 755 | + key={'productBelongBusiness' + listMeta.index} |
741 | placeholder="请输入所属事业部" | 756 | placeholder="请输入所属事业部" |
742 | name="productBelongBusiness" | 757 | name="productBelongBusiness" |
743 | width="lg" | 758 | width="lg" |
@@ -748,7 +763,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | @@ -748,7 +763,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | ||
748 | // disabled={mainInfoDisbled} | 763 | // disabled={mainInfoDisbled} |
749 | />, | 764 | />, |
750 | <ProFormText | 765 | <ProFormText |
751 | - key="notes" | 766 | + key={'notes' + listMeta.index} |
752 | width="lg" | 767 | width="lg" |
753 | name="notes" | 768 | name="notes" |
754 | label="备注" | 769 | label="备注" |
@@ -762,7 +777,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | @@ -762,7 +777,7 @@ export default ({ onClose, data, subOrders, orderOptType }) => { | ||
762 | />, | 777 | />, |
763 | <> | 778 | <> |
764 | <ProFormUploadDragger | 779 | <ProFormUploadDragger |
765 | - key="filePaths" | 780 | + key={'filePaths' + listMeta.index} |
766 | label="附件" | 781 | label="附件" |
767 | name="filePaths" | 782 | name="filePaths" |
768 | action="/api/service/order/fileProcess" | 783 | action="/api/service/order/fileProcess" |
src/pages/Order/index.less
@@ -91,3 +91,8 @@ | @@ -91,3 +91,8 @@ | ||
91 | border-bottom: 1px solid #d7d6d6; /* 设置行与行之间分割线的颜色 */ | 91 | border-bottom: 1px solid #d7d6d6; /* 设置行与行之间分割线的颜色 */ |
92 | border-right: 1px solid #d7d6d6; /* 设置行与行之间分割线的颜色 */ | 92 | border-right: 1px solid #d7d6d6; /* 设置行与行之间分割线的颜色 */ |
93 | } | 93 | } |
94 | + | ||
95 | +//tooltip字体颜色自定义 | ||
96 | +// .order-tooltip .ant-tooltip-inner{ | ||
97 | +// color: black !important; | ||
98 | +// } |
src/pages/Order/index.tsx
@@ -608,10 +608,13 @@ const OrderPage = () => { | @@ -608,10 +608,13 @@ const OrderPage = () => { | ||
608 | <span className="text-[#8C8C8C]">代表:</span> | 608 | <span className="text-[#8C8C8C]">代表:</span> |
609 | <span className="text-slate-700">{record.salesCode}</span> | 609 | <span className="text-slate-700">{record.salesCode}</span> |
610 | </div> | 610 | </div> |
611 | - <span> | 611 | + <div |
612 | + title={record.institution} | ||
613 | + className="whitespace-no-wrap overflow-hidden overflow-ellipsis max-w-[256px]" | ||
614 | + > | ||
612 | <span className="text-[#8C8C8C]">单位:</span> | 615 | <span className="text-[#8C8C8C]">单位:</span> |
613 | <span className="text-slate-700">{record.institution}</span> | 616 | <span className="text-slate-700">{record.institution}</span> |
614 | - </span> | 617 | + </div> |
615 | <span> | 618 | <span> |
616 | <span className="text-[#8C8C8C]">联系人:</span> | 619 | <span className="text-[#8C8C8C]">联系人:</span> |
617 | <span className="text-slate-700"> | 620 | <span className="text-slate-700"> |
@@ -622,13 +625,15 @@ const OrderPage = () => { | @@ -622,13 +625,15 @@ const OrderPage = () => { | ||
622 | <span className="text-[#8C8C8C]">收货人:</span> | 625 | <span className="text-[#8C8C8C]">收货人:</span> |
623 | <span className="text-slate-700"> | 626 | <span className="text-slate-700"> |
624 | {record.customerName + ' '} | 627 | {record.customerName + ' '} |
625 | - <ContainerTwoTone | ||
626 | - className="hover:curcor-pointer" | ||
627 | - onClick={() => { | ||
628 | - setDeliverInfoDrawerVisible(true); | ||
629 | - setOrderRow(record); | ||
630 | - }} | ||
631 | - /> | 628 | + <Tooltip className="order-tooltip" title="详情"> |
629 | + <ContainerTwoTone | ||
630 | + className="hover:curcor-pointer" | ||
631 | + onClick={() => { | ||
632 | + setDeliverInfoDrawerVisible(true); | ||
633 | + setOrderRow(record); | ||
634 | + }} | ||
635 | + /> | ||
636 | + </Tooltip> | ||
632 | </span> | 637 | </span> |
633 | </span> | 638 | </span> |
634 | </Space> | 639 | </Space> |
@@ -643,14 +648,16 @@ const OrderPage = () => { | @@ -643,14 +648,16 @@ const OrderPage = () => { | ||
643 | </span> | 648 | </span> |
644 | </div> | 649 | </div> |
645 | </div> | 650 | </div> |
646 | - <EditTwoTone | ||
647 | - className="hover:curcor-pointer" | ||
648 | - onClick={() => { | ||
649 | - setNotesEditVisible(true); | ||
650 | - setOrderRow(record); | ||
651 | - setIsMainOrder(true); | ||
652 | - }} | ||
653 | - /> | 651 | + <Tooltip title="编辑"> |
652 | + <EditTwoTone | ||
653 | + className="hover:curcor-pointer" | ||
654 | + onClick={() => { | ||
655 | + setNotesEditVisible(true); | ||
656 | + setOrderRow(record); | ||
657 | + setIsMainOrder(true); | ||
658 | + }} | ||
659 | + /> | ||
660 | + </Tooltip> | ||
654 | </Flex> | 661 | </Flex> |
655 | </Flex> | 662 | </Flex> |
656 | <Flex wrap="wrap" gap="middle" vertical> | 663 | <Flex wrap="wrap" gap="middle" vertical> |
@@ -663,34 +670,38 @@ const OrderPage = () => { | @@ -663,34 +670,38 @@ const OrderPage = () => { | ||
663 | </span> | 670 | </span> |
664 | </div> | 671 | </div> |
665 | {rolePath?.includes('addOrder') ? ( | 672 | {rolePath?.includes('addOrder') ? ( |
666 | - <CopyTwoTone | ||
667 | - className="hover:cursor-pointer" | ||
668 | - onClick={() => { | ||
669 | - setOrderOptType('copy'); | ||
670 | - setOrderDrawerVisible(true); | ||
671 | - let copy = cloneDeep(record); | ||
672 | - copy.id = undefined; | ||
673 | - copy.subOrderInformationLists?.forEach((item) => { | ||
674 | - item.id = undefined; | ||
675 | - }); | ||
676 | - setOrderRow(copy); | ||
677 | - }} | ||
678 | - /> | 673 | + <Tooltip title="复制"> |
674 | + <CopyTwoTone | ||
675 | + className="hover:cursor-pointer" | ||
676 | + onClick={() => { | ||
677 | + setOrderOptType('copy'); | ||
678 | + setOrderDrawerVisible(true); | ||
679 | + let copy = cloneDeep(record); | ||
680 | + copy.id = undefined; | ||
681 | + copy.subOrderInformationLists?.forEach((item) => { | ||
682 | + item.id = undefined; | ||
683 | + }); | ||
684 | + setOrderRow(copy); | ||
685 | + }} | ||
686 | + /> | ||
687 | + </Tooltip> | ||
679 | ) : ( | 688 | ) : ( |
680 | '' | 689 | '' |
681 | )} | 690 | )} |
682 | 691 | ||
683 | - <ClockCircleTwoTone | ||
684 | - className="hover:cursor-pointer" | ||
685 | - onClick={() => { | ||
686 | - setHistoryModalVisible(true); | ||
687 | - if (selectedRowObj[record.id]?.length) { | ||
688 | - setSelectedRows(selectedRowObj[record.id]); | ||
689 | - } else { | ||
690 | - setSelectedRows(record.subOrderInformationLists); | ||
691 | - } | ||
692 | - }} | ||
693 | - /> | 692 | + <Tooltip title="历史"> |
693 | + <ClockCircleTwoTone | ||
694 | + className="hover:cursor-pointer" | ||
695 | + onClick={() => { | ||
696 | + setHistoryModalVisible(true); | ||
697 | + if (selectedRowObj[record.id]?.length) { | ||
698 | + setSelectedRows(selectedRowObj[record.id]); | ||
699 | + } else { | ||
700 | + setSelectedRows(record.subOrderInformationLists); | ||
701 | + } | ||
702 | + }} | ||
703 | + /> | ||
704 | + </Tooltip> | ||
694 | </Flex> | 705 | </Flex> |
695 | </Flex> | 706 | </Flex> |
696 | <Flex justify="flex-end"> | 707 | <Flex justify="flex-end"> |