2 커밋 2e68eb500f ... 38d97ed2d4

작성자 SHA1 메시지 날짜
  Danj0rr 38d97ed2d4 产品新增判断产品编号是否存在 11 달 전
  Danj0rr 63f568d436 合作方新增判断证件类型和证件号码重复 11 달 전
3개의 변경된 파일12개의 추가작업 그리고 6개의 파일을 삭제
  1. 0 1
      src/api/index.js
  2. 3 3
      src/views/system/cooperatorAdd.vue
  3. 9 2
      src/views/system/cooperatorProductApply.vue

+ 0 - 1
src/api/index.js

@@ -202,7 +202,6 @@ export function modelDefineList(){
     return request.get('/model_define/modelDefineList');
 }
 
-
 export function cooperatorProductApply(cooperator_num, cooperator_name,  product_num, product_name, model_id,fieldSelected) {
     return request.post('/cooperator_product/apply', {
         cooperator_num : cooperator_num,

+ 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;

+ 9 - 2
src/views/system/cooperatorProductApply.vue

@@ -158,7 +158,7 @@ import {
     findCooperatorProductFieldByNum,
     cooperatorProductApply,
     findCooperatorFieldsByName,
-    cooperatorList
+    cooperatorList,
 } from '@/api/index.js'
 import store from "@/store";
 import request from '@/utils/request.js'
@@ -410,7 +410,14 @@ export default {
             this.selected6 = true;
         },
         paneNext1() {
-            this.activeName2 = "second"
+            request.post('/cooperator_product/checkDupProdNum', {
+                product_num: this.cooperator_product_no
+            }).then(
+                res => {
+                    this.activeName2 = "second"
+                },
+            )
+
         },
         paneNext2() {
             this.activeName2 = "third"