Browse Source

项目商机海盐站点调整

qymljy 1 year ago
parent
commit
a8f95e52ea

+ 1 - 1
src/Form/projectChange/add.vue

@@ -694,7 +694,7 @@ export default {
         this.total = res.total
         this.$refs.form.validateField('projectname')
         if (this.repeats.length > 0){
-          this.dialogTableVisible = true
+          this.siteid == 'HY'?this.dialogTableVisible = false:this.dialogTableVisible = true
         }else {
           this.dialogTableVisible = false
         }

+ 1 - 2
src/Form/projectChange/edit.vue

@@ -677,12 +677,11 @@ export default {
         this.param.content.sa_projectid = this.$route.query.id
         this.param.content.where.condition = this.form.projectname
         const res = await this.$api.requested(this.param)
-        console.log(res.data,'是否重复')
         this.repeats = res.data
         this.total = res.total
         this.$refs.form.validateField('projectname')
         if (this.repeats.length > 0){
-          this.dialogTableVisible = true
+          this.siteid == 'HY'?this.dialogTableVisible = false : this.dialogTableVisible = true
         }else {
           this.dialogTableVisible = false
         }

+ 7 - 1
src/components/duplicatesCheck/projectCheck.vue

@@ -72,6 +72,7 @@ export default {
       fields1:[],
       fields2:[],
       fields3:[],
+      siteid:JSON.parse(sessionStorage.getItem('active_account')).siteid
     }
   },
   methods:{
@@ -91,7 +92,12 @@ export default {
         this.list = res.data
         this.total = res.total
         this.currentPage = res.pageNumber
-        this.dialogTableVisible = true
+        if (this.siteid == 'HY'){
+          this.onCheck()
+        }else {
+          this.dialogTableVisible = true
+        }
+
       }else {
         if (this.creatShow){
           this.onSubmit()