Commit 14e24c4f by zhuzhequan

排版功能

parent 25e1f56f
...@@ -311,9 +311,7 @@ export function createLogisticsOrderApi(params: { ...@@ -311,9 +311,7 @@ export function createLogisticsOrderApi(params: {
export function composingDesignImages(data:number[]) { export function composingDesignImages(data:number[]) {
return axios.post<never, BaseRespData<never>>( return axios.post<never, BaseRespData<never>>(
'factory/podJomallOrderUs/composingDesignImages', 'factory/podJomallOrderUs/composingDesignImages',
data,{ data
responseType: 'blob', // 设置响应类型为 Blob(处理二进制流)
}
) )
} }
// 转至待拣胚 // 转至待拣胚
......
...@@ -1611,9 +1611,11 @@ const downloadTif = async () => { ...@@ -1611,9 +1611,11 @@ const downloadTif = async () => {
downloadLoading.value = true downloadLoading.value = true
try { try {
const res= await composingDesignImages(selection.value.map(el=>el.id)) const res= await composingDesignImages(selection.value.map(el=>el.id))
console.log(filePath+res.message)
window.open(filePath+res.message, '_blank') window.open(filePath+res.message, '_blank')
downloadLoading.value = false downloadLoading.value = false
}catch (e){ }catch (e){
console.log(e)
downloadLoading.value = false downloadLoading.value = false
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment