diff --git a/src/components/Table/src/hooks/useCustomRow.ts b/src/components/Table/src/hooks/useCustomRow.ts index ea2e8017..1cdd0f64 100644 --- a/src/components/Table/src/hooks/useCustomRow.ts +++ b/src/components/Table/src/hooks/useCustomRow.ts @@ -51,16 +51,17 @@ export function useCustomRow( .composedPath?.() .find((dom: HTMLElement) => dom.tagName === 'TR') as HTMLElement if (!tr) return - // 找到Checkbox,检查是否为disabled + // 找到Checkbox,检查是否为disabled + // 暂时注释了 影响修改金额 const checkBox = tr.querySelector('input[type=checkbox]') if (!checkBox || checkBox.hasAttribute('disabled')) return if (!keys.includes(key)) { - setSelectedRowKeys([...keys, key]) + // setSelectedRowKeys([...keys, key]) return } - const keyIndex = keys.findIndex((item) => item === key) - keys.splice(keyIndex, 1) - setSelectedRowKeys(keys) + // const keyIndex = keys.findIndex((item) => item === key) + // keys.splice(keyIndex, 1) + // setSelectedRowKeys(keys) return } @@ -70,7 +71,7 @@ export function useCustomRow( if (keys.length) { clearSelectedRowKeys() } - setSelectedRowKeys([key]) + // setSelectedRowKeys([key]) return } clearSelectedRowKeys() diff --git a/src/views/finance/feeSettlement/columns.tsx b/src/views/finance/feeSettlement/columns.tsx index 4e0ccac5..003ece58 100644 --- a/src/views/finance/feeSettlement/columns.tsx +++ b/src/views/finance/feeSettlement/columns.tsx @@ -1158,7 +1158,6 @@ export const freeSearchFormSchema: FormSchema[] = [ field: 'feeType', label: '收/付', component: 'Select', - required: true, colProps: { span: 4 }, defaultValue: '1', componentProps: () => { diff --git a/src/views/finance/feeSettlement/detail/index.vue b/src/views/finance/feeSettlement/detail/index.vue index 9155a4c0..d758d4e6 100644 --- a/src/views/finance/feeSettlement/detail/index.vue +++ b/src/views/finance/feeSettlement/detail/index.vue @@ -126,6 +126,7 @@ import { PaymentSettlementGetList, PaymentSettlementDeleteDetail, PaymentFreeSettlementGet, GeneralInvoiceGet, PaymentFreeSettlementSave } from '../api' +import { numberThousandFormat } from '/@/utils/commonUtil' import { useMessage } from '/@/hooks/web/useMessage' import invoiceTable from './invoiceTable.vue' import invoiceFile from '../../../operation/invoiceIssue/detail/invoiceFile.vue' @@ -335,6 +336,9 @@ function handleClick(record) { } PaymentFreeSettlementGetFees(data).then(res => { if (res.succeeded) { + res.data.items.forEach(item => { + item.amount =numberThousandFormat(item.amount, 2, false) + }) setTableData1(res.data.items) } loading.value = false @@ -471,10 +475,14 @@ function getDetail() { PaymentFreeSettlementGet({ id: route.query.id }).then(res => { if (res.succeeded) { res.data.mode = 'free' + res.data.amount = numberThousandFormat(res.data.amount, 2, false) form.value = JSON.parse(JSON.stringify(res.data)) res.data.currencyAmount = res.data.currency + '/' + res.data.amount setFieldsValueMark(res.data) setFieldsValue(res.data) + res.data.settlementDetails.forEach(item => { + item.originalAmount = numberThousandFormat(item.originalAmount, 2, false) + }) setTableData(res.data.settlementDetails) } loading.value = false diff --git a/src/views/finance/feeSettlement/detail/invoiceTable.vue b/src/views/finance/feeSettlement/detail/invoiceTable.vue index 844bc9d0..40c60ac3 100644 --- a/src/views/finance/feeSettlement/detail/invoiceTable.vue +++ b/src/views/finance/feeSettlement/detail/invoiceTable.vue @@ -8,7 +8,8 @@
- +