diff --git a/src/views/Clue/Pool/ClueEnroll.vue b/src/views/Clue/Pool/ClueEnroll.vue index 51a0576..71f9188 100644 --- a/src/views/Clue/Pool/ClueEnroll.vue +++ b/src/views/Clue/Pool/ClueEnroll.vue @@ -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: [], diff --git a/src/views/Clue/Pool/Comp/DialogSuccess.vue b/src/views/Clue/Pool/Comp/DialogSuccess.vue index 24c25b5..852bd38 100644 --- a/src/views/Clue/Pool/Comp/DialogSuccess.vue +++ b/src/views/Clue/Pool/Comp/DialogSuccess.vue @@ -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: [],