refund.blade.php 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. @extends('layouts.base')
  2. @section('content')
  3. @section('title', trans('售后列表'))
  4. <div class="w1200 ">
  5. <div class=" rightlist ">
  6. <div class="clearfix">
  7. <div class="panel panel-info">
  8. <div class="panel-body">
  9. <div class="card">
  10. <div class="card-content">
  11. <h4 class="card-title">售后管理</h4>
  12. <form action="" method="get" class="form-horizontal" id="form1">
  13. @section('form')
  14. <input type="hidden" name="c" value="site"/>
  15. <input type="hidden" name="a" value="entry"/>
  16. <input type="hidden" name="m" value="yun_shop"/>
  17. <input type="hidden" name="do" value="order" id="form_do"/>
  18. <input type="hidden" name="route" value="{{$url}}" id="form_p"/>
  19. @show
  20. <div>
  21. @section('search_bar')
  22. <div class='form-group col-sm-4 col-lg-3 col-xs-12'>
  23. <input class="form-control" name="search[Ordersn]" type="text"
  24. value="{{array_get($requestSearch,'Ordersn','')}}"
  25. placeholder="订单号" id="string">
  26. </div>
  27. <div class='form-group col-sm-4 col-lg-3 col-xs-12'>
  28. <input class="form-control" name="search[goods_order_sn]" type="text"
  29. value="{{array_get($requestSearch,' goods_order_sn','')}}"
  30. placeholder="子订单号" id="string">
  31. </div>
  32. <div class="form-group form-group col-sm-8 col-lg-2 col-xs-12">
  33. <select name="search[refund_type]" class="form-control">
  34. <option value=""
  35. @if( array_get($requestSearch,'refund_type','')) selected="selected"@endif>
  36. 退款类型
  37. </option>
  38. <option value="1"
  39. @if( array_get($requestSearch,'refund_type','') == '1') selected="selected"@endif>
  40. 仅退款
  41. </option>
  42. <option value="2"
  43. @if( array_get($requestSearch,'refund_type','') == '2') selected="selected"@endif>
  44. 退款退货
  45. </option>
  46. </select>
  47. </div>
  48. {{--<div class="form-group form-group col-sm-8 col-lg-2 col-xs-12">--}}
  49. {{--<select name="search[processDes]" class="form-control">--}}
  50. {{--<option value=""--}}
  51. {{--@if( array_get($requestSearch,'processDes','')) selected="selected"@endif>--}}
  52. {{--事件状态--}}
  53. {{--</option>--}}
  54. {{--<option value="1"--}}
  55. {{--@if( array_get($requestSearch,'processDes','') == '1') selected="selected"@endif>--}}
  56. {{--未处理--}}
  57. {{--</option>--}}
  58. {{--<option value="2"--}}
  59. {{--@if( array_get($requestSearch,'processDes','') == '2') selected="selected"@endif>--}}
  60. {{--处理中--}}
  61. {{--</option>--}}
  62. {{--<option value="3"--}}
  63. {{--@if( array_get($requestSearch,'processDes','') == '3') selected="selected"@endif>--}}
  64. {{--已处理--}}
  65. {{--</option>--}}
  66. {{--<option value="4"--}}
  67. {{--@if( array_get($requestSearch,'processDes','') == '4') selected="selected"@endif>--}}
  68. {{--客服介入--}}
  69. {{--</option>--}}
  70. {{--</select>--}}
  71. {{--</div>--}}
  72. <div class="form-group col-sm-12 col-lg-12 col-xs-12"></div>
  73. {{-- <div class="col-sm-3">--}}
  74. {{-- <label class='radio-inline'>--}}
  75. {{-- <input type='checkbox' value='1' name='search[is_time]'--}}
  76. {{-- @if($search['is_time'] == '1') checked @endif> 申请时间--}}
  77. {{-- </label>--}}
  78. {{-- </div>--}}
  79. {{-- <div class="form-group col-sm-8 col-lg-5 col-xs-12">--}}
  80. {{-- {!!--}}
  81. {{-- app\common\helpers\DateRange::tplFormFieldDateRange('search[time_range]', [--}}
  82. {{-- 'starttime'=>array_get($requestSearch,'time_range.start',0),--}}
  83. {{-- 'endtime'=>array_get($requestSearch,'time_range.end',0),--}}
  84. {{-- 'start'=>0,--}}
  85. {{-- 'end'=>0--}}
  86. {{-- ], true)!!}--}}
  87. </div>
  88. @show
  89. </div>
  90. <div class="form-group">
  91. <div class="col-sm-7 col-lg-9 col-xs-12">
  92. <button class="btn btn-success"><i class="fa fa-search"></i> 搜索</button>
  93. <input type="hidden" name="token" value="{{$var['token']}}"/>
  94. </div>
  95. </div>
  96. </form>
  97. </div>
  98. </div>
  99. </div>
  100. </div>
  101. <div class='panel panel-default'>
  102. <div class='panel-body table-responsive'>
  103. <table class="table table-hover" style="overflow:visible;">
  104. <thead>
  105. <tr>
  106. <th style='width:8%;'>售后ID</th>
  107. <th style='width:20%;'>售后单号</th>
  108. <th style='width:20%;'>子订单号</th>
  109. <th style='width:10%;'>商品名称</th>
  110. <th style='width:15%;'>退款状态</th>
  111. <th style='width:15%;'>售后类型</th>
  112. <th style='width:12%;'>售后原因</th>
  113. <th style='width:15%;'>申请时间 </th>
  114. {{--<th style='width:10%;'>实际服务单最终结束时间</th>--}}
  115. {{--<th style='width:15%;'>处理结束时间</th>--}}
  116. <th style='width:10%;'>操作</th>
  117. </tr>
  118. </thead>
  119. <tbody>
  120. @foreach($list as $row)
  121. <tr>
  122. <td>{{$row['id']}}</td>
  123. <td>
  124. <a href="{!! yzWebUrl($detail_url,['order_sn'=>$row['refund_sn']])!!}">{{$row['refund_sn']}}</a>
  125. </td>
  126. <td>{{$row['goods_order_sn']}}</td>
  127. <td>{{$row['title']}}</td>
  128. <td>
  129. @if($row['status'] == 1)
  130. 待审核
  131. @elseif($row['status'] == 2)
  132. 待退货
  133. @elseif($row['status'] == 3)
  134. 待收货
  135. @elseif($row['status'] == -1)
  136. 关闭
  137. @else
  138. 已完成
  139. @endif
  140. </td>
  141. <td>
  142. @if($row['refund_type'] == 1)
  143. 仅退款
  144. @elseif($row['refund_type'] == 2)
  145. 退款退货
  146. @else
  147. 其他
  148. @endif
  149. </td>
  150. <td>
  151. @if($row['reason'] == 1)
  152. 协商一致退款
  153. @elseif($row['reason'] == 2)
  154. 质量问题
  155. @elseif($row['reason'] == 3)
  156. 物流问题
  157. @elseif($row['reason'] == 4)
  158. 假冒品牌
  159. @elseif($row['reason'] == 5)
  160. 少件/漏发/破损/污渍
  161. @elseif($row['reason'] == 6)
  162. 7天无理由
  163. @elseif($row['reason'] == 7)
  164. 拍错/多拍/不想要
  165. @else
  166. 其他
  167. @endif
  168. </td>
  169. <td>
  170. {{$row['created_time']}}
  171. </td>
  172. {{--<td>--}}
  173. {{--{{$row['handleTime']}}--}}
  174. {{--</td>--}}
  175. {{--<td>--}}
  176. {{--{{$row['taskEndtime']}}--}}
  177. {{--</td>--}}
  178. <td style="position:relative; overflow:visible;">
  179. <a href="{!! yzWebUrl($detail_refund,['refund_sn'=>$row['refund_sn']])!!}">查看详情</a>
  180. </td>
  181. </tr>
  182. @endforeach
  183. </tbody>
  184. </table>
  185. {!! $pager !!}
  186. </div>
  187. </div>
  188. </div>
  189. </div>
  190. </div>
  191. <script type="text/javascript" src="{{static_url('js/area/cascade_street.js')}}"></script>
  192. <script language='javascript'>
  193. $('.tdedit').mouseover(function () {
  194. $(this).find('.fa-pencil').show();
  195. }).mouseout(function () {
  196. $(this).find('.fa-pencil').hide();
  197. });
  198. $('.fa-edit-item').click(function () {
  199. var areaData = $(this).closest('span').find('span').html();
  200. var agentid = $(this).data('agentid');
  201. popwin = $('#modal-module-menus-notice').modal();
  202. $('.area-text').text(areaData);
  203. $('.area-agent-id').val(agentid);
  204. cascdeInit();
  205. });
  206. $('#submit').click(function () {
  207. var agentid = $('.area-agent-id').val();
  208. var provanceId = $('#sel-provance').val();
  209. var cityId = $('#sel-city').val();
  210. var districtId = $('#sel-area').val();
  211. var streetId = $('#sel-street').val();
  212. var obg = {
  213. province_id: provanceId,
  214. city_id: cityId,
  215. district_id: districtId,
  216. street_id: streetId
  217. };
  218. fastChange(agentid, obg);
  219. });
  220. function fastChange(id, value) {
  221. $.ajax({
  222. url: "{!! yzWebUrl('plugin.area-dividend.admin.agent.change') !!}",
  223. type: "post",
  224. data: {id: id, value: value},
  225. cache: false,
  226. success: function ($data) {
  227. //console.log($data);return;
  228. if ($data.result == 0) {
  229. confirm($data.msg);
  230. }
  231. location.reload();
  232. }
  233. })
  234. }
  235. $(function () {
  236. $('#export').click(function () {
  237. $('#form1').attr('action', '{!! yzWebUrl('plugin.area-dividend.admin.agent.export') !!}');
  238. $('#form1').submit();
  239. });
  240. $('#search').click(function () {
  241. $('#form1').attr('action', '{!! yzWebUrl('plugin.area-dividend.admin.agent') !!}');
  242. $('#form1').submit();
  243. });
  244. });
  245. </script>
  246. @endsection