refundApply.wxml 12.3 KB
<!--packageWorkspace/pages/refundApply/refundApply.wxml-->
<wxs src="../../refund.wxs" module="filter" />
<view class="apply-content">
  <view class="status-box">
    <block wx:if="{{refundPayType != 2}}">
      <review-status infoData="{{infoData}}"></review-status>
    </block>
    <block wx:else>
      <label-refund-status infoData="{{infoData}}"></label-refund-status>
    </block>
  </view>
  <view class="form-item">
    <view wx:for="{{userInfo.loginRole == 3 ? roleMessageObj : messageObj}}" wx:key="index">
      <gl-cell required="{{ item.required }}" border valueAlign="right" label="{{item.label}}" requiredAfter value="{{infoData[item.value]}}" labelWidth="var(--fontSize280)">
      </gl-cell>
    </view>
  </view>
  <view class="form-item">
    <view class="item_title">退款明细</view>
    <view class="choose_box">
      <block wx:if="{{(infoData.afterStatus === '' && !filter.filterShowBtn(infoData.subOrderList).length) || (infoData.afterStatus == 5 && userInfo.loginRole != 3 && filter.filterOrderStatus(infoData) && !filter.filterShowBtn(infoData.subOrderList).length) || infoData.refundType == 1}}">
        <view class="radio_box">
          <block wx:if="{{infoData.refundType == 1}}">
            <image src="/components/images/radio.png" />
          </block>
          <block wx:else>
            <view class="arc" bindtap="chooseRefundType" data-type="1" />
          </block>
          <view class="radio_label" bindtap="chooseRefundType" data-type="1">全额退款</view>
          <view class="sub_order_box" wx:if="{{infoData.refundType == 1}}">
            <view class="item" wx:for="{{infoData.subOrderList}}" wx:key="index">
              <view class="left">
                <view class="circle"></view>
              </view>
              <view class="right">
                <view class="name">
                  <view>
                    <text class="name_item">{{item.upgradeGoodsName}}</text>
                  </view>
                </view>
                <view class="alias" wx:if="{{item.upgradeGoodsAlias}}">{{item.upgradeGoodsAlias}}</view>
                <view class="price-box">
                  <view class="price">支付金额:¥{{item.totalPrice}}</view>
                  <view class="refund_price">申请退款:¥{{item.totalPrice}}</view>
                </view>
              </view>
            </view>
            <view class="computed_price">
              <view class="label">可选可退总价</view>
              <view class="value">¥{{allTotalPrice}}</view>
            </view>
          </view>
        </view>
      </block>
      <block wx:if="{{infoData.afterStatus === '' || (infoData.afterStatus == 5 && userInfo.loginRole != 3 && filter.filterOrderStatus(infoData)) || infoData.refundType == 2}}">
        <view class="radio_box">
          <block wx:if="{{infoData.refundType == 2}}">
            <image src="/components/images/radio.png" />
          </block>
          <block wx:else>
            <view class="arc" bindtap="chooseRefundType" data-type="2"/>
          </block>
          <view class="radio_label" bindtap="chooseRefundType" data-type="2">部分退款</view>
          <view class="sub_order_box {{!filter.filterRefundDisabled(infoData, userInfo) ? 'set_sub_order_box' : ''}}" wx:if="{{infoData.refundType == 2}}">
            <block wx:for="{{infoData.subOrderList}}" wx:key="index">
              <view class="item" wx:if="{{item.status != 2}}">
                <view class="left">
                  <view class="check_box" wx:if="{{!filter.filterRefundDisabled(infoData, userInfo)}}" catchtap="checkSubOrder" data-item="{{item}}" data-index="{{index}}">
                    <block wx:if="{{item.checked}}">
                      <image src="{{IMG_URL}}check.png" mode=""/>
                    </block>
                    <block wx:else>
                      <view class="arc"></view>
                    </block>
                  </view>
                  <view wx:else class="circle"></view>
                </view>
                <view class="right">
                  <view class="name">
                    <view>
                      <text class="name_item">{{item.upgradeGoodsName}}</text>
                    </view>
                  </view>
                  <view class="alias" wx:if="{{item.upgradeGoodsAlias}}">{{item.upgradeGoodsAlias}}</view>
                  <block>
                    <view class="price-box">
                      <view class="price">支付金额:¥{{item.totalPrice}}</view>
                      <view wx:if="{{!filter.filterRefundDisabled(infoData, userInfo) && item.checked}}" class="refund_price">
                        退款金额
                        <view class="price">
                          <text style="color: {{item.refundPrice !== '' ? '#222222' : '#B6B6B8'}}">¥</text>
                          <input type="digit" value="{{ item.refundPrice }}" bindinput="changePrice" placeholder-style="color: #B6B6B8;" placeholder="请输入" data-index="{{ index }}" class="{{item.errorZero || item.errorTarget ? 'error' : ''}}" always-embed />
                        </view>
                      </view>
                      <view wx:if="{{filter.filterRefundDisabled(infoData, userInfo)}}" class="refund_price">申请退款:¥{{item.refundAmount}}</view>
                    </view>
                  </block>
                </view>
              </view>
            </block>
            <view class="computed_price" wx:if="{{refundablePrice}}">
              <view class="label">可选可退总价</view>
              <view class="value">¥{{refundablePrice}}<text wx:if="{{filter.filterShowBtn(infoData.subOrderList).length}}">,订单支付总额 ¥{{allTotalPrice}}</text></view>
            </view>
            <view class="refund_log" wx:if="{{infoData.refundType == 2 && infoData.refundedOrderList.length}}">
              <view class="log_item" wx:for="{{infoData.refundedOrderList}}" wx:key="index">
                <view class="title">退款记录{{index + 1}}:<view class="time" wx:if="{{item.refundTime}}">{{item.refundTime}}</view></view>
                <view class="sub_item" wx:for="{{item.refundApplyDetailList}}" wx:for-item="li" wx:for-key="idx" wx:key="idx">
                  <view>{{li.upgradeGoodsName}}支付金额 ¥{{li.totalPrice}},申请退款 ¥{{li.refundAmount}}</view>
                </view>
                <view class="sub_item" wx:if="{{item.refundTime}}">实际退款: ¥{{item.payAmount}}</view>
              </view>
            </view>
          </view>
        </view>
      </block>
    </view>
    <block wx:if="{{refundPayType != 2}}">
      <gl-cell border valueAlign="right" label="收款人姓名" requiredAfter labelWidth="var(--fontSize280)" required>
        <input placeholder="点击输入" class="input" maxlength="20" placeholder-class="placeholder-class" value="{{ infoData.payee }}" bindinput="input" data-name="payee" disabled="{{ filter.filterRefundDisabled(infoData, userInfo) }}" always-embed></input>
      </gl-cell>
      <gl-cell border valueAlign="right" label="开户行名称" requiredAfter labelWidth="var(--fontSize280)" required>
        <input placeholder="点击输入" class="input" maxlength="50" placeholder-class="placeholder-class" value="{{ infoData.openAccBankName }}" bindinput="input" data-name="openAccBankName" disabled="{{ filter.filterRefundDisabled(infoData, userInfo) }}" always-embed></input>
      </gl-cell>
      <gl-cell border valueAlign="right" label="开户支行名称" requiredAfter labelWidth="var(--fontSize280)" required>
        <input placeholder="点击输入" class="input" maxlength="50" placeholder-class="placeholder-class" value="{{ infoData.openAccBranchBankName }}" bindinput="input" data-name="openAccBranchBankName" disabled="{{ filter.filterRefundDisabled(infoData, userInfo) }}" always-embed></input>
      </gl-cell>
      <gl-cell border valueAlign="right" label="银行卡号" requiredAfter labelWidth="var(--fontSize280)" required>
        <input placeholder="点击输入" class="input" type="number" maxlength="30" placeholder-class="placeholder-class" value="{{ infoData.bankAccountNo }}" bindinput="input" data-name="bankAccountNo" disabled="{{ filter.filterRefundDisabled(infoData, userInfo) }}" always-embed></input>
      </gl-cell>
      <view class="reason_box">
        <view class="label">退款原因说明</view>
        <view class="textarea_box">
          <textarea value="{{ infoData.remark }}" disabled="{{filter.filterRefundDisabled(infoData, userInfo)}}" placeholder="请输入 (500字以内)" placeholder-class="placeholder-class" class="textarea" maxlength="500" bindinput="input" data-name="remark" />
        </view>
      </view>
      <view class="upload_box" wx:if="{{infoData.afterStatus === '' || (infoData.afterStatus == 5 && !filter.filterRefundDisabled(infoData, userInfo)) || infoData.attachmentList.length}}">
        <view class="label">上传图片</view>
        <view class="label-tips first">原厂延保退款:退款须告知门店,请上传沟通确认凭证截图</view>
        <view class="label-tips">嘀加权益退款:退款需上传自愿退款协议及告知客户退款后服务作废凭证截图</view>
        <view class="content_box">
          <view class="image_content" wx:for="{{infoData.attachmentList}}" wx:key="index">
            <image bindtap="previewImage" class="image_box" data-url="{{infoData.attachmentList}}" data-index="{{index}}" src="{{item.fileUrl}}"/>
            <image class="del_icon" wx:if="{{!filter.filterRefundDisabled(infoData, userInfo)}}" src="{{IMG_URL}}zy_paf_del_icon.png" mode="" bindtap="deleteFile" data-index="{{index}}" />
          </view>
          <view class="upload_content" bindtap="uploadImages" wx:if="{{!filter.filterRefundDisabled(infoData, userInfo) && infoData.attachmentList.length < 5}}">
            <image src="{{IMG_URL}}zy-upload_icon.png"></image>
            <text class="text">最多5张</text>
          </view>
        </view>
      </view>
    </block>
    <block wx:else>
      <view class="upload_box">
        <view class="label">客户退款回单<text class='required'>*</text></view>
        <view class="label-tips"></view>
        <view class="content_box">
          <view class="image_content" wx:for="{{infoData.attachmentList}}" wx:key="index">
            <image bindtap="previewImage" class="image_box" data-url="{{infoData.attachmentList}}" data-index="{{index}}" src="{{item.fileUrl}}"/>
            <image class="del_icon" wx:if="{{!filter.filterRefundDisabled(infoData, userInfo)}}" src="{{IMG_URL}}zy_paf_del_icon.png" mode="" bindtap="deleteFile" data-index="{{index}}" />
          </view>
          <view class="upload_content" bindtap="uploadImages" wx:if="{{!filter.filterRefundDisabled(infoData, userInfo) && infoData.attachmentList.length < 5}}">
            <image src="{{IMG_URL}}zy-upload_icon.png"></image>
            <text class="text">最多5张</text>
          </view>
        </view>
      </view>
    </block>
  </view>
  <!-- 区域运营审核 -->
  <view class="review_box" wx:if="{{infoData.beforeStatus == 6 && infoData.afterStatus == 7 && userInfo.loginRole == 3 && infoData.auditableFlag == 'Y'}}">
    <view class="btn pass_btn" bindtap="review" data-type="1">审核通过</view>
    <view class="btn no_pass_btn" bindtap="review" data-type="2">审核不通过</view>
  </view>
