浏览代码

数据采集,审核流程

gks 1 年之前
父节点
当前提交
dc7877c64c
共有 3 个文件被更改,包括 383 次插入118 次删除
  1. 51 23
      src/api/norm/QUOTABONDED.js
  2. 30 14
      src/views/GATHER/index.vue
  3. 302 81
      src/views/norm/quotaBonded.vue

+ 51 - 23
src/api/norm/QUOTABONDED.js

@@ -1,53 +1,81 @@
-import request from '@/utils/request'
+import request from "@/utils/request";
 
 // 查询辅助指标-综保区列表
 export function listQUOTABONDED(query) {
   return request({
-    url: '/business/QUOTABONDED/list',
-    method: 'get',
-    params: query
-  })
+    url: "/business/QUOTABONDED/list",
+    method: "get",
+    params: query,
+  });
 }
 
 // 查询辅助指标-综保区所有列表
 export function listAllQUOTABONDED(query) {
   return request({
-    url: '/business/QUOTABONDED/listAll',
-    method: 'get',
-    params: query
-  })
+    url: "/business/QUOTABONDED/listAll",
+    method: "get",
+    params: query,
+  });
 }
 
 // 查询辅助指标-综保区详细
 export function getQUOTABONDED(id) {
   return request({
-    url: '/business/QUOTABONDED/getInfo/' + id,
-    method: 'get'
-  })
+    url: "/business/QUOTABONDED/getInfo/" + id,
+    method: "get",
+  });
 }
 
 // 新增辅助指标-综保区
 export function addQUOTABONDED(data) {
   return request({
-    url: '/business/QUOTABONDED/add',
-    method: 'post',
-    data: data
-  })
+    url: "/business/QUOTABONDED/add",
+    method: "post",
+    data: data,
+  });
 }
 
 // 修改辅助指标-综保区
 export function updateQUOTABONDED(data) {
   return request({
-    url: '/business/QUOTABONDED/edit',
-    method: 'post',
-    data: data
-  })
+    url: "/business/QUOTABONDED/edit",
+    method: "post",
+    data: data,
+  });
 }
 
 // 删除辅助指标-综保区
 export function delQUOTABONDED(id) {
   return request({
-    url: '/business/QUOTABONDED/remove/' + id,
-    method: 'get'
-  })
+    url: "/business/QUOTABONDED/remove/" + id,
+    method: "get",
+  });
 }
+
+// 用户提交审核,辅助指标
+export function setApprove(data) {
+  return request({
+    url: "/business/QUOTABONDED/audit",
+    method: "post",
+    params: data,
+  });
+}
+
+
+// 管理员审核,辅助指标
+export function setAdminApprove(data) {
+  return request({
+    url: "/business/QUOTABONDED/approval",
+    method: "post",
+    params: data,
+  });
+}
+
+// 管理员上报,辅助指标
+export function setAdminReport(data) {
+  return request({
+    url: "/business/QUOTABONDED/report",
+    method: "post",
+    params: data,
+  });
+}

+ 30 - 14
src/views/GATHER/index.vue

@@ -241,9 +241,11 @@
       <el-table-column label="审核状态" align="center" prop="audit">
         <template slot-scope="scope">
           <span v-if="scope.row.audit == 0">未提交审核</span>
-          <span v-if="scope.row.audit == 1">审核中</span>
-          <span v-if="scope.row.audit == 2">审核通过</span>
-          <span v-if="scope.row.audit == 3">审核拒绝</span>
+          <span v-if="scope.row.audit == 1 && scope.row.approveStatus == 0"
+            >审核中</span
+          >
+          <span v-if="scope.row.approveStatus == 1">审核通过</span>
+          <span v-if="scope.row.audit == 2">审核拒绝</span>
         </template>
       </el-table-column>
       <el-table-column
@@ -281,7 +283,7 @@
             v-if="
               scope.row.collStatus == 1 &&
               (scope.row.audit == 0 || scope.row.audit == null) &&
