<!-- 前台导入wxmlUtil.wxs -->
<wxs src='/utils/wxmlUtil.wxs' module="wxmlUtil"></wxs>
<loading wx:if="{{loading}}"></loading>
<!-- 蓝色信息相关 -->
<view wx:if="{{item.intoType != $t['otherIntoType'] && item.intoType != $t['firstIntoType']}}" >
  <view class="detail-top" data-item="{{item}}">
    <image class="scan-image" fit="fill" src="{{imageUrl+'/detail_sale_order.png'}}"></image>

    <!-- <image catchtap="open" data-name="editOrder" data-item="{{item}}" class="edit-image" fit="fill" src="{{imageUrl+'/order_billing_detail_02.png'}}"></image> -->
    <view class="detail-top-sup" style="display: flex;">
      <view style="width: 10%;">
        <image class="scan-image-icon" fit="fill" src="{{imageUrl+'/order_billing_detail_01.png'}}"></image>
      </view>

      <view>
        <view style="display: flex;">
          {{item.intoType ==  $t['purIntoType']?itemData.supplierName:itemData.cusName}}
        </view>

        <view style="z-index: 2;padding-top: 20rpx;">
          <view style="display: flex;">
            <view>
              {{item.orgName?item.orgName:''}}
            </view>
            <view style="padding-left: 20rpx;">
              {{itemData.staffName?itemData.staffName:''}}
            </view>
          </view>
        </view>
        <!-- 日期 -->
        <view wx:if="{{item.intoType == $t['purIntoType']}}" style="display: flex; width: 100%; padding-top: 16rpx;padding-bottom: 15rpx;padding-right: 15rpx; justify-content: space-between; font-size: 24rpx;">
          <view style="display: flex;  line-height: 36rpx;">
            {{$t['makingTime']}}：{{ itemData.makeTime?wxmlUtil.formatDate(itemData.makeTime):'' }}
          </view>
          <view style="display: flex;  line-height: 36rpx;" catchtap="openData">
            {{$t['intoDate']}}：{{ itemData.intoDate?itemData.intoDate:'' }}
          </view>
        </view>

         <!-- 日期 -->
         <view wx:if="{{item.outType == $t['saleReturnIntoType']}}" style="display: flex; width: 100%; padding-top: 16rpx;padding-bottom: 15rpx;padding-right: 15rpx; justify-content: space-between; font-size: 24rpx;">
          <view style="display: flex;  line-height: 36rpx;">
             {{ itemData.returnAddress?itemData.returnAddress:'' }}
          </view>
          
        </view>
      </view>
    </view>
  </view>
</view>

<dk-form-bill id="{{formName}}" type="purInto"  routeObjName="{{routeObjName}}" readonly="{{item.intoStatus == $t['inBoundedIntoStatus']}}" cardList="{{cardList}}"   titleCol="skuModel" descCol="skuName" priceCol="priceInto" pupPriceCol="sumPrice" iconCol="imagesUrl"  quantityCol="{{quantityCol}}" sumAmountCol="itemAmt" sumQuantityCol="{{sumQuantityCol}}" contentObj="{{contentObj}}" model:value="{{formData}}" popContent="{{popContent}}" bind:chooseData="chooseData" popType="sale" bind:editItems="setGoods" table="{{table}}" bind:delItem="setGoods" bind:setGoods="setGoods"  >
</dk-form-bill>

<view style="height: 200rpx;"></view>

<!-- 底部加号 -->
<view wx:if="{{flgEdit}}" style="position: fixed;bottom: 230rpx;right: 30rpx;z-index: 99;" bindtap="toEdit">
  <image src="{{imageUrl + 'edit.png'}} " class="edit-class"  />
</view>

<!-- 新建按钮 -->
<dk-save-button btnAutoWidthFlag="{{false}}" btnRightFlag="{{true}}" buttonList="{{buttonList}}" contentList="{{contentList}}" bind:open="save"></dk-save-button>