Browse Source

新增toC导出

dev
qb 4 weeks ago
parent
commit
297aa8ce0c
  1. 15
      src/views/finance/ReconciliationDepositSlip.vue

15
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;

Loading…
Cancel
Save