|
|
@ -123,7 +123,6 @@
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="3">
|
|
|
|
<el-col :span="3">
|
|
|
|
<div class="ao-text">
|
|
|
|
<div class="ao-text">
|
|
|
@ -167,7 +166,8 @@
|
|
|
|
style="text-align:right" @click="showImgViewer">
|
|
|
|
style="text-align:right" @click="showImgViewer">
|
|
|
|
检验报告预览
|
|
|
|
检验报告预览
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
<el-image-viewer v-if="imgViewerVisible" style="z-index:9999" :on-close="closeImgViewer" :url-list="imgList"/>
|
|
|
|
<el-image-viewer v-if="imgViewerVisible" style="z-index:9999" :on-close="closeImgViewer"
|
|
|
|
|
|
|
|
:url-list="imgList"/>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -187,7 +187,6 @@ import { previewImage } from '@/api/purchase/supCompany'
|
|
|
|
import ElImageViewer from "element-ui/packages/image/src/image-viewer";
|
|
|
|
import ElImageViewer from "element-ui/packages/image/src/image-viewer";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "DialogCheck",
|
|
|
|
name: "DialogCheck",
|
|
|
|
props: {
|
|
|
|
props: {
|
|
|
@ -211,6 +210,7 @@ export default {
|
|
|
|
imgList: [],
|
|
|
|
imgList: [],
|
|
|
|
imgViewerVisible: false,
|
|
|
|
imgViewerVisible: false,
|
|
|
|
BASE_URL: process.env.VUE_APP_BASE_API,
|
|
|
|
BASE_URL: process.env.VUE_APP_BASE_API,
|
|
|
|
|
|
|
|
IMAGE_URL: process.env.VUE_APP_SYNC_API,
|
|
|
|
code: "",
|
|
|
|
code: "",
|
|
|
|
formData: {
|
|
|
|
formData: {
|
|
|
|
ggxh: "",
|
|
|
|
ggxh: "",
|
|
|
@ -350,7 +350,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
showImgViewer(row) {
|
|
|
|
showImgViewer(row) {
|
|
|
|
this.certFileUrl = this.BASE_URL + "/udiwms/image/register/file/getImage?type=image2&name=";
|
|
|
|
this.certFileUrl = this.IMAGE_URL + "/mapi" + "/udiwms/image/register/file/getImage?type=image2&name=";
|
|
|
|
this.imgList = [];
|
|
|
|
this.imgList = [];
|
|
|
|
previewImage({imageUrl: this.inputQuery.filePath, certFileUrl: this.certFileUrl}).then(response => {
|
|
|
|
previewImage({imageUrl: this.inputQuery.filePath, certFileUrl: this.certFileUrl}).then(response => {
|
|
|
|
if (response.code === 20000) {
|
|
|
|
if (response.code === 20000) {
|
|
|
@ -359,14 +359,18 @@ export default {
|
|
|
|
console.log(this.imgList)
|
|
|
|
console.log(this.imgList)
|
|
|
|
this.imgViewerVisible = true;
|
|
|
|
this.imgViewerVisible = true;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
const m = (e) => { e.preventDefault() };
|
|
|
|
const m = (e) => {
|
|
|
|
|
|
|
|
e.preventDefault()
|
|
|
|
|
|
|
|
};
|
|
|
|
document.body.style.overflow = 'hidden';
|
|
|
|
document.body.style.overflow = 'hidden';
|
|
|
|
document.addEventListener("touchmove", m, false); // 禁止页面滑动
|
|
|
|
document.addEventListener("touchmove", m, false); // 禁止页面滑动
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
closeImgViewer() {
|
|
|
|
closeImgViewer() {
|
|
|
|
this.imgViewerVisible = false;
|
|
|
|
this.imgViewerVisible = false;
|
|
|
|
const m = (e) => { e.preventDefault() };
|
|
|
|
const m = (e) => {
|
|
|
|
|
|
|
|
e.preventDefault()
|
|
|
|
|
|
|
|
};
|
|
|
|
document.body.style.overflow = 'auto';
|
|
|
|
document.body.style.overflow = 'auto';
|
|
|
|
document.removeEventListener("touchmove", m, true);
|
|
|
|
document.removeEventListener("touchmove", m, true);
|
|
|
|
},
|
|
|
|
},
|
|
|
|