customer-reception.wxml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389
  1. <wxs src='../../../utils/wxmlUtil.wxs' module="wxmlUtil"></wxs>
  2. <van-dialog id="van-dialog" />
  3. <loading wx:if="{{loading}}" loadingName="加载中" backgroundColor="#f2f2f2;" opacity="0.8"></loading>
  4. <van-sticky scroll-top="0">
  5. <van-search model:value="{{searchText}}" bind:search="doSearch" bind:change="onSearchText" use-action-slot placeholder="搜索 客户名称/联系人/电话">
  6. </van-search>
  7. <van-dropdown-menu>
  8. <!-- 创建时间 -->
  9. <van-dropdown-item id="create-time-type" title="{{createTimeType.text}}">
  10. <dk-dropdown-date id="createtime" dateType="createtime" blankFlag="{{false}}" defaultValue='{{createTimeType.value}}' bind:dateCommit='dateCommit'></dk-dropdown-date>
  11. </van-dropdown-item>
  12. <van-dropdown-item id="statusItemStaff" title="{{staffNames?staffNames:'全部业务员' }}" bind:open="openDropdown">
  13. </van-dropdown-item>
  14. <!-- <van-dropdown-item id="statusItemOrg" title="{{orgNames?orgNames:'业务部门' }}" bind:open="dropdowncommit">
  15. </van-dropdown-item> -->
  16. <!-- 筛选 -->
  17. <van-dropdown-item id='pick' title="{{'筛选'+ (searchFormNumber!=0 ? '['+searchFormNumber+']' : '')}}" bind:open='openSearchPop' bind:close='closeSearchPop' data-type="pick" />
  18. </van-dropdown-menu>
  19. <van-tabs color="#1989FD" active="{{ active }}" bind:change="onChangeTabs" color="#DEC9A3;" title-active-color="#1B365D" title-inactive-color=" #96A7C5;">
  20. <van-tab title="所有接待">
  21. </van-tab>
  22. <van-tab title="跟进任务">
  23. </van-tab>
  24. <van-tab title="邀约进店">
  25. </van-tab>
  26. <van-tab title="预约量尺">
  27. </van-tab>
  28. </van-tabs>
  29. </van-sticky>
  30. <!-- 抽屉 -->
  31. <dk-side-pull-menu show_p="{{show}}" bind:clearSearchForm="clearSearchForm" bind:doSearchData="doSearchData" bind:onClose="onClose">
  32. <!-- 查询区域 -->
  33. <!-- 手风琴,复选框输入 -->
  34. <van-collapse value="{{ activeboxNames }}" bind:change="onChangebox" border="{{false}}">
  35. <!-- 手风琴,复选框输入 showOtherFlag :是否显示其他分类 showFieldFlag:是否显示输入框
  36. disabledFlag:输入框是否输入 checkboxClinkFlag:box能否点动-->
  37. <!-- 接待状态的查询条件先注掉,以后可能会用到 -->
  38. <!-- <dk-accordion-box id="dk-box" titleName="接待状态" dataList="{{receptionStatusList_}}" bind:onDataChange="onReceptionStatusDataChange" showOtherFlag="{{false}}" showFieldFlag="{{false}}" disabledFlag="{{false}}" checkboxClinkFlag="{{true}}">
  39. </dk-accordion-box> -->
  40. <!-- 手风琴,复选框输入 showOtherFlag :是否显示其他分类 showFieldFlag:是否显示输入框
  41. disabledFlag:输入框是否输入 checkboxClinkFlag:box能否点动-->
  42. <dk-accordion-box id="dk-box" titleName="意向品类" dataList="{{specsList_}}" bind:onDataChange="onSpecsDataChange" showOtherFlag="{{false}}" showFieldFlag="{{false}}" disabledFlag="{{false}}" checkboxClinkFlag="{{true}}">
  43. </dk-accordion-box>
  44. </van-collapse>
  45. <view style="margin-left:10rpx;margin-top:10rpx;">
  46. <dk-label-multiple-select oneSelectFlag="{{true}}" show="{{show}}" id="overDueStatus" typeName="overDueStatus" bind:onClickTag="onClickTag"></dk-label-multiple-select>
  47. <dk-label-multiple-select show="{{show}}" id="followStatus" typeName="followStatus" bind:onClickTag="onClickTag"></dk-label-multiple-select>
  48. </view>
  49. <van-cell is-link border="{{ false }}" title-width="180rpx" title="留店时长" value="{{form.LeaveTime_}}" is-link bind:click="showPopup" />
  50. <!-- <view style="height:1px;background: #f3f3f3;"></view> -->
  51. <!-- <van-field input-align="right" value="{{ searchForm.OrderNo }}" label-class="title-class" input-class="value-class"
  52. label="客户标签" data-title="OrderNo" placeholder="请输入客户标签" bind:change="onChange" /> -->
  53. <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" />
  54. <!-- <van-cell is-link border="{{ false }}" title="跟进提醒" data-key="nextFollowTime" value="{{form.nextFollowTime_ ? form.nextFollowTime_ :'请选择提醒时间'}}" bind:click="onClickTime"></van-cell> -->
  55. <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>
  56. <!-- </van-cell-group> -->
  57. </dk-side-pull-menu>
  58. <van-popup position="bottom" show="{{ LeaveTimeFlag }}" bind:close="onTimeClose" class="popup" style="width:100%">
  59. <view style="display:flex;justify-content: space-around;height:80rpx;">
  60. <view style="width:45%;text-align: left;color:#b6b6b6;line-height:80rpx;" data-key="leaveTime" catchtap="onConfirmChooseDate">取消</view>
  61. <view style="width:45%;text-align: right;color:#00A7B5;line-height:80rpx;" data-key="leaveTime" catchtap="onConfirmChooseDate">确定</view>
  62. </view>
  63. <van-picker columns="{{ columns }}" bind:change="onChange" />
  64. </van-popup>
  65. <!-- <van-popup show="{{ nextFollowTimeFlag }}" data-key="nextFollowTime" position="bottom" bind:close="onConfirmChooseDate" bind:click-overlay="onCloseChooseDate">
  66. <view style="display:flex;justify-content: space-around;height:80rpx;">
  67. <view style="width:45%;text-align: left;color:#b6b6b6;line-height:80rpx;" data-key="nextFollowTime" catchtap="onConfirmChooseDate">取消</view>
  68. <view style="width:45%;text-align: right;color:#00A7B5;line-height:80rpx;" data-key="nextFollowTime" catchtap="onConfirmChooseDate">确定</view>
  69. </view>
  70. <van-datetime-picker show-toolbar="{{false}}" data-key="nextFollowTime" bindonlyinput="changeDate" data-index="0" type="date" loading="{true}" value="{{ nextFollowTimeDefaultSearch }}" />
  71. </van-popup> -->
  72. <dk-dropdown-date-day show="{{nextFollowTimeFlag}}" defaultValue="{{defaultValue}}" bind:dateCommit="nextFollowTimeDateCommit"></dk-dropdown-date-day>
  73. <!-- 暂无数据 -->
  74. <van-empty wx:if="{{list.length<=0}}" description="暂无数据" />
  75. <!-- 列表 -->
  76. <view wx:for="{{list}}" bindtap="toDetail" data-item="{{item}}" wx:key="index" class="main-class">
  77. <view class="main-foot" style="border-radius:15rpx;">
  78. <view class="table-content">
  79. <view class="table-content-row">
  80. <view class="customer-and-status">
  81. <view catchtap="toCustomer">
  82. <van-icon wx:if="{{item.customerName!='无联系人'}}" name="/package-basic-data/static/image/KHCFDC.png" size="38rpx" />
  83. <van-icon wx:if="{{item.customerName =='无联系人'}}" name="https://b.yzcdn.cn/vant/icon-demo-1126.png" size="42rpx" />
  84. </view>
  85. <view catchtap="toCustomer" class="oas-title" style="width:70%;display:flex;font-size: 30rpx;">
  86. <text>{{item.customerName}}</text>
  87. <view style="width: 55px; display: flex;margin-left: 20rpx;">
  88. <view wx:for-item="item_a" wx:if="{{item.intentionTagsName}}">
  89. <dk-van-tag border="1rpx solid #606EB2" height="32rpx" color="transparent" textColor="#606EB2" radius="5rpx" roundFlag="{{true}}" value="{{item.intentionTagsName}}"></dk-van-tag>
  90. </view>
  91. </view>
  92. <!-- <view wx:if="{{item.intentionTagsName}}" style="font-size: 13px;width: 55px; display: flex;margin-left: 10px;" wx:for-item="item_a">
  93. <van-tag size="mini" plain round type="{{'primary'}}">{{item.intentionTagsName}}</van-tag>
  94. </view> -->
  95. </view>
  96. <view class="oas-title-value" data-item="{{item}}" catchtap="onclik">
  97. <van-icon wx:if="{{item.customerName !='无联系人'}}" size="25" name="ellipsis" />
  98. </view>
  99. </view>
  100. </view>
  101. <view wx:if="{{item.customerName!='无联系人'}}" class="table-row">
  102. <!-- 客户电话 -->
  103. <view class="table-content-row">
  104. <view style="display: flex;">
  105. <view class="table-content-row-font">
  106. <dk-text layoutFlag="{{true}}" fontSize="14px" color="#95A8CB" fontWeight="nomal" value="客户电话" copyValue="{{item.customerPhone}}"></dk-text>
  107. </view>
  108. <view class="table-content-class">
  109. {{item.customerPhone}}
  110. </view>
  111. </view>
  112. </view>
  113. <!-- 客成状态 -->
  114. <view style="width: 10%; height: 49rpx;padding-right:34rpx;" wx:if="{{item.saleStatusName}}">
  115. <dk-van-tag color="#EAF1FF" textColor="#606EB2" radius="3rpx" roundFlag="{{true}}" value="{{item.saleStatusName}}"></dk-van-tag>
  116. </view>
  117. </view>
  118. <view wx:if="{{item.customerName!='无联系人'}}">
  119. <!-- 客户地址 -->
  120. <view class="table-content-row">
  121. <view style="display: flex;">
  122. <view class="table-content-row-font">
  123. <dk-text layoutFlag="{{true}}" fontSize="14px" color="#95A8CB" fontWeight="nomal" value="客户地址" copyValue="{{item.addressFull}}">
  124. </dk-text>
  125. </view>
  126. <view class="table-content-class">
  127. {{ wxmlUtil.addressToIndexOf(item.addressFull)}}
  128. </view>
  129. </view>
  130. </view>
  131. </view>
  132. <view class="table-row" wx:if="{{active == 0}}">
  133. <view class="table-content-row">
  134. <view style="display: flex;">
  135. <view class="table-content-row-font">
  136. <dk-text layoutFlag="{{true}}" fontSize="14px" color="#95A8CB" fontWeight="nomal" value="接待时间" copyValue="{{item.followTime}}">
  137. </dk-text>
  138. </view>
  139. <view class="table-content-class">
  140. {{item.followTime}}
  141. </view>
  142. </view>
  143. </view>
  144. <view wx:if="{{(item.customerName =='无联系人')&&item.saleStatusName}}" style="font-size: 13px;">
  145. <van-tag size="mini" plain round type="{{item.saleStatus!='客成状态-潜客'?'default':'primary'}}">
  146. {{item.saleStatusName?item.saleStatusName:''}}</van-tag>
  147. </view>
  148. </view>
  149. <!-- 门店信息 -->
  150. <view class="table-content-row">
  151. <view style="display: flex;">
  152. <view class="table-content-row-font">
  153. <dk-text layoutFlag="{{true}}" fontSize="14px" color="#95A8CB" fontWeight="nomal" value="门店信息" copyValue="{{item.orgName}} | 业务员 {{item.followUserName}}"></dk-text>
  154. </view>
  155. <view class="table-content-class">
  156. {{item.orgName?item.orgName:''}} | 业务员 {{item.followUserName}}
  157. </view>
  158. </view>
  159. </view>
  160. <view wx:if="{{active == 3}}" class="table-row">
  161. <view class="table-content-row">
  162. <view style="display: flex;">
  163. <view class="table-content-row-font">
  164. <dk-text layoutFlag="{{true}}" fontSize="14px" color="#95A8CB" fontWeight="nomal" value="设计师" copyValue="{{item.designName}}">
  165. </dk-text>
  166. </view>
  167. <view class="table-content-class">
  168. {{item.designName?item.designName:''}}
  169. </view>
  170. </view>
  171. </view>
  172. </view>
  173. <view wx:if="{{item.customerName!='无联系人'}}" style="display: flex;justify-content:space-between;">
  174. <view class="table-content-row" wx:if="{{!item.inviteflg && item.nextFollowTime != null}}">
  175. <view style="display: flex;">
  176. <view class="table-content-row-font">
  177. <dk-text layoutFlag="{{true}}" fontSize="14px" color="#95A8CB" fontWeight="nomal" value="跟进提醒" copyValue="{{item.nextFollowTime}}">
  178. </dk-text>
  179. </view>
  180. <view class="table-content-class">
  181. {{item.nextFollowTime}}
  182. </view>
  183. </view>
  184. </view>
  185. <!-- <view wx:if="{{item.inviteflg || item.nextFollowTime == null}}" style="font-size: 13px;"></view> -->
  186. <view class="table-content-row" wx:if="{{item.inviteflg && active == 2}}">
  187. <view style="display: flex;">
  188. <view class="table-content-row-font">
  189. <dk-text fontSize="14px" color="#95A8CB" fontWeight="nomal" value="到店时间" copyValue="{{item.followTime}}">
  190. </dk-text>
  191. </view>
  192. <view class="table-content-class">
  193. {{item.followTime}}
  194. </view>
  195. </view>
  196. </view>
  197. <view class="table-content-row" wx:if="{{item.inviteflg && active == 3}}">
  198. <view style="display: flex;">
  199. <view class="table-content-row-font">
  200. <dk-text fontSize="14px" color="#95A8CB" fontWeight="nomal" value="服务时间" copyValue="{{item.followTime}}">
  201. </dk-text>
  202. </view>
  203. <view class="table-content-class">
  204. {{item.followTime}}
  205. </view>
  206. </view>
  207. </view>
  208. </view>
  209. <view style="display:flex;justify-content: space-between;">
  210. <view style="display: flex;margin-left: 30rpx;">
  211. <view style="font-size: 13px;" wx:for="{{item.tagName}}" wx:key="indext" wx:for-index="indext" wx:for-item="itemt">
  212. <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>
  213. </view>
  214. </view>
  215. <view wx:if="{{(active == 2 || active == 3) && item.inviteResult=='邀约结果-拒绝'}}" style="display: flex;margin-right: 12px;">
  216. <dk-van-tag border="1rpx solid #606EB2" height="32rpx" color="transparent" textColor="#606EB2" radius="5rpx" roundFlag="{{true}}" marginRight="12rpx" value="拒绝邀约"></dk-van-tag>
  217. </view>
  218. <view wx:if="{{(active == 2 || active == 3) && item.inviteResult=='邀约结果-接受'}}" style="display: flex;margin-right: 12px;">
  219. <dk-van-tag border="1rpx solid #606EB2" height="32rpx" color="transparent" textColor="#606EB2" radius="5rpx" roundFlag="{{true}}" marginRight="12rpx" value="接受邀约"></dk-van-tag>
  220. </view>
  221. </view>
  222. <!-- 分割线 -->
  223. <dk-divider marginTop="20rpx"></dk-divider>
  224. <!-- 下半部分 -->
  225. <view class="table-content-row" style="padding-top: 0;">
  226. <view class="bottom-bar">
  227. <view>
  228. <view wx:if="{{item.followCount}}">
  229. <dk-text fontSize="13px" fontWeight="nomal" value="第{{item.followCount}}次跟进"></dk-text>
  230. </view>
  231. </view>
  232. <view style="display: flex; text-align: center;z-index: 2;">
  233. <van-button round wx:if="{{item.qvExternalUserid}}" custom-class="button-class" type="primary" plain size="small" data-item="{{item}}" catchtap="openWeChat">微信</van-button>
  234. <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>
  235. </view>
  236. </view>
  237. </view>
  238. </view>
  239. </view>
  240. </view>
  241. <view style="height: 70px;"></view>
  242. <!-- item。三个小点 -->
  243. <van-popup style="z-index: 999;" show="{{showShare}}" position="bottom" bind:close="onClose" custom-class="function-pop-class">
  244. <van-cell-group border="{{false}}" custom-class="function-cell-group">
  245. <van-grid square border="{{false}}" icon-size="42px">
  246. <!--客户跟进-->
  247. <van-grid-item use-slot catchtap="follow" wx:if="{{Receive_Customer_Follow}}" >
  248. <view>
  249. <van-image custom-class="function-pop-image" fit="fill" src="/static/img/customerFollow.png"></van-image>
  250. </view>
  251. <view style="margin-top: -18rpx;">
  252. <dk-text fontSize="12px" fontWeight="400" value="客户跟进"></dk-text>
  253. </view>
  254. </van-grid-item>
  255. <!--跟进任务-->
  256. <van-grid-item use-slot catchtap="followtask" wx:if="{{Receive_Customer_Task}}" >
  257. <view>
  258. <van-image custom-class="function-pop-image" fit="fill" src="/static/img/followTask.png"></van-image>
  259. </view>
  260. <view style="margin-top: -18rpx;">
  261. <dk-text fontSize="12px" fontWeight="400" value="跟进任务"></dk-text>
  262. </view>
  263. </van-grid-item>
  264. <!--销售订单-->
  265. <van-grid-item use-slot catchtap="toOrderAdd" data-item="{{bottomItem}}" wx:if="{{Receive_Customer_Order}}">
  266. <view>
  267. <van-image custom-class="function-pop-image" fit="fill" src="/static/img/order.png"></van-image>
  268. </view>
  269. <view style="margin-top: -18rpx;">
  270. <dk-text fontSize="12px" fontWeight="400" value="销售订单"></dk-text>
  271. </view>
  272. </van-grid-item>
  273. <!--客户收款-->
  274. <van-grid-item use-slot catchtap="toCollectionAdd" data-item="{{bottomItem}}" wx:if="{{Receive_Customer_Receive}}">
  275. <view>
  276. <van-image custom-class="function-pop-image" fit="fill" src="/static/img/receive.png"></van-image>
  277. </view>
  278. <view style="margin-top: -18rpx;">
  279. <dk-text fontSize="12px" fontWeight="400" value="客户收款"></dk-text>
  280. </view>
  281. </van-grid-item>
  282. <!--量尺回执-->
  283. <van-grid-item use-slot catchtap="measure" wx:if="{{onclikItem.followStatus == '跟进状态-约尺' && Receive_Customer_Measure&&(onclikItem.measureStatus != '量尺状态-已量尺')}}" >
  284. <view>
  285. <van-image custom-class="function-pop-image" fit="fill" src="/static/img/lchz.png"></van-image>
  286. </view>
  287. <view style="margin-top: -18rpx;">
  288. <dk-text fontSize="12px" fontWeight="400" value="量尺回执"></dk-text>
  289. </view>
  290. </van-grid-item>
  291. <van-grid-item use-slot catchtap="toOk" wx:if="{{active == 1}}" >
  292. <view>
  293. <van-image custom-class="function-pop-image" fit="fill" src="/static/img/spzx.png"></van-image>
  294. </view>
  295. <view style="margin-top: -18rpx;">
  296. <dk-text fontSize="12px" fontWeight="400" value="完成"></dk-text>
  297. </view>
  298. </van-grid-item>
  299. </van-grid>
  300. </van-cell-group>
  301. <view class="popup-button">
  302. <van-button type="default" custom-class="pop-button-class" size="large" catchtap="onClose">取消
  303. </van-button>
  304. </view>
  305. </van-popup>
  306. <!-- 新建按钮 -->
  307. <dk-save-bottom wx:if="{{Receive_Customer_Add}}" flagTypeName="receive-customers" totallength="{{totallength}}" bind:submit="toAdd" />
  308. <van-popup position="bottom" show="{{ showTime }}" bind:close="onCloseChooseDate" class="popup" style="width:100%">
  309. <view style="display:flex;justify-content: space-around;height:80rpx;">
  310. <view style="width:45%;text-align: left;color:#b6b6b6;line-height:80rpx;" catchtap="onCloseChooseDate">取消</view>
  311. <view style="width:45%;text-align: right;color:#1989fa;line-height:80rpx;" catchtap="onConfirmChooseDate">确定</view>
  312. </view>
  313. <van-datetime-picker type="datetime" value="{{ currentDate }}" bind:input="onInput" show-toolbar="{{false}}" min-date="{{ minDate }}" formatter="{{formatter}}" />
  314. </van-popup>
  315. <!-- 多选 -->
  316. <dk-muti-dropdown-item docName="客户资料" show="{{staffFlag}}" ids="{{staffIds}}" id='staff' typeName='staff' bind:muticommit='mutiSearchAll' bind:muticlose='muticloseAll'></dk-muti-dropdown-item>
  317. <!-- 多选 -->
  318. <dk-muti-dropdown-item show="{{orgFlag}}" docName="客户资料" id='org' typeName='org' bind:muticommit='mutiSearchAll' bind:muticlose='muticloseAll'></dk-muti-dropdown-item>