metering-unit.wxml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <!-- 前台导入wxmlUtil.wxs -->
  2. <wxs src='/utils/wxmlUtil.wxs' module="wxmlUtil"></wxs>
  3. <!-- 顶部信息 -->
  4. <van-sticky scroll-top="0">
  5. <!-- 查询条件 -->
  6. <dk-dropdown-menu model:value="{{searchForm}}" menuList="{{searchContent}}" pullMenuList="{{pullMenuList}}" bind:search="searchData" searchTextPlaceholder="{{wxmlUtil.setSearchPlaceholder($t,['unit','remarks'])}}">
  7. </dk-dropdown-menu>
  8. </van-sticky>
  9. <!-- 内容列表 -->
  10. <view style="width: 100%;">
  11. <view wx:for="{{tableData}}" wx:key="index" class="main-class">
  12. <van-swipe-cell right-width="{{ 65 }}">
  13. <view bind:tap="toChecked" data-index="{{index}}"data-item="{{item}}" class="{{item.checked ? 'main-foot-1' : 'main-foot'}}" style="border-radius:15rpx;">
  14. <view class="table-content">
  15. <view class="table-content-row">
  16. <view style="display: flex;">
  17. <view style="font-size: 14px;font-weight: 600;width: 70%;margin-left: 20rpx;">
  18. {{item.unitName}}
  19. </view>
  20. <view style="font-size: 14px;font-weight: 600;width: 20%;margin-left: 20rpx;">
  21. {{'小数:' +item.decimalPlaces}}
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. <view data-index="{{index}}" bind:tap="onCloseDel" slot="right">{{item.flagValue ? '停用' : '启用'}}</view>
  28. </van-swipe-cell>
  29. </view>
  30. <!-- 保留高度 -->
  31. <view style="height: 220rpx;"></view>
  32. </view>
  33. <dk-popup type="basic" priceTitle="" priceCol="pricePromotion" subCol="desc" title="{{formDataName}}" value="{{dataItem}}" show="{{showPop}}" routeObjName="{{routeObjName}}" contentObj="{{popContent}}" bind:commit="editItems" validFlag ="{{true}}">
  34. </dk-popup>
  35. <!-- 底部加号 -->
  36. <view style="position: fixed;bottom: 230rpx;right: 30rpx;">
  37. <view bind:tap="toAdd" style="background: #CAA977;border-radius: 50%;display: flex;justify-content: center;align-items: center;padding:20rpx;box-shadow: 0px 17px 22px 0px #1B365D33;">
  38. <van-icon name="plus" color="#FFFFFF" size="60rpx" />
  39. </view>
  40. </view>
  41. <!-- 底部信息 -->
  42. <!-- <dk-save-bottom flagTypeName="product-file-add-select" bottomClass="{{true}}" bind:submit="toClose" bind:allClean="toAdd" /> -->