|
@@ -84,6 +84,7 @@
|
84
|
84
|
<th width="5%">卖家备注</th>
|
85
|
85
|
<th width="5%">发货备注</th>
|
86
|
86
|
<th width="5%">售后费用</th>
|
|
87
|
+ <th width="5%">售后原因</th>
|
87
|
88
|
<th width="5%">操作</th>
|
88
|
89
|
</tr>
|
89
|
90
|
</thead>
|
|
@@ -132,11 +133,16 @@
|
132
|
133
|
<td>{{$a['fanTime']}}</td>
|
133
|
134
|
<td>@if($a['is_fugou']==1) 是 @else 否 @endif</td>
|
134
|
135
|
<td>@if($a['is_refund']==1) 是 @else 否 @endif</td>
|
135
|
|
- <td>{{$a['refund_price']}}</td>
|
136
|
136
|
@if(($self_role =='销售' || $self_role =='管理员') && $a['status']>0)
|
|
137
|
+ <td>{{$a['refund_price']}}</td>
|
137
|
138
|
<td>{{$a['refund_note']}}</td>
|
138
|
139
|
@else
|
139
|
140
|
<td class ="change_logistics_id">
|
|
141
|
+ <p id="refund_price_1{{$a['id']}}">{{$a['refund_price']}}</p>
|
|
142
|
+ <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']}})" />
|
|
143
|
+ <span class="sort_icon" hidden onClick='change_refund_price_click("{{$a['id']}}","{{$a['cost']}}")' style="cursor:pointer"><i class="Hui-iconfont"></i></span>
|
|
144
|
+ </td>
|
|
145
|
+ <td class ="change_logistics_id">
|
140
|
146
|
<p id="refund_note_1{{$a['id']}}">{{$a['refund_note']}}</p>
|
141
|
147
|
<textarea id="refund_note_2{{$a['id']}}" rows=4 style="display: none" name='refund_note' onblur="change_refund_note({{$a['id']}})" >{{$a['refund_note']}}</textarea>
|
142
|
148
|
<span class="sort_icon" hidden onClick='change_refund_note_click("{{$a['id']}}","{{$a['refund_note']}}")' style="cursor:pointer"><i class="Hui-iconfont"></i></span>
|
|
@@ -176,11 +182,17 @@
|
176
|
182
|
@if($self_role =='超级管理员' || $self_role =='售后管理员')
|
177
|
183
|
<td class ="change_logistics_id">
|
178
|
184
|
<p id="aftersale_fee_1{{$a['id']}}">{{$a['aftersale_fee']}}</p>
|
179
|
|
- <textarea id="aftersale_fee_2{{$a['id']}}" rows=4 style="display: none" name='aftersale_fee' onblur="change_aftersale_fee({{$a['id']}})" >{{$a['aftersale_fee']}}</textarea>
|
180
|
|
- <span class="sort_icon" hidden onClick='change_aftersale_fee_click("{{$a['id']}}","{{$a['aftersale_fee']}}")' style="cursor:pointer"><i class="Hui-iconfont"></i></span>
|
|
185
|
+ <input id="aftersale_fee_2{{$a['id']}}" style="display: none" type='text' name='aftersale_fee' value="{{$a['aftersale_fee']}}" onblur="change_aftersale_fee({{$a['id']}})" />
|
|
186
|
+ <span class="sort_icon" hidden onClick='change_aftersale_fee_click("{{$a['id']}}","{{$a['cost']}}")' style="cursor:pointer"><i class="Hui-iconfont"></i></span>
|
|
187
|
+ </td>
|
|
188
|
+ <td class ="change_logistics_id">
|
|
189
|
+ <p id="aftersale_reason_1{{$a['id']}}">{{$a['aftersale_reason']}}</p>
|
|
190
|
+ <textarea id="aftersale_reason_2{{$a['id']}}" rows=4 style="display: none" name='aftersale_reason' onblur="change_aftersale_reason({{$a['id']}})" >{{$a['aftersale_reason']}}</textarea>
|
|
191
|
+ <span class="sort_icon" hidden onClick='change_aftersale_reason_click("{{$a['id']}}","{{$a['aftersale_reason']}}")' style="cursor:pointer"><i class="Hui-iconfont"></i></span>
|
181
|
192
|
</td>
|
182
|
193
|
@else
|
183
|
194
|
<td>{{$a['aftersale_fee']}}</td>
|
|
195
|
+ <td>{{$a['aftersale_reason']}}</td>
|
184
|
196
|
@endif
|
185
|
197
|
<td>
|
186
|
198
|
@if($a['enable_status'])
|
|
@@ -436,6 +448,26 @@
|
436
|
448
|
});
|
437
|
449
|
}
|
438
|
450
|
|
|
451
|
+ function change_aftersale_reason_click(id, aftersale_reason){
|
|
452
|
+ $("#aftersale_reason_1"+id).hide();
|
|
453
|
+ $("#aftersale_reason_2"+id).show();
|
|
454
|
+ $("#aftersale_reason_2"+id).focus();
|
|
455
|
+ }
|
|
456
|
+
|
|
457
|
+ function change_aftersale_reason(id){
|
|
458
|
+ var aftersale_reason = $("#aftersale_reason_2"+id).val();
|
|
459
|
+ $.ajax({
|
|
460
|
+ url: '/admin/order/editLogisticsId?id='+id+'&aftersale_reason='+aftersale_reason,
|
|
461
|
+ type: 'get',
|
|
462
|
+ dateType: 'json',
|
|
463
|
+ success:function(msg){
|
|
464
|
+ $("#aftersale_reason_1"+id).html(aftersale_reason);
|
|
465
|
+ $("#aftersale_reason_1"+id).show();
|
|
466
|
+ $("#aftersale_reason_2"+id).hide();
|
|
467
|
+ }
|
|
468
|
+ });
|
|
469
|
+ }
|
|
470
|
+
|
439
|
471
|
function change_refund_note_click(id, refund_note){
|
440
|
472
|
$("#refund_note_1"+id).hide();
|
441
|
473
|
$("#refund_note_2"+id).show();
|
|
@@ -456,6 +488,26 @@
|
456
|
488
|
});
|
457
|
489
|
}
|
458
|
490
|
|
|
491
|
+ function change_refund_price_click(id, refund_price){
|
|
492
|
+ $("#refund_price_1"+id).hide();
|
|
493
|
+ $("#refund_price_2"+id).show();
|
|
494
|
+ $("#refund_price_2"+id).focus();
|
|
495
|
+ }
|
|
496
|
+
|
|
497
|
+ function change_refund_price(id){
|
|
498
|
+ var refund_price = $("#refund_price_2"+id).val();
|
|
499
|
+ $.ajax({
|
|
500
|
+ url: '/admin/order/editLogisticsId?id='+id+'&refund_price='+refund_price,
|
|
501
|
+ type: 'get',
|
|
502
|
+ dateType: 'json',
|
|
503
|
+ success:function(msg){
|
|
504
|
+ $("#refund_price_1"+id).html(refund_price);
|
|
505
|
+ $("#refund_price_1"+id).show();
|
|
506
|
+ $("#refund_price_2"+id).hide();
|
|
507
|
+ }
|
|
508
|
+ });
|
|
509
|
+ }
|
|
510
|
+
|
459
|
511
|
function order_refund(id){
|
460
|
512
|
$.ajax({
|
461
|
513
|
url: '/admin/order/setrefund/'+id,
|