石广澎
2023-12-02 19fe807c723fd8c4e6479a4f2c2c9de931aefb82
admin-web/src/views/departmentitem/itemret/returnNote/detail.vue
@@ -86,12 +86,12 @@
  </win-md>
</template>
<script>
import {scrappedDetail} from '@/api/deptGoods/scrap';
import winMd from '@/components/win/win-md';
import * as DateFormatter from '@/utils/DateFormatter';
import {getDownUrl} from '@/utils/base';
import Viewer from 'viewerjs';
import 'viewerjs/dist/viewer.css';
import {returnDetail} from "@/api/deptGoods/itemret";
let viewer = null;
@@ -132,7 +132,7 @@
    }
  },
  created() {
    scrappedDetail({ id: this.setting.id }).then((res) => {
    returnDetail({ id: this.setting.id }).then((res) => {
      this.detail = res;
      this.loading = false
      this.fileList = this.detail.procureDoc ? JSON.parse(this.detail.procureDoc) : [];
@@ -163,12 +163,6 @@
          index++;
        }
      }
      // this.fileList.forEach((f, i) => {
      //   if (file.uid == f.uid) {
      //     index = i
      //   }
      // })
      // document.querySelector('#uploadPreviewImages').children[0].click()
      viewer.view(index);
    },
    checkImg(name) {