| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389 |
- <wxs src='../../../utils/wxmlUtil.wxs' module="wxmlUtil"></wxs>
- <van-dialog id="van-dialog" />
- <loading wx:if="{{loading}}" loadingName="加载中" backgroundColor="#f2f2f2;" opacity="0.8"></loading>
- <van-sticky scroll-top="0">
- <van-search model:value="{{searchText}}" bind:search="doSearch" bind:change="onSearchText" use-action-slot placeholder="搜索 客户名称/联系人/电话">
- </van-search>
- <van-dropdown-menu>
- <!-- 创建时间 -->
- <van-dropdown-item id="create-time-type" title="{{createTimeType.text}}">
- <dk-dropdown-date id="createtime" dateType="createtime" blankFlag="{{false}}" defaultValue='{{createTimeType.value}}' bind:dateCommit='dateCommit'></dk-dropdown-date>
- </van-dropdown-item>
- <van-dropdown-item id="statusItemStaff" title="{{staffNames?staffNames:'全部业务员' }}" bind:open="openDropdown">
- </van-dropdown-item>
- <!-- <van-dropdown-item id="statusItemOrg" title="{{orgNames?orgNames:'业务部门' }}" bind:open="dropdowncommit">
- </van-dropdown-item> -->
- <!-- 筛选 -->
- <van-dropdown-item id='pick' title="{{'筛选'+ (searchFormNumber!=0 ? '['+searchFormNumber+']' : '')}}" bind:open='openSearchPop' bind:close='closeSearchPop' data-type="pick" />
- </van-dropdown-menu>
- <van-tabs color="#1989FD" active="{{ active }}" bind:change="onChangeTabs" color="#DEC9A3;" title-active-color="#1B365D" title-inactive-color=" #96A7C5;">
- <van-tab title="所有接待">
- </van-tab>
- <van-tab title="跟进任务">
- </van-tab>
- <van-tab title="邀约进店">
- </van-tab>
- <van-tab title="预约量尺">
- </van-tab>
- </van-tabs>
- </van-sticky>
- <!-- 抽屉 -->
- <dk-side-pull-menu show_p="{{show}}" bind:clearSearchForm="clearSearchForm" bind:doSearchData="doSearchData" bind:onClose="onClose">
- <!-- 查询区域 -->
- <!-- 手风琴,复选框输入 -->
- <van-collapse value="{{ activeboxNames }}" bind:change="onChangebox" border="{{false}}">
- <!-- 手风琴,复选框输入 showOtherFlag :是否显示其他分类 showFieldFlag:是否显示输入框
- disabledFlag:输入框是否输入 checkboxClinkFlag:box能否点动-->
- <!-- 接待状态的查询条件先注掉,以后可能会用到 -->
- <!-- <dk-accordion-box id="dk-box" titleName="接待状态" dataList="{{receptionStatusList_}}" bind:onDataChange="onReceptionStatusDataChange" showOtherFlag="{{false}}" showFieldFlag="{{false}}" disabledFlag="{{false}}" checkboxClinkFlag="{{true}}">
- </dk-accordion-box> -->
- <!-- 手风琴,复选框输入 showOtherFlag :是否显示其他分类 showFieldFlag:是否显示输入框
- disabledFlag:输入框是否输入 checkboxClinkFlag:box能否点动-->
- <dk-accordion-box id="dk-box" titleName="意向品类" dataList="{{specsList_}}" bind:onDataChange="onSpecsDataChange" showOtherFlag="{{false}}" showFieldFlag="{{false}}" disabledFlag="{{false}}" checkboxClinkFlag="{{true}}">
- </dk-accordion-box>
- </van-collapse>
- <view style="margin-left:10rpx;margin-top:10rpx;">
- <dk-label-multiple-select oneSelectFlag="{{true}}" show="{{show}}" id="overDueStatus" typeName="overDueStatus" bind:onClickTag="onClickTag"></dk-label-multiple-select>
- <dk-label-multiple-select show="{{show}}" id="followStatus" typeName="followStatus" bind:onClickTag="onClickTag"></dk-label-multiple-select>
- </view>
- <van-cell is-link border="{{ false }}" title-width="180rpx" title="留店时长" value="{{form.LeaveTime_}}" is-link bind:click="showPopup" />
- <!-- <view style="height:1px;background: #f3f3f3;"></view> -->
- <!-- <van-field input-align="right" value="{{ searchForm.OrderNo }}" label-class="title-class" input-class="value-class"
- label="客户标签" data-title="OrderNo" placeholder="请输入客户标签" bind:change="onChange" /> -->
- <van-field input-align="right" border="{{ false }}" value="{{ form.followCount_ }}" label-class="title-class" input-class="value-class" label="跟进次数" data-title="OrderNo" placeholder="请输入跟进次数" bind:change="onChangefollowCount" type="number" />
- <!-- <van-cell is-link border="{{ false }}" title="跟进提醒" data-key="nextFollowTime" value="{{form.nextFollowTime_ ? form.nextFollowTime_ :'请选择提醒时间'}}" bind:click="onClickTime"></van-cell> -->
- <van-cell title-width="150rpx" value-class="{{nextFollowTime?'cell-value-class':'cell-value-class-no-select'}}" value="{{nextFollowTime ? nextFollowTime :'请选择跟进提醒' }}" is-link border="{{ false }}" title-class="title-class" title="跟进提醒" data-key="nextFollowTime" bind:click="onClickTime"></van-cell>
- <!-- </van-cell-group> -->
- </dk-side-pull-menu>
- <van-popup position="bottom" show="{{ LeaveTimeFlag }}" bind:close="onTimeClose" class="popup" style="width:100%">
- <view style="display:flex;justify-content: space-around;height:80rpx;">
- <view style="width:45%;text-align: left;color:#b6b6b6;line-height:80rpx;" data-key="leaveTime" catchtap="onConfirmChooseDate">取消</view>
- <view style="width:45%;text-align: right;color:#00A7B5;line-height:80rpx;" data-key="leaveTime" catchtap="onConfirmChooseDate">确定</view>
- </view>
- <van-picker columns="{{ columns }}" bind:change="onChange" />
- </van-popup>
- <!-- <van-popup show="{{ nextFollowTimeFlag }}" data-key="nextFollowTime" position="bottom" bind:close="onConfirmChooseDate" bind:click-overlay="onCloseChooseDate">
- <view style="display:flex;justify-content: space-around;height:80rpx;">
- <view style="width:45%;text-align: left;color:#b6b6b6;line-height:80rpx;" data-key="nextFollowTime" catchtap="onConfirmChooseDate">取消</view>
- <view style="width:45%;text-align: right;color:#00A7B5;line-height:80rpx;" data-key="nextFollowTime" catchtap="onConfirmChooseDate">确定</view>
- </view>
- <van-datetime-picker show-toolbar="{{false}}" data-key="nextFollowTime" bindonlyinput="changeDate" data-index="0" type="date" loading="{true}" value="{{ nextFollowTimeDefaultSearch }}" />
- </van-popup> -->
- <dk-dropdown-date-day show="{{nextFollowTimeFlag}}" defaultValue="{{defaultValue}}" bind:dateCommit="nextFollowTimeDateCommit"></dk-dropdown-date-day>
- <!-- 暂无数据 -->
- <van-empty wx:if="{{list.length<=0}}" description="暂无数据" />
- <!-- 列表 -->
- <view wx:for="{{list}}" bindtap="toDetail" data-item="{{item}}" wx:key="index" class="main-class">
- <view class="main-foot" style="border-radius:15rpx;">
- <view class="table-content">
- <view class="table-content-row">
- <view class="customer-and-status">
- <view catchtap="toCustomer">
- <van-icon wx:if="{{item.customerName!='无联系人'}}" name="/package-basic-data/static/image/KHCFDC.png" size="38rpx" />
- <van-icon wx:if="{{item.customerName =='无联系人'}}" name="https://b.yzcdn.cn/vant/icon-demo-1126.png" size="42rpx" />
- </view>
- <view catchtap="toCustomer" class="oas-title" style="width:70%;display:flex;font-size: 30rpx;">
- <text>{{item.customerName}}</text>
- <view style="width: 55px; display: flex;margin-left: 20rpx;">
- <view wx:for-item="item_a" wx:if="{{item.intentionTagsName}}">
- <dk-van-tag border="1rpx solid #606EB2" height="32rpx" color="transparent" textColor="#606EB2" radius="5rpx" roundFlag="{{true}}" value="{{item.intentionTagsName}}"></dk-van-tag>
- </view>
- </view>
- <!-- <view wx:if="{{item.intentionTagsName}}" style="font-size: 13px;width: 55px; display: flex;margin-left: 10px;" wx:for-item="item_a">
- <van-tag size="mini" plain round type="{{'primary'}}">{{item.intentionTagsName}}</van-tag>
- </view> -->
- </view>
- <view class="oas-title-value" data-item="{{item}}" catchtap="onclik">
- <van-icon wx:if="{{item.customerName !='无联系人'}}" size="25" name="ellipsis" />
- </view>
- </view>
- </view>
- <view wx:if="{{item.customerName!='无联系人'}}" class="table-row">
- <!-- 客户电话 -->
- <view class="table-content-row">
- <view style="display: flex;">
- <view class="table-content-row-font">
- <dk-text layoutFlag="{{true}}" fontSize="14px" color="#95A8CB" fontWeight="nomal" value="客户电话" copyValue="{{item.customerPhone}}"></dk-text>
- </view>
- <view class="table-content-class">
- {{item.customerPhone}}
- </view>
- </view>
- </view>
- <!-- 客成状态 -->
- <view style="width: 10%; height: 49rpx;padding-right:34rpx;" wx:if="{{item.saleStatusName}}">
- <dk-van-tag color="#EAF1FF" textColor="#606EB2" radius="3rpx" roundFlag="{{true}}" value="{{item.saleStatusName}}"></dk-van-tag>
- </view>
- </view>
- <view wx:if="{{item.customerName!='无联系人'}}">
- <!-- 客户地址 -->
- <view class="table-content-row">
- <view style="display: flex;">
- <view class="table-content-row-font">
- <dk-text layoutFlag="{{true}}" fontSize="14px" color="#95A8CB" fontWeight="nomal" value="客户地址" copyValue="{{item.addressFull}}">
- </dk-text>
- </view>
- <view class="table-content-class">
- {{ wxmlUtil.addressToIndexOf(item.addressFull)}}
- </view>
- </view>
- </view>
- </view>
- <view class="table-row" wx:if="{{active == 0}}">
- <view class="table-content-row">
- <view style="display: flex;">
- <view class="table-content-row-font">
- <dk-text layoutFlag="{{true}}" fontSize="14px" color="#95A8CB" fontWeight="nomal" value="接待时间" copyValue="{{item.followTime}}">
- </dk-text>
- </view>
- <view class="table-content-class">
- {{item.followTime}}
- </view>
- </view>
- </view>
- <view wx:if="{{(item.customerName =='无联系人')&&item.saleStatusName}}" style="font-size: 13px;">
- <van-tag size="mini" plain round type="{{item.saleStatus!='客成状态-潜客'?'default':'primary'}}">
- {{item.saleStatusName?item.saleStatusName:''}}</van-tag>
- </view>
- </view>
- <!-- 门店信息 -->
- <view class="table-content-row">
- <view style="display: flex;">
- <view class="table-content-row-font">
- <dk-text layoutFlag="{{true}}" fontSize="14px" color="#95A8CB" fontWeight="nomal" value="门店信息" copyValue="{{item.orgName}} | 业务员 {{item.followUserName}}"></dk-text>
- </view>
- <view class="table-content-class">
- {{item.orgName?item.orgName:''}} | 业务员 {{item.followUserName}}
- </view>
- </view>
- </view>
- <view wx:if="{{active == 3}}" class="table-row">
- <view class="table-content-row">
- <view style="display: flex;">
- <view class="table-content-row-font">
- <dk-text layoutFlag="{{true}}" fontSize="14px" color="#95A8CB" fontWeight="nomal" value="设计师" copyValue="{{item.designName}}">
- </dk-text>
- </view>
- <view class="table-content-class">
- {{item.designName?item.designName:''}}
- </view>
- </view>
- </view>
- </view>
- <view wx:if="{{item.customerName!='无联系人'}}" style="display: flex;justify-content:space-between;">
- <view class="table-content-row" wx:if="{{!item.inviteflg && item.nextFollowTime != null}}">
- <view style="display: flex;">
- <view class="table-content-row-font">
- <dk-text layoutFlag="{{true}}" fontSize="14px" color="#95A8CB" fontWeight="nomal" value="跟进提醒" copyValue="{{item.nextFollowTime}}">
- </dk-text>
- </view>
- <view class="table-content-class">
- {{item.nextFollowTime}}
- </view>
- </view>
- </view>
- <!-- <view wx:if="{{item.inviteflg || item.nextFollowTime == null}}" style="font-size: 13px;"></view> -->
- <view class="table-content-row" wx:if="{{item.inviteflg && active == 2}}">
- <view style="display: flex;">
- <view class="table-content-row-font">
- <dk-text fontSize="14px" color="#95A8CB" fontWeight="nomal" value="到店时间" copyValue="{{item.followTime}}">
- </dk-text>
- </view>
- <view class="table-content-class">
- {{item.followTime}}
- </view>
- </view>
- </view>
- <view class="table-content-row" wx:if="{{item.inviteflg && active == 3}}">
- <view style="display: flex;">
- <view class="table-content-row-font">
- <dk-text fontSize="14px" color="#95A8CB" fontWeight="nomal" value="服务时间" copyValue="{{item.followTime}}">
- </dk-text>
- </view>
- <view class="table-content-class">
- {{item.followTime}}
- </view>
- </view>
- </view>
- </view>
- <view style="display:flex;justify-content: space-between;">
- <view style="display: flex;margin-left: 30rpx;">
- <view style="font-size: 13px;" wx:for="{{item.tagName}}" wx:key="indext" wx:for-index="indext" wx:for-item="itemt">
- <dk-van-tag border="1rpx solid #606EB2" height="32rpx" color="transparent" textColor="#606EB2" radius="5rpx" roundFlag="{{true}}" marginRight="12rpx" value="{{item.tagName[indext]}}"></dk-van-tag>
- </view>
- </view>
- <view wx:if="{{(active == 2 || active == 3) && item.inviteResult=='邀约结果-拒绝'}}" style="display: flex;margin-right: 12px;">
- <dk-van-tag border="1rpx solid #606EB2" height="32rpx" color="transparent" textColor="#606EB2" radius="5rpx" roundFlag="{{true}}" marginRight="12rpx" value="拒绝邀约"></dk-van-tag>
- </view>
- <view wx:if="{{(active == 2 || active == 3) && item.inviteResult=='邀约结果-接受'}}" style="display: flex;margin-right: 12px;">
- <dk-van-tag border="1rpx solid #606EB2" height="32rpx" color="transparent" textColor="#606EB2" radius="5rpx" roundFlag="{{true}}" marginRight="12rpx" value="接受邀约"></dk-van-tag>
- </view>
- </view>
- <!-- 分割线 -->
- <dk-divider marginTop="20rpx"></dk-divider>
- <!-- 下半部分 -->
- <view class="table-content-row" style="padding-top: 0;">
- <view class="bottom-bar">
- <view>
- <view wx:if="{{item.followCount}}">
- <dk-text fontSize="13px" fontWeight="nomal" value="第{{item.followCount}}次跟进"></dk-text>
- </view>
- </view>
- <view style="display: flex; text-align: center;z-index: 2;">
- <van-button round wx:if="{{item.qvExternalUserid}}" custom-class="button-class" type="primary" plain size="small" data-item="{{item}}" catchtap="openWeChat">微信</van-button>
- <van-button round wx:if="{{item.customerPhone}}" custom-class="button-class" custom-style="margin-left:30rpx !important" type="primary" plain size="small" catchtap="openTelPhone" data-item="{{item}}">打电话</van-button>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- <view style="height: 70px;"></view>
- <!-- item。三个小点 -->
- <van-popup style="z-index: 999;" show="{{showShare}}" position="bottom" bind:close="onClose" custom-class="function-pop-class">
- <van-cell-group border="{{false}}" custom-class="function-cell-group">
- <van-grid square border="{{false}}" icon-size="42px">
- <!--客户跟进-->
- <van-grid-item use-slot catchtap="follow" wx:if="{{Receive_Customer_Follow}}" >
- <view>
- <van-image custom-class="function-pop-image" fit="fill" src="/static/img/customerFollow.png"></van-image>
- </view>
- <view style="margin-top: -18rpx;">
- <dk-text fontSize="12px" fontWeight="400" value="客户跟进"></dk-text>
- </view>
- </van-grid-item>
- <!--跟进任务-->
- <van-grid-item use-slot catchtap="followtask" wx:if="{{Receive_Customer_Task}}" >
- <view>
- <van-image custom-class="function-pop-image" fit="fill" src="/static/img/followTask.png"></van-image>
- </view>
- <view style="margin-top: -18rpx;">
- <dk-text fontSize="12px" fontWeight="400" value="跟进任务"></dk-text>
- </view>
- </van-grid-item>
- <!--销售订单-->
- <van-grid-item use-slot catchtap="toOrderAdd" data-item="{{bottomItem}}" wx:if="{{Receive_Customer_Order}}">
- <view>
- <van-image custom-class="function-pop-image" fit="fill" src="/static/img/order.png"></van-image>
- </view>
- <view style="margin-top: -18rpx;">
- <dk-text fontSize="12px" fontWeight="400" value="销售订单"></dk-text>
- </view>
- </van-grid-item>
- <!--客户收款-->
- <van-grid-item use-slot catchtap="toCollectionAdd" data-item="{{bottomItem}}" wx:if="{{Receive_Customer_Receive}}">
- <view>
- <van-image custom-class="function-pop-image" fit="fill" src="/static/img/receive.png"></van-image>
- </view>
- <view style="margin-top: -18rpx;">
- <dk-text fontSize="12px" fontWeight="400" value="客户收款"></dk-text>
- </view>
- </van-grid-item>
- <!--量尺回执-->
- <van-grid-item use-slot catchtap="measure" wx:if="{{onclikItem.followStatus == '跟进状态-约尺' && Receive_Customer_Measure&&(onclikItem.measureStatus != '量尺状态-已量尺')}}" >
- <view>
- <van-image custom-class="function-pop-image" fit="fill" src="/static/img/lchz.png"></van-image>
- </view>
- <view style="margin-top: -18rpx;">
- <dk-text fontSize="12px" fontWeight="400" value="量尺回执"></dk-text>
- </view>
- </van-grid-item>
- <van-grid-item use-slot catchtap="toOk" wx:if="{{active == 1}}" >
- <view>
- <van-image custom-class="function-pop-image" fit="fill" src="/static/img/spzx.png"></van-image>
- </view>
- <view style="margin-top: -18rpx;">
- <dk-text fontSize="12px" fontWeight="400" value="完成"></dk-text>
- </view>
- </van-grid-item>
-
- </van-grid>
- </van-cell-group>
- <view class="popup-button">
- <van-button type="default" custom-class="pop-button-class" size="large" catchtap="onClose">取消
- </van-button>
- </view>
- </van-popup>
- <!-- 新建按钮 -->
- <dk-save-bottom wx:if="{{Receive_Customer_Add}}" flagTypeName="receive-customers" totallength="{{totallength}}" bind:submit="toAdd" />
- <van-popup position="bottom" show="{{ showTime }}" bind:close="onCloseChooseDate" class="popup" style="width:100%">
- <view style="display:flex;justify-content: space-around;height:80rpx;">
- <view style="width:45%;text-align: left;color:#b6b6b6;line-height:80rpx;" catchtap="onCloseChooseDate">取消</view>
- <view style="width:45%;text-align: right;color:#1989fa;line-height:80rpx;" catchtap="onConfirmChooseDate">确定</view>
- </view>
- <van-datetime-picker type="datetime" value="{{ currentDate }}" bind:input="onInput" show-toolbar="{{false}}" min-date="{{ minDate }}" formatter="{{formatter}}" />
- </van-popup>
- <!-- 多选 -->
- <dk-muti-dropdown-item docName="客户资料" show="{{staffFlag}}" ids="{{staffIds}}" id='staff' typeName='staff' bind:muticommit='mutiSearchAll' bind:muticlose='muticloseAll'></dk-muti-dropdown-item>
- <!-- 多选 -->
- <dk-muti-dropdown-item show="{{orgFlag}}" docName="客户资料" id='org' typeName='org' bind:muticommit='mutiSearchAll' bind:muticlose='muticloseAll'></dk-muti-dropdown-item>
|