Browse Source

项目商机编辑页面项目名称、地址禁用,标签管理互斥标签设置调整,企业设置项目查重规则设置调整

qymljy 3 months ago
parent
commit
49ff9e887d

+ 23 - 5
src/Form/projectChange/edit.vue

@@ -45,6 +45,7 @@
                   v-model="form.projectname"
                   :placeholder="$t('请输入项目名称')"
                   @blur="nameChange((param.content.pageNumber = 1))"
+                  :disabled="((siteid == 'HY' || siteid == 'YOSTEST1') && clueList.length > 0) || ((siteid == 'NB' || siteid == 'TZ') && data.reportstatus != '未报备')"
                 ></el-input>
                 <span
                   style="color: red; font-size: 12px; margin-bottom: -10px"
@@ -157,6 +158,7 @@
                   :options="basicData.data().areaData"
                   @change="cascaderChange"
                   clearable
+                  :disabled="((siteid == 'HY' || siteid == 'YOSTEST1') && clueList.length > 0) || ((siteid == 'NB' || siteid == 'TZ') && data.reportstatus != '未报备')"
                 >
                 </el-cascader>
               </el-form-item>
@@ -175,6 +177,7 @@
                 <el-input
                   v-model="form.address"
                   :placeholder="$t('请输入详细地址')"
+                  :disabled="clueList.length > 0"
                 ></el-input>
               </el-form-item>
             </el-col>
@@ -183,6 +186,7 @@
                 <el-input
                   v-model="form.address"
                   :placeholder="$t('请输入详细地址')"
+                  :disabled="(siteid == 'YOSTEST1' && clueList.length > 0) || ((siteid == 'NB' || siteid == 'TZ') && data.reportstatus != '未报备')"
                 ></el-input>
               </el-form-item>
             </el-col>
@@ -695,6 +699,7 @@ export default {
           },
         ],
       },
