detail.wxml 4.8 KB

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