zhouwx
2 天以前 3dc3d79e10232c821db66a952341b2daae80e0e1
src/views/build/conpanyFunctionConsult/digitalFileDep/project/projectReview/index.vue
@@ -264,7 +264,7 @@
const openFile = async(path)=>{
  const ext = path.split('.').pop().toLowerCase();
  if (ext === 'doc') {
    ElMessageBox.confirm('暂不支持线上预览.doc文件,是否下载查看?', '提示', { confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning' }).then(() => {
    ElMessageBox.confirm('暂不支持线上预览.doc、.xls、.xlsx文件,是否下载查看?', '提示', { confirmButtonText: '确认', cancelButtonText: '取消', type: 'warning' }).then(() => {
      window.open(`${import.meta.env.VITE_APP_BASE_API}/${path}`, '_blank');
    }).catch(() => {
      console.log('取消预览')
@@ -410,8 +410,13 @@
              };
            })
    );
    item.productItems = item.productItems.map(i => i.fileName)
    const productList = item.projectDocuments.map(i => i.fileName)
    const processList = item.processInspections.map(i => i.fileName)
    item.productItems = productList.concat(processList).map(item => {
      return {
        name:item
      }
    })
    console.log('item.productItems', item.productItems)
    try {
      generateWordDocument(templatePath.value, item, item.itemName + `_${item.stage}审批表.docx`);