index.wxml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <van-tabs title-active-color='var(--assist)' color='var(--assist)' bind:change='tabChange'>
  2. <van-tab name='服务单产品' title="{{language['服务单产品']||'服务单产品'}}" />
  3. <van-tab name='产品库' title="{{language['产品库']||'产品库'}}" />
  4. </van-tabs>
  5. <view style="padding:10px 10px 5px;">
  6. <t-search model:value="{{value}}" placeholder="{{language['关键字']||'根据商品名称搜索'}}" bind:submit="search" bind:clear="clear" shape="round" />
  7. </view>
  8. <t-pull-down-refresh value="{{baseRefresh.value}}" loadingProps="{{loadingProps}}" loadingTexts="{{loadingTexts}}" bind:refresh="onPullDownRefresh" bind:scrolltolower="onReachBottom">
  9. <view style="padding:10px;">
  10. <t-checkbox-group value="{{selection}}" bind:change="handleGroupChange">
  11. <t-cell wx:for="{{list}}" wx:key="itemid" title="{{item.itemname}}">
  12. <view class="avatar" slot="left-icon">
  13. <image src="{{item.attinfos[0].url}}" style="width: 60px;height: 60px;" mode="aspectFill" />
  14. </view>
  15. <view slot="description">
  16. <view class="small">{{language['商品编号']||'商品编号'}}:{{item.itemno}}</view>
  17. <view class="small">
  18. {{language['商品型号']||'商品型号'}}:{{language[item.model]||item.model}}
  19. </view>
  20. <block wx:if="{{siteid=='HY'}}">
  21. <view class="small">{{language['公称通径']||'公称通径'}}:{{item.caliber||' --'}}</view>
  22. <view class="small">
  23. {{language['公称压力']||'公称压力'}}:{{join.formatting(item.nominalpressure)}}
  24. </view>
  25. </block>
  26. </view>
  27. <view class="avatar" slot="right-icon">
  28. <t-checkbox value="{{item.itemid}}" />
  29. </view>
  30. </t-cell>
  31. </t-checkbox-group>
  32. <Yl_Empty wx:if="{{list.length==0}}" />
  33. <view style="height: 180px;"></view>
  34. </view>
  35. </t-pull-down-refresh>
  36. <view class="footer">
  37. <view class="count" />
  38. <view class="but-box">
  39. <van-button disabled='{{selection.length == 0}}' custom-class='but delete' bind:click="refresh">
  40. {{language['重置']||'重 置'}}
  41. </van-button>
  42. <van-button disabled='{{selection.length == 0}}' custom-class='but' bind:click="onConfirm">
  43. {{language['添加']||'添加选中的商品'}}
  44. </van-button>
  45. </view>
  46. </view>
  47. <!-- <view wx:if="{{selection.length > 0}}" style="padding:10px 10px 0 10px" class="flex-align-center flex-between">
  48. <t-button size="small" variant="text" bind:tap="refresh">{{language['重置']||'重 置'}}</t-button>
  49. <t-button theme="primary" size="small" variant="text" bind:tap="onConfirm">{{language['添加']||'添加选中的商品'}}</t-button>
  50. </view> -->
  51. <wxs src="../../../utils/nominalpressure.wxs" module="join"></wxs>