</view>
<view class="btns {{ isFullSucreen?'isFullSucreen-btn':'' }}" wx:if="{{!filter.filterRefundDisabled(infoData, userInfo)}}">
  <view class="btns-con">
    <view class="confirm text-center" bindtap="submit">{{infoData.afterStatus === '' ? '提交' : '重新提交'}}</view>
  </view>
</view>
<view class="repeal-modal" wx:if="{{ repealVisible }}">
  <view class="repeal-wrap">
    <view class="title">审核不通过原因</view>
    <view class="textarea-wrap">
      <textarea class="textarea" maxlength="{{ 100 }}" value="{{ disapprovalReason }}" bindinput="textareaInput" focus="{{ true }}" placeholder-style="color: #BBBBBB; font-size: var(--fontSize28);" placeholder="请输入退款审核不通过原因" ></textarea>
    </view>
    <view class="footer">
      <view class="btn cancel_btn" bindtap="cancelRepeal">取消</view>
      <view class="btn confirm_btn" bindtap="confirmRepeal">确定</view>
    </view>
  </view>
</view>
<block wx:if="{{loadingFlag}}">
  <van-popup show="{{true}}" close-on-click-overlay="{{false}}" >
    <van-loading custom-class="loading-box" color="#FFFFFF" type="spinner" size="45px" vertical>上传中</van-loading>
  </van-popup>
</block>