qymljy il y a 2 ans
Parent
commit
d1569d189f
2 fichiers modifiés avec 10 ajouts et 4 suppressions
  1. 5 2
      src/Form/projectChange/add.vue
  2. 5 2
      src/Form/publicCustomer/add.vue

+ 5 - 2
src/Form/projectChange/add.vue

@@ -154,7 +154,7 @@
       </div>
       <div class="fixed__btn__panel">
         <el-button  size="small" @click="onClose" class="normal-btn-width inline-16">取 消</el-button>
-        <duplicateCheck :data="form"></duplicateCheck>
+        <duplicateCheck :data="form" @checkSuccess="checkSuccess"></duplicateCheck>
         <el-button size="small" type="primary" @click="onSave" class="normal-btn-width">确 定</el-button>
       </div>
     </el-drawer>
@@ -283,7 +283,7 @@ export default {
           "content": {
             "projectname":this.form.projectname,
             "address":this.form.address,
-            "sa_projectid":this.form.sa_projectid
+            "sa_projectid":0
           },
         })
         console.log(res,"查重结果")
@@ -469,6 +469,9 @@ export default {
       this.$store.dispatch('optiontypeselect','tradefield').then(res=>{
         this.tradefieldSelect = res.data
       })
+    },
+    checkSuccess(val){
+      this.checkResults = val
     }
   },
   mounted() {

+ 5 - 2
src/Form/publicCustomer/add.vue

@@ -246,7 +246,7 @@
       </div>
       <div class="fixed__btn__panel">
         <el-button size="small" @click="onClose" class="normal-btn-width">取 消</el-button>
-        <duplicateCheck :data="form"></duplicateCheck>
+        <duplicateCheck :data="form" @checkSuccess="checkSuccess"></duplicateCheck>
         <el-button size="small" type="primary" @click="onSave" class="normal-btn-width">确 定</el-button>
       </div>
     </el-drawer>
@@ -392,7 +392,7 @@ export default {
         const res = await this.$api.requested({
           "id": 20221208172002,
           "content": {
-            "sa_customersid":this.form.sa_customersid,
+            "sa_customersid":0,
             "enterprisename":this.form.enterprisename,
             "taxno":this.form.taxno,
             "address":this.form.address
@@ -622,6 +622,9 @@ export default {
         this.options.customerGrade = res.data
       })
     },
+    checkSuccess(val){
+      this.checkResults = val
+    }
   },
   mounted() {
     this.industryList()