index.wxml 2.21 KB
<!--tabRepairOrder/components/relateGoodsPop/index.wxml-->
<wxs src="../../index.wxs" module="filter" />
<popup show="{{show}}" title="选择关联商品" bindconfirm="confirm" height="60%" bindcancel="cancel">
	<view class="tips">
		选定当前施工单的商品,未选的商品将自动创建第二笔施工单,可由不同技师负责施工
	</view>
	<view class="goods-content">
		<scroll-view class="content" scroll-y show-scrollbar="{{false}}">
			<block wx:if="{{goodsList.length > 0}}">
				<view class="box">
					<block wx:for="{{goodsList}}" wx:key="ind" wx:for-index="ind" wx:for-item="i">
						<view class="item-wrap">
							<view class="itemBox">
								<view class="choose" catchtap="choose" data-ind="{{ind}}" data-item="{{i}}">
									<image src="{{i.active ? 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/components/images/radio.png' : 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/components/images/radio_icon.png'}}" />
								</view>
								<view class="item-box">
									<view class="item">
										<view class="value {{i.active?'labelWidth':''}}" catchtap="choose" data-ind="{{ind}}" data-item="{{i}}">
											<view class="name text-hide {{i.active?'textWidth':''}}">
												<text>{{filter.replaceItemText(i.goodsAlias) ||filter.replaceItemText(i.upgradeGoodsName) || filter.replaceItemText(i.goodsName)}}</text>
												<text wx:if="{{i.position && (i.goodsType == 1 || i.goodsType == baseConfigData.selfBuildFilmType)}}">{{'「' + i.positionStr+'」'}}</text>
												<!-- <text class="warning_text" wx:if="{{!i.goods.merchantGoodsPosition && (i.goods.goodsInfo.goodsType == 1 || i.goods.goodsInfo.goodsType == baseConfigData.selfBuildFilmType)}}">无部位</text> -->
											</view>
										</view>

									</view>
									<view class="inventory" catch:tap="openInventoryPopup" data-inventory="{{i}}">库存{{i.stock===0||i.stock?i.stock:'-'}}</view>
								</view>

							</view>
						</view>
					</block>
				</view>
			</block>
			<block wx:else>
				<view class="nothing">暂无数据</view>
			</block>
		</scroll-view>
		<view class="selected-box">已选商品 <text>{{filter.activeNum(goodsList)}}</text> 件</view>
	</view>
</popup>