|
|
@ -1427,10 +1427,18 @@ const supplierdeliverJasperExport = async (id, type) => { |
|
|
|
pageNo: 1, |
|
|
|
pageSize: 99999999 |
|
|
|
} |
|
|
|
let supplierCode='' ; |
|
|
|
let deliNo ='' ; |
|
|
|
await SupplierdeliverRecordMainApi.getSupplierdeliverRecordMain(id).then(async (res) => { |
|
|
|
if (res) { |
|
|
|
supplierCode = res.supplierCode; |
|
|
|
deliNo = res.deliNo; |
|
|
|
} |
|
|
|
}) |
|
|
|
const data = await PackageApi.supplierdeliverJasperExport(params) |
|
|
|
download.excel( |
|
|
|
data, |
|
|
|
`【asd】【${formatDate(new Date(), 'YYYY-MM-DD')}】.pdf` |
|
|
|
`【${supplierCode}】【${formatDate(new Date(), 'YYYY-MM-DD')}】【${deliNo}】.pdf` |
|
|
|
) |
|
|
|
} catch { |
|
|
|
} finally { |
|
|
@ -1446,10 +1454,18 @@ const supplierdeliverJasperExportPS = async (id, type) => { |
|
|
|
pageNo: 1, |
|
|
|
pageSize: 99999999 |
|
|
|
} |
|
|
|
let supplierCode='' ; |
|
|
|
let deliNo ='' ; |
|
|
|
await SupplierdeliverRecordMainApi.getSupplierdeliverRecordMain(id).then(async (res) => { |
|
|
|
if (res) { |
|
|
|
supplierCode = res.supplierCode; |
|
|
|
deliNo = res.deliNo; |
|
|
|
} |
|
|
|
}) |
|
|
|
const data = await PackageApi.supplierdeliverJasperExportPS(params) |
|
|
|
download.excel( |
|
|
|
data, |
|
|
|
`【asd】【${formatDate(new Date(), 'YYYY-MM-DD')}】.pdf` |
|
|
|
`【${supplierCode}】【${formatDate(new Date(), 'YYYY-MM-DD')}】【${deliNo}】.pdf` |
|
|
|
) |
|
|
|
} catch { |
|
|
|
} finally { |
|
|
|