sunyize %!s(int64=2) %!d(string=hai) anos
pai
achega
9c5bd403af
Modificáronse 1 ficheiros con 37 adicións e 3 borrados
  1. 37 3
      src/views/networkAccess/userStatistics.vue

+ 37 - 3
src/views/networkAccess/userStatistics.vue

@@ -141,6 +141,10 @@
               <a-icon type="up"/>
               上报
             </a-menu-item>
+            <a-menu-item key="1" @click="showImproveAndUploadAdminComList" v-has="'access:check:lists:upCom'">
+              <a-icon type="up"/>
+              上报分公司
+            </a-menu-item>
           </a-menu>
           <a-button style="margin-left: 8px"> 批量操作
             <a-icon type="down"/>
@@ -843,9 +847,9 @@ export default {
       if (!record.createTime.match(RegExp(this.getDate()))){
         return this.$message.warning('非当天创建 禁止修改', 3);
       }
-      // if (record.status!=='0'){
-      //   return this.$message.warning('当前状态非新建未报 不可修改', 3);
-      // }
+      if (record.status!=='0'){
+        return this.$message.warning('当前状态非新建未报 不可修改', 3);
+      }
       //校验
       let data = {
         ids: [record.id],
@@ -858,6 +862,36 @@ export default {
       })
 
     },
+    showImproveAndUploadAdminComList() {
+
+      for (let s = 0; s < this.selectionRows.length; s++) {
+        if(this.selectionRows[s].numberResults.indexOf('1')!==-1){
+          return this.$message.warning('选中数据存在非高危数据(请重新选择)...', 3);
+        }
+      }
+      for (let i = 0; i < this.selectionRows.length; i++) {
+        if(this.selectionRows[i].status==='2'){
+          return this.$message.warning('选中数据中存在上报成功的数据...', 3);
+        }
+      }
+      for (let i = 0; i < this.selectionRows.length; i++) {
+        if(this.selectionRows[i].status==='1'){
+          return this.$message.warning('选中数据中存在已上报分公司的数据...', 3);
+        }
+      }
+      let data = {
+        ids: this.selectedRowKeys,
+      }
+
+      postAction("/businessReminderCard/escalationCom",data).then((res) => {
+        if (res.success) {
+          this.$message.success(res.message, 3);
+          this.loadData(1);
+        } else {
+          this.$message.error(res.message);
+        }
+      })
+    },
     showImproveAndUploadAdminCom(record,status) {
 
         if(record.numberResults.indexOf('1')!==-1) {