Browse Source

feat: 创建线索、客户、机会

Signed-off-by: tsz <2417024719@qq.com>
tsz 1 year ago
parent
commit
92ee82b8ec

+ 5 - 1
src/components/crm-info/IframeDialog.vue

@@ -4,7 +4,7 @@
       :visible.sync="dialogVisible"
       width="50%"
       >
-      <iframe src="http://127.0.0.1:8081/swordfish/page_big_pc/unit_portrayal/%E5%AE%9D%E4%B8%B0%E5%8E%BF%E5%9B%AD%E6%9E%97%E7%BB%BF%E5%8C%96%E4%B8%AD%E5%BF%83?resource=BI" width="100%" height="500" frameborder="0"></iframe>
+      <iframe :src="iframeSrc" width="100%" height="500" frameborder="0"></iframe>
     </el-dialog>
   </div>
 </template>
@@ -20,6 +20,10 @@ export default {
     showDialog: {
       type: Boolean,
       default: false
+    },
+    iframeSrc: {
+      type: String,
+      default: ''
     }
   },
   watch: {

+ 10 - 2
src/components/crm-info/crmAction.vue

@@ -9,7 +9,7 @@
         <span> {{ item.active ? '已' : '' }}{{ item.title }}</span>
       </div>
     </div>
-    <iframe-dialog @getEmployInfo="getEmployEvent" @setDialogStatus="setDialogStatus" :showDialog="setShowDialog"></iframe-dialog>
+    <iframe-dialog :iframe-src="iframeSrc" @getEmployInfo="getEmployEvent" @setDialogStatus="setDialogStatus" :showDialog="setShowDialog"></iframe-dialog>
   </div>
 </template>
 
@@ -28,6 +28,12 @@ export default {
           idArr: ''
         }
       }
+    },
+    ename: {
+      type: Object,
+      default () {
+        return ''
+      }
     }
   },
   components: {
@@ -41,7 +47,8 @@ export default {
         { title: '创建客户', 'icon-0': 'chuangjiankehu', 'icon-1': 'chuangjiankehu', class: 'custom', active: 0, msg: 0 }
       ],
       employInfo: {},
-      setShowDialog: false
+      setShowDialog: false,
+      iframeSrc: ''
     }
   },
   computed: {
@@ -81,6 +88,7 @@ export default {
           break
         case 'custom':
           this.setShowDialog = true
+          this.iframeSrc = location.origin + '/succbi/crm_system/app/crm.app/%E9%80%9A%E7%94%A8%E5%88%9B%E5%BB%BA/create_customer.spg?E_customer_name=' + this.ename
           break
         default:
           break

+ 1 - 1
src/views/portrayal/EntPortrayal.vue

@@ -16,7 +16,7 @@
         </div>
       </div>
       <div class="ent_option" v-else>
-        <crm-action :params="crmParams"></crm-action>
+        <crm-action :ename="entName" :params="crmParams"></crm-action>
       </div>
     </div>
     <div class="ent-content" v-loading="loading">

+ 1 - 1
src/views/portrayal/EntSearchPortrayal.vue

@@ -16,7 +16,7 @@
         </div>
       </div>
       <div class="ent_option" v-else>
-        <crm-action :params="crmParams"></crm-action>
+        <crm-action :ename="entName" :params="crmParams"></crm-action>
       </div>
     </div>
     <div class="ent-content" v-loading="loading">

+ 1 - 1
src/views/portrayal/UnitPortrayal.vue

@@ -22,7 +22,7 @@
             </div>
           </template>
           <template v-if="isBIPage">
-            <crm-action :params="crmParams"></crm-action>
+            <crm-action :ename="info.buyerName" :params="crmParams"></crm-action>
           </template>
         </div>
         <div class="u-type">