-              checkPermi(['gather:GATHER:add'])
+              checkPermi(['gather:GATHER:check'])
             "
           >
             <el-popconfirm
@@ -293,18 +295,23 @@
                 size="mini"
                 type="text"
                 slot="reference"
-                >审核</el-button
+                >审核绩效</el-button
               >
             </el-popconfirm>
           </template>
           <!--              已采集,未上报,未提交审核 或 审核拒绝-->
 
-        
+          <!-- collStatus = 1 , audit = 1 , -->
+          <!-- <template>{{ scope.row.collStatus == 1 &&
+                scope.row.audit == 1 &&
+                (scope.row.approveStatus == 0 || scope.row.approveStatus == null)}} </template> -->
           <template
             v-if="
-              
-                scope.row.audit == 1 &&
-                (scope.row.approveStatus == 0 || scope.row.approveStatus == null)
+              scope.row.collStatus == 1 &&
+              scope.row.audit == 1 &&
+              (scope.row.approveStatus == 0 ||
+                scope.row.approveStatus == null) &&
+              checkPermi(['gather:GATHER:approve'])
             "
           >
             <el-popconfirm
@@ -316,10 +323,11 @@
                 size="mini"
                 type="text"
                 slot="reference"
-                >审核</el-button
+                >提交审核</el-button
               >
             </el-popconfirm>
           </template>
+
           <!--              已采集,未上报,审核通过 -->
           <template
             v-if="
@@ -499,6 +507,7 @@
           :model="listItem"
           :ref="'form' + listIndex"
           :rules="rules"
+          :key="listIndex"
         >
           <!-- :rules="rules" ref="form" -->
           <el-form-item
@@ -550,6 +559,7 @@
             :model="listItem"
             :ref="'form' + listIndex"
             :rules="rules"
+            :key="listIndex"
           >
             <!-- :rules="rules" ref="form" -->
             <el-form-item
@@ -591,7 +601,7 @@
         <!-- :rules="rules" ref="form" -->
         <el-form-item
           v-for="(listItem, listIndex) in form.feeLists"
-          :key="listItem.normfeeId"
+          :key="listIndex"
           :label="listItem.normfeeName + '(' + listItem.funit_dictText + ')'"
         >
           <!-- 这里科研失败!想动态绑定校验规则的 -->
@@ -615,6 +625,7 @@
 </template>
 
 <script>
+import { getInfo } from "@/api/login.js";
 import {
   listGATHER,
   getGATHER,
@@ -726,8 +737,13 @@ export default {
       uploadFileType: "old", // old、new
     };
   },
