Commit a66073843ffe443891e50ab712cf563be44d0a44
1 parent
8f9fa916
fix: 修改余额
Showing
2 changed files
with
1 additions
and
55 deletions
src/pages/Order/OrderList/OrderDrawer.tsx
... | ... | @@ -2021,60 +2021,6 @@ export default ({ onClose, data, subOrders, orderOptType }) => { |
2021 | 2021 | } |
2022 | 2022 | }} |
2023 | 2023 | /> |
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 | 2024 | {/* 隐藏字段用于存储真实UID和privatePocket标志 */} |
2079 | 2025 | <ProFormText name="realPrepaidUid" hidden /> |
2080 | 2026 | <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 | ) : ( | ... | ... |