1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <van-tabs title-active-color='var(--assist)' color='var(--assist)' bind:change='tabChange'>
- <van-tab name='服务单产品' title="{{language['服务单产品']||'服务单产品'}}" />
- <van-tab name='产品库' title="{{language['产品库']||'产品库'}}" />
- </van-tabs>
- <view style="padding:10px 10px 5px;">
- <t-search model:value="{{value}}" placeholder="{{language['关键字']||'根据商品名称搜索'}}" bind:submit="search" bind:clear="clear" shape="round" />
- </view>
- <t-pull-down-refresh value="{{baseRefresh.value}}" loadingProps="{{loadingProps}}" loadingTexts="{{loadingTexts}}" bind:refresh="onPullDownRefresh" bind:scrolltolower="onReachBottom">
- <view style="padding:10px;">
- <t-checkbox-group value="{{selection}}" bind:change="handleGroupChange">
- <t-cell wx:for="{{list}}" wx:key="itemid" title="{{item.itemname}}">
- <view class="avatar" slot="left-icon">
- <image src="{{item.attinfos[0].url}}" style="width: 60px;height: 60px;" mode="aspectFill" />
- </view>
- <view slot="description">
- <view class="small">
- {{language['商品编号']||'商品编号'}}:{{item.itemno}}
- </view>
- <view class="small">
- {{language['商品型号']||'商品型号'}}:{{language[item.model]||item.model}}
- </view>
- <block wx:if="{{siteid=='HY'}}">
- <view class="small">
- {{language['公称通径']||'公称通径'}}:{{item.caliber||' --'}}
- </view>
- <view class="small">
- {{language['公称压力']||'公称压力'}}:{{language[item.nominalpressure]||item.nominalpressure||' --'}}
- </view>
- </block>
- </view>
- <view class="avatar" slot="right-icon">
- <t-checkbox value="{{item.itemid}}" />
- </view>
- </t-cell>
- </t-checkbox-group>
- <Yl_Empty wx:if="{{list.length==0}}" />
- <view style="height: 180px;"></view>
- </view>
- </t-pull-down-refresh>
- <view class="footer">
- <view class="count" />
- <view class="but-box">
- <van-button disabled='{{selection.length == 0}}' custom-class='but delete' bind:click="refresh">{{language['重置']||'重 置'}}</van-button>
- <van-button disabled='{{selection.length == 0}}' custom-class='but' bind:click="onConfirm">{{language['添加']||'添加选中的商品'}}</van-button>
- </view>
- </view>
- <!-- <view wx:if="{{selection.length > 0}}" style="padding:10px 10px 0 10px" class="flex-align-center flex-between">
- <t-button size="small" variant="text" bind:tap="refresh">{{language['重置']||'重 置'}}</t-button>
- <t-button theme="primary" size="small" variant="text" bind:tap="onConfirm">{{language['添加']||'添加选中的商品'}}</t-button>
- </view>
- -->
|