浏览代码

销售线索详情调整

qymljy 10 月之前
父节点
当前提交
2388475835

+ 2 - 2
src/SManagement/orderclue_detail/components/projectAudit.vue

@@ -224,7 +224,7 @@
         </el-row>
       </div>
       <div class="fixed__btn__panel">
-        <el-button plain class="normal-btn-width" @click="$refs.checkRef.queryRule()">查重</el-button>
+        <el-button plain class="normal-btn-width" @click="$refs.checkRef.queryRule('审核')">查重</el-button>
         <el-button size="small" type="danger" @click="onAudit('不通过')" class="normal-btn-width">审核不通过</el-button>
         <el-button size="small" type="success" @click="onAudit('通过')" class="normal-btn-width" >审核通过</el-button>
       </div>
@@ -356,7 +356,7 @@ export default {
       this.value = [this.form.province,this.form.city,this.form.county]
       this.form.totalinvestment = ''
       this.form.costofconstruction = ''
-      this.$refs.checkRef.queryRule()
+      this.$refs.checkRef.queryRule('审核')
       this.queryBrand()
       this.queryTradefield()
       this.queryUnitname()

+ 10 - 7
src/components/duplicatesCheck/projectChangeCheck.vue

@@ -1,7 +1,7 @@
 <template>
   <div>
     <el-button size="small" type="primary" @click="isCheck" class="inline-16 normal-btn-width">查 重</el-button>
-    <el-dialog title="重复项目" :visible.sync="dialogTableVisible" append-to-body width="40%" style="float: left">
+    <el-dialog title="重复项目" :visible.sync="dialogTableVisible" append-to-body width="1000px" style="float: left">
       <div slot="title" class="dialog-title">
         <span class="title-text">重复项目</span>
         <p v-if="buttonTitle === '确定保存'" style="font-size: 14px;color: red">已存在重复项目,是否确认继续保存</p>
@@ -72,10 +72,11 @@ export default {
       fields1:[],
       fields2:[],
       fields3:[],
+      siteid:JSON.parse(sessionStorage.getItem('active_account')).siteid
     }
   },
   methods:{
-    async listData(){
+    async listData(val){
       this.param.content.sa_projectid =0
       this.fields1.forEach(item=>{
         this.param.content[item] = this.data[item] || ""
@@ -94,9 +95,12 @@ export default {
           this.list = res.data
           this.total = res.total
           this.currentPage = res.pageNumber
-          this.$emit('isDuplicate','重复')
           if (this.siteid == 'HY'){
-            this.onCheck()
+            if (val == '审核'){
+              this.dialogTableVisible = true
+            }else {
+              this.onCheck()
+            }
           }else {
             this.dialogTableVisible = true
           }
@@ -108,7 +112,6 @@ export default {
               message: '无重复数据',
               type: 'success'
             });
-            this.$emit('isDuplicate','无重复数据')
           }
         }
       }
@@ -205,7 +208,7 @@ export default {
     isCheck(){
       this.$emit('onCheck')
     },
-    async queryRule(){
+    async queryRule(val){
       const res = await this.$api.requested({
         "id": "20230410090502",
         "content": {},
@@ -213,7 +216,7 @@ export default {
       this.fields1 = res.data.projectcheckrule.fields1
       this.fields2 = res.data.projectcheckrule.fields2
       this.fields3 = res.data.projectcheckrule.fields3
-      this.listData()
+      this.listData(val)
     }
   },
   created() {