diff --git a/src/api/purchase/supCompany.js b/src/api/purchase/supCompany.js
index 268c4d3..125f0c4 100644
--- a/src/api/purchase/supCompany.js
+++ b/src/api/purchase/supCompany.js
@@ -164,6 +164,15 @@ export function printSupCertProduction(data) {
});
}
+export function previewImage(data) {
+ return axios({
+ url: "/udiwms/image/register/file",
+ method: "post",
+ data: data
+ });
+}
+
+
diff --git a/src/views/purchase/cert/supCertAddDialog.vue b/src/views/purchase/cert/supCertAddDialog.vue
index 2a6cb5c..5caecf3 100644
--- a/src/views/purchase/cert/supCertAddDialog.vue
+++ b/src/views/purchase/cert/supCertAddDialog.vue
@@ -121,7 +121,7 @@
:on-error="uploadHandleError"
:file-list="fileList"
:data="{type:'image2'}"
- :auto-upload="false">
+ :auto-upload="true">
{{ choiceFile }}
diff --git a/src/views/purchase/company/supCompanyAduditDialog.vue b/src/views/purchase/company/supCompanyAduditDialog.vue
index 68f75b2..41598e7 100644
--- a/src/views/purchase/company/supCompanyAduditDialog.vue
+++ b/src/views/purchase/company/supCompanyAduditDialog.vue
@@ -250,7 +250,8 @@
- 证书预览
+ 证书预览
+
@@ -273,7 +274,14 @@