+      clueList:[]
     };
   },
   computed: {
@@ -739,15 +744,11 @@ export default {
       this.getSysetms();
       this.queryBrand();
       this.queryTradefield();
+      this.clueData()
       this.siteid = JSON.parse(sessionStorage.getItem("active_account")).siteid;
       const res = await this.$store.dispatch("optiontypeselect", "squarestage");
       this.squarestages = res.data;
-      /*this.form.tradefields = JSON.parse(this.form.tradefields)*/
 
-      /*this.form.budgetary = this.form.budgetary !== 0 ? this.tool.formatAmount(this.form.budgetary,2):'' || ''
-      this.form.totalinvestment  ? this.form.totalinvestment = this.tool.formatAmount(this.form.totalinvestment,2):this.form.totalinvestment = ''
-      this.form.costofconstruction  ? this.form.costofconstruction = this.tool.formatAmount(this.form.costofconstruction,2):this.form.costofconstruction = ''
-      this.form.signamount_due  ? this.form.signamount_due = this.tool.formatAmount(this.form.signamount_due,2):this.form.signamount_due = ''*/
     },
     /*查重检查*/
     onCheck() {
@@ -996,6 +997,23 @@ export default {
       let res2 = await this.$store.dispatch("optiontypeselect", "projectgrade");
       this.projectLead = res2.data;
     },
+    /*获取关联线索数据*/
+    async clueData(){
+      let param = {
+        "id": 20221124110002,
+        "content": {
+          "nocache": true,
+          "pageNumber": 1,
+          "pageSize":20,
+          "sa_projectid":this.$route.query.id,
+          "where": {
+            "condition": ""
+          }
+        }
+      }
+      const res = await this.$api.requested(param)
+      this.clueList = res.data
+    }
   },
   mounted() {},
   created() {

+ 17 - 1
src/HManagement/siteManage/securityConfig/modules/projectCheckRule.vue

@@ -9,10 +9,22 @@
         <el-col :span="24" style="margin-top: 20px">
           <div>
             <span style="margin-right: 10px">{{$t(`项目名称查重排除文字`)}}:</span>
+            <el-tooltip placement="top" style="margin-right: 10px">
+              <div slot="content">{{$t('项目名称查重排除文字,是项目名称查重前提条件之一,设置的文字,是项目名称查重时需排除掉的文字。')}}<br>{{$t('项目名称查重需先排除设置文字后,再将名称剩下的文字进行查重。')}}</div>
+              <img style="vertical-align: middle" width="14px" height="14px" src="../../../../assets/icons/prompt_icon.svg" >
+            </el-tooltip>
             <el-tag v-for="(item,index) in projectnameexcludefields" :key="index" style="margin-right: 10px" class="mt-10" closable @close="tagDel(item,index)">{{item}}</el-tag>
             <el-button type="primary" size="mini" @click="setWordVisible = true">{{$t(`添加`)}}</el-button>
           </div>
         </el-col>
+        <el-col :span="24" style="margin-top: 20px">
+          <span style="margin-right: 10px">{{$t(`查重字符数`)}}:</span>
+          <el-input v-model="projectrepeatnum" style="width: 200px;margin-right: 10px" :placeholder="$t(`设置查重字符数`)" size="small"></el-input>
+          <el-tooltip placement="top">
+            <div slot="content">{{$t('查重字符数,是项目名称查重判断依据之一,项目名称排除设置文字后,剩下的文字进行项目名称查重,若重复的文字 ≥ 查重字符数,则判断该项目名称重复。')}}</div>
+            <img style="vertical-align: middle" width="14px" height="14px" src="../../../../assets/icons/prompt_icon.svg" >
+          </el-tooltip>
+        </el-col>
         <el-col :span="24" style="margin-top: 20px">
           <div style="width: 50px" class="inline-16">
             {{ $t('第一层') }}:
@@ -228,6 +240,7 @@ export default {
       relation:'',
       exclude:'',
       projectnameexcludefields:[],
+      projectrepeatnum:0
     }
   },
   methods:{
@@ -265,7 +278,8 @@ export default {
             "factor3": this.factor3
           },
           "projectprotectionperiod":this.projectprotectionperiod,
-          "projectnameexcludefields":this.projectnameexcludefields
+          "projectnameexcludefields":this.projectnameexcludefields,
+          "projectrepeatnum":this.projectrepeatnum
         },
       })
       this.tool.showMessage(res,()=>{
@@ -275,6 +289,7 @@ export default {
         this.fields2 = []
         this.fields3 = []
         this.projectprotectionperiod = 0
+        this.projectrepeatnum = 0
       })
     },
     onClose(){
@@ -297,6 +312,7 @@ export default {
       this.factor2 = res.data.projectcheckrule.factor2
       this.factor3 = res.data.projectcheckrule.factor3
       this.projectprotectionperiod= res.data.projectprotectionperiod
+      this.projectrepeatnum = res.data.projectrepeatnum
       this.projectnameexcludefields = res.data.projectnameexcludefields?res.data.projectnameexcludefields:[]
     },
     /*设置排除文字*/

+ 10 - 11
src/HManagement/siteManage/tagManage/components/edit.vue

@@ -77,7 +77,6 @@ export default {
         this.form.sys_systemtagid = this.sys_systemtagid()
         const res = await this.$api.requested({
           "id": "20221013104501",
-          "version":1,
           "content": this.form
         })
         this.tool.showMessage(res,async()=>{
@@ -86,16 +85,16 @@ export default {
               "sys_systemtagdetailid": item,
             }
           })
-          if (mutextags.length > 0) {
-            let res2 = await this.$api.requested({
-              "id":20221014122501,
-              "content": {
-                "sys_systemtagid": res.data.sys_systemtagid,
-                "sys_systemtagdetailid": res.data.sys_systemtagdetailid,
-                "mutextags": mutextags,
-              }
-            })
-          }
+
+          let res2 = await this.$api.requested({
+            "id":20221014122501,
+            "content": {
+              "sys_systemtagid": res.data.sys_systemtagid,
+              "sys_systemtagdetailid": res.data.sys_systemtagdetailid,
+              "mutextags": mutextags,
+            }
+          })
+
           this.dialogFormVisible = false
           this.$refs['form'].resetFields();
           this.$emit('onSuccess')