detail.wxml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <import src="detail.skeleton.wxml"/>
  2. <template is="skeleton" wx:if="{{loading}}" />
  3. <!-- 头部 样式使用list样式 -->
  4. <view class="setclient-list-item" url="#">
  5. <view class="con">
  6. <view class="portrait {{detail.enterprisename <=2?'min-portrait':''}}">{{handle.getName(detail.enterprisename)}}</view>
  7. <view class="mian">
  8. <view class="label line-1">{{detail.enterprisename}}</view>
  9. <view class="tag-box">
  10. <Yl-tags id="Tags" add ownertable='sa_customers' bind:onGetList='onGetList' ownerid='{{sa_customersid}}' />
  11. </view>
  12. </view>
  13. <view class="extend">
  14. <!-- <Info /> -->
  15. </view>
  16. </view>
  17. </view>
  18. <!-- 简介 -->
  19. <Yl_Detail list="{{briefs}}">
  20. <!-- 团队管理 -->
  21. <Yl-group id='Group' slot='bottom' add ownertable='sa_customers' ownerid='{{sa_customersid}}' />
  22. </Yl_Detail>
  23. <view style="height: 20rpx;" />
  24. <!-- 功能 -->
  25. <Yl_FunTabs list='{{tabsList}}' active='{{tabsActive}}' bind:onChenge="tabsChange">
  26. <Trace slot='跟进动态' id='Trace' ownertable='sa_customers' ownerid='{{sa_customersid}}' />
  27. <Work slot='任务' id='Work' ownertable='sa_customers' ownerid='{{sa_customersid}}' disabled="{{isAdmin||isLeader}}" />
  28. <Project slot='项目商机' id="Project" />
  29. <Preview slot='详细信息' list1='{{list1}}' list2='{{list2}}' />
  30. <Clue slot='线索' id='Clue' disabled="{{false}}" />
  31. <Address slot='客户地址' id='Address' disabled="{{per.query(options,'address')||isAdmin||isLeader}}" />
  32. <Contacts slot='联系人' id='Contacts' disabled="{{per.query(options,'contact')||isAdmin||isLeader}}" path='/packageA/setclient/modules/contacts/quickly/index' enterprisename='{{detail.enterprisename}}' />
  33. <Offers slot='报价单' id='Offers' disabled="{{per.query(options,'offer')||isAdmin||isLeader}}" />
  34. <Contract slot='合同' id='Contract' />
  35. <Account slot='账户余额' id='Account' />
  36. <Bankcard slot='银行卡信息' id="Bankcard" />
  37. <Financing slot='开票信息' id="Financing" disabled="{{per.query(options,'invoice')||isAdmin||isLeader}}" />
  38. <Record slot="操作" id="Record" ownertable='sa_customers' ownerid='{{sa_customersid}}' />
  39. <Files slot="附件" id="Files" ownertable='sa_customers' ownerid='{{sa_customersid}}' />
  40. <view style="height: 140rpx;" />
  41. </Yl_FunTabs>
  42. <!-- 底部 -->
  43. <Yl_Tabbar wx:if="{{tabbarList.length}}" list='{{tabbarList}}' bind:callback="tabbarOnClick" />
  44. <!-- 处理四字 -->
  45. <wxs module="handle">
  46. module.exports.getName = function (name) {
  47. return name.substring(0, 4)
  48. };
  49. </wxs>
  50. <!-- 查重 -->
  51. <van-popup show="{{ repetitionShow }}" custom-class='popup' round position="bottom" custom-style="height: 100%;" bind:close="repClose">
  52. <view class="title">
  53. 查重
  54. <van-icon custom-class='icon' size='40rpx' name="cross" bindtap="repClose" />
  55. </view>
  56. <navigator url="#" class="enterprise" wx:for="{{repetitionList}}" wx:key="sys_enterpriseid" data-item="{{item}}" bindtap="toRepDetail">
  57. <view class="enterprise_title">{{item.enterprisename||" --"}}</view>
  58. <view class="tag-box">
  59. <van-tag custom-class='tag' wx:for="{{item.tag_sys}}" wx:key="index" wx:for-item='tag' color='#3874f6' text-color='#fff' round>{{tag}}</van-tag>
  60. <van-tag custom-class='tag' wx:for="{{item.tag}}" wx:key="index" wx:for-item='tag' color='#FA8C16' text-color='#fff' round>{{tag}}</van-tag>
  61. </view>
  62. <view class="exp">客户地址:{{item.address||" --"}}</view>
  63. <view class="exp">企业税号:{{item.taxno||" --"}}</view>
  64. <view class="exp">客户类型:{{item.type||" --"}}</view>
  65. <view class="exp">负责人:{{item.leader[0].name||" --"}}</view>
  66. <view class="exp">手机号:{{item.phonenumber||" --"}}</view>
  67. <view class="exp">成交状态:{{item.tradingstatus||" --"}}</view>
  68. <view class="exp">最近跟进时间:{{item.followdate||" --"}}</view>
  69. </navigator>
  70. </van-popup>
  71. <wxs src='../../utils/wxmlQueryPer.wxs' module="per" />