|
|
@ -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 |
|
|
|
|
|
|
|
//供应商发货单打印 |
|
|
|