gaoluyang
2025-03-05 9e3ed3dd122b0bc65cd232914706012be1e5c2fe
报告编制批量下载修改
已修改3个文件
22 ■■■■■ 文件已修改
src/views/business/materialOrder/copperOrder.vue 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/business/materialOrder/customsInspection.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/business/reportPreparation/index.vue 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/business/materialOrder/copperOrder.vue
@@ -617,11 +617,12 @@
  mounted() {
    this.active = this.$route.query.active
    this.currentId = this.$route.query.currentId
    this.getInfoRow();
  },
  activated() {
    if (this.active==1) {
      this.getInfoRow();
    }
    this.active = this.$route.query.active
    this.currentId = this.$route.query.currentId
    this.getInfoRow();
  },
  methods: {
    getInfoRow() {
src/views/business/materialOrder/customsInspection.vue
@@ -639,11 +639,15 @@
    this.currentId = this.$route.query.currentId
    this.isReport = this.$route.query.isReport
    this.customsInspection = this.$route.query.customsInspection
    this.getInfo();
  },
  activated() {
    if (this.active==1) {
      this.getInfo();
    }
    this.active = this.$route.query.active
    this.orderType = this.$route.query.orderType
    this.currentId = this.$route.query.currentId
    this.isReport = this.$route.query.isReport
    this.customsInspection = this.$route.query.customsInspection
    this.getInfo();
  },
  getInfo() {
    this.getUserNowList() // 获取当前用户信息
src/views/business/reportPreparation/index.vue
@@ -600,8 +600,11 @@
      this.outLoading = true
      downAll({ ids: str }).then(res => {
        this.outLoading = false
        this.$download.saveAs(this.javaApi + res.message, row.fileName);
        this.$download.zip(res.data, '报告.zip');
      }).catch(() => {
        this.outLoading = false
      })
    },
    beforeUpload(file) {
      const isZip = file.type === 'application/zip' || file.name.endsWith('.zip');