out.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>财务数据统计</title>
  6. <meta name="renderer" content="webkit">
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  8. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  9. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  10. <meta name="apple-mobile-web-app-capable" content="yes">
  11. <meta name="format-detection" content="telephone=no">
  12. <link rel="stylesheet" type="text/css" href="../script/lib/layui/css/layui.css" />
  13. <link rel="stylesheet" type="text/css" href="../script/lib/valid/validationEngine.jquery.css">
  14. <!-- <link rel="stylesheet" type="text/css" href="../script/lib/layui/admin/style/admin.css?v9" media="all"> -->
  15. <link rel="stylesheet" type="text/css" href="../script/lib/fancybox/jquery.fancybox.css">
  16. <link rel="stylesheet" type="text/css" href="../script/lib/datetime/jquery.datetimepicker.css">
  17. <link rel="stylesheet" type="text/css" href="../script/lib/color/colpick.css">
  18. <link rel="stylesheet" type="text/css" href="../script/lib/kindeditor/themes/default/default.css?v1" />
  19. <link rel="stylesheet" type="text/css" href="../script/lib/valid/validationEngine.jquery.css">
  20. <link rel="stylesheet" type="text/css" href="../script/lib/highlight/highlight.min.css">
  21. <link rel="stylesheet" type="text/css" href="../script/lib/ui/ui.min.css">
  22. <link rel="stylesheet" href="../script/lib/layui/admin/modules/plugin/formselects/formselects.css" media="all" />
  23. <script src="../script/lib/jquery/jquery.min.js"></script>
  24. <script src="../script/lib/layui/layui.js"></script>
  25. <script src="../script/lib/echarts/echarts.common.min.js"></script>
  26. <script src="../script/lib/miniui/miniui.js"></script>
  27. <script><{Dever::script()}></script>
  28. <script src="../script/dever/core.js"></script>
  29. <script type="text/javascript" src="../script/lib/valid/jquery.validationEngine.min.js?v3"></script>
  30. <script type="text/javascript" src="../script/lib/layui/upload.js?v226"></script>
  31. <script type="text/javascript" src="../script/lib/datetime/jquery.datetimepicker.min.js?v2"></script>
  32. <script type="text/javascript" src="../script/lib/clipboard/clipboard.js?v11"></script>
  33. <script type="text/javascript" src="../script/lib/highlight/highlight.min.js"></script>
  34. <script type="text/javascript" src="../script/lib/fancybox/jquery.fancybox.js"></script>
  35. <script src="../script/lib/manage/main.js?v82"></script>
  36. <script type="text/javascript" src="../script/lib/pic/webp.js"></script>
  37. <script type="text/javascript" src="../script/lib/color/colpick.js"></script>
  38. <script type="text/javascript" src="../script/lib/kindeditor/kindeditor-all-min.js?v9"></script>
  39. <script type="text/javascript" src="../script/lib/kindeditor/lang/zh-CN.js?v7"></script>
  40. <script type="text/javascript" src="../script/lib/ui/ui.min.js"></script>
  41. <script type="text/javascript" src="../script/lib/qiniu/upload/plupload.full.min.js"></script>
  42. <script type="text/javascript" src="../script/lib/qiniu/qiniu.upload.js"></script>
  43. <script type="text/javascript" src="../script/lib/oss/aliyun-oss-sdk-6.11.2.min.js"></script>
  44. <script type="text/javascript" src="../script/lib/tool/md5.js"></script>
  45. <script type="text/javascript" src="../script/lib/layui/upload.js?v226"></script>
  46. <script type="text/javascript" src="../script/lib/layui/layui.js"></script>
  47. <script type="text/javascript" src="../script/lib/clipboard/clipboard.js"></script>
  48. <script type="text/javascript" src="../script/lib/pic/holder.js"></script>
  49. <script type="text/javascript" src="../script/lib/excel/xlsx.min.js"></script>
  50. <script type="text/javascript" src="../script/lib/excel/excel.js?v16"></script>
  51. <style>
  52. body{
  53. background:white;
  54. /*padding-left: 10px;*/
  55. height:100%;
  56. }
  57. .layout{
  58. width: 100%;
  59. height: 100%;
  60. /*display: flex;*/
  61. justify-content : space-around;
  62. font-size:14px;
  63. }
  64. h3{
  65. margin-top: 20px;
  66. margin-bottom: 20px;
  67. margin-left: 20px;
  68. }
  69. .layui-elem-quote{
  70. margin-left:20px;
  71. }
  72. .cate{
  73. height:38px;
  74. border-width: 1px;
  75. border-radius:2px;
  76. line-height: 1.3;
  77. }
  78. .type{
  79. height:38px;
  80. border-width: 1px;
  81. border-radius:2px;
  82. line-height: 1.3;
  83. }
  84. input{
  85. margin-top: 5px;
  86. margin-bottom: 5px;
  87. margin-left: 5px;
  88. }
  89. a{
  90. margin-top:5px;
  91. /*margin-left: 10px;*/
  92. margin-bottom: 5px;
  93. }
  94. .biaoti{
  95. margin-top: 50px;
  96. }
  97. </style>
  98. </head>
  99. <body>
  100. <div class="layout">
  101. <div class="layui-card">
  102. <div><h3>厨人意料管理平台-商品销售相关数据</h3></div>
  103. <blockquote class="layui-elem-quote">
  104. <select class = 'cate'>
  105. <option class = 'cate' value="-1">选择店铺类型</option>
  106. <option class = 'cate' value="1">体验店</option>
  107. <option class = 'cate' value="2">平台商城</option>
  108. </select>
  109. <input type="text" value="" autocomplete="shop_name" id="shop_name" class="layui-input" style="width: auto;display: inline;" placeholder="门店名称">
  110. <input type="text" value="" autocomplete="goods_name" id="goods_name" class="layui-input" style="width: auto;display: inline;" placeholder="商品名称">
  111. <input type="text" value="" autocomplete="order_num" id="order_num" class="layui-input" style="width: auto;display: inline;" placeholder="订单号">
  112. <!-- <br/>下单时间: -->
  113. <input type="text" value="" autocomplete="order" id="date" class="layui-input" style="width: auto;display: inline;" placeholder="下单时间">
  114. <!-- 发货时间: -->
  115. <input type="text" value="" autocomplete="fa" id="fa" class="layui-input" style="width: auto;display: inline;" placeholder="发货时间">
  116. <!-- 完成时间: -->
  117. <input type="text" value="" autocomplete="finish" id="fi" class="layui-input" style="width: auto;display: inline;" placeholder="完成时间">
  118. <br/>
  119. <a href="javascript:;" class="layui-btn" id="search">数据导出</a>
  120. </blockquote>
  121. <div><h3>厨人意料管理平台-代理商兑换订单</h3></div>
  122. <blockquote class="layui-elem-quote">
  123. <input type="text" value="" autocomplete="shop_name" id="dshop_name" class="layui-input" style="width: auto;display: inline;" placeholder="门店名称">
  124. <input type="text" value="" autocomplete="goods_name" id="dgoods_name" class="layui-input" style="width: auto;display: inline;" placeholder="商品名称">
  125. <input type="text" value="" autocomplete="order_num" id="dorder_num" class="layui-input" style="width: auto;display: inline;" placeholder="订单号">
  126. <!-- <br/>下单时间: -->
  127. <input type="text" value="" autocomplete="order" id="ddate" class="layui-input" style="width: auto;display: inline;" placeholder="下单时间">
  128. <!-- 发货时间: -->
  129. <input type="text" value="" autocomplete="fa" id="dfa" class="layui-input" style="width: auto;display: inline;" placeholder="发货时间">
  130. <!-- 完成时间: -->
  131. <input type="text" value="" autocomplete="finish" id="dfi" class="layui-input" style="width: auto;display: inline;" placeholder="完成时间">
  132. <br/>
  133. <a href="javascript:;" class="layui-btn" id="duihuan">数据导出</a>
  134. </blockquote>
  135. <div class="biaoti"><h3>厨人意料管理平台-代理商系统权益数据汇总</h3></div>
  136. <blockquote class="layui-elem-quote">
  137. <input type="text" value="" autocomplete="dh_name" id="dh_name" class="layui-input" style="width: auto;display: inline;" placeholder="权益名称">
  138. <input type="text" value="" autocomplete="member_name" id="member_name" class="layui-input" style="width: auto;display: inline;" placeholder="姓名">
  139. <input type="text" value="" autocomplete="mobile" id="mobile" class="layui-input" style="width: auto;display: inline;" placeholder="手机号">
  140. <input type="text" value="" autocomplete="card_num" id="card_num" class="layui-input" style="width: auto;display: inline;" placeholder="卡号">
  141. <input type="text" value="" autocomplete="getday" id="getday" class="layui-input" style="width: auto;display: inline;" placeholder="获取时间">
  142. <input type="text" value="" autocomplete="regday" id="regday" class="layui-input" style="width: auto;display: inline;" placeholder="代理商注册时间">
  143. <input type="text" value="" autocomplete="cardday" id="cardday" class="layui-input" style="width: auto;display: inline;" placeholder="礼品卡有效期">
  144. <br/>
  145. <a href="javascript:;" class="layui-btn" id="out">数据导出</a>
  146. </blockquote>
  147. <div class="biaoti"><h3>厨人意料管理平台-代理商系统权益数据明细</h3></div>
  148. <blockquote class="layui-elem-quote">
  149. <select class = 'type'>
  150. <option class = 'type' value="-1">选择类型</option>
  151. <option class = 'type' value="1">发放权益</option>
  152. <option class = 'type' value="2">兑换权益</option>
  153. <option class = 'type' value="3">使用权益</option>
  154. </select>
  155. <input type="text" value="" autocomplete="dh_name" id="dh_names" class="layui-input" style="width: auto;display: inline;" placeholder="权益名称">
  156. <input type="text" value="" autocomplete="mobile" id="mobiles" class="layui-input" style="width: auto;display: inline;" placeholder="手机号">
  157. <input type="text" value="" autocomplete="card_num" id="card_nums" class="layui-input" style="width: auto;display: inline;" placeholder="卡号">
  158. <input type="text" value="" autocomplete="shop_num" id="shop_nums" class="layui-input" style="width: auto;display: inline;" placeholder="门店编号">
  159. <input type="text" value="" autocomplete="shop_name" id="shop_names" class="layui-input" style="width: auto;display: inline;" placeholder="门店名称">
  160. <!-- <br/> -->
  161. <input type="text" value="" autocomplete="order_num" id="order_nums" class="layui-input" style="width: auto;display: inline;" placeholder="关联平台商城订单号">
  162. <input type="text" value="" autocomplete="day" id="day" class="layui-input" style="width: auto;display: inline;" placeholder="日期">
  163. <br/>
  164. <a href="javascript:;" class="layui-btn" id="out_mingxi">数据导出</a>
  165. </blockquote>
  166. </div>
  167. </div>
  168. <script>
  169. layui.use(['form','element', 'layer', 'jquery', 'laydate'], function(){
  170. var form = layui.form;
  171. var laydate = layui.laydate;
  172. laydate.render({
  173. elem: '#date',
  174. range: '~'
  175. });
  176. laydate.render({
  177. elem: '#fa',
  178. range: '~'
  179. });
  180. laydate.render({
  181. elem: '#fi',
  182. range: '~'
  183. });
  184. laydate.render({
  185. elem: '#ddate',
  186. range: '~'
  187. });
  188. laydate.render({
  189. elem: '#dfa',
  190. range: '~'
  191. });
  192. laydate.render({
  193. elem: '#dfi',
  194. range: '~'
  195. });
  196. laydate.render({
  197. elem: '#getday',
  198. range: '~'
  199. });
  200. laydate.render({
  201. elem: '#regday',
  202. range: '~'
  203. });
  204. laydate.render({
  205. elem: '#cardday',
  206. range: '~'
  207. });
  208. laydate.render({
  209. elem: '#day',
  210. range: '~'
  211. });
  212. });
  213. function search()
  214. {
  215. var date = $('#date').val();
  216. var fa = $('#fa').val();
  217. var fi = $('#fi').val();
  218. if (date) {
  219. var s = date.split(' ~ ');
  220. } else {
  221. var s = [];
  222. s[0] = '';
  223. s[1] = '';
  224. }
  225. if (fa) {
  226. var a = fa.split(' ~ ');
  227. } else {
  228. var a = [];
  229. a[0] = '';
  230. a[1] = '';
  231. }
  232. if (fi) {
  233. var f = fi.split(' ~ ');
  234. } else {
  235. var f = [];
  236. f[0] = '';
  237. f[1] = '';
  238. }
  239. cate = $(".cate").val();
  240. order_num = $('#order_num').val();
  241. goods_name = $('#goods_name').val();
  242. shop_name = $('#shop_name').val();
  243. var link = config.host + 'lib/manage.list&start=' + s[0] + '&end=' + s[1] + '&fastart=' + a[0] + '&faend=' + a[1] + '&fstart=' + f[0] + '&fend=' + f[1] + '&cate=' + cate + '&order_num=' + order_num + '&shop_name=' + shop_name + '&goods_name=' + goods_name + '&list_excel=1';
  244. jump(link);
  245. }
  246. $('#search').click(function() {
  247. search();
  248. })
  249. function duihuan()
  250. {
  251. var date = $('#ddate').val();
  252. var fa = $('#dfa').val();
  253. var fi = $('#dfi').val();
  254. if (date) {
  255. var s = date.split(' ~ ');
  256. } else {
  257. var s = [];
  258. s[0] = '';
  259. s[1] = '';
  260. }
  261. if (fa) {
  262. var a = fa.split(' ~ ');
  263. } else {
  264. var a = [];
  265. a[0] = '';
  266. a[1] = '';
  267. }
  268. if (fi) {
  269. var f = fi.split(' ~ ');
  270. } else {
  271. var f = [];
  272. f[0] = '';
  273. f[1] = '';
  274. }
  275. dorder_num = $('#dorder_num').val();
  276. dgoods_name = $('#dgoods_name').val();
  277. dshop_name = $('#dshop_name').val();
  278. var link = config.host + 'lib/manage.duihuan&start=' + s[0] + '&end=' + s[1] + '&fastart=' + a[0] + '&faend=' + a[1] + '&fstart=' + f[0] + '&fend=' + f[1] + '&order_num=' + dorder_num + '&shop_name=' + dshop_name + '&goods_name=' + dgoods_name + '&list_excel=1';
  279. jump(link);
  280. }
  281. $('#duihuan').click(function() {
  282. duihuan();
  283. })
  284. function out()
  285. {
  286. var getday = $('#getday').val();
  287. var regday = $('#regday').val();
  288. var cardday = $('#cardday').val();
  289. if (getday) {
  290. var g = getday.split(' ~ ');
  291. } else {
  292. var g = [];
  293. g[0] = '';
  294. g[1] = '';
  295. }
  296. if (regday) {
  297. var r = regday.split(' ~ ');
  298. } else {
  299. var r= [];
  300. r[0] = '';
  301. r[1] = '';
  302. }
  303. if (cardday) {
  304. var c = cardday.split(' ~ ');
  305. } else {
  306. var c = [];
  307. c[0] = '';
  308. c[1] = '';
  309. }
  310. dh_name = $("#dh_name").val();
  311. member_name = $("#member_name").val();
  312. card_num = $('#card_num').val();
  313. mobile = $('#mobile').val();
  314. var link = config.host + 'lib/manage.memberGoods&start=' + g[0] + '&end=' + g[1] + '&rstart=' + r[0] + '&rend=' + r[1] + '&cstart=' + c[0] + '&cend=' + c[1] + '&name=' + dh_name + '&card_num=' + card_num + '&mobile=' + mobile + '&member_name=' + member_name+'&list_excel=1';
  315. jump(link);
  316. }
  317. $('#out').click(function() {
  318. out();
  319. })
  320. function out_mingxi()
  321. {
  322. var day = $('#day').val();
  323. if (day) {
  324. var d = day.split(' ~ ');
  325. } else {
  326. var d = [];
  327. d[0] = '';
  328. d[1] = '';
  329. }
  330. dh_name = $("#dh_names").val();
  331. shop_name = $("#shop_names").val();
  332. card_num = $('#card_nums').val();
  333. shop_num = $('#shop_nums').val();
  334. order_num = $('#order_nums').val();
  335. mobile = $('#mobiles').val();
  336. type = $('.type').val();
  337. var link = config.host + 'lib/manage.mingxi&start=' + d[0] + '&end=' + d[1] + '&name=' + dh_name + '&card_num=' + card_num + '&mobile=' + mobile + '&shop_name=' + shop_name + '&shop_num=' + shop_num + '&order_num=' + order_num + '&type=' + type + '&list_excel=1';
  338. jump(link);
  339. }
  340. $('#out_mingxi').click(function() {
  341. out_mingxi();
  342. })
  343. </script>
  344. </body>
  345. </html>