Pārlūkot izejas kodu

合作方新增判断证件类型和证件号码重复

Danj0rr 11 mēneši atpakaļ
vecāks
revīzija
63f568d436
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 3 3
      src/views/system/cooperatorAdd.vue

+ 3 - 3
src/views/system/cooperatorAdd.vue

@@ -240,11 +240,10 @@ export default {
             })
         },
         submit() {
-            if (this.corp_certificate_type_name == "统一社会信用代码")
+            if (this.corp_certificate_type_name == 1)
                 this.corp_certificate_type = "20"
-            else
+            else if(this.corp_certificate_type_name==2)
                 this.corp_certificate_type = "30"
-            console.log(this.fieldTemplateId)
 
             if (this.cooperator_name == "") {
                 this.$alert("请输入合作方名称");
@@ -254,6 +253,7 @@ export default {
                 this.$alert("请输入证件号码");
                 return;
             }
+            console.log(this.corpCertificateNum)
             if (this.corp_certificate_type == "") {
                 this.$alert("请选择证件类型");
                 return;