瀏覽代碼

线索详情

zhaoxiaohai 3 年之前
父節點
當前提交
f230d68a76

+ 57 - 10
pages/threadedTree/details/index.js

@@ -5,6 +5,7 @@ Page({
         addGlobalClass: true
     },
     data: {
+        sheetTitle: "",
         showWhere: "所有日期",
         timeRangeShow: false,
         sat_orderclueid: 0,
@@ -21,21 +22,47 @@ Page({
         where: {
             "start": "",
             "end": ""
-        }
+        },
+        teamList: [],
     },
     /**
      * 生命周期函数--监听页面加载
      */
     onLoad(options) {
         this.setData({
-            sat_orderclueid: options.id
+            sat_orderclueid: options.id,
+            tagColor: options.color
         })
         this.selectDetail();
         this.getFollowList();
+        this.query_teamList();
+    },
+    /* 团队成员 */
+    query_teamList(i=0) {
+        if (i == 5) return;
+        _Http.basic({
+            "classname": "sale.team.team",
+            "method": "query_teamList",
+            "content": {
+                "pageNumber": 1,
+                "pageSize": 99999,
+                "where": {
+                    "condition": ""
+                }
+            }
+        }).then(res => {
+            if (res.msg != '成功') return this.selectDetail(i + 1);
+            this.setData({
+                teamList: res.data
+            })
+        })
     },
     /* 查询详情 */
     selectDetail(i = 0) {
-        if (i == 5) return;
+        if (i == 5) return wx.showToast({
+            title: '详情信息查询失败!',
+            icon: "none"
+        })
         _Http.basic({
             "classname": "saletool.orderclue.web.orderclue",
             "method": "selectDetail",
@@ -55,7 +82,10 @@ Page({
     },
     /* 跟进列表 */
     getFollowList(i = 0) {
-        if (i == 5) return;
+        if (i == 5) return wx.showToast({
+            title: '跟进记录查询失败!',
+            icon: "none"
+        })
         _Http.basic({
             "classname": "saletool.orderclue.web.orderclue",
             "method": "getFollowList",
@@ -72,6 +102,23 @@ Page({
             })
         })
     },
+    /* 打开弹出 */
+    openPoput(e) {
+        const {
+            name
+        } = e.currentTarget.dataset;
+        if (name == '线索编辑') this.selectComponent("#edit").initData();
+        this.setData({
+            sheetTitle: name
+        })
+    },
+    /* 结束编辑 */
+    endEdit() {
+        this.setData({
+            sheetTitle: ""
+        })
+        this.selectDetail();
+    },
     /* 修改排序方式 */
     changeIsdesc() {
         this.setData({
@@ -79,6 +126,12 @@ Page({
         });
         this.getFollowList();
     },
+    /* 打开选择时间 */
+    openSelectDate() {
+        this.setData({
+            timeRangeShow: true
+        })
+    },
     /* 查看所有日期 */
     toSeeAll() {
         this.setData({
@@ -87,12 +140,6 @@ Page({
         this.timeRangeClose();
         this.getFollowList();
     },
-    /* 打开选择时间 */
-    openSelectDate() {
-        this.setData({
-            timeRangeShow: true
-        })
-    },
     /* 关闭时间范围选择 */
     timeRangeClose() {
         this.setData({

+ 4 - 1
pages/threadedTree/details/index.json

@@ -3,6 +3,9 @@
     "usingComponents": {
         "Details": "./modules/details/index",
         "Record": "./modules/record/index",
-        "My_datePicker": "/components/My_datePicker/index"
+        "My_datePicker": "/components/My_datePicker/index",
+        "Popup": "../modules/popup",
+        "Insert": "../modules/insert/insert",
+        "handOver": "./modules/handOver/index"
     }
 }

+ 32 - 3
pages/threadedTree/details/index.scss

@@ -1,5 +1,4 @@
 @import "../../submission/wxss/detePicker.scss";
-
 .header {
     display: flex;
     width: 100vw;
@@ -19,6 +18,7 @@
             font-size: 24rpx;
             font-family: PingFang SC-Regular, PingFang SC;
             color: #666666;
+            margin: 0;
             margin-top: 30rpx;
         }
 
@@ -33,14 +33,12 @@
         }
     }
 }
-
 .tab-class {
     font-size: 28rpx;
     font-family: PingFang SC-Bold, PingFang SC !important;
     font-weight: bold !important;
     color: #999999;
 }
-
 .filtrate {
     display: flex;
     justify-content: space-between;
@@ -65,4 +63,35 @@
         height: 90rpx;
         width: 90rpx;
     }
+}
+.footer {
+    display: flex;
+    justify-content: space-around;
+    position: fixed;
+    left: 0;
+    bottom: 0;
+    width: 100vw;
+    height: 132rpx;
+    background-color: #ffffff;
+    box-shadow: 0px -2rpx 10rpx 2rpx #DDDDDD;
+    padding: 0 80rpx;
+    box-sizing: border-box;
+
+    >navigator {
+        height: 100%;
+        width: 160rpx;
+        text-align: center;
+
+        .iconfont {
+            font-size: 36rpx;
+            margin-top: 20rpx;
+        }
+
+        .text {
+            font-size: 28rpx;
+            font-family: PingFang SC-Regular, PingFang SC;
+            color: #333333;
+            margin-top: 16rpx;
+        }
+    }
 }

+ 28 - 2
pages/threadedTree/details/index.wxml

@@ -1,7 +1,7 @@
 <view class="header">
     <view>
         <view class="label">线索状态</view>
-        <view class="con">{{detailsData.status}}</view>
+        <view class="con" style="color: {{tagColor}};">{{detailsData.status}}</view>
     </view>
     <view>
         <view class="label">客户名称</view>
@@ -14,7 +14,8 @@
 </view>
 <van-tabs sticky color='#3874F6' title-active-color='#3874F6' tab-class='tab-class'>
     <van-tab title="线索详情">
-        <Details detailsData='{{detailsData}}' />
+        <Details detailsData='{{detailsData}}' tagColor="{{tagColor}}" />
+        <view style="height: 140rpx;" />
     </van-tab>
     <van-tab title="跟进记录">
         <view class="filtrate">
@@ -27,9 +28,34 @@
         </view>
         <Record followList='{{followList}}' />
         <My_empty wx:if="{{followList.length==0}}" />
+        <view style="height: 140rpx;" />
     </van-tab>
 </van-tabs>
 
+<view class="footer">
+    <navigator url="#" data-name="跟进计划" catchtap="openPoput">
+        <view class="iconfont icon-a-yingxiaowuliaofuzhi" />
+        <view class="text">跟进</view>
+    </navigator>
+    <navigator url="#" data-name="线索编辑" catchtap="openPoput">
+        <view class="iconfont icon-a-yingxiaowuliaofuzhi" />
+        <view class="text">编辑</view>
+    </navigator>
+    <navigator url="#" data-name="线索转移" catchtap="openPoput">
+        <view class="iconfont icon-a-yingxiaowuliaofuzhi" />
+        <view class="text">转移</view>
+    </navigator>
+</view>
+
+<Popup sheetTitle='{{sheetTitle}}'>
+    <view hidden="{{sheetTitle!='线索编辑'}}">
+        <Insert id="edit" content='{{detailsData}}' type="{{sheetTitle}}" bind:endInsert='endEdit' />
+    </view>
+    <view hidden="{{sheetTitle!='线索转移'}}">
+        <handOver sat_orderclueid='{{sat_orderclueid}}' list='{{teamList}}' bind:endChange='endEdit' />
+    </view>
+</Popup>
+
 <van-action-sheet show="{{  timeRangeShow }}" bind:close='timeRangeClose'>
     <view class="detePickerHeader">
         <text catchtap="toSeeAll">所有日期</text>