qymljy 2 år sedan
förälder
incheckning
367afb4767

+ 1 - 1
src/SDrpManagement/salerPrivatecustomer/components/duplicateCheck.vue

@@ -49,7 +49,7 @@ export default {
   methods:{
     async listData(){
       console.log(this.data,"数据")
-      this.param.content.sa_customersid = this.data.sa_customersid
+      this.param.content.sa_customersid = this.data.sa_customersid || 0
       this.param.content.enterprisename = this.data.enterprisename
       this.param.content.taxno = this.data.taxno
       this.param.content.address = this.data.address

+ 1 - 1
src/SManagement/orderclue_detail/components/changeCustomer.vue

@@ -291,7 +291,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_customer,
             "taxno":this.form.taxno,
             "address":this.form.address

+ 5 - 2
src/SManagement/orderclue_detail/components/changeProject.vue

@@ -293,20 +293,23 @@ export default {
     /*自动查重判断*/
     duplicateCheck(){
       this.$refs.form.validate(async (valid) => {
+        console.log(this.form)
         if (!valid) return false
         const res = await this.$api.requested({
           "id": 20221208184202,
           "content": {
             "projectname":this.form.projectname,
             "address":this.form.address,
-            "sa_projectid":this.form.sa_projectid
+            "sa_projectid":0
           },
         })
         console.log(res,"查重结果")
         if (res.data.length !== 0){
           console.log("重复")
+        }else {
+
         }
-        this.checkResults = res.data.total
+        this.checkResults = res.data.length
         console.log(this.checkResults)
         this.onSave()
       })