diff --git a/src/views/finance/ReconciliationDepositSlip.vue b/src/views/finance/ReconciliationDepositSlip.vue index 82b9cc9e..7f425164 100644 --- a/src/views/finance/ReconciliationDepositSlip.vue +++ b/src/views/finance/ReconciliationDepositSlip.vue @@ -259,6 +259,7 @@ import { postCheckBalance, postReal, postOrderInfoListExport, + postOrderInfoListExport2C, postCreateReconciliationOrder, postCreateFinishWaybillId, postCreateReconciliationwWaybillId, @@ -429,8 +430,8 @@ const onLoad = async () => { submitData.listType = details.pageStatus; if (submitData.listType === 1) { - delete submitData.signStatus - } else delete submitData.signStatuses + delete submitData.signStatus; + } else delete submitData.signStatuses; const keys = Object.keys(submitData); @@ -794,10 +795,9 @@ const handleExport = () => { submitData.listType = details.pageStatus; - if (submitData.listType === 1) { - delete submitData.signStatus - } else delete submitData.signStatuses + delete submitData.signStatus; + } else delete submitData.signStatuses; if (getObjType(submitData.createTimeArr) === 'array' && submitData.createTimeArr.length > 0) { submitData.createTimeStartStr = submitData.createTimeArr[0]; @@ -812,7 +812,10 @@ const handleExport = () => { delete submitData.createTimeArr; delete submitData.checkTimeArr; - const res = await postOrderInfoListExport(submitData); + const res = + submitData.listType === 1 + ? await postOrderInfoListExport(submitData) + : await postOrderInfoListExport2C(submitData); const { status, data } = res; if (status !== 200) return;