+
   created() {
     this.getList();
+    getInfo().then((res) => {
+      console.log(res);
+      // this.data = res;
+    });
   },
   methods: {
     checkPermi,
@@ -909,8 +925,8 @@ export default {
     handleApprove(data) {
       let datas = {
         gatherId: data.id,
-        type: "1"
-      }
+        type: "1",
+      };
       approve(datas).then((res) => {
         if (res.code == 200) {
           this.$modal.msgSuccess("提交审核成功");
@@ -1032,7 +1048,7 @@ export default {
 
     handleAudit(row) {
       let data = {
-        type: '1',
+        type: "1",
         gatherId: row.id,
       };
       setAudit(data).then((res) => {

+ 302 - 81
src/views/norm/quotaBonded.vue

@@ -1,6 +1,12 @@
 <template>
   <div class="app-container">
-    <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="90px">
+    <el-form
+      :model="queryParams"
+      ref="queryForm"
+      :inline="true"
+      v-show="showSearch"
+      label-width="90px"
+    >
       <el-form-item label="指标名称" prop="quotaName">
         <el-input v-model="queryParams.quotaName"></el-input>
       </el-form-item>
@@ -8,7 +14,9 @@
         <el-input v-model="queryParams.bondedName"></el-input>
       </el-form-item>
       <el-form-item>
-        <el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
+        <el-button type="primary" icon="el-icon-search" @click="handleQuery"
+          >搜索</el-button
+        >
         <el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
       </el-form-item>
     </el-form>
@@ -20,7 +28,8 @@
           icon="el-icon-plus"
           @click="handleAdd"
           v-hasPermi="['business:QUOTABONDED:add']"
-        >新增</el-button>
+          >新增</el-button
+        >
       </el-col>
       <el-col :span="1.5">
         <el-button
@@ -29,7 +38,8 @@
           :disabled="single"
           @click="handleUpdate"
           v-hasPermi="['business:QUOTABONDED:edit']"
-        >修改</el-button>
+          >修改</el-button
+        >
       </el-col>
       <el-col :span="1.5">
         <el-button
@@ -38,46 +48,113 @@
           :disabled="multiple"
           @click="handleDelete"
           v-hasPermi="['business:QUOTABONDED:remove']"
-        >删除</el-button>
+          >删除</el-button
+        >
       </el-col>
-      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+      <right-toolbar
+        :showSearch.sync="showSearch"
+        @queryTable="getList"
+      ></right-toolbar>
     </el-row>
 
     <el-table :data="QUOTABONDEDList" @selection-change="handleSelectionChange">
       <el-table-column type="selection" width="55" align="center" />
-      <el-table-column label="保税区名称" align="center" prop="bondedName" width="140"></el-table-column>
-      <el-table-column label="指标名称" align="center" prop="quotaName" width="180"></el-table-column>
-      <el-table-column label="得分" align="center" prop="score"></el-table-column>
-      <el-table-column label="录入方式" align="center" prop="enterType"></el-table-column>
-      <el-table-column label="数值" align="center" prop="numValue"></el-table-column>
-      <el-table-column label="文字说明" align="center" prop="remark" width="280"></el-table-column>
-      <el-table-column label="附件" align="center" prop="fileNames" width="280">
+      <el-table-column
+        label="保税区名称"
+        align="center"
+        prop="bondedName"
+        width="140"
+      ></el-table-column>
+      <el-table-column
+        label="指标名称"
+        align="center"
+        prop="quotaName"
+        width="180"
+      ></el-table-column>
+      <el-table-column
+        label="得分"
+        align="center"
+        prop="score"
+      ></el-table-column>
+      <el-table-column
+        label="录入方式"
+        align="center"
+        prop="enterType"
+      ></el-table-column>
+      <el-table-column
+        label="数值"
+        align="center"
+        prop="numValue"
+      ></el-table-column>
+      <el-table-column
+        label="文字说明"
+        align="center"
+        prop="remark"
+        width="280"
+      ></el-table-column>
+      <el-table-column label="附件" align="center" prop="fileNames" width="80">
         <template slot-scope="scope">
-          <el-link @click="download(scope.row.fileNames)">{{scope.row.fileNames}}</el-link>
+          <el-link @click="download(scope.row.fileNames)">{{
+            scope.row.fileNames
+          }}</el-link>
         </template>
       </el-table-column>
-      <el-table-column label="操作" align="center" fixed="right" width="150">
+      <el-table-column label="操作" align="center" fixed="right" width="350">
         <template slot-scope="scope">
           <el-button
+            v-if="scope.row.auditStatus == 0 || scope.row.auditStatus == null"
+            size="mini"
+            type="text"
+            @click="handleApprove(scope.row)"
+            v-hasPermi="['business:QUOTABONDED:remove']"
+            >提交审核</el-button
+          >
+
+          <el-button
+            v-if="
+              scope.row.auditStatus == 1 &&
+              (scope.row.approvalStatus == 0 ||
+                scope.row.approvalStatus == null)
+            "
+            size="mini"
+            type="text"
+            @click="handleAdminApprove(scope.row)"
+            v-hasPermi="['business:QUOTABONDED:remove']"
+            >审核</el-button
+          >
+
+          <el-button
+            v-if="scope.row.approvalStatus == 1 && (scope.row.reportStatus == 0 || scope.row.reportStatus == null)"
+            size="mini"
+            type="text"
+            icon="el-icon-delete"
+            @click="handleReport(scope.row)"
+            v-hasPermi="['business:QUOTABONDED:remove']"
+            >上报</el-button
+          >
+          <el-button
+            v-if="scope.row.auditStatus == 0 || scope.row.auditStatus == null"
             size="mini"
             type="text"
             icon="el-icon-edit"
             @click="handleUpdate(scope.row)"
             v-hasPermi="['business:QUOTABONDED:edit']"
-          >修改</el-button>
+            >修改</el-button
+          >
           <el-button
             size="mini"
             type="text"
             icon="el-icon-delete"
             @click="handleDelete(scope.row)"
             v-hasPermi="['business:QUOTABONDED:remove']"
-          >删除</el-button>
+            >删除</el-button
+          >
         </template>
       </el-table-column>
     </el-table>
 
     <pagination
-      v-show="total>0"
+      v-show="total > 0"
       :total="total"
       :page.sync="queryParams.pageNum"
       :limit.sync="queryParams.pageSize"
@@ -87,32 +164,65 @@
     <!-- 添加或修改辅助指标-综保区对话框 -->
     <el-dialog :title="title" :visible.sync="open" width="900px" append-to-body>
       <el-form ref="form" :model="form" :rules="rules">
-
         <el-form-item label-width="100px" label="保税区" prop="bondedName">
-          <el-select v-model="form.bondedName" placeholder="请选择保税区" clearable filterable @change="selectBondedChange" style="width:100%">
-<!--            <el-option v-for="dict in BONDEDList" :key="dict.id" :label="dict.bondedName" :value="dict" />-->
+          <el-select
+            :disabled="isAppoval"
+            v-model="form.bondedName"
+            placeholder="请选择保税区"
+            clearable
+            filterable
+            @change="selectBondedChange"
+            style="width: 100%"
+          >
+            <!--            <el-option v-for="dict in BONDEDList" :key="dict.id" :label="dict.bondedName" :value="dict" />-->
             <el-option
               v-for="item in deptList"
               :key="item.deptId"
               :label="item.deptName"
-              :value="item.deptName">
+              :value="item.deptName"
+            >
             </el-option>
           </el-select>
         </el-form-item>
         <el-form-item label-width="100px" label="辅助指标" prop="quotaName">
-          <el-select v-model="form.quotaName" placeholder="请选择辅助指标" clearable filterable @change="selectQuotaChange" style="width:100%">
-            <el-option v-for="dict in QUOTAFEEList" :key="dict.id" :label="dict.quotaName" :value="dict" />
+          <el-select
+            :disabled="isAppoval"
+            v-model="form.quotaName"
+            placeholder="请选择辅助指标"
+            clearable
+            filterable
+            @change="selectQuotaChange"
+            style="width: 100%"
+          >
+            <el-option
+              v-for="dict in QUOTAFEEList"
+              :key="dict.id"
+              :label="dict.quotaName"
+              :value="dict"
+            />
           </el-select>
         </el-form-item>
 
         <el-form-item label-width="100px" label="录入方式" prop="enterType">
-          <el-select v-model="form.enterType" placeholder="请选择录入方式" clearable filterable style="width:100%">
+          <el-select
+            :disabled="isAppoval"
+            v-model="form.enterType"
+            placeholder="请选择录入方式"
+            clearable
+            filterable
+            style="width: 100%"
+          >
             <el-option value="附件">附件</el-option>
             <el-option value="文字说明">文字说明</el-option>
             <el-option value="数值">数值</el-option>
           </el-select>
         </el-form-item>
-        <el-form-item v-if="form.enterType == '附件'" label-width="100px" prop="linkUrls" label="上传附件">
+        <el-form-item
+          v-if="form.enterType == '附件'"
+          label-width="100px"
+          prop="linkUrls"
+          label="上传附件"
+        >
           <el-upload
             class="upload-demo"
             ref="upload"
@@ -123,39 +233,80 @@
             :on-change="handleChange"
             :multiple="true"
           >
-            <el-button slot="trigger" size="small" type="primary">选取文件</el-button>
+            <div v-if="isAppoval" slot="tip" class="el-upload__tip">
+              审核无法修改
+            </div>
+            <el-button slot="trigger" size="small" type="primary"
+              >选取文件</el-button
+            >
           </el-upload>
         </el-form-item>
-        <el-form-item v-if="form.enterType == '文字说明'" label-width="100px" prop="remark" label="说明">
-          <el-input type="textarea" v-model="form.remark" rows="5"></el-input>
+        <el-form-item
+          v-if="form.enterType == '文字说明'"
+          label-width="100px"
+          prop="remark"
+          label="说明"
+        >
+          <el-input
+            type="textarea"
+            :disabled="isAppoval"
+            v-model="form.remark"
+            rows="5"
+          ></el-input>
         </el-form-item>
-        <el-form-item v-if="form.enterType == '数值'" label-width="100px" prop="numValue" label="数值">
-          <el-input v-model="form.numValue"></el-input>
+        <el-form-item
+          v-if="form.enterType == '数值'"
+          label-width="100px"
+          prop="numValue"
+          label="数值"
+        >
+          <el-input :disabled="isAppoval" v-model="form.numValue"></el-input>
         </el-form-item>
 
         <el-form-item label-width="100px" prop="score" label="分值">
-          <el-input v-model="form.score"></el-input>
+          <el-input :disabled="isAppoval" v-model="form.score"></el-input>
         </el-form-item>
       </el-form>
-      <div slot="footer" class="dialog-footer">
+      <div slot="footer" v-if="!isAppoval" class="dialog-footer">
         <el-button type="primary" @click="submitForm">确 定</el-button>
         <el-button @click="cancel">取 消</el-button>
       </div>
+      <div slot="footer" v-else class="dialog-footer">
+        <el-button type="primary" @click="setRejectAndResolve('resolve')"
+          >通 过</el-button
+        >
+        <el-button type="warning" @click="setRejectAndResolve('reject')"
+          >驳 回</el-button
+        >
+        <el-button @click="cancel">取 消</el-button>
+      </div>
     </el-dialog>
   </div>
 </template>
 
 <script>
-import { listQUOTABONDED, getQUOTABONDED, delQUOTABONDED, addQUOTABONDED, updateQUOTABONDED } from "@/api/norm/QUOTABONDED";
+import {
+  listQUOTABONDED,
+  getQUOTABONDED,
+  delQUOTABONDED,
+  addQUOTABONDED,
+  updateQUOTABONDED,
+  setApprove,
+  setAdminApprove,
+  setAdminReport,
+} from "@/api/norm/QUOTABONDED";
+
+
 import { listQUOTAFEE } from "@/api/norm/QUOTAFEE";
 import { listBONDED } from "@/api/portal/BONDED/BONDED.js";
-import { uploadFiles,downloadFiles } from '@/api/common';
-import { listDept } from '@/api/system/dept'
+import { uploadFiles, downloadFiles } from "@/api/common";
+import { listDept } from "@/api/system/dept";
 
 export default {
   name: "QUOTABONDED",
   data() {
     return {
+      isAppoval: false,
       // 根路径
       baseURL: process.env.VUE_APP_BASE_API,
       // 遮罩层
@@ -202,23 +353,23 @@ export default {
         stopTime: null,
         linkUrls: null,
         remark: null,
-        fileNames: null
+        fileNames: null,
       },
       // 表单参数
       form: {},
       // 表单校验
       rules: {
         bondedName: [
-          { required: true, message: "综保区名称不能为空", trigger: "blur" }
+          { required: true, message: "综保区名称不能为空", trigger: "blur" },
         ],
         quotaName: [
-          { required: true, message: "指标名称不能为空", trigger: "blur" }
+          { required: true, message: "指标名称不能为空", trigger: "blur" },
         ],
-      }
+      },
     };
   },
   created() {
-    listQUOTAFEE().then(response => {
+    listQUOTAFEE().then((response) => {
       response.rows.forEach((item, index) => {
         response.rows[index].status = item.status == 0 ? false : true;
       });
@@ -228,20 +379,23 @@ export default {
       this.BONDEDList = response.rows;
     });
     this.getList();
-    this.getDeptList()
+    this.getDeptList();
+
   },
-  methods: {
 
+  methods: {
     // 获取保税区列表
     getDeptList() {
       this.loading = true;
-      listDept({parentId: '100'}).then(response => {
-        this.deptList = response.data
+      listDept({ parentId: "100" }).then((response) => {
+        this.deptList = response.data;
         this.loading = false;
       });
     },
     selectBondedChange(val) {
-      const selectedDept = this.deptList.find(item => item.deptName === this.form.bondedName);
+      const selectedDept = this.deptList.find(
+        (item) => item.deptName === this.form.bondedName
+      );
       if (selectedDept) {
         this.form.bondedId = selectedDept.deptId;
       }
@@ -255,7 +409,7 @@ export default {
     /** 查询辅助指标-综保区列表 */
     getList() {
       this.loading = true;
-      listQUOTABONDED(this.queryParams).then(response => {
+      listQUOTABONDED(this.queryParams).then((response) => {
         this.QUOTABONDEDList = response.rows;
         this.total = response.total;
         this.loading = false;
@@ -284,7 +438,7 @@ export default {
         remark: null,
         fileNames: null,
         enterType: null,
-        numValue: null
+        numValue: null,
       };
       this.fileList = [];
       this.resetForm("form");
@@ -301,12 +455,13 @@ export default {
     },
     // 多选框选中数据
     handleSelectionChange(selection) {
-      this.ids = selection.map(item => item.id)
-      this.single = selection.length!==1
-      this.multiple = !selection.length
+      this.ids = selection.map((item) => item.id);
+      this.single = selection.length !== 1;
+      this.multiple = !selection.length;
     },
     /** 新增按钮操作 */
     handleAdd() {
+      this.isAppoval = false;
       this.reset();
       this.open = true;
       this.title = "辅助指标录入新增";
@@ -314,8 +469,8 @@ export default {
     /** 修改按钮操作 */
     handleUpdate(row) {
       this.reset();
-      const id = row.id || this.ids
-      getQUOTABONDED(id).then(response => {
+      const id = row.id || this.ids;
+      getQUOTABONDED(id).then((response) => {
         this.form = response.data;
         this.form.linkUrls = this.baseURL + response.data.linkUrls;
         this.fileList = [];
@@ -329,30 +484,36 @@ export default {
     },
     /** 提交按钮 */
     async submitForm() {
-      this.$refs["form"].validate(valid => {
+      this.$refs["form"].validate((valid) => {
         if (valid) {
           if (!(parseInt(this.form.score) == this.form.score)) {
             this.$message.error("得分必须为整数");
             return;
           }
-          if (this.form.enterType == '附件' && this.form.linkUrls == null) {
+          if (this.form.enterType == "附件" && this.form.linkUrls == null) {
             this.$message.error("请上传附件");
             return;
           }
-          if (this.form.enterType == '文字说明' && this.form.remark == null) {
+          if (this.form.enterType == "文字说明" && this.form.remark == null) {
             this.$message.error("请录入文字说明");
             return;
           }
-          if (this.form.enterType == '数值' && this.form.numValue == null) {
+          if (this.form.enterType == "数值" && this.form.numValue == null) {
             this.$message.error("请录入数值");
             return;
           }
-          if (this.form.numValue != null && !(parseInt(this.form.numValue) == this.form.numValue || parseFloat(this.form.numValue) == this.form.numValue)) {
+          if (
+            this.form.numValue != null &&
+            !(
+              parseInt(this.form.numValue) == this.form.numValue ||
+              parseFloat(this.form.numValue) == this.form.numValue
+            )
+          ) {
             this.$message.error("数值必须为整数或小数");
             return;
           }
           if (this.form.id != null) {
-            let formData = new FormData()
+            let formData = new FormData();
             if (this.fileList.length < 1) {
               this.$message.error("请选择文件传输!");
               return;
@@ -360,20 +521,20 @@ export default {
             this.fileList.forEach((item) => {
               formData.append("file", item.raw);
             });
-            uploadFiles(formData).then(res=>{
-              if(res.code == 200){
+            uploadFiles(formData).then((res) => {
+              if (res.code == 200) {
                 this.form.linkUrls = res.fileNames;
                 this.form.fileNames = res.newFileNames;
 
-                updateQUOTABONDED(this.form).then(response => {
+                updateQUOTABONDED(this.form).then((response) => {
                   this.$modal.msgSuccess("修改成功");
                   this.open = false;
                   this.getList();
                 });
               }
-            })
+            });
           } else {
-            addQUOTABONDED(this.form).then(response => {
+            addQUOTABONDED(this.form).then((response) => {
               this.$modal.msgSuccess("新增成功");
               this.open = false;
               this.getList();
@@ -382,21 +543,83 @@ export default {
         }
       });
     },
+    // 管理员驳回审核
+    setRejectAndResolve(type) {
+      let val;
+      if (type == "resolve") {
+        val = 1;
+      } else {
+        val = 2;
+      }
+      setAdminApprove({ quotoBondedId: this.form.id, type: val }).then((res) => {
+        if (res.code == 200) {
+          this.$message.success(val == 1 ? "审核成功":"驳回成功");
+          this.getList();
+          this.open = false;
+        }
+      });
+    },
+
     /** 删除按钮操作 */
     handleDelete(row) {
       const ids = row.id || this.ids;
-      this.$modal.confirm('是否确认删除辅助指标-综保区编号为"' + ids + '"的数据项?').then(function() {
-        return delQUOTABONDED(ids);
-      }).then(() => {
-        this.getList();
-        this.$modal.msgSuccess("删除成功");
-      }).catch(() => {});
+      this.$modal
+        .confirm('是否确认删除辅助指标-综保区编号为"' + ids + '"的数据项?')
+        .then(function () {
+          return delQUOTABONDED(ids);
+        })
+        .then(() => {
+          this.getList();
+          this.$modal.msgSuccess("删除成功");
+        })
+        .catch(() => {});
     },
+
+    // 用户提交审核
+    handleApprove(data) {
+      setApprove({ quotoBondedId: data.id }).then((res) => {
+        if (res.code == 200) {
+          this.$message.success("提交成功");
+          this.getList();
+        }
+      });
+    },
+    // 管理审核审核
+    handleAdminApprove(row) {
+      this.reset();
+      const id = row.id || this.ids;
+      this.isAppoval = true;
+      getQUOTABONDED(id).then((response) => {
+        this.form = response.data;
+        this.form.linkUrls = this.baseURL + response.data.linkUrls;
+        this.fileList = [];
+        this.fileList.push({
+          name: response.data.fileNames,
+          url: response.data.linkUrls,
+        });
+        this.open = true;
+        this.title = "辅助指标录入修改";
+      });
+    },
+    // 管理上报
+    handleReport(data) {
+      setAdminReport({ quotoBondedId: data.id, type: 1 }).then((res) => {
+        if (res.code == 200) {
+          this.$message.success("上报成功");
+          this.getList();
+        }
+      });
+    },
+
     /** 导出按钮操作 */
     handleExport() {
-      this.download('business/QUOTABONDED/export', {
-        ...this.queryParams
-      }, `QUOTABONDED_${new Date().getTime()}.xlsx`)
+      this.download(
+        "business/QUOTABONDED/export",
+        {
+          ...this.queryParams,
+        },
+        `QUOTABONDED_${new Date().getTime()}.xlsx`
+      );
     },
 
     handleChange(file, fileList) {
@@ -406,14 +629,12 @@ export default {
       this.fileList = fileList;
     },
     download(resource) {
-      console.log("resource",resource)
-      downloadFiles(resource).then(res=>{
-        if(res.code == 200) {
-
-
+      console.log("resource", resource);
+      downloadFiles(resource).then((res) => {
+        if (res.code == 200) {
         }
-      })
-    }
-  }
+      });
+    },
+  },
 };
 </script>