zouyu
7 天以前 a68d8260e9c4a1e8709a1f5ba69430ccb95f70da
src/views/qualityManagement/finalInspection/index.vue
@@ -134,17 +134,17 @@
      }
    },
  },
   {
      label: "提交状态",
      prop: "inspectState",
      formatData: (params) => {
         if (params) {
            return "已提交";
         } else {
            return "未提交";
         }
      },
   },
   // {
   //    label: "提交状态",
   //    prop: "inspectState",
   //    formatData: (params) => {
   //       if (params) {
   //          return "已提交";
   //       } else {
   //          return "未提交";
   //       }
   //    },
   // },
  {
    dataType: "action",
    label: "操作",
@@ -169,16 +169,16 @@
          openFilesFormDia(row);
        },
      },
         {
            name: "提交",
            type: "text",
            clickFun: (row) => {
               submit(row.id);
            },
            disabled: (row) => {
               return row.inspectState == 1;
            }
         },
         // {
         //    name: "提交",
         //    type: "text",
         //    clickFun: (row) => {
         //       submit(row.id);
         //    },
         //    disabled: (row) => {
         //       return row.inspectState == 1;
         //    }
         // },
         {
            name: "分配检验员",
            type: "text",
@@ -359,13 +359,13 @@
         type: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
      })
      const downloadUrl = window.URL.createObjectURL(blob)
      const link = document.createElement('a')
      link.href = downloadUrl
      link.download = '原材料检验报告.docx'
      document.body.appendChild(link)
      link.click()
      document.body.removeChild(link)
      window.URL.revokeObjectURL(downloadUrl)
   })