oprefund.html 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
  6. <title><?php echo $shoname; ?></title>
  7. <link rel="shortcut icon" href="" />
  8. <meta name="renderer" content="webkit">
  9. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  11. <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
  12. <!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
  13. <!--[if lt IE 9]>
  14. <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
  15. <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
  16. <![endif]-->
  17. <link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
  18. <link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
  19. <script type="text/javascript">
  20. window.sysinfo = {
  21. <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '{$_W['uniacid']}',<?php } ?>
  22. <?php if( !empty($_W['acid']) ){ ?>'acid': '{$_W['acid']}',<?php } ?>
  23. <?php if (!empty($_W['openid']) ) { ?>'openid': '{$_W['openid']}',<?php } ?>
  24. <?php if( !empty($_W['uid']) ) { ?>'uid': '{$_W['uid']}',<?php } ?>
  25. 'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php }else{ ?>0<?php } ?>,
  26. 'siteroot': '{$_W['siteroot']}',
  27. 'siteurl': '{$_W['siteurl']}',
  28. 'attachurl': '{$_W['attachurl']}',
  29. 'attachurl_local': '{$_W['attachurl_local']}',
  30. 'attachurl_remote': '{$_W['attachurl_remote']}',
  31. 'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
  32. 'cookie' : {'pre': ''},
  33. 'account' : {:json_encode($_W['account'])},
  34. };
  35. </script>
  36. <script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
  37. <script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
  38. <script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
  39. <script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
  40. <script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
  41. <script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
  42. <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
  43. <link href="/static/css/snailfish.css" rel="stylesheet">
  44. <style>
  45. tbody tr td{
  46. position: relative;
  47. }
  48. tbody tr .icow-weibiaoti--{
  49. visibility: hidden;
  50. display: inline-block;
  51. color: #fff;
  52. height:18px;
  53. width:18px;
  54. background: #e0e0e0;
  55. text-align: center;
  56. line-height: 18px;
  57. vertical-align: middle;
  58. }
  59. tbody tr:hover .icow-weibiaoti--{
  60. visibility: visible;
  61. }
  62. tbody tr .icow-weibiaoti--.hidden{
  63. visibility: hidden !important;
  64. }
  65. .full .icow-weibiaoti--{
  66. margin-left:10px;
  67. }
  68. .full>span{
  69. display: -webkit-box;
  70. display: -webkit-flex;
  71. display: -ms-flexbox;
  72. display: flex;
  73. vertical-align: middle;
  74. align-items: center;
  75. }
  76. tbody tr .label{
  77. margin: 5px 0;
  78. }
  79. .goods_attribute a{
  80. cursor: pointer;
  81. }
  82. .newgoodsflag{
  83. width: 22px;height: 16px;
  84. background-color: #ff0000;
  85. color: #fff;
  86. text-align: center;
  87. position: absolute;
  88. bottom: 70px;
  89. left: 57px;
  90. font-size: 12px;
  91. }
  92. .a{cursor: pointer;}
  93. .img-40 {
  94. width: 40px;
  95. height: 40px;
  96. }
  97. .daterangepicker select.ampmselect, .daterangepicker select.hourselect, .daterangepicker select.minuteselect{
  98. width:auto!important;
  99. }
  100. .order-container{
  101. display: -webkit-box;
  102. display: -webkit-flex;
  103. display: -ms-flexbox;
  104. display: flex;
  105. }
  106. .order-container-left,.order-container-right{
  107. -webkit-box-flex: 1;
  108. -webkit-flex: 1;
  109. -ms-flex: 1;
  110. flex: 1;
  111. }
  112. .ordertable { width:100%;position: relative;margin-bottom:10px}
  113. .ordertable tr td:first-child { text-align: right }
  114. .ordertable tr td {padding:8px 5px 0;vertical-align: top}
  115. .ordertable1 tr td { text-align: right; }
  116. .ops .btn { padding:5px 10px;}
  117. <?php if( count($step_array)>4){ ?>.ui-step-4 li { width:20%;}<?php } ?>
  118. .order-container-right{
  119. padding:30px 0 0 15px ;
  120. }
  121. .trorder td{
  122. text-align: center;
  123. }
  124. .navbar-inner tr th{
  125. text-align: center
  126. }
  127. .table .trorder td{
  128. border-right:1px solid #efefef;
  129. }
  130. </style>
  131. <style>
  132. .step-region {
  133. position: relative;
  134. margin-bottom: 10px;
  135. }
  136. .ui-step {
  137. padding: 14px 0 8px 0;
  138. zoom: 1;
  139. margin: 0 50px;
  140. }
  141. .ui-step li {
  142. float: left;
  143. position: relative;
  144. -webkit-box-sizing: border-box;
  145. -moz-box-sizing: border-box;
  146. box-sizing: border-box;
  147. text-align: center;
  148. }
  149. .ui-step-4 li {
  150. width: 24.9999%;
  151. }
  152. .ui-step li::before, .ui-step li::after {
  153. position: absolute;
  154. left: 0;
  155. top: 27px;
  156. display: block;
  157. content: ' ';
  158. width: 50%;
  159. height: 4px;
  160. background: #f2f3f7;
  161. z-index: 1;
  162. }
  163. .ui-step li:first-child::before {
  164. width: 0;
  165. }
  166. .ui-step li.ui-step-done::before, .ui-step li.ui-step-done::after, .ui-step li.ui-step-done .ui-step-number {
  167. background: #54c952;
  168. }
  169. .ui-step .ui-step-number {
  170. position: relative;
  171. display: inline-block;
  172. width: 37px;
  173. height: 37px;
  174. margin: 10px 0;
  175. line-height: 37px;
  176. background: #f2f3f7;
  177. color: #cac9c9;
  178. border-radius: 100%;
  179. -webkit-box-sizing: border-box;
  180. -moz-box-sizing: border-box;
  181. box-sizing: border-box;
  182. z-index: 2;
  183. }
  184. .ui-step li.ui-step-done .ui-step-number {
  185. color: #fff;
  186. }
  187. .ui-step li.ui-step-done::before, .ui-step li.ui-step-done::after, .ui-step li.ui-step-done .ui-step-number {
  188. background: #54c952;
  189. }
  190. .ui-step .ui-step-title {
  191. color: #333;
  192. font-size: 12px;
  193. line-height: 18px;
  194. }
  195. .ui-step .ui-step-meta {
  196. color: #ccc;
  197. }
  198. :after, :before {
  199. -webkit-box-sizing: border-box;
  200. -moz-box-sizing: border-box;
  201. box-sizing: border-box;
  202. }
  203. .ui-step li::before, .ui-step li::after {
  204. position: absolute;
  205. left: 0;
  206. top: 27px;
  207. display: block;
  208. content: ' ';
  209. width: 50%;
  210. height: 4px;
  211. background: #f2f3f7;
  212. z-index: 1;
  213. }
  214. .ui-step li::after {
  215. left: 50%;
  216. }
  217. .ui-step li.ui-step-done::before, .ui-step li.ui-step-done::after, .ui-step li.ui-step-done .ui-step-number {
  218. background: #54c952;
  219. }
  220. .ui-step:after {
  221. content: "";
  222. display: table;
  223. clear: both;
  224. }
  225. .m-t-none{line-height:36px;}
  226. </style>
  227. </head>
  228. <body layadmin-themealias="default">
  229. <table id="demo" lay-filter="test"></table>
  230. <div class="layui-fluid">
  231. <div class="layui-card">
  232. <div class="layui-card-header layui-elem-quote">当前位置:
  233. <span class="line-text">维权处理
  234. </span>
  235. </div>
  236. <div class="layui-card-body" style="padding:15px;">
  237. <div class="step-region">
  238. <ul class="ui-step ui-step-4">
  239. <li class="ui-step-done">
  240. <div class="ui-step-number">1</div>
  241. <div class="ui-step-title">用户发起退单</div>
  242. <?php if($step_array[1]['done'] == 1){ ?>
  243. <div class="ui-step-meta"><?php echo date('Y-m-d', $step_array[1]['time']); ?><br><?php echo date('H:i:s', $step_array[1]['time']); ?></div>
  244. <?php } ?>
  245. </li>
  246. <li <?php if($step_array[2]['done'] == 1){ ?> class="ui-step-done"<?php } ?>>
  247. <div class="ui-step-number">2</div>
  248. <div class="ui-step-title">平台审核</div>
  249. <?php if($step_array[2]['done'] == 1){ ?>
  250. <div class="ui-step-meta"><?php echo date('Y-m-d', $step_array[2]['time']); ?><br><?php echo date('H:i:s', $step_array[2]['time']); ?></div>
  251. <?php } ?>
  252. </li>
  253. <li style="display:none;">
  254. <div class="ui-step-number">3</div>
  255. <div class="ui-step-title">
  256. 退回货物
  257. </div>
  258. <div class="ui-step-meta">
  259. </div>
  260. </li>
  261. <li <?php if($ref_info['state'] == 3){ ?> class="ui-step-done"<?php } ?>>
  262. <div class="ui-step-number">3</div>
  263. <div class="ui-step-title">退款成功</div>
  264. <?php if($step_array[3]['done'] == 1){ ?>
  265. <div class="ui-step-meta"><?php echo date('Y-m-d', $step_array[3]['time']); ?><br><?php echo date('H:i:s', $step_array[3]['time']); ?></div>
  266. <?php } ?>
  267. </li>
  268. </ul>
  269. </div>
  270. <form action="" class="layui-form" lay-filter="example" method="post" >
  271. <input type="hidden" name="id" value="{$item['id']}" />
  272. <input type="hidden" name="dispatchid" value="{$dispatch['id']}" />
  273. <?php if($order_refund['state'] == 5){ ?>
  274. <div class="row order-container">
  275. <div style="border-right: 1px solid #efefef;">
  276. <div class='panel-body' >
  277. <h4 class="m-t-none m-b" style="line-height:36px;border-bottom:1px solid #efefef;">维权信息</h4>
  278. <table class='ordertable' style='table-layout:fixed;text-align:left;'>
  279. <tr>
  280. <td style="text-align:left;">当前订单状态:<b style="font-size:24px;">客户取消售后!</b></td>
  281. </tr>
  282. </table>
  283. </div>
  284. </div>
  285. </div>
  286. <?php }else if($order_refund['state'] == 1){ ?>
  287. <div class="row order-container">
  288. <div style="border-right: 1px solid #efefef;">
  289. <div class='panel-body' >
  290. <h4 class="m-t-none m-b" style="border-bottom:1px solid #efefef;">维权信息</h4>
  291. <table class='ordertable' style='table-layout:fixed;text-align:left;'>
  292. <tr>
  293. <td style="text-align:left;">当前订单状态:<b style="font-size:24px;">平台审核拒绝!</b></td>
  294. </tr>
  295. <tr>
  296. <td style="text-align:left;">审核记录:<?php echo $order_refund['remarkrefund']; ?></td>
  297. </tr>
  298. <tr>
  299. <td style="text-align:left;">
  300. <a class='btn btn-primary btn-xs' data-toggle="ajaxModal" href="javascript:;" data-href="{:U('order/oprefund_doform', array('ref_id' => $order_refund['ref_id']))}" >
  301. <i class="icow icow-flag-o" style="color: #df5254;display: inline-block;vertical-align: middle" title="平台审核"></i>
  302. 重新审核
  303. &nbsp
  304. </a>
  305. </td>
  306. </tr>
  307. </table>
  308. </div>
  309. </div>
  310. </div>
  311. <?php }else if($order_refund['state'] == 0){ ?>
  312. <div class="row order-container">
  313. <div style="border-right: 1px solid #efefef;">
  314. <div class='panel-body' >
  315. <h4 class="m-t-none m-b" style="border-bottom:1px solid #efefef;">维权信息</h4>
  316. <table class='ordertable' style='table-layout:fixed;text-align:left;'>
  317. <tr>
  318. <td style="text-align:left;">当前订单状态:<b style="font-size:24px;">平台审核,待处理</b></td>
  319. </tr>
  320. <tr>
  321. <td style="text-align:left;">请您在进行同意或拒绝操作前,尽量充分于买家沟通达成一致,避免误解。</td>
  322. </tr>
  323. <tr>
  324. <td style="text-align:left;">审核记录是要展示给用户的,认真填写哦!</td>
  325. </tr>
  326. <tr>
  327. <td style="text-align:left;">
  328. <a class='btn btn-primary btn-xs' data-toggle="ajaxModal" href="javascript:;" data-href="{:U('order/oprefund_doform', array('ref_id' => $order_refund['ref_id']))}" >
  329. <i class="icow icow-flag-o" style="color: #df5254;display: inline-block;vertical-align: middle" title="平台审核"></i>
  330. 立即审核
  331. &nbsp
  332. </a>
  333. </td>
  334. </tr>
  335. </table>
  336. </div>
  337. </div>
  338. </div>
  339. <?php }else if($order_refund['state'] == 3){ ?>
  340. <div class="row order-container">
  341. <div style="border-right: 1px solid #efefef;">
  342. <div class='panel-body' >
  343. <h4 class="m-t-none m-b" style="border-bottom:1px solid #efefef;">维权信息</h4>
  344. <table class='ordertable' style='table-layout:fixed;text-align:left;'>
  345. <tr>
  346. <td style="text-align:left;">当前订单状态:<b style="font-size:24px;">退单已完成!</b></td>
  347. </tr>
  348. <tr>
  349. <td style="text-align:left;">订单退单已完成,用户申请退款金额已打入对应用户账户。</td>
  350. </tr>
  351. </table>
  352. </div>
  353. </div>
  354. </div>
  355. <?php }else if($order_refund['state'] == 4){ ?>
  356. <div class="row order-container">
  357. <div style="border-right: 1px solid #efefef;">
  358. <div class='panel-body' >
  359. <h4 class="m-t-none m-b" style="border-bottom:1px solid #efefef;">维权信息</h4>
  360. <table class='ordertable' style='table-layout:fixed;text-align:left;'>
  361. <tr>
  362. <td style="text-align:left;">当前订单状态:<b style="font-size:24px;">退款失败!</b></td>
  363. </tr>
  364. <tr>
  365. <td style="text-align:left;">审核记录:<?php echo $order_refund['remarkrefund']; ?></td>
  366. </tr>
  367. <tr>
  368. <td style="text-align:left;">
  369. <a class='btn btn-primary btn-xs' data-toggle="ajaxModal" href="javascript:;" data-href="{:U('order/oprefund_doform', array('ref_id' => $order_refund['ref_id']))}" >
  370. <i class="icow icow-flag-o" style="color: #df5254;display: inline-block;vertical-align: middle" title="平台审核"></i>
  371. 重新审核
  372. &nbsp
  373. </a>
  374. </td>
  375. </tr>
  376. </table>
  377. </div>
  378. </div>
  379. </div>
  380. <?php } ?>
  381. <div class="row order-container" style="margin-top:10px;">
  382. <div style="border-right: 1px solid #efefef;">
  383. <div class='panel-body' >
  384. <h4 class="m-t-none m-b" style="border-bottom:1px solid #efefef;">退款信息</h4>
  385. <table class='ordertable' style='table-layout:fixed;text-align:left;'>
  386. <tr>
  387. <td style="text-align:left;">订单编号:<a href="{:U('order/detail', array('id' => $item['order_id'] ) )}" class="text-primary" target="_blank"><?php echo $item['order_num_alias']; ?></a></td>
  388. </tr>
  389. <tr>
  390. <td style="text-align:left;">退单编号:<?php echo $order_refund['ref_id']; ?></td>
  391. </tr>
  392. <tr>
  393. <td style="text-align:left;">申请退单时间:<?php echo date('Y-m-d H:i:s', $order_refund['addtime']); ?></td>
  394. </tr>
  395. <?php if( $item['type'] == 'integral' ){ ?>
  396. <tr>
  397. <td style="text-align:left;">退单积分:<?php echo $order_refund['ref_money']; ?>
  398. <?php if(!empty($order_refund['ref_shipping_fare'])){ ?>+运费<?php echo $order_refund['ref_shipping_fare']; ?><?php } ?>
  399. </td>
  400. </tr>
  401. <?php }else{ ?>
  402. <tr>
  403. <td style="text-align:left;">退单金额:<?php echo $order_refund['ref_money']; ?></td>
  404. </tr>
  405. <?php } ?>
  406. <tr>
  407. <td style="text-align:left;">退单类型:{$r_type[$order_refund['ref_type']]}</td>
  408. </tr>
  409. <tr>
  410. <td style="text-align:left;">问题类型:{$order_refund['ref_name']}</td>
  411. </tr>
  412. <tr>
  413. <td style="text-align:left;">问题描述:{$order_refund['ref_description']}</td>
  414. </tr>
  415. <tr>
  416. <td style="text-align:left;">反馈图片:<br/>
  417. <?php foreach($refund_imgs as $k1 => $v1){ ?>
  418. <a target='_blank' href="{:tomedia($v1['image'])}"><img style='width:100px;;padding:1px;border:1px solid #ccc' src="{:tomedia($v1['image'])}"></a>
  419. <?php } ?>
  420. </td>
  421. </tr>
  422. <tr>
  423. <td style="text-align:left;">联系方式:
  424. <?php echo $order_refund['complaint_name']; ?>&nbsp;<?php echo $order_refund['ref_mobile']; ?></td>
  425. </tr>
  426. </table>
  427. </div>
  428. </div>
  429. </div>
  430. <div style="margin-top:10px;">
  431. <div class="panel-heading" style="border-bottom:1px solid #efefef;">
  432. <span>订单信息</span>
  433. </div>
  434. <div class=" table-responsive goods_list" style="overflow: hidden;">
  435. <table class="table" style="border: 1px solid #efefef;">
  436. <thead class="navbar-inner">
  437. <tr>
  438. <th style="width:15%;text-align: left">商品标题</th>
  439. <th style="width:10%;">商品规格</th>
  440. <th style="width:10%;">单价(元)</th>
  441. <th style="width:5%;">数量</th>
  442. <th style="width:15%;">折扣前/折扣后(元)</th>
  443. <!--<th style="width:5%;">操作</th>-->
  444. </tr>
  445. </thead>
  446. <?php foreach($item['goods'] as $goods){ ?>
  447. <tr class="trorder">
  448. <td style="text-align: left">
  449. <?php if(!empty($category[$goods['pcate']]['name'])){ ?>
  450. <span class="text-error">[{$category[$goods['pcate']]['name']}] </span>
  451. <?php } ?>
  452. <?php if( !empty($children[$goods['pcate']][$goods['ccate']][1]) ){ ?>
  453. <span class="text-info">[{$children[$goods['pcate']][$goods['ccate']][1]}] </span>
  454. <?php } ?>
  455. {$goods['name']}
  456. </td>
  457. <td>
  458. <?php if( !empty($goods['option_sku']) ){ ?><span class="label label-info">{$goods['option_sku']}</span> <?php } ?></td>
  459. <td>{$goods['price']}</td>
  460. <td>{$goods['quantity']}</td>
  461. <td><?php echo $goods['oldprice'] * $goods['quantity']/$goods['total']; ?>
  462. </td>
  463. </tr>
  464. <?php } ?>
  465. <tr class="trorder">
  466. <td colspan="2" style="padding-left: 20px">
  467. </td>
  468. <?php $colspan=$item['ispackage']?6:7; ?>
  469. <?php if($showdiyform){ ?>
  470. <?php $colspan++; ?>
  471. <?php } ?>
  472. <td colspan="3" style="padding-right: 60px;text-align: right">
  473. <div class="price">
  474. <p> <span class="price-inner">商品小计:</span><span style="font-weight: bold"> <?php if( $item['type'] == 'integral' ){ ?>积分:<?php }else{ ?>¥<?php } ?>{:round( $total_fare ,2)}</span></p>
  475. <p><span class="price-inner">运费:</span>¥{:round( $total_shipping_fare,2)}</p>
  476. <?php if($total_voucher_credit>0){ ?>
  477. <p><span class="price-inner">优惠券优惠:</span><span class="text-danger">-¥{:round( $total_voucher_credit,2)}</span></p>
  478. <?php } ?>
  479. <?php if($total_fullreduction_money>0){ ?>
  480. <p><span class="price-inner">满减优惠:</span><span class="text-danger">-¥{:round( $total_fullreduction_money,2)}</span></p>
  481. <?php } ?>
  482. <?php if($total_score_for_money>0){ ?>
  483. <p><span class="price-inner">积分抵扣:</span><span class="text-danger">-¥{:round( $total_score_for_money,2)}</span></p>
  484. <?php } ?>
  485. <?php if( $item['type'] == 'integral' ){ ?>
  486. <p><span class="price-inner">实付款:</span><span style="font-size: 14px;font-weight: bold;color: #e4393c">积分:{:round($total_fare,2)}
  487. <?php if( !empty($total_shipping_fare) ){ ?>+运费:¥{:round( $total_shipping_fare,2)}<?php } ?>
  488. </span></p>
  489. <?php }else{ ?>
  490. <p><span class="price-inner">实付款:</span><span style="font-size: 14px;font-weight: bold;color: #e4393c">¥{:round($total_total_fare,2)}</span></p>
  491. <?php } ?>
  492. </div>
  493. </td>
  494. </tr>
  495. </table>
  496. </div>
  497. </div>
  498. <div class="panel-heading" >
  499. <span>退款处理记录</span>
  500. </div>
  501. <div class="row order-container" style="margin-top:10px;">
  502. <div style="border-right: 1px solid #efefef;">
  503. <div class='panel-body' >
  504. <table class='ordertable' style='table-layout:fixed;text-align:center;'>
  505. <thead class="navbar-inner">
  506. <tr>
  507. <th style="text-align:center;">
  508. 处理时间
  509. </th>
  510. <th style="text-align:center;">
  511. 订单操作记录
  512. </th>
  513. <th style="text-align:center;">
  514. 操作人
  515. </th>
  516. </tr>
  517. </thead>
  518. <?php foreach($order_refund_history as $val){ ?>
  519. <tr>
  520. <td style="text-align:center;"><?php echo date('Y-m-d H:i:s',$val['addtime']);?></td>
  521. <td style="text-align:center;"><?php echo $val['message'];?></td>
  522. <td style="text-align:center;"><?php echo $val['type']; ?></td>
  523. </tr>
  524. <?php } ?>
  525. </table>
  526. </div>
  527. </div>
  528. </div>
  529. </form>
  530. </div>
  531. </div>
  532. </div>
  533. <script src="/layuiadmin/layui/layui.js"></script>
  534. <script>
  535. layui.config({
  536. base: '/layuiadmin/' //静态资源所在路径
  537. }).extend({
  538. index: 'lib/index' //主入口模块
  539. }).use('index');
  540. </script>
  541. <script>
  542. //由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
  543. var layer = layui.layer;
  544. var $;
  545. layui.use(['jquery', 'layer','form'], function(){
  546. $ = layui.$;
  547. var form = layui.form;
  548. $('.deldom').click(function(){
  549. var s_url = $(this).attr('data-href');
  550. layer.confirm($(this).attr('data-confirm'), function(index){
  551. $.ajax({
  552. url:s_url,
  553. type:'post',
  554. dataType:'json',
  555. success:function(info){
  556. if(info.status == 0)
  557. {
  558. layer.msg(info.result.message,{icon: 1,time: 2000});
  559. }else if(info.status == 1){
  560. var go_url = location.href;
  561. if( info.result.hasOwnProperty("url") )
  562. {
  563. go_url = info.result.url;
  564. }
  565. layer.msg('操作成功',{time: 1000,
  566. end:function(){
  567. location.href = info.result.url;
  568. }
  569. });
  570. }
  571. }
  572. })
  573. });
  574. })
  575. $('.btn-operation').click(function(){
  576. var ids_arr = [];
  577. var obj = $(this);
  578. var s_toggle = $(this).attr('data-toggle');
  579. var s_url = $(this).attr('data-href');
  580. $("input[name=item_checkbox]").each(function() {
  581. if( $(this).prop('checked') )
  582. {
  583. ids_arr.push( $(this).val() );
  584. }
  585. })
  586. if(ids_arr.length < 1)
  587. {
  588. layer.msg('请选择要操作的内容');
  589. }else{
  590. var can_sub = true;
  591. if( s_toggle == 'batch-remove' )
  592. {
  593. can_sub = false;
  594. layer.confirm($(obj).attr('data-confirm'), function(index){
  595. $.ajax({
  596. url:s_url,
  597. type:'post',
  598. dataType:'json',
  599. data:{ids:ids_arr},
  600. success:function(info){
  601. if(info.status == 0)
  602. {
  603. layer.msg(info.result.message,{icon: 1,time: 2000});
  604. }else if(info.status == 1){
  605. var go_url = location.href;
  606. if( info.result.hasOwnProperty("url") )
  607. {
  608. go_url = info.result.url;
  609. }
  610. layer.msg('操作成功',{time: 1000,
  611. end:function(){
  612. location.href = info.result.url;
  613. }
  614. });
  615. }
  616. }
  617. })
  618. });
  619. }else{
  620. $.ajax({
  621. url:s_url,
  622. type:'post',
  623. dataType:'json',
  624. data:{ids:ids_arr},
  625. success:function(info){
  626. if(info.status == 0)
  627. {
  628. layer.msg(info.result.message,{icon: 1,time: 2000});
  629. }else if(info.status == 1){
  630. var go_url = location.href;
  631. if( info.result.hasOwnProperty("url") )
  632. {
  633. go_url = info.result.url;
  634. }
  635. layer.msg('操作成功',{time: 1000,
  636. end:function(){
  637. location.href = info.result.url;
  638. }
  639. });
  640. }
  641. }
  642. })
  643. }
  644. }
  645. })
  646. form.on('switch(restwsitch)', function(data){
  647. var s_url = $(this).attr('data-href')
  648. var rest = 1;
  649. if(data.elem.checked)
  650. {
  651. rest = 1;
  652. }else{
  653. rest = 0;
  654. }
  655. $.ajax({
  656. url:s_url,
  657. type:'post',
  658. dataType:'json',
  659. data:{rest:rest},
  660. success:function(info){
  661. if(info.status == 0)
  662. {
  663. layer.msg(info.result.message,{icon: 1,time: 2000});
  664. }else if(info.status == 1){
  665. var go_url = location.href;
  666. if( info.result.hasOwnProperty("url") )
  667. {
  668. go_url = info.result.url;
  669. }
  670. layer.msg('操作成功',{time: 1000,
  671. end:function(){
  672. location.href = info.result.url;
  673. }
  674. });
  675. }
  676. }
  677. })
  678. });
  679. form.on('switch(enablewsitch)', function(data){
  680. var s_url = $(this).attr('data-href')
  681. var enable = 1;
  682. if(data.elem.checked)
  683. {
  684. enable = 1;
  685. }else{
  686. enable = 0;
  687. }
  688. $.ajax({
  689. url:s_url,
  690. type:'post',
  691. dataType:'json',
  692. data:{enable:enable},
  693. success:function(info){
  694. if(info.status == 0)
  695. {
  696. layer.msg(info.result.message,{icon: 1,time: 2000});
  697. }else if(info.status == 1){
  698. var go_url = location.href;
  699. if( info.result.hasOwnProperty("url") )
  700. {
  701. go_url = info.result.url;
  702. }
  703. layer.msg('操作成功',{time: 1000,
  704. end:function(){
  705. location.href = info.result.url;
  706. }
  707. });
  708. }
  709. }
  710. })
  711. });
  712. form.on('switch(statewsitch)', function(data){
  713. var s_url = $(this).attr('data-href')
  714. var state = 1;
  715. if(data.elem.checked)
  716. {
  717. state = 1;
  718. }else{
  719. state = 0;
  720. }
  721. $.ajax({
  722. url:s_url,
  723. type:'post',
  724. dataType:'json',
  725. data:{state:state},
  726. success:function(info){
  727. if(info.status == 0)
  728. {
  729. layer.msg(info.result.message,{icon: 1,time: 2000});
  730. }else if(info.status == 1){
  731. var go_url = location.href;
  732. if( info.result.hasOwnProperty("url") )
  733. {
  734. go_url = info.result.url;
  735. }
  736. layer.msg('操作成功',{time: 1000,
  737. end:function(){
  738. location.href = info.result.url;
  739. }
  740. });
  741. }
  742. }
  743. })
  744. });
  745. form.on('checkbox(checkboxall)', function(data){
  746. if(data.elem.checked)
  747. {
  748. $("input[name=item_checkbox]").each(function() {
  749. $(this).prop("checked", true);
  750. });
  751. $("input[name=checkall]").each(function() {
  752. $(this).prop("checked", true);
  753. });
  754. }else{
  755. $("input[name=item_checkbox]").each(function() {
  756. $(this).prop("checked", false);
  757. });
  758. $("input[name=checkall]").each(function() {
  759. $(this).prop("checked", false);
  760. });
  761. }
  762. form.render('checkbox');
  763. });
  764. //监听提交
  765. form.on('submit(formDemo)', function(data){
  766. $.ajax({
  767. url: data.form.action,
  768. type: data.form.method,
  769. data: data.field,
  770. dataType:'json',
  771. success: function (info) {
  772. if(info.status == 0)
  773. {
  774. layer.msg(info.result.message,{icon: 1,time: 2000});
  775. }else if(info.status == 1){
  776. var go_url = location.href;
  777. if( info.result.hasOwnProperty("url") )
  778. {
  779. go_url = info.result.url;
  780. }
  781. layer.msg('操作成功',{time: 1000,
  782. end:function(){
  783. location.href = info.result.url;
  784. }
  785. });
  786. }
  787. }
  788. });
  789. return false;
  790. });
  791. })
  792. </script>
  793. <script>
  794. var ajax_url = "";
  795. $(function(){
  796. $("[data-toggle='ajaxModal']").click(function () {
  797. var s_url = $(this).attr('data-href');
  798. ajax_url = s_url;
  799. console.log(23);
  800. $.ajax({
  801. url:s_url,
  802. type:"get",
  803. success:function(shtml){
  804. $('#ajaxModal').html(shtml);
  805. $("#ajaxModal").modal();
  806. }
  807. })
  808. });
  809. $(document).delegate(".modal-footer .btn-primary","click",function(){
  810. var loadingIndex = layer.load();
  811. var s_data = $('#ajaxModal form').serialize();
  812. $.ajax({
  813. url:ajax_url,
  814. type:'post',
  815. dataType:'json',
  816. data:s_data,
  817. success:function(info){
  818. if(info.status == 0)
  819. {
  820. layer.msg(info.result.message,{icon: 1,time: 2000});
  821. layer.close(loadingIndex);
  822. }else if(info.status == 1){
  823. var go_url = location.href;
  824. if( info.result.hasOwnProperty("url") )
  825. {
  826. go_url = info.result.url;
  827. }
  828. layer.msg('操作成功',{time: 1000,
  829. end:function(){
  830. location.href = info.result.url;
  831. }
  832. });
  833. }
  834. }
  835. })
  836. return false;
  837. })
  838. })
  839. </script>
  840. <div id="ajaxModal" class="modal fade" style="display: none;">
  841. </div>
  842. <script>
  843. //没有选中时间段不能导出
  844. $(function () {
  845. $('.btn-submit').click(function () {
  846. var e = $(this).data('export');
  847. if(e==1 ){
  848. if($('#keyword').val() !='' ){
  849. $('#export').val(1);
  850. $('#search').submit();
  851. }else if($('#searchtime').val()!=''){
  852. $('#export').val(1);
  853. $('#search').submit();
  854. }else{
  855. $('#export').val(1);
  856. $('#search').submit();
  857. return;
  858. }
  859. }else{
  860. $('#export').val(0);
  861. $('#search').submit();
  862. }
  863. })
  864. })
  865. </script>
  866. </body>