{include file="public/seller_top" /} 
<div class="seller_main w1200">
    {include file="public/seller_left" /}
    <div class="seller_right">
        <div class="seller_items">
            {include file="public/seller_items" /}
        </div>
        
        
        <div class="dssc-flow-layout">
  <div class="dssc-flow-container">
    <div class="title">
      <h3>退货退款服务</h3>
    </div>
    <div id="saleRefundReturn">
      <div class="dssc-flow-step">
        <dl class="step-first current">
          <dt>买家申请退货</dt>
          <dd class="bg"></dd>
        </dl>
        <dl class="<?php echo $return['seller_time'] > 0 ? 'current':'';?>">
          <dt>商家处理退货申请</dt>
          <dd class="bg"> </dd>
        </dl>
        <dl class="<?php echo ($return['ship_time'] > 0 || $return['return_type']==1) ? 'current':'';?>">
          <dt>买家退货给商家</dt>
          <dd class="bg"> </dd>
        </dl>
        <dl class="<?php echo $return['admin_time'] > 0 ? 'current':'';?>">
          <dt>确认收货，平台审核</dt>
          <dd class="bg"> </dd>
        </dl>
      </div>
      <div class="dssc-form-default">
        <h3>买家退货退款申请</h3>
        <dl>
          <dt>退货退款编号：</dt>
          <dd><?php echo $return['refund_sn']; ?> </dd>
        </dl>
        <dl>
          <dt>申请人（买家）：</dt>
          <dd><?php echo $return['buyer_name']; ?></dd>
        </dl>
        <dl>
          <dt>{$Think.lang.return_buyer_message}{$Think.lang.ds_colon}</dt>
          <dd> <?php echo $return['reason_info']; ?> </dd>
        </dl>
        <dl>
          <dt>退款金额：</dt>
          <dd>{$Think.lang.currency}<?php echo $return['refund_amount']; ?> </dd>
        </dl>
        <dl>
          <dt>{$Think.lang.return_order_return}{$Think.lang.ds_colon}</dt>
          <dd><?php echo $return['return_type']==2 ? $return['goods_num']:'无'; ?></dd>
        </dl>
        <dl>
          <dt>退货说明：</dt>
          <dd> <?php echo $return['buyer_message']; ?> </dd>
        </dl>
        <dl>
          <dt>凭证上传：</dt>
          <dd>
            <?php if (is_array($pic_list) && !empty($pic_list)) { ?>
            <ul class="dssc-evidence-pic">
              <?php foreach ($pic_list as $key => $val) { ?>
              <?php if(!empty($val)){ ?>
              <li><a href="<?php echo UPLOAD_SITE_URL.'/'.ATTACH_PATH.'/refund/'.$val;?>" nctype="nyroModal" rel="gal" target="_blank"> <img class="show_image" src="<?php echo UPLOAD_SITE_URL.'/'.ATTACH_PATH.'/refund/'.$val;?>"></a></li>
              <?php } ?>
              <?php } ?>
            </ul>
            <?php } ?>
          </dd>
        </dl>
        <form id="post_form" method="post" action="{:url('/home/sellerreturn/edit',['return_id'=>$return.refund_id])}">
          <input type="hidden" name="form_submit" value="ok" />
          <h3>商家处理意见</h3>
          <dl>
            <dt><i class="required">*</i>{$Think.lang.return_seller_confirm}{$Think.lang.ds_colon}</dt>
            <dd>
              <div>
                <label class="mr20">
                  <input type="radio" class="vm" name="seller_state" value="2" />
                  同意</label>
                <label>
                  <input name="return_type" class="vm" type="checkbox" value="1" />
                  弃货</label>
                <p class="hint">如果选择弃货，买家将不用退回原商品，提交后直接由管理员确认退款。</p>
              </div>
              <div class="mt10">
                <label>
                  <input type="radio" class="vm" name="seller_state" value="3" />
                  拒绝</label>
              </div>
              <span class="error"></span>
            </dd>
          </dl>
          <dl>
            <dt><i class="required">*</i>{$Think.lang.return_message}{$Think.lang.ds_colon}</dt>
            <dd>
              <textarea name="seller_message" rows="2" class="textarea w300"></textarea>
              <span class="error"></span>
              <p class="hint"> 如是同意退货，请及时关注买家的发货情况，并进行收货（发货5天后可以选择未收到，超过7天不处理按弃货处理）。<br>
              </p>
            </dd>
          </dl>
          <div class="bottom">
              <label class="submit-border">
                <a class="submit" id="confirm_button">{$Think.lang.ds_ok}</a>
              </label>
              <label class="submit-border">
                <a href="javascript:history.go(-1);" class="submit"><i class="icon-reply"></i>返回列表</a>
              </label>
          </div>
        </form>
      </div>
    </div>
  </div>
  {include file="public/seller_refund_right" /}
</div>
<script type="text/javascript">
$(function(){
    $("#confirm_button").click(function(){
        $("#post_form").submit();
    });
    $('#post_form').validate({
		errorPlacement: function(error, element){
			error.appendTo(element.parentsUntil('dl').find('span.error'));
        },
         submitHandler: function(form) {
			    	ajaxpost('post_form', '', '', 'onerror');
				 },
        rules : {
            seller_state : {
                required   : true
            },
            seller_message : {
                required   : true
            }
        },
        messages : {
            seller_state  : {
                required  : '<i class="icon-exclamation-sign"></i>{$Think.lang.return_seller_confirm_null}'
            },
            seller_message  : {
                required   : '<i class="icon-exclamation-sign"></i>{$Think.lang.return_message_null}'
            }
        }
	    });
});
</script>
        
        
        
        
        
        
    </div>
</div>
{include file="public/mall_footer" /}