This commit is contained in:
qsh
2025-10-23 14:19:53 +08:00
parent fec4bd5ee0
commit 83abbc57b7
2 changed files with 3 additions and 3 deletions

View File

@@ -407,7 +407,7 @@ async function resetForm() {
signPrice: 0,
payAmount: 0,
remark: undefined,
isCompanyReceipts: data.configValue == 'true',
isCompanyReceipts: data?.configValue == 'true',
receiver: remarkInfo.value.enterUser,
extraPay: [],
otherPay: [],

View File

@@ -423,7 +423,7 @@ const prodTotalPrice = computed(() => {
})
const extraTotalPrice = computed(() => {
return form.value.extraPay.reduce((pre, cur) => pre + cur.extraPayMoney, 0)
return form.value.extraPay?.reduce((pre, cur) => pre + cur.extraPayMoney, 0)
})
const showSchema = computed(() => {
@@ -529,7 +529,7 @@ async function resetForm(id) {
signPrice: 0,
payAmount: 0,
remark: undefined,
isCompanyReceipts: data.configValue == 'true',
isCompanyReceipts: data?.configValue == 'true',
receiver: undefined,
extraPay: [],
signProducts: [],