out.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  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 class="biaoti"><h3>厨人意料管理平台-代理商系统权益数据汇总</h3></div>
  122. <blockquote class="layui-elem-quote">
  123. <input type="text" value="" autocomplete="dh_name" id="dh_name" class="layui-input" style="width: auto;display: inline;" placeholder="权益名称">
  124. <input type="text" value="" autocomplete="member_name" id="member_name" class="layui-input" style="width: auto;display: inline;" placeholder="姓名">
  125. <input type="text" value="" autocomplete="mobile" id="mobile" class="layui-input" style="width: auto;display: inline;" placeholder="手机号">
  126. <input type="text" value="" autocomplete="card_num" id="card_num" class="layui-input" style="width: auto;display: inline;" placeholder="卡号">
  127. <input type="text" value="" autocomplete="getday" id="getday" class="layui-input" style="width: auto;display: inline;" placeholder="获取时间">
  128. <input type="text" value="" autocomplete="regday" id="regday" class="layui-input" style="width: auto;display: inline;" placeholder="代理商注册时间">
  129. <input type="text" value="" autocomplete="cardday" id="cardday" class="layui-input" style="width: auto;display: inline;" placeholder="礼品卡有效期">
  130. <br/>
  131. <a href="javascript:;" class="layui-btn" id="out">数据导出</a>
  132. </blockquote>
  133. <div class="biaoti"><h3>厨人意料管理平台-代理商系统权益数据明细</h3></div>
  134. <blockquote class="layui-elem-quote">
  135. <select class = 'type'>
  136. <option class = 'type' value="-1">选择类型</option>
  137. <option class = 'type' value="1">发放权益</option>
  138. <option class = 'type' value="2">兑换权益</option>
  139. <option class = 'type' value="3">使用权益</option>
  140. </select>
  141. <input type="text" value="" autocomplete="dh_name" id="dh_names" class="layui-input" style="width: auto;display: inline;" placeholder="权益名称">
  142. <input type="text" value="" autocomplete="mobile" id="mobiles" class="layui-input" style="width: auto;display: inline;" placeholder="手机号">
  143. <input type="text" value="" autocomplete="card_num" id="card_nums" class="layui-input" style="width: auto;display: inline;" placeholder="卡号">
  144. <input type="text" value="" autocomplete="shop_num" id="shop_nums" class="layui-input" style="width: auto;display: inline;" placeholder="门店编号">
  145. <input type="text" value="" autocomplete="shop_name" id="shop_names" class="layui-input" style="width: auto;display: inline;" placeholder="门店名称">
  146. <!-- <br/> -->
  147. <input type="text" value="" autocomplete="order_num" id="order_nums" class="layui-input" style="width: auto;display: inline;" placeholder="关联平台商城订单号">
  148. <input type="text" value="" autocomplete="day" id="day" class="layui-input" style="width: auto;display: inline;" placeholder="日期">
  149. <br/>
  150. <a href="javascript:;" class="layui-btn" id="out_mingxi">数据导出</a>
  151. </blockquote>
  152. </div>
  153. </div>
  154. <script>
  155. layui.use(['form','element', 'layer', 'jquery', 'laydate'], function(){
  156. var form = layui.form;
  157. var laydate = layui.laydate;
  158. laydate.render({
  159. elem: '#date',
  160. range: '~'
  161. });
  162. laydate.render({
  163. elem: '#fa',
  164. range: '~'
  165. });
  166. laydate.render({
  167. elem: '#fi',
  168. range: '~'
  169. });
  170. laydate.render({
  171. elem: '#getday',
  172. range: '~'
  173. });
  174. laydate.render({
  175. elem: '#regday',
  176. range: '~'
  177. });
  178. laydate.render({
  179. elem: '#cardday',
  180. range: '~'
  181. });
  182. laydate.render({
  183. elem: '#day',
  184. range: '~'
  185. });
  186. });
  187. function search()
  188. {
  189. var date = $('#date').val();
  190. var fa = $('#fa').val();
  191. var fi = $('#fi').val();
  192. if (date) {
  193. var s = date.split(' ~ ');
  194. } else {
  195. var s = [];
  196. s[0] = '';
  197. s[1] = '';
  198. }
  199. if (fa) {
  200. var a = fa.split(' ~ ');
  201. } else {
  202. var a = [];
  203. a[0] = '';
  204. a[1] = '';
  205. }
  206. if (fi) {
  207. var f = fi.split(' ~ ');
  208. } else {
  209. var f = [];
  210. f[0] = '';
  211. f[1] = '';
  212. }
  213. cate = $(".cate").val();
  214. order_num = $('#order_num').val();
  215. goods_name = $('#goods_name').val();
  216. shop_name = $('#shop_name').val();
  217. 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';
  218. jump(link);
  219. }
  220. $('#search').click(function() {
  221. search();
  222. })
  223. function out()
  224. {
  225. var getday = $('#getday').val();
  226. var regday = $('#regday').val();
  227. var cardday = $('#cardday').val();
  228. if (getday) {
  229. var g = getday.split(' ~ ');
  230. } else {
  231. var g = [];
  232. g[0] = '';
  233. g[1] = '';
  234. }
  235. if (regday) {
  236. var r = regday.split(' ~ ');
  237. } else {
  238. var r= [];
  239. r[0] = '';
  240. r[1] = '';
  241. }
  242. if (cardday) {
  243. var c = cardday.split(' ~ ');
  244. } else {
  245. var c = [];
  246. c[0] = '';
  247. c[1] = '';
  248. }
  249. dh_name = $("#dh_name").val();
  250. member_name = $("#member_name").val();
  251. card_num = $('#card_num').val();
  252. mobile = $('#mobile').val();
  253. 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';
  254. jump(link);
  255. }
  256. $('#out').click(function() {
  257. out();
  258. })
  259. function out_mingxi()
  260. {
  261. var day = $('#day').val();
  262. if (day) {
  263. var d = day.split(' ~ ');
  264. } else {
  265. var d = [];
  266. d[0] = '';
  267. d[1] = '';
  268. }
  269. dh_name = $("#dh_names").val();
  270. shop_name = $("#shop_names").val();
  271. card_num = $('#card_nums').val();
  272. shop_num = $('#shop_nums').val();
  273. order_num = $('#order_nums').val();
  274. mobile = $('#mobiles').val();
  275. type = $('.type').val();
  276. 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';
  277. jump(link);
  278. }
  279. $('#out_mingxi').click(function() {
  280. out_mingxi();
  281. })
  282. </script>
  283. </body>
  284. </html>