Commit 0f992b9d771d91c96d5c2eb2b79f86ec9de40366
Merge branch 'bugfix-0714' into 'master'
Bugfix 0714 See merge request !64
Showing
6 changed files
with
47 additions
and
64 deletions
src/pages/Order/Order/index.tsx
src/pages/Order/OrderList/InvoicingDrawerForm.tsx
src/pages/Order/OrderList/OrderDrawer.tsx
... | ... | @@ -447,6 +447,10 @@ export default ({ onClose, data, subOrders, orderOptType }) => { |
447 | 447 | 'HCTB', |
448 | 448 | '淘宝', |
449 | 449 | 'TAOBAO', |
450 | + '新能源材料网', | |
451 | + 'scilab固态电解质商城', | |
452 | + 'T-ACG', | |
453 | + 'ALBB', | |
450 | 454 | ].includes(salesCode); |
451 | 455 | |
452 | 456 | if (isTaobaoSalesCode) { |
... | ... | @@ -1182,6 +1186,10 @@ export default ({ onClose, data, subOrders, orderOptType }) => { |
1182 | 1186 | 'HCTB', |
1183 | 1187 | '淘宝', |
1184 | 1188 | 'TAOBAO', |
1189 | + '新能源材料网', | |
1190 | + 'scilab固态电解质商城', | |
1191 | + 'T-ACG', | |
1192 | + 'ALBB', | |
1185 | 1193 | ].includes(value); |
1186 | 1194 | |
1187 | 1195 | // 如果是复制操作且是淘宝销售代码,锁定支付方式和支付渠道,不清空值 |
... | ... | @@ -2021,60 +2029,6 @@ export default ({ onClose, data, subOrders, orderOptType }) => { |
2021 | 2029 | } |
2022 | 2030 | }} |
2023 | 2031 | /> |
2024 | - {/* <ProFormSelect | |
2025 | - placeholder="请输入支付方式" | |
2026 | - name="paymentMethod" | |
2027 | - width="lg" | |
2028 | - key="paymentMethod" | |
2029 | - label="支付方式" | |
2030 | - onChange={(val: any) => { | |
2031 | - setPaymentMethod(val); | |
2032 | - }} | |
2033 | - options={[ | |
2034 | - // 默认可选项 | |
2035 | - ...enumToSelect(PAYMENT_METHOD_OPTIONS_4_ADD).map(option => { | |
2036 | - // 将淘宝选项设置为禁用状态,使其无法手动选择 | |
2037 | - if (option.value === 'PAYMENT_IN_TAOBAO') { | |
2038 | - return { ...option, disabled: true }; | |
2039 | - } | |
2040 | - return option; | |
2041 | - }), | |
2042 | - // 强制禁用项 | |
2043 | - { label: '未付款', value: 'UNPAID', disabled: true }, | |
2044 | - { | |
2045 | - label: '淘宝订单已付款', | |
2046 | - value: 'TAOBAO_ORDER_HAS_BEEN_PAID', | |
2047 | - disabled: true, | |
2048 | - }, | |
2049 | - { | |
2050 | - label: '官网已付', | |
2051 | - value: 'OFFICIAL_WEBSITE_ORDER_HAS_BEEN_PAID', | |
2052 | - disabled: true, | |
2053 | - }, | |
2054 | - { | |
2055 | - label: '淘宝', | |
2056 | - value: 'PAYMENT_IN_TAOBAO', | |
2057 | - disabled: true, | |
2058 | - }, | |
2059 | - { | |
2060 | - label: '预付', | |
2061 | - value: 'WITHHOLDING_ADVANCE_DEPOSIT', | |
2062 | - disabled: true, | |
2063 | - }, | |
2064 | - { label: '平台结算', value: 'PLATFORM_SETTLEMENT', disabled: true }, | |
2065 | - { label: '已回款', value: 'PAYMENT_RECEIPT', disabled: true }, | |
2066 | - { | |
2067 | - label: '预存款无需发货', | |
2068 | - value: 'PREPAID_NO_NEED_SEND', | |
2069 | - disabled: true, | |
2070 | - }, | |
2071 | - ]} | |
2072 | - rules={[{ required: true, message: '支付方式必填' }]} | |
2073 | - disabled={optType('after-sales-check') || paymentMethodDisabled} | |
2074 | - fieldProps={{ | |
2075 | - style: paymentMethodDisabled ? { backgroundColor: '#f5f5f5' } : {}, | |
2076 | - }} | |
2077 | - /> */} | |
2078 | 2032 | {/* 隐藏字段用于存储真实UID和privatePocket标志 */} |
2079 | 2033 | <ProFormText name="realPrepaidUid" hidden /> |
2080 | 2034 | <ProFormText name="privatePocket" hidden /> | ... | ... |
src/pages/Order/OrderList/OrderList.tsx
... | ... | @@ -2852,7 +2852,7 @@ const OrderList = ({ paramsNew, searchShow, toolbarShow }) => { |
2852 | 2852 | <div> |
2853 | 2853 | <span className="text-[#8C8C8C]">总金额:¥</span> |
2854 | 2854 | <span className="text-lg font-medium"> |
2855 | - {record.totalPayment || '-'} | |
2855 | + {record.totalPayment || '0'} | |
2856 | 2856 | </span> |
2857 | 2857 | </div> |
2858 | 2858 | ) : ( |
... | ... | @@ -4797,7 +4797,7 @@ const OrderList = ({ paramsNew, searchShow, toolbarShow }) => { |
4797 | 4797 | setNewParams(paramsNew); |
4798 | 4798 | console.log(newParams); |
4799 | 4799 | } |
4800 | - refreshTable(); | |
4800 | + // refreshTable(); | |
4801 | 4801 | }, [paramsNew]); |
4802 | 4802 | return ( |
4803 | 4803 | <div className="order-page-container"> | ... | ... |
src/pages/Order/constant.ts
... | ... | @@ -29,8 +29,7 @@ export const PAYMENT_METHOD_OPTIONS = { |
29 | 29 | OFFICIAL_WEBSITE_ORDER_HAS_BEEN_PAID: '官网已付', |
30 | 30 | PAYMENT_IN_ADVANCE: '预付', |
31 | 31 | PAYMENT_IN_TAOBAO: '淘宝', |
32 | - WITHHOLDING_ADVANCE_DEPOSIT: '预付(扣预存)', | |
33 | - PLATFORM_SETTLEMENT: '平台结算', | |
32 | + // WITHHOLDING_ADVANCE_DEPOSIT: '预付(扣预存)', | |
34 | 33 | CASH_ON_DELIVERY: '货到付款', |
35 | 34 | HIRE_PURCHASE: '分期付款', |
36 | 35 | // PAYMENT_RECEIPT: '已回款', | ... | ... |
src/pages/ResearchGroup/ResearchGroup/index.tsx
... | ... | @@ -531,17 +531,29 @@ const ResearchGroupListPage = () => { |
531 | 531 | columns={researchGroupColumnsInit()} |
532 | 532 | actionRef={researchGroupActionRef} |
533 | 533 | cardBordered |
534 | + manualRequest={false} | |
535 | + dataSource={undefined} // Use undefined to force server fetch | |
534 | 536 | pagination={{ |
535 | - pageSize: 10, | |
537 | + showSizeChanger: true, | |
538 | + pageSizeOptions: ['10', '20', '50', '100'], | |
539 | + defaultCurrent: 1, | |
540 | + defaultPageSize: 10, | |
536 | 541 | }} |
542 | + scroll={{ x: 1400 }} | |
537 | 543 | request={async (params) => { |
544 | + const { current, pageSize, ...rest } = params; | |
538 | 545 | const res = await postResearchGroupsList({ |
539 | - data: { ...params }, | |
546 | + data: { | |
547 | + current: current, | |
548 | + pageSize: pageSize, | |
549 | + ...rest, | |
550 | + }, | |
540 | 551 | }); |
541 | 552 | setPerms(res.data.specialPath); |
542 | 553 | return { |
543 | 554 | data: res?.data?.data || [], |
544 | 555 | total: res?.data?.total || 0, |
556 | + success: res && res.result === RESPONSE_CODE.SUCCESS, | |
545 | 557 | }; |
546 | 558 | }} |
547 | 559 | columnsState={{ |
... | ... | @@ -566,7 +578,6 @@ const ResearchGroupListPage = () => { |
566 | 578 | form={{}} |
567 | 579 | dateFormatter="string" |
568 | 580 | headerTitle="课题组列表" |
569 | - scroll={{ x: 1400 }} | |
570 | 581 | toolBarRender={() => { |
571 | 582 | let btns = []; |
572 | 583 | if (perms?.includes('add')) { |
... | ... | @@ -640,17 +651,29 @@ const ResearchGroupListPage = () => { |
640 | 651 | columns={memberApplyColumnsInit()} |
641 | 652 | actionRef={memberApplyActionRef} |
642 | 653 | cardBordered |
654 | + manualRequest={false} | |
655 | + dataSource={undefined} // Use undefined to force server fetch | |
643 | 656 | pagination={{ |
644 | - pageSize: 10, | |
657 | + showSizeChanger: true, | |
658 | + pageSizeOptions: ['10', '20', '50', '100'], | |
659 | + defaultCurrent: 1, | |
660 | + defaultPageSize: 10, | |
645 | 661 | }} |
662 | + scroll={{ x: 1400 }} | |
646 | 663 | request={async (params) => { |
664 | + const { current, pageSize, ...rest } = params; | |
647 | 665 | const res = await postResearchGroupMemberRequestsList({ |
648 | - data: { ...params }, | |
666 | + data: { | |
667 | + current: current, | |
668 | + pageSize: pageSize, | |
669 | + ...rest, | |
670 | + }, | |
649 | 671 | }); |
650 | 672 | setPerms(res.data.specialPath); |
651 | 673 | return { |
652 | 674 | data: res?.data?.data || [], |
653 | 675 | total: res?.data?.total || 0, |
676 | + success: res && res.result === RESPONSE_CODE.SUCCESS, | |
654 | 677 | }; |
655 | 678 | }} |
656 | 679 | columnsState={{ |
... | ... | @@ -666,6 +689,7 @@ const ResearchGroupListPage = () => { |
666 | 689 | rowKey="id" |
667 | 690 | search={{ |
668 | 691 | labelWidth: 'auto', |
692 | + defaultCollapsed: false, | |
669 | 693 | }} |
670 | 694 | options={{ |
671 | 695 | setting: { |
... | ... | @@ -675,7 +699,6 @@ const ResearchGroupListPage = () => { |
675 | 699 | form={{}} |
676 | 700 | dateFormatter="string" |
677 | 701 | headerTitle="申请列表" |
678 | - scroll={{ x: 1400 }} | |
679 | 702 | toolBarRender={() => { |
680 | 703 | let btns = []; |
681 | 704 | btns.push( | ... | ... |