|
@@ -76,6 +76,7 @@
|
76
|
76
|
<th width="2%">是否复购</th>
|
77
|
77
|
<th width="2%">是否退补单</th>
|
78
|
78
|
<th width="4%">应该退补差价</th>
|
|
79
|
+ <th width="4%">退补付款方式</th>
|
79
|
80
|
<th width="5%">退补备注</th>
|
80
|
81
|
<th width="5%">退补时间</th>
|
81
|
82
|
<th width="4%">所属销售</th>
|
|
@@ -146,6 +147,16 @@
|
146
|
147
|
<input id="refund_price_2{{$a['id']}}" style="display: none" type='text' name='refund_price' value="{{$a['refund_price']}}" onblur="change_refund_price({{$a['id']}})" />
|
147
|
148
|
<span class="sort_icon" hidden onClick='change_refund_price_click("{{$a['id']}}","{{$a['cost']}}")' style="cursor:pointer"><i class="Hui-iconfont"></i></span>
|
148
|
149
|
</td>
|
|
150
|
+
|
|
151
|
+ <td class ="change_logistics_id">
|
|
152
|
+ <p id="refund_type_1{{$a['id']}}">{{$a['refund_type']}}</p>
|
|
153
|
+ <select id="refund_type_2{{$a['id']}}" style="display: none" name='refund_type' value="{{$a['refund_type']}}" onchange="change_refund_type({{$a['id']}})">
|
|
154
|
+ <option value='0'>-请选择-</option>
|
|
155
|
+ <option value='1'>微信支付</option>
|
|
156
|
+ <option value='2'>付款码支付</option>
|
|
157
|
+ </select>
|
|
158
|
+ <span class="sort_icon" hidden onClick='change_refund_type_click("{{$a['id']}}","{{$a['cost']}}")' style="cursor:pointer"><i class="Hui-iconfont"></i></span>
|
|
159
|
+ </td>
|
149
|
160
|
|
150
|
161
|
<td class ="change_logistics_id">
|
151
|
162
|
<p id="refund_note_1{{$a['id']}}">{{$a['refund_note']}}</p>
|
|
@@ -597,6 +608,35 @@
|
597
|
608
|
});
|
598
|
609
|
}
|
599
|
610
|
|
|
611
|
+ function change_refund_type_click(id, refund_type){
|
|
612
|
+ $("#refund_type_1"+id).hide();
|
|
613
|
+ $("#refund_type_2"+id).show();
|
|
614
|
+ $("#refund_type_2"+id).focus();
|
|
615
|
+ }
|
|
616
|
+
|
|
617
|
+ function change_refund_type(id){
|
|
618
|
+ var refund_type = $("#refund_type_2"+id).val();
|
|
619
|
+ $.ajax({
|
|
620
|
+ url: '/admin/order/editLogisticsId?id='+id+'&refund_type='+refund_type,
|
|
621
|
+ type: 'get',
|
|
622
|
+ dateType: 'json',
|
|
623
|
+ success:function(msg){
|
|
624
|
+ if(refund_type==1){
|
|
625
|
+ refund_type = '微信支付';
|
|
626
|
+ }
|
|
627
|
+ if(refund_type==2){
|
|
628
|
+ refund_type = '付款码支付';
|
|
629
|
+ }
|
|
630
|
+ if(refund_type==0){
|
|
631
|
+ refund_type = '';
|
|
632
|
+ }
|
|
633
|
+ $("#refund_type_1"+id).html(refund_type);
|
|
634
|
+ $("#refund_type_1"+id).show();
|
|
635
|
+ $("#refund_type_2"+id).hide();
|
|
636
|
+ }
|
|
637
|
+ });
|
|
638
|
+ }
|
|
639
|
+
|
600
|
640
|
function order_refund(id){
|
601
|
641
|
$.ajax({
|
602
|
642
|
url: '/admin/order/setrefund/'+id,
|