浏览代码

退押审核

zhouhao 2 年之前
父节点
当前提交
546b53289b
共有 1 个文件被更改,包括 30 次插入30 次删除
  1. 30 30
      src/views/deposit_home/refund_list.vue

+ 30 - 30
src/views/deposit_home/refund_list.vue

@@ -715,39 +715,39 @@ export default {
         this.$message.error(result.message)
       }
     },
-    // 打开 批量审批
-    batchExamine() {
-      // if (this.selectData.length) {
-      this.submitExamineForm()
-      // this.isShowExamineDialog = true;
-      //   return
-      // }
-      // this.$errorMsg('请选择审核项')
-    },
-    //  // 打开 批量审批
-    //  batchExamine() {
-    //   if (this.selectData.length) {
+    // // 打开 批量审批
+    // batchExamine() {
+    //   // if (this.selectData.length) {
+    //   this.submitExamineForm()
+    //   // this.isShowExamineDialog = true;
+    //   //   return
+    //   // }
+    //   // this.$errorMsg('请选择审核项')
+    // },
+     // 打开 批量审批
+     batchExamine() {
+      if (this.selectData.length) {
       
-    //     for (let i = 0; i < this.selectData.length; i++) {
-    //       if (this.selectData[i].examineStatus == 'OK' || this.selectData[i].examineStatus == 'SAVE') {
-    //         if (this.selectData[i].installDate) {
-    //           this.submitExamineForm()
-    //         }else{
-    //           this.$errorMsg('需要资料日期才能被审核')
-    //           return
-    //         }
+        for (let i = 0; i < this.selectData.length; i++) {
+          if (this.selectData[i].examineStatus == 'OK' || this.selectData[i].examineStatus == 'SAVE') {
+            if (this.selectData[i].installDate) {
+              this.submitExamineForm()
+            }else{
+              this.$errorMsg('需要资料日期才能被审核')
+              return
+            }
 
-    //       }else{
-    //         this.$errorMsg('请选择保存状态或者待审核状态单')
-    //         return
+          }else{
+            this.$errorMsg('请选择保存状态或者待审核状态单')
+            return
 
-    //       }
-    //     }
-    //   // this.isShowExamineDialog = true;
-    //     return
-    //   }
-    //   this.$errorMsg('请选择需要审核的单,退押申请保存状态,待审核状态下操作批量审批,必须有资料审核日期才能被审核')
-    // },
+          }
+        }
+      // this.isShowExamineDialog = true;
+        return
+      }
+      this.$errorMsg('请选择需要审核的单,退押申请保存状态,待审核状态下操作批量审批,必须有资料审核日期才能被审核')
+    },
     // 提交 批量审批
     submitExamineForm() {
       let ids = this.selectData.map(item => {