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 | 23 +++++++++++------------ 1 files changed, 11 insertions(+), 12 deletions(-) diff --git a/admin-web/src/views/stock/procure/purchaseOrder/detail.vue b/admin-web/src/views/stock/procure/purchaseOrder/detail.vue index b5bf873..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> @@ -70,7 +70,7 @@ </el-table-column> <el-table-column prop="price" label="鍗曚环" align="center"> <template slot-scope="scope"> - {{ scope.row.price }} + {{ scope.row.price | formatPrice }} </template> </el-table-column> <el-table-column prop="counts" label="鍏ュ簱鏁伴噺" align="center"> @@ -80,7 +80,7 @@ </el-table-column> <el-table-column prop="counts" label="閲戦" align="center"> <template slot-scope="scope"> - {{ (scope.row.price * scope.row.counts).toFixed(2) }} + {{ scope.row.price * scope.row.counts | formatPrice}} </template> </el-table-column> </el-table> @@ -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: '', @@ -140,9 +141,13 @@ if (!time) return '-'; return DateFormatter.LongToDateTime(time); }, + formatPrice(price) { + return price / 100 + } }, 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(() => { @@ -203,10 +208,4 @@ </script> <style lang="scss" scoped> @import url(../../index.scss); -.el-dialog { - z-index: 1100 !important; -} ->>> .el-dialog { - z-index: 1100 !important; -} </style> -- Gitblit v1.9.1