detail.wxml 5.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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)}}
  7. </view>
  8. <view class="mian">
  9. <view class="label line-1">{{detail.enterprisename}}</view>
  10. <view class="tag-box" wx:if="{{appAuth.isdatatag}}">
  11. <Yl-tags id="Tags" add ownertable='sa_customers' bind:onGetList='onGetList'
  12. ownerid='{{sa_customersid}}' />
  13. </view>
  14. </view>
  15. <view class="extend">
  16. <!-- <Info /> -->
  17. </view>
  18. </view>
  19. </view>
  20. <!-- 简介 -->
  21. <Yl_Detail list="{{briefs}}">
  22. </Yl_Detail>
  23. <view style="height: 20rpx;" />
  24. <!-- 功能 -->
  25. <Yl_FunTabs list='{{tabsList}}' active='{{tabsActive}}' bind:onChenge="tabsChange">
  26. <Trace resource='医院管理' slot='跟进动态' id='Trace' ownertable='sa_customers' ownerid='{{sa_customersid}}'
  27. disabled="{{detail.status != '已终止'}}" ownerid1='{{detail.sys_enterpriseid}}' />
  28. <Preview slot='详细信息' list1='{{list1}}' list2='{{list2}}' />
  29. <Address slot='地址管理' id='Address'
  30. disabled="{{(per.query(options,'address')||isAdmin||isLeader)&& detail.status != '已终止'}}" />
  31. <Contract slot='合同' id='Contract' />
  32. <Record slot="操作" id="Record" ownertable='sa_customers' ownerid='{{sa_customersid}}' />
  33. <Files slot="附件" id="Files" ownertable='sa_customers' ownerid='{{sa_customersid}}'
  34. disabled="{{detail.status != '已终止'}}" />
  35. </Yl_FunTabs>
  36. <!-- 底部 -->
  37. <Yl_Tabbar wx:if="{{tabbarList.length}}" list='{{tabbarList}}' bind:callback="tabbarOnClick" />
  38. <!-- 处理四字 -->
  39. <wxs module="handle">
  40. module.exports.getName = function (name) {
  41. return name.substring(0, 4)
  42. };
  43. </wxs>
  44. <!-- 查重 -->
  45. <van-popup show="{{ repetitionShow }}" custom-class='popup' round position="bottom" custom-style="height: 100%;"
  46. bind:close="repClose">
  47. <view class="title">
  48. {{language['查重']||'查重'}}
  49. <van-icon custom-class='icon' size='40rpx' name="cross" bindtap="repClose" />
  50. </view>
  51. <navigator url="#" class="enterprise" wx:for="{{repetitionList}}" wx:key="sys_enterpriseid" data-item="{{item}}"
  52. bindtap="toRepDetail">
  53. <view class="enterprise_title" style="color: {{item.chars['enterprisename'] ? 'red' : '#666666'}}">
  54. {{item.enterprisename||" --"}}
  55. </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'
  58. 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'
  60. text-color='#fff' round>{{language[tag]||tag}}</van-tag>
  61. </view>
  62. <view class="exp" style="color: {{item.chars['address'] ? 'red' : '#666666'}}">
  63. {{language['地址管理']||'地址管理'}}:{{item.address||" --"}}
  64. </view>
  65. <view class="exp" style="color: {{item.chars['taxno'] ? 'red' : '#666666'}}">
  66. {{language['企业税号']||'企业税号'}}:{{item.taxno||" --"}}
  67. </view>
  68. <view class="exp" style="color: {{item.chars['type'] ? 'red' : '#666666'}}">
  69. {{language['医院类型']||'医院类型'}}:{{item.type||" --"}}
  70. </view>
  71. <view class="exp" style="color: {{item.chars['leader'] ? 'red' : '#666666'}}">
  72. {{language['负责人']||'负责人'}}:{{item.leader[0].name||" --"}}
  73. </view>
  74. <view class="exp" style="color: {{item.chars['phonenumber'] ? 'red' : '#666666'}}">
  75. {{language['手机号']||'手机号'}}:{{item.phonenumber||" --"}}
  76. </view>
  77. <view class="exp" style="color: {{item.chars['tradingstatus'] ? 'red' : '#666666'}}">
  78. {{language['成交状态']||'成交状态'}}:{{item.tradingstatus||" --"}}
  79. </view>
  80. <view class="exp" style="color: {{item.chars['followdate'] ? 'red' : '#666666'}}">
  81. {{language['最近跟进时间']||'最近跟进时间'}}:{{item.followdate||" --"}}
  82. </view>
  83. <view class="exp" style="color: {{item.chars['systemapp'] ? 'red' : '#666666'}}">
  84. {{language['归属应用']||'归属应用'}}:{{item.systemapp||" --"}}
  85. <block wx:if="{{item.systemapp=='回收站'}}">
  86. <icon style="padding-left:10rpx;" type="warn" size="11" color='red' />
  87. <text
  88. style="color: red;margin-left: 2rpx;">{{language['当前重复客户归属回收站,请联系管理处理!']||'当前重复客户归属回收站,请联系管理处理!'}}</text>
  89. </block>
  90. </view>
  91. </navigator>
  92. </van-popup>
  93. <wxs src='../../utils/wxmlQueryPer.wxs' module="per" />
  94. <!-- 更换合作模式 -->
  95. <van-action-sheet show="{{ changeMode }}" actions="{{ modeList }}" cancel-text="{{language['取消']||'取消'}}"
  96. bind:select='modeSelect' bind:cancel='modeCancel' bind:click-overlay='modeCancel' z-index='9999999' />