a5e290369d4af2c431b37f2d99f61762.php 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519
  1. <?php /*a:5:{s:72:"D:\phpstudy_pro\WWW\CRMEB\app\admin\view\auction\auction_order\index.php";i:1652414575;s:61:"D:\phpstudy_pro\WWW\CRMEB\app\admin\view\public\container.php";i:1595820902;s:62:"D:\phpstudy_pro\WWW\CRMEB\app\admin\view\public\frame_head.php";i:1595820902;s:57:"D:\phpstudy_pro\WWW\CRMEB\app\admin\view\public\style.php";i:1595820902;s:64:"D:\phpstudy_pro\WWW\CRMEB\app\admin\view\public\frame_footer.php";i:1595820902;}*/ ?>
  2. <!DOCTYPE html>
  3. <html lang="zh-CN">
  4. <head>
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <?php if(empty($is_layui) || (($is_layui instanceof \think\Collection || $is_layui instanceof \think\Paginator ) && $is_layui->isEmpty())): ?>
  8. <link href="/system/frame/css/bootstrap.min.css?v=3.4.0" rel="stylesheet">
  9. <?php endif; ?>
  10. <link href="/static/plug/layui/css/layui.css" rel="stylesheet">
  11. <link href="/system/css/layui-admin.css" rel="stylesheet">
  12. <link href="/system/frame/css/font-awesome.min.css?v=4.3.0" rel="stylesheet">
  13. <link href="/system/frame/css/animate.min.css" rel="stylesheet">
  14. <link href="/system/frame/css/style.min.css?v=3.0.0" rel="stylesheet">
  15. <script src="/system/frame/js/jquery.min.js"></script>
  16. <script src="/system/frame/js/bootstrap.min.js"></script>
  17. <script src="/static/plug/layui/layui.all.js"></script>
  18. <script>
  19. $eb = parent._mpApi;
  20. window.controlle="<?php echo strtolower(trim(preg_replace("/[A-Z]/", "_\\0", app('request')->controller()), "_"));?>";
  21. window.module="<?php echo app('http')->getName();?>";
  22. </script>
  23. <title></title>
  24. <!--<script type="text/javascript" src="/static/plug/basket.js"></script>-->
  25. <script type="text/javascript" src="/static/plug/requirejs/require.js"></script>
  26. <?php /* <script type="text/javascript" src="/static/plug/requirejs/require-basket-load.js"></script> */ ?>
  27. <script>
  28. var hostname = location.hostname;
  29. if(location.port) hostname += ':' + location.port;
  30. requirejs.config({
  31. map: {
  32. '*': {
  33. 'css': '/static/plug/requirejs/require-css.js'
  34. }
  35. },
  36. shim:{
  37. 'iview':{
  38. deps:['css!iviewcss']
  39. },
  40. 'layer':{
  41. deps:['css!layercss']
  42. }
  43. },
  44. baseUrl:'//'+hostname+'/',
  45. paths: {
  46. 'static':'static',
  47. 'system':'system',
  48. 'vue':'static/plug/vue/dist/vue.min',
  49. 'axios':'static/plug/axios.min',
  50. 'iview':'static/plug/iview/dist/iview.min',
  51. 'iviewcss':'static/plug/iview/dist/styles/iview',
  52. 'lodash':'static/plug/lodash',
  53. 'layer':'static/plug/layer/layer',
  54. 'layercss':'static/plug/layer/theme/default/layer',
  55. 'jquery':'static/plug/jquery/jquery.min',
  56. 'moment':'static/plug/moment',
  57. 'sweetalert':'static/plug/sweetalert2/sweetalert2.all.min',
  58. 'formCreate':'/static/plug/form-create/form-create.min',
  59. },
  60. basket: {
  61. excludes:['system/js/index','system/util/mpVueComponent','system/util/mpVuePackage']
  62. // excludes:['system/util/mpFormBuilder','system/js/index','system/util/mpVueComponent','system/util/mpVuePackage']
  63. }
  64. });
  65. </script>
  66. <script type="text/javascript" src="/system/util/mpFrame.js"></script>
  67. </head>
  68. <body class="gray-bg">
  69. <div class="wrapper wrapper-content">
  70. <style>
  71. .btn-outline{
  72. border:none;
  73. }
  74. .btn-outline:hover{
  75. background-color: #0e9aef;
  76. color: #fff;
  77. }
  78. .layui-form-item .layui-btn {
  79. margin-top: 5px;
  80. margin-right: 10px;
  81. }
  82. .layui-btn-primary{
  83. margin-right: 10px;
  84. margin-left: 0!important;
  85. }
  86. label{
  87. margin-bottom: 0!important;
  88. margin-top: 4px;
  89. }
  90. </style>
  91. <div class="layui-fluid">
  92. <div class="layui-row layui-col-space15" id="app">
  93. <!--搜索条件-->
  94. <div class="layui-col-md12">
  95. <div class="layui-card">
  96. <div class="layui-card-header">搜索条件</div>
  97. <div class="layui-card-body">
  98. <form class="layui-form layui-form-pane" action="">
  99. <div class="layui-form-item">
  100. <!-- <div class="layui-inline">-->
  101. <!-- <label class="layui-form-label" style="top: -4.5px">所有场馆</label>-->
  102. <!-- <div class="layui-input-block">-->
  103. <!-- <select name="auction_id">-->
  104. <!-- <option value=" ">全部</option>-->
  105. <!-- <?php if(is_array($auction) || $auction instanceof \think\Collection || $auction instanceof \think\Paginator): $i = 0; $__LIST__ = $auction;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>-->
  106. <!-- <option value="<?php echo htmlentities($vo['id']); ?>"><?php echo htmlentities($vo['nickname']); ?></option>-->
  107. <!-- <?php endforeach; endif; else: echo "" ;endif; ?>-->
  108. <!-- </select>-->
  109. <!-- </div>-->
  110. <!-- </div>-->
  111. <div class="layui-inline">
  112. <label class="layui-form-label" style="top: -4.5px">搜索</label>
  113. <div class="layui-input-inline">
  114. <input id="store_name" type="text" name="store_name" class="layui-input" placeholder="订单号,账号,昵称,编号">
  115. </div>
  116. </div>
  117. <div class="layui-inline">
  118. <label class="layui-form-label" style="top: -4.5px">商品名称</label>
  119. <div class="layui-input-inline">
  120. <input type="text" id="product_name" name="product_name" class="layui-input" placeholder="商品名称">
  121. </div>
  122. </div>
  123. <div class="layui-inline">
  124. <label class="layui-form-label" style="top: -4.5px">所有场次</label>
  125. <div class="layui-input-block">
  126. <select id="auction_id" name="auction_id">
  127. <option value=" ">全部</option>
  128. <?php if(is_array($auction) || $auction instanceof \think\Collection || $auction instanceof \think\Paginator): $i = 0; $__LIST__ = $auction;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
  129. <option value="<?php echo htmlentities($vo['id']); ?>"><?php echo htmlentities($vo['nickname']); ?></option>
  130. <?php endforeach; endif; else: echo "" ;endif; ?>
  131. </select>
  132. </div>
  133. </div>
  134. <div class="layui-inline">
  135. <label class="layui-form-label" style="top: -4.5px">所有场馆</label>
  136. <div class="layui-input-block">
  137. <select id="gu_id" name="gu_id">
  138. <option value=" ">全部</option>
  139. <?php if(is_array($gu) || $gu instanceof \think\Collection || $gu instanceof \think\Paginator): $i = 0; $__LIST__ = $gu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
  140. <option value="<?php echo htmlentities($vo['id']); ?>"><?php echo htmlentities($vo['name']); ?></option>
  141. <?php endforeach; endif; else: echo "" ;endif; ?>
  142. </select>
  143. </div>
  144. </div>
  145. <div class="layui-inline">
  146. <label class="layui-form-label" style="top: -4.5px">是否挂售</label>
  147. <div class="layui-input-block">
  148. <select name="is_gs">
  149. <option value="">全部</option>
  150. <option value="2">未挂售</option>
  151. <option value="1">已挂售</option>
  152. </select>
  153. </div>
  154. </div>
  155. <div class="layui-inline" style="top: -5px">
  156. <div class="layui-input-inline">
  157. <button class="layui-btn layui-btn-sm layui-btn-normal" lay-submit="search" lay-filter="search" >
  158. <i class="layui-icon layui-icon-search"></i>搜索
  159. </button>
  160. </div>
  161. </div>
  162. <div class="layui-col-lg12" id="app1">
  163. <div class="layui-col-lg12">
  164. <label class="layui-form-label">创建状态:</label>
  165. <div class="layui-input-block" v-cloak="">
  166. <button class="layui-btn layui-btn-sm" type="button" v-for="item in statusList"
  167. @click="where.status = item.value"
  168. :class="{'layui-btn-primary':where.status!==item.value}">{{item.name}}
  169. </button>
  170. </div>
  171. </div>
  172. <div class="layui-col-lg12">
  173. <label class="layui-form-label">创建时间:</label>
  174. <div class="layui-input-block" data-type="data" v-cloak="">
  175. <button class="layui-btn layui-btn-sm" type="button" v-for="item in dataList"
  176. @click="setData(item)"
  177. :class="{'layui-btn-primary':where.data!=item.value}">{{item.name}}
  178. </button>
  179. <button class="layui-btn layui-btn-sm" type="button" ref="time"
  180. @click="setData({value:'zd',is_zd:true})"
  181. :class="{'layui-btn-primary':where.data!='zd'}">自定义
  182. </button>
  183. <button type="button" class="layui-btn layui-btn-sm layui-btn-primary"
  184. v-show="showtime==true" ref="date_time"><?php echo htmlentities($year['0']); ?> - <?php echo htmlentities($year['1']); ?>
  185. </button>
  186. </div>
  187. </div>
  188. <button @click="excel" type="button"
  189. class="layui-btn layui-btn-warm layui-btn-sm export" type="button">
  190. <i class="fa fa-floppy-o" style="margin-right: 3px;"></i>导出
  191. </button>
  192. </div>
  193. </div>
  194. </form>
  195. </div>
  196. </div>
  197. </div>
  198. <!-- 中间详细信息-->
  199. <div :class="item.col!=undefined ? 'layui-col-sm'+item.col+' '+'layui-col-md'+item.col:'layui-col-sm6 layui-col-md3'"
  200. v-for="item in badge" v-cloak="" v-if="item.count > 0">
  201. </div>
  202. <!--enb-->
  203. </div>
  204. <!--列表-->
  205. <div class="layui-row layui-col-space15">
  206. <div class="layui-col-md12">
  207. <div class="layui-card">
  208. <div class="layui-card-header">订单列表</div>
  209. <div class="layui-card-body">
  210. <!-- <div class="layui-btn-container" id="container-action">-->
  211. <!-- <a class="layui-btn layui-btn-sm" href="<?php echo Url('create'); ?>">添加商品</a>-->
  212. <!-- <button class="layui-btn layui-btn-sm" data-type="del_auction">批量删除</button>-->
  213. <!-- </div>-->
  214. <table class="layui-hide" id="List" lay-filter="List"></table>
  215. <script type="text/html" id="image" >
  216. <img style="cursor: pointer" lay-event="open_image" src="{{d.image}}" style="cursor: pointer">
  217. </script>
  218. <script type="text/html" id="au_name" >
  219. <div>{{d.gu_name}}</div>
  220. <div>{{d.au_name}}</div>
  221. </script>
  222. <script type="text/html" id="status">
  223. {{# if(d.status < 1){ }}
  224. <button type="button" name="status" class="layui-btn-disabled layui-btn-xs" id="">
  225. 过期订单
  226. </button>
  227. {{# } else if(d.status == 1) { }}
  228. <button type="button" name="status" class="layui-btn-xs layui-btn-disabled" id="">
  229. 待上传
  230. </button>
  231. {{# } else if(d.status == 2) { }}
  232. <button type="button" name="status" class="layui-btn layui-btn-xs layui-btn-danger" id="">
  233. 待审核
  234. </button>
  235. {{# } else if(d.status == 3) { }}
  236. <button type="button" name="status" class="layui-btn layui-btn-xs layui-btn-danger" id="">
  237. 完成
  238. </button>
  239. {{# } }}
  240. </script>
  241. <script type="text/html" id="upload_image">
  242. {{# if(d.upload_image === ''){ }}
  243. <button type="button" name="status" class="layui-btn-disabled layui-btn-xs" id="">
  244. 未上传
  245. </button>
  246. {{# } else { }}
  247. <img style="cursor: pointer" lay-event="open_upload_image" src="{{d.upload_image}}" style="cursor: pointer">
  248. {{# } }}
  249. </script>
  250. <script type="text/html" id="appeal">
  251. {{# if(d.appeal < 1){ }}
  252. <button type="button" name="status" class="layui-btn layui-btn-xs" id="">
  253. 未申诉
  254. </button>
  255. {{# } else { }}
  256. <button type="button" name="status" class="layui-btn layui-btn-xs" id=""style="background: red;">
  257. 申诉中
  258. </button>
  259. {{# } }}
  260. </script>
  261. <script type="text/html" id="is_gs">
  262. {{# if(d.status < 1){ }}
  263. <button type="button" name="status" class="layui-btn-disabled layui-btn-xs" id="">
  264. 过期订单
  265. </button>
  266. {{# } else { }}
  267. {{# if(d.is_gs < 1){ }}
  268. <button type="button" name="status" class="layui-btn-disabled layui-btn-xs" id="">
  269. 未挂售
  270. </button>
  271. {{# } else { }}
  272. <button type="button" name="status" class="layui-btn layui-btn-xs" id="">
  273. 已挂售
  274. </button>
  275. {{# } }}
  276. {{# } }}
  277. </script>
  278. <script type="text/html" id="act">
  279. <button type="button" class="layui-btn layui-btn-xs layui-btn-danger" lay-event='qd' id="">
  280. 通过
  281. </button>
  282. <button type="button" class="layui-btn layui-btn-xs layui-btn-danger" lay-event='delete' id="">
  283. 删除
  284. </button>
  285. </script>
  286. </div>
  287. </div>
  288. </div>
  289. </div>
  290. <!--end-->
  291. </div>
  292. <script src="/system/js/layuiList.js"></script>
  293. <script>
  294. //实例化form
  295. layList.form.render();
  296. layList.tableList('List', "<?php echo Url('list'); ?>", function () {
  297. return [
  298. {type: 'checkbox'},
  299. {field: 'id', title: 'ID', sort: true, event: 'id', width: '5%', templet: '#id'},
  300. {field: 'image', title: '图片', templet: '#image', align: 'center', width: '5%'},
  301. {field: 'order_id', title: '订单号', templet: '#order_id', align: 'center'},
  302. {field: 'au_name', title: '场次', templet: '#au_name', align: 'center'},
  303. {field: 'account', title: '用户账号', templet: '#account', align: 'center'},
  304. {field: 'nickname', title: '用户呢称', templet: '#nickname', align: 'center'},
  305. {field: 'us_account', title: '卖家账号', templet: '#us_account', align: 'us_account'},
  306. {field: 'us_nickname', title: '卖家昵称', templet: '#us_nickname', align: 'us_account'},
  307. {field: 'name', title: '商品', templet: '#name', align: 'center'},
  308. {field: 'price', title: '购买价格', templet: '#price', align: 'center', style : 'color: #DC143C;'},
  309. {field: 'upload_image', title: '打款凭证', templet: '#upload_image', align: 'center',width: '5%'},
  310. {field: 'status', title: '状态', templet: '#status', align: 'center'},
  311. {field: 'appeal', title: '申诉状态', templet: '#appeal', align: 'center'},
  312. {field: 'is_gs', title: '挂售状态', templet: '#is_gs', align: 'center'},
  313. {field: 'create_time', title: '购买时间', templet: '#date', align: 'center'},
  314. {field: 'right', title: '操作', align: 'center', toolbar: '#act'},
  315. ];
  316. });
  317. //点击事件绑定
  318. layList.tool(function (event,data,obj) {
  319. switch (event) {
  320. case 'delete':
  321. var url=layList.U({c:'auction.auction_order',a:'delete',q:{id:data.id}});
  322. var code = {title:"操作提示",text:"确定删除?",type:'info',confirm:'是的,删除'};
  323. $eb.$swal('delete',function(){
  324. $eb.axios.get(url).then(function(res){
  325. if(res.status == 200 && res.data.code == 200) {
  326. $eb.$swal('success',res.data.msg);
  327. obj.del();
  328. location.reload();
  329. }else
  330. return Promise.reject(res.data.msg || '删除失败')
  331. }).catch(function(err){
  332. $eb.$swal('error',err);
  333. });
  334. },code)
  335. break;
  336. case 'qd':
  337. var url=layList.U({c:'auction.auction_order',a:'qd',q:{id:data.id}});
  338. var code = {title:"操作提示",text:"确定通过订单吗?",type:'info',confirm:'是的,确定'};
  339. $eb.$swal('delete',function(){
  340. $eb.axios.get(url).then(function(res){
  341. if(res.status == 200 && res.data.code == 200) {
  342. $eb.$swal('success',res.data.msg);
  343. obj.del();
  344. location.reload();
  345. }else
  346. return Promise.reject(res.data.msg || '失败')
  347. }).catch(function(err){
  348. $eb.$swal('error',err);
  349. });
  350. },code)
  351. break;
  352. case 'open_image':
  353. $eb.openImage(data.image);
  354. break;
  355. case 'open_upload_image':
  356. $eb.openImage(data.upload_image);
  357. break;
  358. case 'edit':
  359. location.href = layList.U({a:'edit',q:{id:data.id}});
  360. break;
  361. }
  362. })
  363. //查询
  364. layList.search('search',function(where){
  365. layList.reload(where,true);
  366. });
  367. //改状态
  368. layList.switch('is_show',function (odj,value) {
  369. if(odj.elem.checked==true){
  370. layList.baseGet(layList.Url({c:'auction.auctionProduct',a:'set_status',p:{status:1,id:value}}),function (res) {
  371. layList.msg(res.msg, function () {
  372. layList.reload();
  373. });
  374. });
  375. }else{
  376. layList.baseGet(layList.Url({c:'auction.auctionProduct',a:'set_status',p:{status:0,id:value}}),function (res) {
  377. layList.msg(res.msg, function () {
  378. layList.reload();
  379. });
  380. });
  381. }
  382. });
  383. require(['vue'], function (Vue) {
  384. new Vue({
  385. el: "#app1",
  386. data: {
  387. badge: [],
  388. dataList: [
  389. {name: '全部', value: ''},
  390. {name: '今天', value: 'today'},
  391. {name: '昨天', value: 'yesterday'},
  392. {name: '最近7天', value: 'lately7'},
  393. {name: '最近30天', value: 'lately30'},
  394. {name: '本月', value: 'month'},
  395. {name: '本年', value: 'year'},
  396. ],
  397. statusList:[
  398. {name: '全部', value: ''},
  399. {name: '过期', value: '0'},
  400. {name: '待上传', value: '1'},
  401. {name: '待审核', value: '2'},
  402. {name: '完成', value: '3'}
  403. ],
  404. where: {
  405. data: '',
  406. status: status,
  407. type: '',
  408. pay_type: '',
  409. excel: 0,
  410. },
  411. showtime: false,
  412. },
  413. watch: {
  414. 'where.status': function () {
  415. this.where.excel = 0;
  416. this.getBadge();
  417. layList.reload(this.where, true);
  418. },
  419. 'where.data': function () {
  420. this.where.excel = 0;
  421. this.getBadge();
  422. layList.reload(this.where, true);
  423. },
  424. 'where.type': function () {
  425. this.where.excel = 0;
  426. this.getBadge();
  427. layList.reload(this.where, true);
  428. },
  429. 'where.pay_type': function () {
  430. this.where.excel = 0;
  431. this.getBadge();
  432. layList.reload(this.where, true);
  433. }
  434. },
  435. methods: {
  436. setData: function (item) {
  437. var that = this;
  438. if (item.is_zd == true) {
  439. that.showtime = true;
  440. this.where.data = this.$refs.date_time.innerText;
  441. } else {
  442. this.showtime = false;
  443. this.where.data = item.value;
  444. }
  445. },
  446. getBadge: function () {
  447. var that = this;
  448. layList.basePost(layList.Url({c: 'order.store_order', a: 'getBadge'}), this.where, function (rem) {
  449. that.badge = rem.data;
  450. });
  451. },
  452. search: function () {
  453. this.where.excel = 0;
  454. this.getBadge();
  455. layList.reload(this.where, true);
  456. },
  457. refresh: function () {
  458. layList.reload();
  459. this.getBadge();
  460. },
  461. excel: function () {
  462. var store_name = $('#store_name').val();
  463. var product_name = $('#product_name').val();
  464. var auction_id = $('#auction_id').val();
  465. var gu_id = $('#gu_id').val();
  466. this.where['store_name'] = store_name;
  467. this.where['product_name'] = product_name;
  468. this.where['auction_id'] = auction_id;
  469. this.where['gu_id'] = gu_id;
  470. this.where.excel = 1;
  471. location.href = layList.Url({c: 'auction.auction_order', a: 'list', q: this.where});
  472. this.where.excel = 0;
  473. }
  474. },
  475. mounted: function () {
  476. var that = this;
  477. that.getBadge();
  478. window.formReload = this.search;
  479. layList.laydate.render({
  480. elem: this.$refs.date_time,
  481. trigger: 'click',
  482. eventElem: this.$refs.time,
  483. range: true,
  484. change: function (value) {
  485. that.where.data = value;
  486. }
  487. });
  488. }
  489. })
  490. });
  491. </script>
  492. </div>
  493. </body>
  494. </html>