zouyu
7 天以前 a68d8260e9c4a1e8709a1f5ba69430ccb95f70da
src/views/qualityManagement/finalInspection/index.vue
@@ -79,12 +79,9 @@
const data = reactive({
  searchForm: {
    productName: "",
    entryDate: [
      dayjs().format("YYYY-MM-DD"),
      dayjs().add(1, "day").format("YYYY-MM-DD"),
    ], // 录入日期
    entryDateStart: dayjs().format("YYYY-MM-DD"),
    entryDateEnd: dayjs().add(1, "day").format("YYYY-MM-DD"),
    entryDate: undefined, // 录入日期
    entryDateStart: undefined,
    entryDateEnd: undefined,
  },
   rules: {
      checkName: [{required: true, message: "请选择", trigger: "change"}],
@@ -137,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: "操作",
@@ -172,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",
@@ -362,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)
   })