zouyu
7 天以前 8a4e96f11329efda507799260b6b95ae9860df5f
src/views/qualityManagement/processInspection/index.vue
@@ -40,7 +40,7 @@
    <InspectionFormDia ref="inspectionFormDia" @close="handleQuery"></InspectionFormDia>
    <FormDia ref="formDia" @close="handleQuery"></FormDia>
    <files-dia ref="filesDia" @close="handleQuery"></files-dia>
      <el-dialog v-model="dialogFormVisible" title="编辑检验员" width="70%"
      <el-dialog v-model="dialogFormVisible" title="编辑检验员" width="30%"
                      @close="closeDia">
         <el-form :model="form" label-width="140px" label-position="top" :rules="rules" ref="formRef">
            <el-form-item label="检验员:" prop="checkName">
@@ -79,13 +79,13 @@
const data = reactive({
  searchForm: {
    process: "",
    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"}],
   },
});
const { searchForm } = toRefs(data);
const tableColumn = ref([
@@ -139,17 +139,17 @@
      }
    },
  },
   {
      label: "提交状态",
      prop: "inspectState",
      formatData: (params) => {
         if (params) {
            return "已提交";
         } else {
            return "未提交";
         }
      },
   },
   // {
   //    label: "提交状态",
   //    prop: "inspectState",
   //    formatData: (params) => {
   //       if (params) {
   //          return "已提交";
   //       } else {
   //          return "未提交";
   //       }
   //    },
   // },
  {
    dataType: "action",
    label: "操作",
@@ -174,16 +174,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",
@@ -195,7 +195,7 @@
               }
            },
            disabled: (row) => {
               return row.inspectState == 1 || row.checkName !== '';
               return row.inspectState == 1 || row.checkName;
            }
         },
         {
@@ -344,13 +344,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)
   })