zhouhao 2 år sedan
förälder
incheckning
eb921c054e
1 ändrade filer med 22 tillägg och 7 borttagningar
  1. 22 7
      src/views/deposit_home/refund_list.vue

+ 22 - 7
src/views/deposit_home/refund_list.vue

@@ -715,14 +715,29 @@ export default {
         this.$message.error(result.message)
       }
     },
-    // 打开 批量审批
-    batchExamine() {
-      // if (this.selectData.length) {
-      this.submitExamineForm()
+      // 打开 批量审批
+      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
+            }
+
+          }else{
+            this.$errorMsg('请选择保存状态或者待审核状态单')
+            return
+
+          }
+        }
       // this.isShowExamineDialog = true;
-      //   return
-      // }
-      // this.$errorMsg('请选择审核项')
+        return
+      }
+      this.$errorMsg('请选择需要审核的单,退押申请保存状态,待审核状态下操作批量审批,必须有资料审核日期才能被审核')
     },
     // 提交 批量审批
     submitExamineForm() {