From 111689135f165ecb2ea5ce0881784dfc89b58d87 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Fri, 05 Nov 2021 17:33:45 +0800
Subject: [PATCH] +增加查看信息 以及修改掐他字段

---
 src/components/cardPopup/cardPopup.vue |   26 ++++++++++++++++++--------
 1 files changed, 18 insertions(+), 8 deletions(-)

diff --git a/src/components/cardPopup/cardPopup.vue b/src/components/cardPopup/cardPopup.vue
index e614345..fd9f403 100644
--- a/src/components/cardPopup/cardPopup.vue
+++ b/src/components/cardPopup/cardPopup.vue
@@ -53,6 +53,8 @@
                   ref="form1"
                   v-model="obj0"
                   :option="option"
+                  @submit="submit"
+                  class="cardButs"
                 ></avue-form>
               </el-collapse-item>
               <el-collapse-item title="附件上传/查询" name="2">
@@ -117,7 +119,7 @@
       },
       option: {
         emptyBtn: false,
-        submitBtn: false,
+        submitBtn: true,
         gutter: 50,
         column: [],
       },
@@ -147,7 +149,7 @@
           this.OnceChouse = true;
 
           d.push(this.together[i]);
-          console.log("选择");
+          // console.log("选择");
         }
       }
       if (this.OnceChouse) {
@@ -204,20 +206,20 @@
             this.data = this.data.concat(resk.data.data.records);
             getListrev(page.currentPage, page.pageSize, params).then((resv) => {
               this.data = this.data.concat(resv.data.data.records);
-              console.log("已有申请数量:", this.data.length);
-              console.log(val, "当前type");
+              // console.log("已有申请数量:", this.data.length);
+              // console.log(val, "当前type");
               this.changeBut(true, d);
               if (this.data.length == 0) {
-                console.log("一条数据都没有");
+                // console.log("一条数据都没有");
               } else {
                 this.data.forEach((item) => {
                   if (item.ptype == val) {
                     if (item.type == 0 || item.type == 2) {
                       this.changeBut(false, d);
-                      console.log(item, "有数据未审核或者审核通过");
+                      // console.log(item, "有数据未审核或者审核通过");
                     } else {
                       this.changeBut(true, d);
-                      console.log(item, "审核不通过");
+                      // console.log(item, "审核不通过");
                     }
                   }
                 });
@@ -281,8 +283,16 @@
     aa(b) {
       console.log(b);
     },
-    up() {
+    submit() {
+      this.up(0);
+    },
+    up(val = 1) {
       //提交申请
+      // this.submit();
+      if (val == 1) {
+        this.$refs.form1.submit(); //解决点击提交不能显示那个字段输入错误的问题
+        return;
+      }
       var d = {};
       for (var k in this.obj0) {
         for (var i in this.option.column) {

--
Gitblit v1.9.3