提交
This commit is contained in:
1 parent
a2125374a8
commit
3950b5c334
157 files changed
+57538
-22359
No files matched your search
@@ -1210,11 +1210,12 @@
|
||||
import { fetchEthnicList, type EthnicOption } from '@/api/ethnic'
|
||||
import { useUserStore } from '@/store/modules/user'
|
||||
import {
|
||||
DEFAULT_INSTALLMENT_ADVANCE_DAYS,
|
||||
normalizeInstallmentAmounts,
|
||||
resizeInstallmentAmounts,
|
||||
syncFqPaymentDetailRowCount
|
||||
} from '@/utils/protocol-payment-installment'
|
||||
DEFAULT_INSTALLMENT_ADVANCE_DAYS,
|
||||
buildProtocolPaymentDetailPayload,
|
||||
normalizeInstallmentAmounts,
|
||||
resizeInstallmentAmounts,
|
||||
syncFqPaymentDetailRowCount
|
||||
} from '@/utils/protocol-payment-installment'
|
||||
import {
|
||||
applyPayModeSwitch,
|
||||
canAddPaymentDetail,
|
||||
@@ -2593,37 +2594,7 @@
|
||||
? (formData.installmentRatios || []).map((v) => Number(v || 0))
|
||||
: undefined
|
||||
}
|
||||
payload.paymentDetails = formData.paymentDetails.map(
|
||||
({ _expanded, _payModeLocked, _voided, ...d }) => ({
|
||||
id: d.id,
|
||||
transferType: d.transferType,
|
||||
dueAmount: d.dueAmount,
|
||||
transferAmount: d.transferAmount,
|
||||
transferTime: d.transferTime,
|
||||
payStatus: d.payStatus,
|
||||
installmentNo: toIntOrUndefined(d.installmentNo),
|
||||
installmentDueDate: d.installmentDueDate,
|
||||
remark: d.remark,
|
||||
financeRemark: d.financeRemark,
|
||||
financeConfirmAttachments: d.financeConfirmAttachments,
|
||||
financeConfirmAttachmentFiles: d.financeConfirmAttachmentFiles,
|
||||
refundAmount: d.refundAmount,
|
||||
refundRemark: d.refundRemark,
|
||||
refundAttachments: d.refundAttachments,
|
||||
refundAttachmentFiles: d.refundAttachmentFiles,
|
||||
refundFinanceRemark: d.refundFinanceRemark,
|
||||
refundFinanceConfirmAttachments: d.refundFinanceConfirmAttachments,
|
||||
refundFinanceConfirmAttachmentFiles: d.refundFinanceConfirmAttachmentFiles,
|
||||
attachments: (d.attachments || []).map((a: any) => ({
|
||||
id: a.id,
|
||||
fileName: a.fileName,
|
||||
fileUrl: a.fileUrl,
|
||||
fileSize: a.fileSize,
|
||||
fileSizeDisplay: a.fileSizeDisplay,
|
||||
fileType: a.fileType
|
||||
}))
|
||||
})
|
||||
)
|
||||
payload.paymentDetails = formData.paymentDetails.map(buildProtocolPaymentDetailPayload)
|
||||
}
|
||||
|
||||
if (isEdit.value && editingId.value) {
|
||||
|
||||
Reference in new issue
Block a user