<!--home/components/install/install.wxml-->
<!-- <view class="content-list-warehouse">
  <view class="content-address-warehouse">
    <picker bindchange="bindWarehourseList" range="{{warehourseList}}" range-key='name'>
      <view class="content-picker-warehouse">
        <text style="color: red;">*</text>所属仓库
        <view style="flex: 1; margin-left: 20rpx;">
          {{warehourseName}}
        </view>
        <image src="../../img/arrow.png" class="content-img-right-warehouse" />
      </view>
    </picker>
  </view>
</view> -->

<!-- 并网箱 -->
<view class="content">
  <view class="content-title">
    <view class="content-title-flex">
      并网箱
    </view>    
  </view>
  <view class="content-line"></view>
  <view class="content-list-view-delete" wx:for="{{cagesList}}" wx:key="index">
    <view class="content-list-view">
      <view class="content-list">
        物料号
        <text style="margin-left: 20rpx;">{{item.code}}</text>
      </view>
      <view class="content-list">
        物料名称
        <text style="margin-left: 20rpx;">{{item.name}}</text>
      </view>
      <view class="content-list">
        物料规格
        <text style="margin-left: 20rpx;">{{item.spec}}</text>
      </view>
      <view class="content-list">
        使用数量
        <text style="margin-left: 20rpx;">{{item.amount}}</text>
      </view>
    </view>    
  </view>
</view>

<!-- 支架 -->
<view class="content">
  <view class="content-title">
    <view class="content-title-flex">
      支架
    </view>    
  </view>
  <view class="content-line"></view>
  <view class="content-list-view-delete" wx:for="{{supportList}}" wx:key="index">
    <view class="content-list-view">
      <view class="content-list">
        物料号
        <text style="margin-left: 20rpx;">{{item.code}}</text>
      </view>
      <view class="content-list">
        物料名称
        <text style="margin-left: 20rpx;">{{item.name}}</text>
      </view>
      <view class="content-list">
        物料规格
        <text style="margin-left: 20rpx;">{{item.spec}}</text>

      </view>
      <view class="content-list">
        使用数量
        <text style="margin-left: 20rpx;">{{item.amount}}</text>
      </view>
    </view>
  </view>
</view>

<!-- 逆变器 -->
<view class="content">
  <block wx:for="{{nbqList}}" wx:key="pIndex" wx:for-index="pIndex" wx:for-item="pitem">
  <view class="content-title">
    <view class="content-title-flex">
      逆变器(<block wx:if="{{pitem.materialModel}}">{{pitem.materialModel}}|</block>{{pitem.model}}+{{pitem.num}}台)
    </view>   
  </view>
  <view class="content-line"></view>
  <view class="content-list-view-delete" wx:for="{{converterList}}" wx:for-index="cIndex" wx:key="index" wx:if="{{item.spec == pitem.model && item.model == pitem.materialModel}}">
    <view class="content-list-view">
      <view class="content-list">
        物料品牌
        <text style="margin-left: 20rpx;">{{item.materialBrand}}</text>
      </view>     
      <view class="content-list">
        物料规格
        <text style="margin-left: 20rpx;">{{item.spec}}</text>
      </view>     

      <view class="nbq-code-box"  wx:for="{{item.itemList}}" wx:for-item="itemList" wx:key="index">     
      <view class="content-list">       
        <view class="content-title-item" style="margin-left: 20rpx;">SN码</view>
        <input type="text" class="content-input" placeholder="" model:value="{{itemList.nbqSn}}" data-type="nbqSn" data-way="input" data-cind="{{cIndex}}" data-ind="{{index}}" disabled />       
      </view>
      <view class="content-list" wx:if="{{item.materialBrand=='固德威' || item.materialBrand=='爱士惟'}}">       
        <view class="content-title-item" style="margin-left: 20rpx;">验证码</view>
        <input type="text" class="content-input" placeholder="" model:value="{{itemList.yzCode}}" data-type="sn" data-way="input" data-cind="{{cIndex}}" data-ind="{{index}}" disabled />       
      </view>
      <view class="content-list">        
        <view class="content-title-item" style="margin-left: 20rpx;">通讯棒SN码</view>
        <input type="text" class="content-input" placeholder="" model:value="{{itemList.sn}}" data-way="input" data-type="sn" data-cind="{{cIndex}}" data-ind="{{index}}" disabled />        
      </view>
      </view>
    </view>
  </view>
  </block>
</view>


<!-- 组件 -->
<view class="content">
  <view class="content-title">
    <view class="content-title-flex">
      组件(<block wx:if="{{zjMap.materialModel}}">{{zjMap.materialModel}}|</block>{{zjMap.model}}Wp+{{zjMap.num}}片)
    </view>    
  </view>
  <view class="content-line"></view>
  <view class="content-list-view-delete" wx:for="{{componentList}}" wx:key="index">
    <view class="content-list-view">
      <!-- <view class="content-list">
        物料号
        <text style="margin-left: 20rpx;">{{item.code}}</text>
      </view>
      <view class="content-list">
        物料名称
        <text style="margin-left: 20rpx;">{{item.name}}</text>
      </view> -->
      <view class="content-list">
        物料规格
        <text style="margin-left: 20rpx;">{{item.spec}}</text>
        Wp
      </view>
      <view class="content-list">
        物料条码
      </view>
      <view class="content-list" wx:for="{{item.itemList}}" wx:for-item="itemList" wx:key="index">
        <view style="flex: 1; margin-left: 20rpx;">{{index+1}}：{{itemList.barcode}}</view>        
      </view>

    </view>
  </view>

</view>