<view class="product-item" wx:for="{{list}}" wx:key="itemid">
	<navigator class="product" url="#" data-item="{{item}}" bindtap="toProductDetail">
		<view class="mian">
			<view class="img" data-file="{{item.attinfos}}" catchtap="viewImage">
				<van-image width="100%" height="100%" wx:if="{{item.cover}}" src="{{item.cover}}" use-loading-slot lazy-load>
					<van-loading slot="loading" type="spinner" size="20" vertical />
				</van-image>
				<text wx:else class="err">暂无图片</text>
			</view>
			<view class="dec">
				<view class="title">
					<text class="line-1">{{item.itemname}}</text>
					<text class="tag" wx:if="{{item.stockstatus}}">{{item.stockstatus}}</text>
				</view>
				<view class="subfield">
					编号:{{item.itemno}}
				</view>
				<view class="subfield">
					<text class="line-1" style="margin-right: 6rpx;">型号：{{item.model||' --'}}</text>
					<text class="line-1">规格：{{item.spec||' --'}}</text>
				</view>
				<view class="subfield">
					<text class="line-1" style="margin-right: 6rpx;">材质：{{item.material||' --'}}</text>
					<text class="line-1">标准：{{item.standards||' --'}}</text>
				</view>
				<view class="subfield">
					<text class="line-1" style="margin-right: 6rpx;">已发数量：{{item.deliedqty||' --'}}</text>
					<text class="line-1" style="margin-right: 6rpx;">可退数量：{{item.returnqty||' --'}}</text>
				</view>
				<view style="margin-top: 8rpx;" wx:if="{{!isAdd}}">
					<text class="price">￥{{item.price}}元</text>
					<text class="old-price" wx:if="{{item.price<item.marketprice}}">￥{{item.marketprice}}元</text>
				</view>
				<view style="margin-top: 8rpx;" wx:else>
					单套配置：{{item.qty +item.auxunit}}/{{item.price}}元
				</view>
			</view>
			<view wx:if="{{!disabled && !isAdd}}" class="delete" data-item="{{item}}" catchtap="deleteProduct">
				<text class="iconfont icon-guanlian-shanchu" />
			</view>
		</view>
	</navigator>
	<view class="bot">
		<view class="row">
			<view style="width: 100%;">
				<view class="label">产品备注:</view>
				<input disabled='{{disabled}}' bindtap="isEdit" class="input" style="flex: 1; text-align: left;padding-left: 10rpx;" type="text" placeholder="备注" value="{{item.remarks}}" data-name="remarks" data-data="{{item}}" bindblur="onBlur" />
			</view>
		</view>
		<view class="row">
			<view>
				<view class="label">期望交期：</view>
				<picker disabled='{{disabled}}' bindtap="isEdit" mode="date" data-data="{{item}}" bindchange='changeDate'>
					<view class="input" style="width: 240rpx;display: flex;justify-content: center;">
						<text wx:if="{{item.needdate }}">{{item.needdate}}</text>
						<text wx:else style="color: #999;">期望交期</text>
					</view>
				</picker>
			</view>
			<view class="money">
				回复交期：{{item.deliverydate || ' --'}}
			</view>
		</view>
		<view class="row" wx:if="{{!isAdd}}">
			<view>
				<view class="label">数量<text wx:if="{{item.auxunit}}">({{item.auxunit}})</text>：</view>
				<input disabled='{{disabled}}' bindtap="isEdit" class="input" style="width: 240rpx;" type="digit" value="{{item.qty}}" data-name="qty" data-data="{{item}}" bindblur="onBlur" />
			</view>
			<view class="money">
				金额：<text>￥{{item.amount}}元</text>
			</view>
		</view>
		<view class="row" wx:else>
			<view style="font-size: 24rpx;color: #666666;">
				借用数量：{{item.qty}}<text wx:if="{{item.auxunit}}">({{item.auxunit}})</text>
			</view>
			<view class="money">
				总金额：<text>￥{{item.amount}}元</text>
			</view>
		</view>
	</view>
</view>
<block wx:if="{{list.length==0}}">
	<Yl_Empty />
	<view style="height: 150rpx;" />
</block>