org.wxml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <!-- 前台导入wxmlUtil.wxs -->
  2. <wxs src='/utils/wxmlUtil.wxs' module="wxmlUtil"></wxs>
  3. <!-- 加载图层 -->
  4. <loading wx:if="{{loading}}"></loading>
  5. <!-- 粘性布局的查询条件 -->
  6. <van-sticky scroll-top="0">
  7. <van-search model:value="{{ searchText }}" bind:change="onSearchText" bind:search="doSearch" use-action-slot placeholder="搜索 客户名称/地址/标签/电话/备注">
  8. </van-search>
  9. <view style="display: flex; padding: 4vw; background: white;">
  10. <view class="image-frame">
  11. <van-image round width="20rpx" height="24rpx" src="/static/img/Vector.png" />
  12. </view>
  13. <view>沈阳蒙娜丽莎红星美凯龙专营店</view>
  14. </view>
  15. </van-sticky>
  16. <!-- 暂无数据 -->
  17. <van-empty wx:if="{{tableData.length<=0}}" description="{{$t['nodata']}}" />
  18. <!-- 列表 -->
  19. <view wx:for="{{tableData}}" style="background: white;margin:3vw;border-radius: 15rpx;">
  20. <!-- 列表上半部分 -->
  21. <view style="display: flex;padding:3vw;background: linear-gradient(to right,#A8D0EF, #DAEFFF);border-radius: 15rpx 15rpx 0 0 ">
  22. <view style="display: flex;flex: 1;">
  23. <view class="image-frame">
  24. <van-image round width="20rpx" height="24rpx" src="/static/img/Vector.png" />
  25. </view>
  26. <view>{{item.orgName}}</view>
  27. </view>
  28. <view style=" text-align: right;"><van-icon name="arrow" /></view>
  29. </view>
  30. <!-- 列表下半部分 -->
  31. <view wx:for="{{item.itemData}}" wx:for-item="sub_item" class="list-below-item">
  32. <view class="image-frame">
  33. <van-image round width="20rpx" height="24rpx" src="/static/img/Vector.png" />
  34. </view>
  35. <view> {{sub_item.orgName}} </view>
  36. <view style="flex:1;text-align: right;"><van-icon name="arrow" /></view>
  37. </view>
  38. </view>
  39. <van-divider wx:if="{{noMore}}" contentPosition="center" borderColor="#DCDCDC">{{$t['noMore']}}</van-divider>
  40. <view style="height: 135rpx;"></view>
  41. <!-- 底部按钮相关 -->
  42. <view class="bottom-class-org">
  43. <view style="padding:10rpx 34rpx 61rpx 43rpx; display: flex;">
  44. <view style="width: 50%;padding: 4vw;">
  45. <van-button round plain size="large" color="#1B365D" custom-style="height:88rpx;" bind:click="submit" data-key="出库回退" data-type="save" type="info">
  46. 新建员工
  47. </van-button>
  48. </view>
  49. <view style="width: 50%;padding: 4vw;">
  50. <van-button round size="large" color="#20365E" custom-style="height:88rpx;" bind:click="toadd" data-key="出库回退" data-type="save" type="default">
  51. 新建子部门
  52. </van-button>
  53. </view>
  54. </view>
  55. </view>
  56. <!-- 弹窗 编辑/新建-->
  57. <van-popup show="{{showPopup}}" position="bottom" bind:close="onClosePopup" custom-class="function-pop-class">
  58. <view style="background-color:#F8F9FD;color:#1B365D;font-size: 17px;font-weight: 600;display: flex;justify-content: left;align-items: center;padding: 40rpx;">
  59. <view>新建部门</view>
  60. </view>
  61. <van-field disabled="{{false}}" disabled="{{true}}" input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="nomal-label" maxlength="50" value="{{'PP00001'}}" input-align="right" label="部门编码" placeholder="{{'请输入' + '品牌编码'}}" autosize border="{{ false }}">
  62. </van-field>
  63. <van-field label-class="nomal-label" input-width="200rpx" input-class="dk-cell-value-class" input-align="right" data-key="supplier-list" maxlength="25" type="text" value="{{'' }}" label="上级部门" placeholder="请选择" autosize border="{{ false }}" right-icon="arrow" color="#95A8CB" catchtap="openChooseOrg" readonly="{{true}}">
  64. </van-field>
  65. <van-field disabled="{{false}}" disabled="{{true}}" input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="nomal-label" maxlength="50" value="{{'PP00001'}}" input-align="right" label="部门名称" placeholder="{{'请输入' + '品牌编码'}}" autosize border="{{ false }}">
  66. </van-field>
  67. <van-field label-class="nomal-label" input-width="200rpx" input-class="dk-cell-value-class" input-align="right" data-key="supplier-list" maxlength="25" type="text" value="{{'' }}" label="可用仓库" placeholder="看" autosize border="{{ false }}" right-icon="arrow" color="#95A8CB" catchtap="openSingle" readonly="{{true}}">
  68. </van-field>
  69. <van-field label-class="nomal-label" input-width="200rpx" input-class="dk-cell-value-class" input-align="right" data-key="supplier-list" maxlength="25" type="text" value="{{'' }}" label="可用资金账号" placeholder="请选择" autosize border="{{ false }}" right-icon="arrow" color="#95A8CB" catchtap="openSingle" readonly="{{true}}">
  70. </van-field>
  71. <van-field disabled="{{false}}" disabled="{{true}}" input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="nomal-label" maxlength="50" value="{{'PP00001'}}" input-align="right" label="备注" placeholder="{{'请输入' + '品牌编码'}}" autosize border="{{ false }}">
  72. </van-field>
  73. <view style="display: flex; padding:35rpx 34rpx 62rpx 34rpx;">
  74. <view style="width:48%">
  75. <van-button size="large" plain round color="#1B365D" custom-style="height:88rpx;" bind:click="onClosePopup" type="default">取消
  76. </van-button>
  77. </view>
  78. <view style="width: 4%;"></view>
  79. <view style="width:48%;">
  80. <van-button size="large" round color="#1B365D" custom-style="height:88rpx;" bind:click="addSave" type="default">保存
  81. </van-button>
  82. </view>
  83. </view>
  84. </van-popup>