Fixiaobai
2023-09-07 e564beb607ed42a01513ff8482cce3b4b04378db
src/views/experiment/reportAuditing/index.vue
@@ -1,7 +1,7 @@
<template>
  <div class="content-main">
    <div class="top-bar">
      <el-form ref="form" :inline="true">
      <el-form ref="form" :inline="true" style="margin-top: 10px;">
        <el-form-item>
          <el-input
            v-model="input"
@@ -11,8 +11,8 @@
          />
        </el-form-item>
        <el-form-item>
          <el-button type="primary" @click="getData()">查询</el-button>
          <el-button type="primary" plain @click="resetData()">重置</el-button>
          <el-button size="small" type="primary" @click="getData()">查询</el-button>
          <el-button size="small" type="primary" plain @click="resetData()">重置</el-button>
        </el-form-item>
      </el-form>
    </div>
@@ -88,26 +88,22 @@
                @click="handleClick(scope.row)"
                >查看详细
              </el-button>
            <el-button  type="text" size="small" @click="shenHE(scope)">审核</el-button>
            <el-button  type="text" size="small" v-if="scope.row.status === 0" @click="shenHE(scope)">审核</el-button>
            <el-dialog
              title="原始记录审核"
              :visible.sync="checkskipvisible"
              width="30%"
              >
              <el-form :model="form">
                <el-form-item label="请选择审核结果:" :label-width="formLabelWidth">
                </el-form-item>
              </el-form>
              <div slot="footer" class="dialog-footer">
                <el-button @click="checkskipvisible = false">取 消</el-button>
                <el-button style="background-color: rgb(206, 211, 216);" @click="nocheckskip(scope.row)" >不通过</el-button>
                <el-button type="primary" @click="checkskip(scope.row)">通过</el-button>
              </div>
            </el-dialog>
            </template>
          </el-table-column>
        </el-table>
@@ -181,7 +177,7 @@
      this.getData();
    },
    //通过
    async checkskip(row) {
     checkskip(row) {
      console.log(this.tableRow);
      this.reportTable[this.tableRow.$index].status=1
      this.transmitData(this.tableRow.row.id,1)
@@ -190,10 +186,10 @@
          message: '通过成功',
          type: 'success'
        });
         this.getData();
    },
    //不通过
    async nocheckskip(row) {
     nocheckskip(row) {
      console.log(this.tableRow);
      this.reportTable[this.tableRow.$index].status=0
      this.transmitData(this.tableRow.row.id,2)
@@ -202,7 +198,7 @@
          message: '待通过',
          type: 'warning'
        });
        this.getData();
    },
    //审核
    async transmitData(id, result) {