org.wxml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. <dk-tree-form treeList="{{tableData}}" idKey="orgId" nameKey="orgName" parentIdKey="parentId" itemListKey="itemData" id="treeSelect" bind:onclick="treeClick"></dk-tree-form>
  20. <van-divider wx:if="{{noMore}}" contentPosition="center" borderColor="#DCDCDC">{{$t['noMore']}}</van-divider>
  21. <view style="height: 135rpx;"></view>
  22. <!-- 底部按钮相关 -->
  23. <view class="bottom-class-org">
  24. <view style="padding:10rpx 34rpx 61rpx 43rpx; display: flex;">
  25. <view style="width: 50%;padding: 4vw;">
  26. <van-button round plain size="large" color="#1B365D" custom-style="height:88rpx;" bind:click="submit" data-key="出库回退" data-type="save" type="info">
  27. 新建员工
  28. </van-button>
  29. </view>
  30. <view style="width: 50%;padding: 4vw;">
  31. <van-button round size="large" color="#20365E" custom-style="height:88rpx;" bind:click="toadd" data-key="出库回退" data-type="save" type="default">
  32. 新建子部门
  33. </van-button>
  34. </view>
  35. </view>
  36. </view>
  37. <!-- 弹窗 编辑/新建-->
  38. <van-popup show="{{showPopup}}" position="bottom" bind:close="onClosePopup" custom-class="function-pop-class">
  39. <view style="background-color:#F8F9FD;color:#1B365D;font-size: 17px;font-weight: 600;display: flex;justify-content: left;align-items: center;padding: 40rpx;">
  40. <view>新建部门</view>
  41. </view>
  42. <van-field disabled="{{false}}" model:value="{{ addForm.orgCode }}" 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 }}">
  43. </van-field>
  44. <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="{{addForm.parentOrgName}}" label="上级部门" placeholder="请选择" autosize border="{{ false }}" right-icon="arrow" color="#95A8CB" catchtap="openChooseOrg" readonly="{{true}}">
  45. </van-field>
  46. <van-field disabled="{{false}}" model:value="{{ addForm.orgName }}" 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 }}">
  47. </van-field>
  48. <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}}">
  49. </van-field>
  50. <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}}">
  51. </van-field>
  52. <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 }}">
  53. </van-field>
  54. <view style="display: flex; padding:35rpx 34rpx 62rpx 34rpx;">
  55. <view style="width:48%">
  56. <van-button size="large" plain round color="#1B365D" custom-style="height:88rpx;" bind:click="onClosePopup" type="default">取消
  57. </van-button>
  58. </view>
  59. <view style="width: 4%;"></view>
  60. <view style="width:48%;">
  61. <van-button size="large" round color="#1B365D" custom-style="height:88rpx;" bind:click="addSave" type="default">保存
  62. </van-button>
  63. </view>
  64. </view>
  65. </van-popup>