This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
import axios from "@/utils/request";
//---------打印订单
export function inspectionOrderPDFFromTemplateFile(query) {
return axios({
url: "/udiwms/pdf/template/inspection/order/file",
method: "post",
data: query,
});
}
export function orderPDFFromTemplateFile(query) {
url: "/udiwms/pdf/template/order/file",
headers: {'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'},
responseType: 'arraybuffer', //一定要设置响应类型,否则页面会是空白pdf