<wxs src='../../../../utils/numberFormat.wxs' module="numberFormat"></wxs>
<wxs src='../../../../utils/wxmlUtil.wxs' module="wxmlUtil"></wxs>
<van-dialog id="van-dialog" />
<loading wx:if="{{loading}}" loadingName="加载中" backgroundColor="#f2f2f2;" opacity="0.8"></loading>

<!-- 客户信息组件 -->
<view class="detail-top" >

  <view class="detail-top-sup">
    {{item.supName}}
  </view>
  <view class="detail-top-sup">退货信息</view>
  <view class="detail-top-color" style="display: flex;">

    <view>
      {{item.staffName}}
    </view>
    <view style="padding-left: 20rpx;">
      {{item.orgName}}
    </view>
  </view>
  <view class="detail-top-color"> {{ wxmlUtil.addressToIndexOf(item.returnAddress)}}</view>


</view>


<view class="dk-card-outer-class-1">
  <!--对象-->
  <view class="dk-card-class">
    <view style="display: flex;padding:10rpx;">
      <view style="background-color:#F4F9FF;width:50%;margin:10rpx;padding:10rpx;border-radius: 16rpx;">
        <view style="font-size:13px;text-align: center;">退货前总额</view>
      <dk-cell left="0rpx" center="center" fontSize="13" contentFontSize="18" contentColor="#1B365D" spaceWidth="0" contentFontWeight="700" content="{{beforeSumAmount}}"></dk-cell></view>
      <view style="background-color:#F4F9FF;width: 50%;margin:10rpx;padding:10rpx;border-radius: 16rpx;">
        <view style="font-size:13px;text-align: center;">退货后总额</view>
      <dk-cell left="0rpx" center="center" fontSize="15" contentFontSize="18" contentColor="#1B365D" spaceWidth="0" contentFontWeight="700" content="{{afterSumAmount}}"></dk-cell>
      </view>
    </view>
  </view>
</view>


<dk-form-bill id="dk-form-bill" routeObjName="{{routeObjName}}" bind:onStepper="onChangeStepper" cardList="{{cardList}}"  titleCol="skuModel" showPopFlag="{{true}}" descCol="skuName" priceCol="priceReturn" quantityCol="returnQty"   iconCol="imagesUrl"  quantityMin="returnQtyMin" quantityMax="returnQtyMax" stepperFlag="{{item.outStatus !=='出库状态-已出库' ?  true : false}}" sumAmountCol="sumReturnAmt" contentObj="{{contentObj}}" model:value="{{formData}}" popType="sale" priceTitle=""  stepperFlag="{{true}}">
</dk-form-bill>

<!-- 空高度  -->
<view style="width: 100%;height: 200px;"></view>

<!-- <view style="position: fixed;bottom: 230rpx;right: 30rpx;" >
  <view data-item="{{item}}" bind:tap="toDetail" class="btn-add-class">
    <van-icon name="edit" color="#FFFFFF" size="60rpx" />
  </view>
</view> -->

<!-- 编辑  -->
<view  style="position: fixed;bottom: 230rpx;right: 30rpx;z-index: 99;" data-item="{{item}}"  bindtap="toDetail">
  <image src="{{imageUrl + 'edit.png'}} " class="edit-class"  />
</view>

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