Explorar el Código

feat: 取消收录和查询收录情况接口添加from=jhfp参数

Signed-off-by: tangshizhe <48740614+tangshizhe@users.noreply.github.com>
tangshizhe hace 1 año
padre
commit
02e4efb8a6

+ 6 - 3
src/web/staticres/BI-module/js/crm-action.js

@@ -10,8 +10,9 @@ var crmNode = new Vue({
         { title: '创建销售机会', 'icon-0': 'chuangjianxiaoshoujihui', 'icon-1': 'chuangjianxiaoshoujihui', class: 'jihui', active: 0, msg: 0 },
         { title: '创建客户', 'icon-0': 'chuangjiankehu', 'icon-1': 'chuangjiankehu', class: 'custom', active: 0, msg: 0 }
       ],
-      pageType: '',
-      porperty: '',
+      pageType: '', // 营销专版参数
+      porperty: '', // 物业专版参数
+      fromJhfp: '', // 判断是从机会复盘还是从招标搜索进
       employInfo: [], // 收录情况
       dialogVisible: false,
       IframeSrc: '',
@@ -96,6 +97,7 @@ var crmNode = new Vue({
       const urlParams = new URLSearchParams(window.location.search)
       this.pageType = urlParams.get('resource')
       this.property = urlParams.get('property')
+      this.fromJhfp = urlParams.get('from')
       if (this.pageType === 'BI' || this.property === 'BIProperty') {
         $('.com-tagsbar').hide()
         $('.com-statusbar').hide()
@@ -217,7 +219,8 @@ var crmNode = new Vue({
       const url = '/jyapi/crmApplication/employ/info'
       const params = {
         employType: 1,
-        idArr: id
+        idArr: id,
+        from: this.fromJhfp ? this.fromJhfp : ''
       }
       this.ajaxComponent(url, params).then((res) => {
         console.info(res)

+ 4 - 0
src/web/staticres/js/superSearch.js

@@ -1991,6 +1991,10 @@ $(document).on('click', '.icon-shoulu', function() {
     isEmploy: !isChecked,
     employType: 1
   }
+  // 取消收录添加参数
+  if(isChecked) {
+    params.from = 'jhfp'
+  }
   if(!isChecked && searchInnerVue.inBIPropertyiframe) {
     params = {
       id: id