diff --git a/hb_client/src/views/qm/producttest.vue b/hb_client/src/views/qm/producttest.vue
index ab55b26..2c25c36 100644
--- a/hb_client/src/views/qm/producttest.vue
+++ b/hb_client/src/views/qm/producttest.vue
@@ -112,6 +112,10 @@
@click="handleRecordDetail(scope)"
>查看
+ 导出
+
@@ -155,11 +159,11 @@
diff --git a/hb_client/src/views/qm/taskrecordfrom.vue b/hb_client/src/views/qm/taskrecordfrom.vue
index ebedb8a..9a19d09 100644
--- a/hb_client/src/views/qm/taskrecordfrom.vue
+++ b/hb_client/src/views/qm/taskrecordfrom.vue
@@ -48,6 +48,7 @@
查看
+ 导出
@@ -90,8 +91,7 @@
diff --git a/hb_client/src/views/wpm/firstCheck.vue b/hb_client/src/views/wpm/firstCheck.vue
index 826ad2a..0b1e9c1 100644
--- a/hb_client/src/views/wpm/firstCheck.vue
+++ b/hb_client/src/views/wpm/firstCheck.vue
@@ -91,6 +91,13 @@
>
查看
+
+ 导出
+
@@ -239,6 +246,7 @@
import faceLogin from '@/components/faceLogin/review.vue';
import {getProcessList,getrecordformList} from "@/api/mtm";
import {getsubplanList} from "@/api/wpm";
+ import {getTestRecordExport} from "@/api/qm";
import {firstTestInit,firstAudit} from "@/api/pm";
import {getTestRecordItem,putTestRecordItem,subTestRecordItem} from "@/api/qm";
@@ -584,6 +592,17 @@
})
}
},
+ handleExportClick(scope){
+ let exportFormId = scope.row.id;
+ getTestRecordExport(exportFormId).then(res=>{
+ if(res.code===200){
+ let link = document.createElement('a');
+ link.href = res.data.path;
+ document.body.appendChild(link);
+ link.click();
+ }
+ })
+ },
},
mounted() {
this.getProcessList();
diff --git a/hb_client/src/views/wpm/operationdo.vue b/hb_client/src/views/wpm/operationdo.vue
index 508a582..0d74c7d 100644
--- a/hb_client/src/views/wpm/operationdo.vue
+++ b/hb_client/src/views/wpm/operationdo.vue
@@ -253,6 +253,12 @@
@click="handlerecord(scope)"
>填写表单
+ 导出
+
@@ -646,7 +652,6 @@
.word-wrap {
padding: 25px;
}
-
.box-card {
height: 300px;
}
@@ -668,22 +673,20 @@
deleteOperationequip,
deleteOperationwproduct,
gettoolList,
- createTool,
createInputs,
recordInit,
createOutputs,
deleteOperationeinput,
wproductPlace,
} from "@/api/wpm";
- import mammoth from "mammoth";
- import {getrffieldList, gettechdocList} from "@/api/mtm";
+ import { gettechdocList} from "@/api/mtm";
import checkPermission from "@/utils/permission";
import {getprogressList} from "@/api/pm";
- import Pagination from "@/components/Pagination"; // secondary package based on el-pagination
+ import {getTestRecordExport} from "@/api/qm";
import faceLogin from '@/components/faceLogin/review.vue';
export default {
- components: {Pagination, faceLogin},
+ components: {faceLogin},
inject: ["reload"],
data() {
return {
@@ -810,8 +813,7 @@
pdf: "",
};
},
- computed: {},
- watch: {},
+
created() {
this.id = this.$route.params.id; //操作ID
this.readbook();
@@ -825,6 +827,7 @@
this.getprogressList(); //产出物料调出
this.gettoolList(); //工序工装
},
+
methods: {
checkPermission,
@@ -990,13 +993,23 @@
this.formID = scope.row.id;
recordInit(this.formID).then((response) => {
if (response.data) {
- debugger;
this.fieldList = response.data;
this.fieldList.name = response.data.form_.name;
}
});
this.dialogVisibleForm = true;
},
+ handlerecordExport(scope){
+ let exportFormId = scope.row.id;
+ getTestRecordExport(exportFormId).then(res=>{
+ if(res.code===200){
+ let link = document.createElement('a');
+ link.href = res.data.path;
+ document.body.appendChild(link);
+ link.click();
+ }
+ })
+ },
//工序工装列表
gettoolList() {