index.wxml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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">
  17. {{language['商品编号']||'商品编号'}}:{{item.itemno}}
  18. </view>
  19. <view class="small">
  20. {{language['商品型号']||'商品型号'}}:{{language[item.model]||item.model}}
  21. </view>
  22. <block wx:if="{{siteid=='HY'}}">
  23. <view class="small">
  24. {{language['公称通径']||'公称通径'}}:{{item.caliber||' --'}}
  25. </view>
  26. <view class="small">
  27. {{language['公称压力']||'公称压力'}}:{{language[item.nominalpressure]||item.nominalpressure||' --'}}
  28. </view>
  29. </block>
  30. </view>
  31. <view class="avatar" slot="right-icon">
  32. <t-checkbox value="{{item.itemid}}" />
  33. </view>
  34. </t-cell>
  35. </t-checkbox-group>
  36. <Yl_Empty wx:if="{{list.length==0}}" />
  37. <view style="height: 180px;"></view>
  38. </view>
  39. </t-pull-down-refresh>
  40. <view class="footer">
  41. <view class="count" />
  42. <view class="but-box">
  43. <van-button disabled='{{selection.length == 0}}' custom-class='but delete' bind:click="refresh">{{language['重置']||'重 置'}}</van-button>
  44. <van-button disabled='{{selection.length == 0}}' custom-class='but' bind:click="onConfirm">{{language['添加']||'添加选中的商品'}}</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. -->