保安监管系统-验收版本
liuyg
2021-09-22 d2611ee5cb26997b5902b0be82c10c3d1fe4a86c
src/views/qualificationExamination/signQualificationExamination.vue
@@ -26,6 +26,24 @@
      @refresh-change="refreshChange"
      @on-load="onLoad"
    >
      <template slot-scope="{ type, size, row }"
                      slot="menu">
                <el-button icon="el-icon-edit"
                           :size="size"
                           :type="type"
                           @click.stop="payTheFees(row)">审核
                </el-button>
      </template>
      <template slot-scope="{ row }"
                      slot="examinationType">
          {{row.examinationType=="1"?"正常":row.examinationType=="2"?"异常":"正常"}}
      </template>
      <template slot-scope="{ row }"
                      slot="auditStatus">
          {{row.auditStatus==1?"审核通过":row.auditStatus==2?"审核不通过":"待审核"}}
      </template>
    </avue-crud>
  </basic-container>
</template>
@@ -35,6 +53,9 @@
  getList,
  getListJSON,
} from "@/api/qualificationExamination/signQualificationExamination";
import {
  update
} from "@/api/apply/apply";
import { mapGetters } from "vuex";
export default {
@@ -55,7 +76,7 @@
        editBtn: false,
        addBtn: false,
        selection: true,
        menu: false,
        menu: true,
        align: "center",
        height: "auto",
@@ -135,6 +156,7 @@
          {
            label: "审查状态",
            prop: "examinationType",
            slot:true,
            // // display: false,
            // width: 200,
            // labelWidth: 120,
@@ -148,14 +170,15 @@
            // labelWidth: 120,
            // overHidden: true,
          },
          // {
          //   label: "审查结果",
          //   prop: "results",
          //   // // display: false,
          //   // width: 200,
          //   // labelWidth: 120,
          //   // overHidden: true,
          // },
          {
            label: "审核状态",
            prop: "auditStatus",
            slot:true,
            // // display: false,
            // width: 200,
            // labelWidth: 120,
            // overHidden: true,
          },
        ],
        // group: [
        //   {
@@ -231,6 +254,40 @@
        }
      );
    },
    payTheFees (row) {
            console.log(row)
            this.$confirm("请确认是否审核通过?", {
                confirmButtonText: "审核通过",
                cancelButtonText: "审核不通过",
                type: "warning",
            })
                .then(() => {
                    var  data  ={
                      id:row.id,
                      auditStatus:1
                    }
                    return update(data).then(() => {
                        this.onLoad(this.page);
                        this.$message({
                            type: "success",
                            message: "操作成功!",
                        });
                    });
                })
                .catch(() => {
                    var  data  ={
                      id:row.id,
                      auditStatus:2
                    }
                    return update(data).then(() => {
                        this.onLoad(this.page);
                        this.$message({
                            type: "success",
                            message: "操作成功!",
                        });
                    });
                });
        },
    rowUpdates(row, index, done, loading) {
      // console.log(42342);
      update(row).then(