Browse Source

发票修改

master_hella_20240701
zhaoxuebing 7 months ago
parent
commit
311e19d930
  1. 5
      src/api/wms/supplierinvoiceRequestMain/index.ts
  2. 30
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

5
src/api/wms/supplierinvoiceRequestMain/index.ts

@ -110,6 +110,11 @@ export const exportSupplierinvoiceRequestMain = async (params) => {
}
}
// 导出供应商发票申请明细 Excel
export const exportSupplierinvoiceRequestDetail = async (params) => {
return await request.download({ url: `/wms/supplierinvoice-request-main/export-excel-detail`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/supplierinvoice-request-main/get-import-template' })

30
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

@ -107,6 +107,15 @@
color: '',
float:'left',
hasPermi: ''
},{
label: '导出明细',
name: 'export-detail',
hide: false,
type: 'primary',
// icon: 'ep:operation',
color: '',
float:'left',
hasPermi: ''
}]"
:buttondataTable = "[{
label: '打印',
@ -587,6 +596,8 @@ const handleImport = () => {
}
}
/**
* tableForm方法
*/
@ -656,6 +667,9 @@ const importSuccess = () => {
}else if(val === 'printing-all'){
//
}else if(val === 'export-detail'){
console.log("导出明细:",clicKRowId.value)
handleDetailExport()
}
}
@ -671,6 +685,22 @@ const importSuccess = () => {
}
}
/** 导出明细按钮操作 */
const exportLoadingDetail = ref(false) //
const handleDetailExport = async (masterId) => {
try {
//
await message.exportConfirm()
//
exportLoadingDetail.value = true
const data = await SupplierinvoiceRequestMainApi.exportSupplierinvoiceRequestDetail(masterId)
download.excel(data, '供应商发票申请明细.xlsx')
} catch {
} finally {
exportLoadingDetail.value = false
}
}
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
//

Loading…
Cancel
Save