From 87f07e589fb1c8103513a5fcc8febe3b14f5535f Mon Sep 17 00:00:00 2001 From: 石广澎 <shiguangpeng@163.com> Date: 星期五, 01 十二月 2023 17:30:46 +0800 Subject: [PATCH] feat: 1、图片预览使用半路径 2、部门物品退回详情 --- admin-web/src/views/stock/procure/purchaseOrder/detail.vue | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/admin-web/src/views/stock/procure/purchaseOrder/detail.vue b/admin-web/src/views/stock/procure/purchaseOrder/detail.vue index 4dc2ce5..51b9dc9 100644 --- a/admin-web/src/views/stock/procure/purchaseOrder/detail.vue +++ b/admin-web/src/views/stock/procure/purchaseOrder/detail.vue @@ -1,5 +1,5 @@ <template> - <win-md class="stock-detail" :title="setting.title" @close="close" :width="'800px'"> + <win-md class="stock-detail" :title="setting.title" @close="close" :width="'800px'" :loading="loading"> <el-row :gutter="20"> <el-col :span="8"> <span>鍏ュ簱鍗曞彿锛�</span> @@ -90,7 +90,7 @@ <img v-if="checkImg(src.name)" class="v-img" - :src="src.url" + :src="getUrl(src.path)" :alt="src.name" style="width: 100px; height: 100px" /> @@ -99,10 +99,10 @@ </win-md> </template> <script> -import { procureDetail } from '@/api/stock/procure/purchaseOrder'; +import {procureDetail} from '@/api/stock/procure/purchaseOrder'; import winMd from '@/components/win/win-md'; import * as DateFormatter from '@/utils/DateFormatter'; -import { getDownUrl } from '@/utils/base'; +import {getDownUrl} from '@/utils/base'; import Viewer from 'viewerjs'; import 'viewerjs/dist/viewer.css'; @@ -119,6 +119,7 @@ }, data() { return { + loading:true, fileList: [], detail: { baseCategoryName: '', @@ -146,6 +147,7 @@ }, created() { procureDetail({ id: this.setting.id }).then((res) => { + this.loading = false this.detail = res; this.fileList = this.detail.procureDoc ? JSON.parse(this.detail.procureDoc) : []; this.$nextTick(() => { -- Gitblit v1.9.1