瀏覽代碼

form表单是禁用状态,表单项也是只读,替换成纯文本样式,并删除表单提交时的校验

zhanglb 4 年之前
父節點
當前提交
c1371f9508
共有 1 個文件被更改,包括 27 次插入32 次删除
  1. 27 32
      front-vue/src/views/service/credit/goFinance.vue

+ 27 - 32
front-vue/src/views/service/credit/goFinance.vue

@@ -630,42 +630,37 @@ export default {
         },
         /** 提交按钮 */
         submitForm() {
-            this.$refs["form"].validate((valid) => {
-                if (valid) {
-                    const loading = this.$loading({
-                        lock: true,
-                        text: "Loading",
-                        spinner: "el-icon-loading",
-                        background: "rgba(0, 0, 0, 0.7)",
-                    });
-                    listCompanyHandler().then((response) => {
-                        var self = this;
-                        if (response.data == true) {
-                            this.form.zfrId = this.zfrId;
-                            addRecord(this.form)
-                                .then((response) => {
-                                    console.log(response);
-                                    loading.close();
-                                    this.zfrId = response.data.zfrId;
-                                    this.isOpenApproval();
-                                    // this.msgSuccess("融资申请成功");
-                                    // this.$store.dispatch("tagsView/delView", this.$route);
-                                    // this.$router.go(-1);
-                                })
-                                .catch((response) => {
-                                    loading.close();
-                                });
-                        } else {
-                            self.$message({
-                                message: "此操作需经办人权限,请确认您是否是经办人",
-                                type: "warning",
-                            });
+            const loading = this.$loading({
+                lock: true,
+                text: "Loading",
+                spinner: "el-icon-loading",
+                background: "rgba(0, 0, 0, 0.7)",
+            });
+            listCompanyHandler().then((response) => {
+                var self = this;
+                if (response.data == true) {
+                    this.form.zfrId = this.zfrId;
+                    addRecord(this.form)
+                        .then((response) => {
+                            console.log(response);
                             loading.close();
-                        }
+                            this.zfrId = response.data.zfrId;
+                            this.isOpenApproval();
+                            // this.msgSuccess("融资申请成功");
+                            // this.$store.dispatch("tagsView/delView", this.$route);
+                            // this.$router.go(-1);
+                        })
+                        .catch((response) => {
+                            loading.close();
+                        });
+                } else {
+                    self.$message({
+                        message: "此操作需经办人权限,请确认您是否是经办人",
+                        type: "warning",
                     });
+                    loading.close();
                 }
             });
-
         },
         /* 清空 */
         clearBoth() {