|
@@ -63,6 +63,7 @@ import {baseUrl} from "@/service/config";
|
|
|
import {useRootStore} from "@/stores/useStore";
|
|
|
import {elAlert, showMessage} from "@/unit/element-ui/tip";
|
|
|
import {useActiveGetTableData} from "@/unit/use-method/usePagination";
|
|
|
+import {getExportFile} from "@/service/data-sync-hanlle-watch/data-sync-handle-watch-sheet";
|
|
|
|
|
|
export default {
|
|
|
name: "QualityCheckReportHome",
|
|
@@ -89,7 +90,21 @@ export default {
|
|
|
const data = res.msg[0].Rows
|
|
|
if (data.length > 0){
|
|
|
let paths = data.join(',')
|
|
|
- window.location.href = baseUrl + "/ptjkInterface/exportTemplateWords?appkey="+useRootStore().userInfo.ptjk_userkeycode+"&paths=" + paths;
|
|
|
+ //window.location.href = baseUrl + "/ptjkInterface/exportTemplateWords?appkey="+useRootStore().userInfo.ptjk_userkeycode+"&paths=" + paths;
|
|
|
+ getExportFile({
|
|
|
+ url:"/ptjkInterface/exportTemplateWords",
|
|
|
+ paths:paths
|
|
|
+ }).then(response =>{
|
|
|
+ debugger
|
|
|
+ const url = window.URL.createObjectURL(new Blob([response]));
|
|
|
+ const link = document.createElement('a');
|
|
|
+ link.href = url;
|
|
|
+ link.setAttribute('download', 'file.xls'); // 替换为实际的文件名
|
|
|
+ document.body.appendChild(link);
|
|
|
+ link.click();
|
|
|
+ link.remove();
|
|
|
+
|
|
|
+ })
|
|
|
}
|
|
|
}catch{
|
|
|
showMessage({
|
|
@@ -101,7 +116,21 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
function singleExport(uuid){
|
|
|
- window.location.href = baseUrl + "/ptjkInterface/exportTemplateWord?appkey="+useRootStore().userInfo.ptjk_userkeycode+"&UUID=" + uuid;
|
|
|
+ //window.location.href = baseUrl + "/ptjkInterface/exportTemplateWord?appkey="+useRootStore().userInfo.ptjk_userkeycode+"&UUID=" + uuid;
|
|
|
+ getExportFile({
|
|
|
+ url:"/ptjkInterface/exportTemplateWord",
|
|
|
+ UUID:uuid
|
|
|
+ }).then(response =>{
|
|
|
+ debugger
|
|
|
+ const url = window.URL.createObjectURL(new Blob([response]));
|
|
|
+ const link = document.createElement('a');
|
|
|
+ link.href = url;
|
|
|
+ link.setAttribute('download', 'file.xls'); // 替换为实际的文件名
|
|
|
+ document.body.appendChild(link);
|
|
|
+ link.click();
|
|
|
+ link.remove();
|
|
|
+
|
|
|
+ })
|
|
|
}
|
|
|
const layoutRef = ref(null)
|
|
|
function getReportType(value) {
|