basic-data.wxml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <!-- 顶部信息 -->
  2. <van-sticky scroll-top="0">
  3. <van-search model:value="{{ searchText }}" bind:change="onSearchText" bind:search="doSearch" placeholder="请输入资料名称/备注"> </van-search>
  4. <van-dropdown-menu active-color="#1B365D">
  5. <van-dropdown-item id="status" title="{{statusItem.text }}">
  6. <dk-dropdown-switch dataList="{{statusList}}" bind:commit='dropdownSwitchCommit'></dk-dropdown-switch>
  7. </van-dropdown-item>
  8. </van-dropdown-menu>
  9. </van-sticky>
  10. <view style="display: flex;">
  11. <!-- 左侧菜单列表 -->
  12. <van-sidebar activeKey="{{sideKey}}" bindchange="changeSidebar" custom-class="left-class">
  13. <view style="height:calc({{windowHeight+'px'}} - {{'220rpx'}});overflow: scroll;">
  14. <van-sidebar-item wx:key="index" custom-class="{{sideKey - 1 == index? 'sidebar-item-before': (sideKey + 1 == index?'sidebar-item-next':'sidebar-item')}}" title="{{item.name}}" data-id="{{item.id}}" wx:for="{{leftData}}" />
  15. </view>
  16. </van-sidebar>
  17. <!-- 内容列表 -->
  18. <view style="margin-left: 140rpx;width: 100%;">
  19. <view wx:for="{{tableData}}" wx:key="index" class="main-class">
  20. <van-swipe-cell right-width="{{ 65 }}">
  21. <view bind:tap="toDetail" data-index="{{index}}" class="main-foot" style="border-radius:15rpx;">
  22. <view class="table-content">
  23. <view class="table-content-row">
  24. <view style="display: flex;">
  25. <view style="font-size: 15px;font-weight: 600;width: 80%;">
  26. {{fieldData.typeName}}
  27. </view>
  28. <view style="height: 49rpx;border-radius: 6rpx;background-color: {{ item.flagValue ?'#77C5D5':'rgba(228, 0, 43, 1)'}};text-align: center;width: 20%;">
  29. <text style=" font-size: 13px;color: #FFFFFF;">{{item.flagValue ? '启用' : '停用'}}</text>
  30. </view>
  31. </view>
  32. </view>
  33. <view wx:for="{{fieldData}}" wx:for-index="key" wx:for-item="value">
  34. <view class="table-row" wx:if="{{'typeName' != key}}">
  35. <view class="table-content-row">
  36. <view style="display: flex;">
  37. <view class="table-content-row-font">
  38. <dk-text fontSize="14px" color="#95A8CB" fontWeight="nomal" value="{{value}}" copyValue="{{item[key]}}"></dk-text>
  39. </view>
  40. <view class="table-content-class">
  41. {{item[key]?item[key]:''}}
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. </view>
  47. </view>
  48. </view>
  49. <view data-index="{{index}}" bind:tap="onCloseDel" slot="right">{{item.flagValue ? '停用' : '启用'}}</view>
  50. </van-swipe-cell>
  51. </view>
  52. <!-- 保留高度 -->
  53. <view style="height: 220rpx;"></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>{{fieldData.typeName}}</view>
  60. </view>
  61. <view wx:for="{{fieldData}}" wx:for-index="key" wx:for-item="value" wx:if="{{'typeName' != key}}">
  62. <van-field wx:if="{{key == 'warehouseCode' || key == 'channelCode' || key =='incomeCode' || key =='expenditureCode' || key =='reasonCode'|| key =='paymentCode' }}" disabled="{{true}}" input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="nomal-label" maxlength="50" value="{{ showPopupItem[key] }}" input-align="right" label="{{ value}}" placeholder="{{'请输入' + value}}" autosize border="{{ false }}">
  63. </van-field>
  64. <van-field wx:if="{{key !== 'warehouseCode' && key !== 'channelCode' && key !=='incomeCode' && key !=='expenditureCode' && key !=='reasonCode' && key !=='paymentCode' }}" disabled="{{false}}" input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="{{(key == 'warehouseName' || key == 'channelName' || key =='incomeName' && key =='expenditureName' || key =='reasonName'|| key =='paymentName' ) ? 'red-label':'' }}" maxlength="50" value="{{ showPopupItem[key] }}" input-align="right" label="{{ value}}" placeholder="{{'请输入' + value}}" autosize border="{{ false }}">
  65. </van-field>
  66. </view>
  67. <van-field disabled="{{false}}" input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="nomal-label" maxlength="50" value="" input-align="right" label="备注" placeholder="{{'请输入' + '备注'}}" autosize border="{{ false }}">
  68. </van-field>
  69. <!-- <van-field input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="red-label" data-key="addressNo" maxlength="50" value="{{ showPopupItem.name }}" input-align="right" label="仓库名称" placeholder="请输入仓库名称" autosize border="{{ false }}" bind:change="changeCustomerFormField">
  70. </van-field>
  71. <van-field input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="nomal-label" data-key="addressNo" maxlength="50" value="{{ showPopupItem.value }}" input-align="right" label="仓库主管" placeholder="请输入仓库主管" autosize border="{{ false }}" bind:change="changeCustomerFormField">
  72. </van-field>
  73. <van-field input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="nomal-label" data-key="addressNo" maxlength="50" value="{{ showPopupItem.value }}" input-align="right" label="主管电话" placeholder="请输入主管电话" autosize border="{{ false }}" bind:change="changeCustomerFormField">
  74. </van-field>
  75. <van-field input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="nomal-label" data-key="addressNo" maxlength="50" value="{{ showPopupItem.remark }}" input-align="right" label="备注" placeholder="请输入备注" autosize border="{{ false }}" bind:change="changeCustomerFormField">
  76. </van-field> -->
  77. <!-- 保留 -->
  78. <!-- <van-field input-width="200rpx" input-class="dk-cell-value-class" input-align="left" label-class="nomal-label" data-key="addressNo" maxlength="50" value="{{ form.customerForm.addressNo }}" input-align="right" label="仓库名称" placeholder="请输入仓库名称" autosize border="{{ false }}" bind:change="changeCustomerFormField">
  79. </van-field> -->
  80. <view style="display: flex; padding:35rpx 34rpx 62rpx 34rpx;">
  81. <view style="width:48%">
  82. <van-button size="large" plain round color="#1B365D" custom-style="height:88rpx;" bind:click="onClosePopup" type="default">取消
  83. </van-button>
  84. </view>
  85. <view style="width: 4%;"></view>
  86. <view style="width:48%;">
  87. <van-button size="large" round color="#1B365D" custom-style="height:88rpx;" bind:click="allClean" type="default">保存
  88. </van-button>
  89. </view>
  90. </view>
  91. </van-popup>
  92. <!-- 底部信息 -->
  93. <dk-save-bottom flagTypeName="basic-data" bottomClass="{{true}}" bind:submit="toClose" bind:allClean="toAdd" />