Fixiaobai
2023-09-04 0b9a9b4aa3051565b213b9efcb5e02ecbda0e791
src/views/experiment/checkTheReport/index.vue
@@ -26,10 +26,9 @@
            <div class="search-bar">
               <el-radio-group v-model="checkStatus" @change="handleRadioChange">
                  <el-radio-button>全部</el-radio-button>
                  <el-radio-button label="0">待提交</el-radio-button>
                  <el-radio-button label="1">待审核</el-radio-button>
                  <el-radio-button label="2">待签字</el-radio-button>
                  <el-radio-button label="3">已完成</el-radio-button>
                  <el-radio-button label="0">待审核</el-radio-button>
                  <el-radio-button label="1">待签字</el-radio-button>
                  <el-radio-button label="2">已完成</el-radio-button>
               </el-radio-group>
               <el-checkbox v-model="checked" style="margin-left: 20px">仅看我的</el-checkbox>
            </div>
@@ -44,12 +43,12 @@
            </div>
         </el-dialog>
         <div class="table-box">
            <el-table ref="reportTable" :max-height="800" :cell-style="{ textAlign: 'center' }" :header-cell-style="{
            <el-table ref="reportTable" :max-height="800" :cell-style="{ textAlign: 'left' }" :header-cell-style="{
            border: '0px',
            background: '#f5f7fa',
            color: '#606266',
            boxShadow: 'inset 0 1px 0 #ebeef5',
            textAlign: 'center',
            textAlign: 'left',
          }" :data="reportTable" @selection-change="handleSelectionChange" style="width: 100%">
               <el-table-column type="selection" min-width="5%" />
               <el-table-column prop="type" label="报告类型" min-width="5%">
@@ -86,15 +85,14 @@
               <el-table-column prop="status" label="审批状态" min-width="8%">
                  <template slot-scope="scope">
                     <span>
                        <el-tag type="info">{{
                  scope.row.status == 0
                    ? "待提交"
                    : scope.row.status == 1
                    ? "待审核"
                    : scope.row.status == 2
                    ? "代签字"
                    : "已完成"
                }}</el-tag>
                        <el-tag type="info">
                           {{
                           scope.row.status == 0
                           ? "待审核"
                           : scope.row.status == 1
                           ? "代签字" : "已完成"
                           }}
                        </el-tag>
                     </span>
                  </template></el-table-column>
               <el-table-column prop="conclusion" label="检验结论" min-width="8%">
@@ -177,18 +175,20 @@
         TestReport
      },
      methods: {
         async queryReportByRCode(code) {
         async queryReportByRCode(code,name) {
            const resp = await getReportData({
               code: code
            });
            this.reportData = resp.data;
            this.reportData.preparerName = name;
            this.dialogVisible = true;
            console.log(this.reportData);
         },
         //查看报告按钮
         previewFun(row) {
            this.reportType = row.type;
            this.queryReportByRCode(row.reportCode);
            this.queryReportByRCode(row.reportCode,row.name);
         },
         handleSelectionChange(selection) {
            this.selectedRows = selection;