detail.wxml 5.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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" wx:if="{{appAuth.isdatatag}}">
  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 wx:if="{{appAuth.isdatateam}}" id='Group' slot='bottom' add="{{detail.status != '已终止'}}" 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}}' disabled="{{detail.status != '已终止'}}" ownerid1='{{detail.sys_enterpriseid}}' isAdmin="{{per.query(options,'expenseBreakdown')}}" />
  27. <Work slot='任务' id='Work' ownertable='sa_customers' ownerid='{{sa_customersid}}' disabled="{{(isAdmin||isLeader) && detail.status != '已终止'}}" />
  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)&& detail.status != '已终止'}}" />
  32. <Contacts slot='联系人' id='Contacts' disabled="{{(per.query(options,'contact')||isAdmin||isLeader) && detail.status != '已终止'}}" path='/packageA/setclient/modules/contacts/quickly/index' sa_customersid='{{sa_customersid}}' 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" disabled="{{(isAdmin||isLeader) && detail.status != '已终止'}}" />
  37. <Financing slot='开票信息' id="Financing" disabled="{{(per.query(options,'invoice')||isAdmin||isLeader)&& detail.status != '已终止'}}" />
  38. <Record slot="操作" id="Record" ownertable='sa_customers' ownerid='{{sa_customersid}}' />
  39. <Files slot="附件" id="Files" ownertable='sa_customers' ownerid='{{sa_customersid}}' disabled="{{detail.status != '已终止'}}" />
  40. </Yl_FunTabs>
  41. <!-- 底部 -->
  42. <Yl_Tabbar wx:if="{{tabbarList.length}}" list='{{tabbarList}}' bind:callback="tabbarOnClick" />
  43. <!-- 处理四字 -->
  44. <wxs module="handle">
  45. module.exports.getName = function (name) {
  46. return name.substring(0, 4)
  47. };
  48. </wxs>
  49. <!-- 查重 -->
  50. <van-popup show="{{ repetitionShow }}" custom-class='popup' round position="bottom" custom-style="height: 100%;" bind:close="repClose">
  51. <view class="title">
  52. {{language['查重']||'查重'}}
  53. <van-icon custom-class='icon' size='40rpx' name="cross" bindtap="repClose" />
  54. </view>
  55. <navigator url="#" class="enterprise" wx:for="{{repetitionList}}" wx:key="sys_enterpriseid" data-item="{{item}}" bindtap="toRepDetail">
  56. <view class="enterprise_title">{{item.enterprisename||" --"}}</view>
  57. <view class="tag-box">
  58. <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>
  59. <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>
  60. </view>
  61. <view class="exp">{{language['客户地址']||'客户地址'}}:{{item.address||" --"}}</view>
  62. <view class="exp">{{language['企业税号']||'企业税号'}}:{{item.taxno||" --"}}</view>
  63. <view class="exp">{{language['客户类型']||'客户类型'}}:{{item.type||" --"}}</view>
  64. <view class="exp">{{language['负责人']||'负责人'}}:{{item.leader[0].name||" --"}}</view>
  65. <view class="exp">{{language['手机号']||'手机号'}}:{{item.phonenumber||" --"}}</view>
  66. <view class="exp">{{language['成交状态']||'成交状态'}}:{{item.tradingstatus||" --"}}</view>
  67. <view class="exp">{{language['最近跟进时间']||'最近跟进时间'}}:{{item.followdate||" --"}}</view>
  68. <view class="exp">{{language['归属应用']||'归属应用'}}:{{item.systemapp||" --"}}
  69. <block wx:if="{{item.systemapp=='回收站'}}">
  70. <icon style="padding-left:10rpx;" type="warn" size="11" color='red' />
  71. <text style="color: red;margin-left: 2rpx;">{{language['当前重复客户归属回收站,请联系管理处理!']||'当前重复客户归属回收站,请联系管理处理!'}}</text>
  72. </block>
  73. </view>
  74. </navigator>
  75. </van-popup>
  76. <wxs src='../../utils/wxmlQueryPer.wxs' module="per" />
  77. <!-- 更换合作模式 -->
  78. <van-action-sheet show="{{ changeMode }}" actions="{{ modeList }}" cancel-text="{{language['取消']||'取消'}}" bind:select='modeSelect' bind:cancel='modeCancel' bind:click-overlay='modeCancel' z-index='9999999' />