소스 검색

调整更进动态展示

qymljy 1 년 전
부모
커밋
632ea28d3e

+ 2 - 1
src/SManagement/orderclue/components/follow.vue

@@ -61,7 +61,8 @@ export default {
          "latitude":"",//经度,可选
         "longitude":"",//纬度,可选
         "address":"",//解析地址,
-        "sat_ordercluefollowuplogid":0//传0新增
+        "sat_ordercluefollowuplogid":0,//传0新增
+        "resource":"销售线索"
       },
       timer: '',
       rules: {

+ 2 - 1
src/SManagement/orderclue_detail/components/editFollow.vue

@@ -83,7 +83,8 @@ export default {
         "latitude":"",//经度,可选
         "longitude":"",//纬度,可选
         "address":"",//解析地址,
-        "sat_ordercluefollowuplogid":0//传0新增
+        "sat_ordercluefollowuplogid":0,//传0新增
+        "resource":"销售线索"
       },
       timer: '',
       rules: {

+ 1 - 0
src/SManagement/orderclue_detail/components/followDetail.vue

@@ -13,6 +13,7 @@
             <div class="dateLine">
               <div class="div"></div>
               <span class="span margin-5">{{item.createdate}}</span>
+              <el-tag  v-if="item.resource" size="mini" style="color: #3874f6;margin-left: 10px">{{item.resource}}</el-tag>
             </div>
             <div style="display: flex;align-items: center">
               <div class="inline-16">

+ 6 - 0
src/components/normal-basic-layout-new/details/modules/followTable/index.vue

@@ -16,6 +16,12 @@
           prop="createby"
           label="跟进人"
           min-width="60">
+        <template slot-scope="scope">
+          <div>
+            {{scope.row.createby}}
+            <el-tag v-if="scope.row.resource" size="mini" style="color: #3874f6">{{scope.row.resource}}</el-tag>
+          </div>
+        </template>
       </el-table-column>
       <el-table-column
           prop="createdate"

+ 4 - 1
src/components/normal-basic-layout-new/details/modules/followUp/addLog.vue

@@ -129,8 +129,10 @@ export default {
     submitLog () {
       this.$refs.form.validate(async (valid)=>{
         if (!valid) return false
+        let resource = ''
         if (this.$route.path == '/phonebookDetail'){
           this.form.dataextend.contactsid = [this.$route.query.id]
+          resource = '通讯录'
         }
         const res = await this.$api.requested({
           "id": 20220930121601,
@@ -145,7 +147,8 @@ export default {
             "nextplan":this.form.nextplan,//下次跟进计划
             "dataextend": {
               "contactsid": this.form.dataextend.contactsid // 跟进对象
-            }
+            },
+            "resource":resource
           }
         })
         this.tool.showMessage(res,()=>{

+ 4 - 1
src/components/normal-basic-layout-new/details/modules/followUp/editLog.vue

@@ -125,8 +125,10 @@ export default {
      submitLog () {
       this.$refs.form.validate(async(valid)=>{
         if (!valid) return false
+        let resource = ''
         if (this.$route.path == '/phonebookDetail'){
           this.form.dataextend.contactsid = [this.$route.query.id]
+          resource = '通讯录'
         }
         const res = await this.$api.requested({
           "id": 20220930121601,
@@ -141,7 +143,8 @@ export default {
             "nextplan":this.form.nextplan,//下次跟进计划
             "dataextend": {
               "contactsid": this.form.dataextend.contactsid // 跟进对象
-            }
+            },
+            "resource":resource
           }
         })
         this.tool.showMessage(res,()=>{

+ 6 - 3
src/components/normal-basic-layout-new/details/modules/followUp/followUp.vue

@@ -20,9 +20,12 @@
       </div>
       <el-timeline v-else>
         <el-card v-for="i in logList" :key="i.index" shadow="hover" class="card-style">
-          <div class="dateLine">
-            <div class="div"></div>
-            <span class="span margin-5">{{i.createdate}}</span>
+          <div style="display: flex;justify-content: space-between">
+            <div class="dateLine">
+              <div class="div"></div>
+              <span class="span margin-5">{{i.createdate}}</span>
+            </div>
+            <el-tag v-if="i.resource" size="mini" style="color: #3874f6;float: right;margin: 10px 10px 0 10px;">{{i.resource}}</el-tag>
           </div>
           <div slot="dot" class="dot"></div>
           <div class="step__panel normal-margin" style="padding: 0 10px 0 10px">

+ 6 - 0
src/components/normal-basic-layout/details/modules/followTable/index.vue

@@ -16,6 +16,12 @@
           prop="createby"
           label="跟进人"
           min-width="60">
+        <template slot-scope="scope">
+          <div>
+            {{scope.row.createby}}
+            <el-tag v-if="scope.row.resource" size="mini" style="color: #3874f6">{{scope.row.resource}}</el-tag>
+          </div>
+        </template>
       </el-table-column>
       <el-table-column
           prop="createdate"

+ 10 - 1
src/components/normal-basic-layout/details/modules/followUp/addLog.vue

@@ -129,6 +129,14 @@ export default {
     submitLog () {
       this.$refs.form.validate(async (valid)=>{
         if (!valid) return false
+        let resource = ''
+        if (this.$route.path == '/projectChangeDetail'){
+          resource = '项目商机'
+        }else if (this.$route.path == '/customerDetail'){
+          resource = '我的客户'
+        }else if (this.$route.path == 'PublicCustomerDetail'){
+          resource = '公海客户'
+        }
         const res = await this.$api.requested({
           "id": 20220930121601,
           "content": {
@@ -142,7 +150,8 @@ export default {
             "nextplan":this.form.nextplan,//下次跟进计划
             "dataextend": {
               "contactsid": this.form.dataextend.contactsid // 跟进对象
-            }
+            },
+            "resource":resource
           }
         })
         this.tool.showMessage(res,()=>{

+ 10 - 1
src/components/normal-basic-layout/details/modules/followUp/editLog.vue

@@ -125,6 +125,14 @@ export default {
      submitLog () {
       this.$refs.form.validate(async(valid)=>{
         if (!valid) return false
+        let resource = ''
+        if (this.$route.path == '/projectChangeDetail'){
+          resource = '项目商机'
+        }else if (this.$route.path == '/customerDetail'){
+          resource = '我的客户'
+        }else if (this.$route.path == 'PublicCustomerDetail'){
+          resource = '公海客户'
+        }
         const res = await this.$api.requested({
           "id": 20220930121601,
           "content": {
@@ -138,7 +146,8 @@ export default {
             "nextplan":this.form.nextplan,//下次跟进计划
             "dataextend": {
               "contactsid": this.form.dataextend.contactsid // 跟进对象
-            }
+            },
+            "resource":resource
           }
         })
         this.tool.showMessage(res,()=>{

+ 6 - 3
src/components/normal-basic-layout/details/modules/followUp/followUp.vue

@@ -21,9 +21,12 @@
       </div>
       <el-timeline v-else>
         <el-card v-for="i in logList" :key="i.index" shadow="hover" class="card-style">
-          <div class="dateLine">
-            <div class="div"></div>
-            <span class="span margin-5">{{i.createdate}}</span>
+          <div style="display: flex;justify-content: space-between">
+            <div class="dateLine">
+              <div class="div"></div>
+              <span class="span margin-5">{{i.createdate}}</span>
+            </div>
+            <el-tag v-if="i.resource" size="mini" style="color: #3874f6;float: right;margin: 10px 10px 0 10px;">{{i.resource}}</el-tag>
           </div>
           <div slot="dot" class="dot"></div>
           <div class="step__panel normal-margin" style="padding: 0 10px 0 10px">