feat: export excel file

This commit is contained in:
zchengo
2022-12-27 19:18:58 +08:00
parent f11313797b
commit 2235516232
18 changed files with 418 additions and 46 deletions
+10
View File
@@ -52,4 +52,14 @@ export function queryContractPlist(param) {
method: 'post',
data: param,
})
}
// 导出Excel表格
export function contractExport(param) {
return request({
url: '/contract/export',
method: 'get',
responseType: 'blob',
params: param,
})
}
+10
View File
@@ -52,4 +52,14 @@ export function queryCustomerOption(param) {
method: 'get',
params: param,
})
}
// 导出Excel表格
export function customerExport(param) {
return request({
url: '/customer/export',
method: 'get',
responseType: 'blob',
params: param,
})
}
+10
View File
@@ -43,4 +43,14 @@ export function queryProductList(param) {
method: 'get',
params: param,
})
}
// 导出Excel表格
export function productExport(param) {
return request({
url: '/product/export',
method: 'get',
responseType: 'blob',
params: param,
})
}