From 20913c80c3f5fc8e533cb92b90e6f20bcd68e032 Mon Sep 17 00:00:00 2001
From: 石广澎 <shiguangpeng@163.com>
Date: 星期三, 29 十一月 2023 17:49:32 +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 d98bfd2..8ff6b0c 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>
@@ -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: '',
@@ -137,12 +138,16 @@
   },
   filters: {
     formatTime(time) {
-      if (!time) return;
+      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