<!-- 前台导入wxmlUtil.wxs -->
<wxs src='/utils/wxmlUtil.wxs' module="wxmlUtil"></wxs>

<loading wx:if="{{loading}}"></loading>


<view class="detail-top">
  <image class="scan-image" fit="fill" src="{{imageUrl+'/detail_sale_order.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;">
        {{itemData.supplierName?itemData.supplierName:''}}
      </view>

      <view style="z-index: 2;padding-top: 20rpx;">
        <view style="display: flex;">
          <view>
            {{itemData.orgName?itemData.orgName:''}}
          </view>
          <view style="padding-left: 20rpx;">
            {{itemData.staffName?itemData.staffName:''}}
          </view>
        </view>
      </view>
      <!-- 日期 -->
      <view 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.pickupDate?wxmlUtil.formatDate(itemData.pickupDate):'' }}
        </view>
      </view>

    </view>
  </view>
</view>

<dk-form-bill type="purInto" id="{{formName}}" routeObjName="{{routeObjName}}" cardList="{{cardList}}" titleCol="skuModel" iconCol="imagesUrl" descCol="skuName" priceCol="priceInto" pupPriceCol="sumPrice" quantityCol="{{intoStatusflag?'intoingQty':'intoQty'}}" sumAmountCol="itemAmt" sumQuantityCol="itemQty" contentObj="{{contentObj}}" model:value="{{formData}}" popContent="{{popContent}}" bind:chooseData="chooseData" popType="sale" priceTitle="{{$t['referencePrice']+'：'}}" bind:delItem="setGoods" bind:setGoods="setGoods" bind:editItems="setGoods">
</dk-form-bill>

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



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

<!-- 底部编辑 以后要做 todo......... -->
<!-- <view wx:if="{{itemData.flgValid}}" style="position: fixed;bottom: 230rpx;right: 30rpx;">
  <view data-item="{{itemData}}"  bind:tap="toEdit" class="btn-add-class">
    <van-icon name="edit" color="#FFFFFF" size="60rpx" />
  </view>
</view>
  -->
<!-- 编辑  -->
<view wx:if="{{itemData.flgValid}}" style="position: fixed;bottom: 230rpx;right: 30rpx;z-index: 99;" data-item="{{itemData}}" bindtap="toEdit">
  <image src="{{imageUrl + 'edit.png'}} " class="edit-class" />
</view>