<view class="product-item" wx:for="{{list}}" wx:key="sa_quotedprice_itemsid">
    <navigator class="product" url="#">
        <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">{{language['暂无图片']||'暂无图片'}}</text>
                <view class="tag-box" wx:if="{{siteid=='HY' && item.goodsstatus=='已备货'}}">
                    <view class="tag">
                        {{language['备货完']||'备货完'}}
                    </view>
                </view>
            </view>
            <view class="dec">
                <view class="title">
                    <text class="line-1">{{item.itemname}}</text>
                    <text class="tag" wx:if="{{item.stockstatus}}">{{language[item.stockstatus]||item.stockstatus}}</text>
                </view>
                <view class="subfield">
                    {{language['编号']||'编号'}}:{{item.itemno}}
                </view>
                <view class="subfield">
                    <text class="line-1" style="margin-right: 6rpx;">{{language['型号']||'型号'}}：{{language[item.model]||item.model||' --'}}</text>
                    <text class="line-1" wx:if="{{siteid!='HY'}}">{{language['规格']||'规格'}}：{{language[item.spec]||item.spec||' --'}}</text>
                </view>
                <view class="subfield" wx:if="{{siteid=='HY'}}">
                    <text class="line-1" style="margin-right: 6rpx;">{{language['公称通径']||'公称通径'}}:{{language[item.caliber]||item.caliber||' --'}}</text>
                    <text class="line-1">{{language['公称压力']||'公称压力'}}:{{join.formatting(item.nominalpressure)}}</text>
                </view>
                <view class="subfield">
                    <text class="line-1" style="margin-right: 6rpx;">{{language['已发数量']||'已发数量'}}：{{item.deliedqty||'0'}}</text>
                    <text class="line-1" style="margin-right: 6rpx;">{{language['可退数量']||'可退数量'}}：{{item.returnqty||'0'}}</text>
                </view>
                <view class="subfield">
                    <text class="line-1" style="margin-right: 6rpx;">{{language['退货数量']||'退货数量'}}：{{item.aftersalesmagqty||'0'}}</text>
                    <text class="line-1" style="margin-right: 6rpx;">{{language['退款金额']||'退款金额'}}：{{item.aftersalesmagamount||' --'}}</text>
                </view>
                <block wx:if="{{siteid=='HY'}}">
                    <view class="subfield" style="border-top: 1rpx solid #ddd;margin-top: 16rpx;padding-top: 16rpx;">
                        <text class="line-1" style="margin-right: 6rpx;">{{language['未发货数量']||'未发货数量'}}：{{item.undeliqty||0}}</text>
                        <text class="line-1" style="margin-right: 6rpx;">{{language['已出货数量']||'已出货数量'}}：{{item.logisticsqty||'0'}}</text>
                    </view>
                    <view class="subfield">
                        <text class="line-1" style="margin-right: 6rpx;">{{language['已备货数量']||'已备货数量'}}：{{item.bookedqty||'0'}}</text>
                    </view>
                    <view class="subfield">
                        <text class="line-1" style="margin-right: 6rpx;">{{language['退货数量']||'退货数量'}}：{{item.invoiceamount||'0'}}</text>
                        <text class="line-1" style="margin-right: 6rpx;">{{language['退货金额']||'退货金额'}}：{{item.writeoffamount||' --'}}</text>
                    </view>
                </block>
                <view style="margin-top: 8rpx;">
                    {{language['单价']||'单价'}}：
                    <text class="price">{{item.defaultprice}}{{language['元']||'元'}}</text>
                    <text class="old-price" wx:if="{{item.isShowOldPrice}}">{{item.marketprice}}{{language['元']||'元'}}</text>
                </view>
            </view>
            <view wx:if="{{!disabled}}" class="delete" data-item="{{item}}" catchtap="deleteProduct">
                <text class="iconfont icon-guanlian-shanchu" />
            </view>
        </view>
    </navigator>
    <view class="bot">
        <view class="row">
            <view>
                <view class="label">{{language['数量']||'数量'}}<text wx:if="{{item.auxunit}}">({{item.auxunit}})</text>：</view>
                <input disabled='{{disabled}}' bindtap="isEdit" class="input" style="width: 180rpx;" type="digit" value="{{item.qty}}" data-name="qty" data-data="{{item}}" bindblur="onBlur" />
            </view>
            <view class="money">
                {{language['金额']||'金额'}}：<text>{{item.defaultamount}}{{language['元']||'元'}}</text>
            </view>
        </view>

        <view class="row">
            <view style="width: 100%;">
                <view class="label">{{language['产品备注']||'产品备注'}}:</view>
                <input disabled='{{disabled}}' bindtap="isEdit" class="input" style="flex: 1; text-align: left;padding-left: 10rpx;" type="text" placeholder="{{language['备注']||'备注'}}" value="{{item.remarks}}" data-name="remarks" data-data="{{item}}" bindblur="onBlur" />
            </view>
        </view>

        <view wx:if="{{item.delivery!=0}}" class="row">
            <view>
                <view class="label">{{language['期望交期']||'期望交期'}}：</view>
                <view class="input" style="width: 240rpx;display: flex;justify-content: center;" data-item="{{item}}" bindtap="calculate">
                    <text wx:if="{{item.needdate }}">{{item.needdate}}</text>
                    <text wx:else style="color: #999;">{{language['期望交期']||'期望交期'}}</text>
                </view>

                <!-- <picker disabled='{{disabled}}' bindtap="isEdit" start="{{item.start}}" end="{{item.end}}" 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">
                {{language['回复交期']||'回复交期'}}：{{item.deliverydate || ' --'}}
            </view>
        </view>
    </view>
</view>
<block wx:if="{{list.length==0}}">
    <Yl_Empty />
    <view style="height: 150rpx;" />
</block>
<van-popup show="{{ popupShow }}" position="bottom" bind:click-overlay="closePopup" z-index='999999999'>
    <van-datetime-picker type="date" value="{{ changeDate.minDate }}" min-date="{{ changeDate.minDate }}" bind:confirm='onConfirm' bind:cancel='closePopup' />
</van-popup>

<wxs src="../../../../../utils/nominalpressure.wxs" module="join"></wxs>