Browse Source

修改导出接口地址

hella_online_20241024
zhaoxuebing 1 month ago
parent
commit
b451cb686e
  1. 10
      src/api/wms/supplierinvoiceInvoiced/index.ts
  2. 2
      src/views/wms/supplierManage/supplierinvoiceInvoicedDiscrete/index.vue
  3. 2
      src/views/wms/supplierManage/supplierinvoiceInvoicedSchedule/index.vue

10
src/api/wms/supplierinvoiceInvoiced/index.ts

@ -67,8 +67,14 @@ export const deleteSupplierinvoiceInvoiced = async (id: number) => {
} }
// 导出待开票 Excel // 导出待开票 Excel
export const exportSupplierinvoiceInvoiced = async (params) => { export const exportSupplierinvoiceInvoicedSchedule = async (params) => {
return await request.download({ url: `/wms/supplierinvoice-invoiced/export-excel`, params }) return await request.download({ url: `/wms/supplierinvoice-invoiced/export-excel-schedule`, params })
}
// 导出待开票 Excel
export const exportSupplierinvoiceInvoicedDiscrete = async (params) => {
return await request.download({ url: `/wms/supplierinvoice-invoiced/export-excel-discrete`, params })
} }
// 下载用户导入模板 // 下载用户导入模板

2
src/views/wms/supplierManage/supplierinvoiceInvoicedDiscrete/index.vue

@ -273,7 +273,7 @@ const handleExport = async () => {
// //
loadStart() loadStart()
const excelTitle = ref(route.meta.title) const excelTitle = ref(route.meta.title)
const data = await SupplierinvoiceInvoicedApi.exportSupplierinvoiceInvoiced(tableObject.params) const data = await SupplierinvoiceInvoicedApi.exportSupplierinvoiceInvoicedDiscrete(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {

2
src/views/wms/supplierManage/supplierinvoiceInvoicedSchedule/index.vue

@ -273,7 +273,7 @@ const handleExport = async () => {
// //
loadStart() loadStart()
const excelTitle = ref(route.meta.title) const excelTitle = ref(route.meta.title)
const data = await SupplierinvoiceInvoicedApi.exportSupplierinvoiceInvoiced(tableObject.params) const data = await SupplierinvoiceInvoicedApi.exportSupplierinvoiceInvoicedSchedule(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {

Loading…
Cancel
Save