futian.liu
2023-12-21 0d704977a91adb83c3ff9c1769fe4b73fc54a565
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(() => {