zouyu
2024-01-08 605f6bd3ed028ffb05061a7cfe932b2e6ed017ef
销售订单-下载word修改
已修改2个文件
19 ■■■■ 文件已修改
src/api/plan/customerorder.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/plan/customerorder/index.vue 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/plan/customerorder.js
@@ -401,7 +401,7 @@
    return request({
      url: '/mes/plan/customerOrder/package',
      method: 'post',
      params: data,
      data: data,
      responseType: 'blob'
    })
  }
src/views/plan/customerorder/index.vue
@@ -855,6 +855,13 @@
        permitArr: []
      })
    }
    this.table.toolbar.push({
        text: '下载Word',
        disabled: false,
        type: 'primary',
        fun: this.downloadWord,
        permitArr: ['03plan','04planed'],
    })
    if (this.permissions.customerorder_create_masterplan) {
      this.table.toolbar.push({
        text: '主生产计划',
@@ -863,13 +870,6 @@
        permitArr: []
      })
    }
    this.table.toolbar.push({
        text: '下载Word',
        disabled: false,
        type: 'primary',
        fun: this.downloadWord,
        permitArr: ['03plan','04planed'],
    })
  },
  methods: {
    //下载word
@@ -1037,7 +1037,8 @@
            }
          })
          if (flag) {
            checkOA(this.multipleSelection.map((e) => e.id)).then((res) => {
            checkOA(this.multipleSelection.map((e) => e.id),{}).then((res) => {
              if (!res.data.data.success) {
                this.$confirm(`${res.data.data.message}`, '提示', {
                  confirmButtonText: '确定',