| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- <view class="container">
- <van-search use-action-slot placeholder='请输入搜索关键词' shape='round' bind:search="onSearch" bind:clear="onSearch" />
- <view class="header" style="height: 20rpx;"></view>
- <Yl_ListBox id='ListBox' bind:getlist='getList'>
- <view wx:for="{{list}}" wx:key="sat_orderclueid" class="list-item">
- <view class="item" bind:tap="goToDetail" data-id="{{item.sat_orderclueid}}">
- <view class="top">
- <view class="name-row">
- <view class="name">{{item.name || '--'}}</view>
- <view class="phone-tag">{{item.phonenumber || '--'}}</view>
- </view>
- <view class="statu" style="border-color: {{set.color(item.status)}}; color: {{set.color(item.status)}};">
- {{item.status || '--'}}
- </view>
- </view>
- <view class="content">
- <view class="row">
- <view class="exp">来源:{{item.cluesource || '--'}}</view>
- </view>
- <view class="row">
- <view class="exp">负责人:{{item.leadername || '--'}}</view>
- <view class="exp">省市县:{{(item.province || '--') + (item.city || '--') + (item.county || '--')}}</view>
- </view>
- <view class="row">
- <view class="exp full-width">地址:{{item.address || '--'}}</view>
- </view>
- <view class="row">
- <view class="exp full-width">最后跟进时间:{{item.followDate || '--'}}</view>
- </view>
- </view>
- </view>
- <view class="actions">
- <view wx:if="{{item.status !== '已无效' && item.status !== '已转化'}}" bind:tap="convertToCustomer" data-item="{{item}}" class="action-btn convert">
- <van-icon name="friends" size="28rpx" color="#fff" custom-style="margin-right: 8rpx;" />
- <text>转客户</text>
- </view>
- <view wx:if="{{item.status !== '已无效' && hasAllotPermission && leader && item.leadername === leader.name}}" catchtap="onAssignTap" data-item="{{item}}" class="action-btn assign">
- <van-icon name="share" size="28rpx" color="#fff" custom-style="margin-right: 8rpx;" />
- <text>分配</text>
- </view>
- <view wx:if="{{item.status !== '已无效' && hasAllotPermission && leader && item.leadername !== leader.name}}" catchtap="onWithdrawTap" data-item="{{item}}" class="action-btn withdraw">
- <van-icon name="revoke" size="28rpx" color="#fff" custom-style="margin-right: 8rpx;" />
- <text>撤回</text>
- </view>
- <view bind:tap="makeCall" data-item="{{item}}" class="action-btn call">
- <van-icon name="phone" size="28rpx" color="#fff" custom-style="margin-right: 8rpx;" />
- <text>打电话</text>
- </view>
- </view>
- </view>
- <Yl_Empty wx:if="{{list.length==0}}" />
- <view style="height:150rpx;" />
- </Yl_ListBox>
- </view>
- <!-- 线索分配动作面板 -->
- <van-action-sheet show="{{ showActionSheet }}" title="选择负责人" actions="{{ teamActions }}" cancel-text="取消" zIndex='99999999' bind:cancel='onActionSheetClose' bind:close="onActionSheetClose" bind:select="onActionSheetSelect" />
- <!-- 分配确认弹窗 -->
- <van-dialog show="{{ showAssignConfirm }}" title="确认分配" message="确定要将此线索分配给所选负责人吗?" show-cancel-button bind:confirm="confirmAssign" bind:cancel="cancelAssign" confirm-button-color="#3874F6" />
- <!-- 撤回确认弹窗 -->
- <van-dialog show="{{ showWithdrawConfirm }}" title="确认撤回" message="确定要将此线索撤回给团队负责人吗?" show-cancel-button bind:confirm="confirmWithdraw" bind:cancel="cancelWithdraw" confirm-button-color="#3874F6" />
- <wxs module="set">
- module.exports = {
- color: function (statu) {
- var color = '#999999';
- switch (statu) {
- case "待跟进":
- color = '#FA8C16';
- break;
- case "跟进中":
- color = '#52C41A';
- break;
- case "已无效":
- color = '#FF4D4F';
- break;
- case "已转化":
- color = '#1890FF';
- break;
- case "已成交":
- color = '#722ED1';
- break;
- };
- return color;
- }
- }
- </wxs>
|