<van-dialog id="van-dialog" />
<loading wx:if="{{loading}}"></loading>
<view wx:if="{{formType !== 'add'  && formMode !== 'add' && formMode !== 'edit' }}">
  <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"> {{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>
</view>

<dk-form-bill id="{{formName}}" routeObjName="{{routeObjName}}" type="purReturn" cardList="{{cardList}}"  titleCol="skuModel" showPopFlag="{{showPopFlag}}" descCol="skuName" priceCol="priceReturn" quantityCol="itemQty" quantityMin="itemQtyMin" quantityMax="itemQtyMax" sumAmountCol="sumReturnAmt" bind:chooseData="chooseData" saleStaffAndOrgFlag="{{true}}" contentObj="{{contentObj}}" model:value="{{formData}}" popType="sale" bind:setGoods="setGoods"  iconCol="imagesUrl"  bind:delItem="delItem" staff="staff" org="org" bind:onStepper="onChangeStepper" quantityMin="itemQtyMin" quantityMax="itemQtyMax" stepperFlag="{{stepperFlag}}" cardContentList="{{cardContentList}}" quantityRedTitle="可售量：" quantityRedCol="usableQty" swipeDisabled="swipeDisabled" quantityRedColFlagKey="usableQtyInsufficientFlag" goodsTagText="{{goodsTagText}}" goodsTagColor="{{goodsTagColor}}">
</dk-form-bill>



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

<!-- 备注 -->
<van-popup show="{{ remarkFlag }}" style="z-index: 999;" round="{{true}}" position="bottom" bind:close="closeChoosedItemInfo_remark">
  <van-cell-group>
    <van-cell border="{{ true }}">
      <view style="width:100%;font-size:5vw;color:#34495e;text-align:left;">
        备注修改
      </view>
    </van-cell>
    <van-divider />
    <van-field label="备注" bind:focus="clearZero" type="quantity" bind:change="changeRemarksField" data-item="{{remarks}}" data-key="remarks" value="{{remarks}}" input-align="right" placeholder="请输入备注" border="{{ true }}" />
    <view style="height: 50px;"></view>
    <view style="padding:35rpx 34rpx 62rpx 34rpx;">
      <van-button size="large" round color="#1B365D" custom-style="height:88rpx;" bind:click="updateToChooseList_remark" type="default">确定
      </van-button>
    </view>

  </van-cell-group>
</van-popup>
<van-dialog id="van-dialog" />
<!-- 新建按钮 -->
<dk-save-button model:value="{{btnFormData}}" btnAutoWidthFlag="{{false}}" btnRightFlag="{{true}}" buttonList="{{buttonList}}" contentList="{{contentList}}" bind:open="save" bind:change="saveChange"></dk-save-button>