out.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  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. .dcate{
  79. height:38px;
  80. border-width: 1px;
  81. border-radius:2px;
  82. line-height: 1.3;
  83. }
  84. .type{
  85. height:38px;
  86. border-width: 1px;
  87. border-radius:2px;
  88. line-height: 1.3;
  89. }
  90. input{
  91. margin-top: 5px;
  92. margin-bottom: 5px;
  93. margin-left: 5px;
  94. }
  95. a{
  96. margin-top:5px;
  97. /*margin-left: 10px;*/
  98. margin-bottom: 5px;
  99. }
  100. .biaoti{
  101. margin-top: 50px;
  102. }
  103. </style>
  104. </head>
  105. <body>
  106. <div class="layout">
  107. <div class="layui-card">
  108. <div><h3>厨人意料管理平台-商品销售相关数据</h3></div>
  109. <blockquote class="layui-elem-quote">
  110. <select class = 'cate'>
  111. <option class = 'cate' value="-1">选择店铺类型</option>
  112. <option class = 'cate' value="1">体验店</option>
  113. <option class = 'cate' value="2">平台商城</option>
  114. </select>
  115. <input type="text" value="" autocomplete="shop_name" id="shop_name" class="layui-input" style="width: auto;display: inline;" placeholder="门店名称">
  116. <input type="text" value="" autocomplete="goods_name" id="goods_name" class="layui-input" style="width: auto;display: inline;" placeholder="商品名称">
  117. <input type="text" value="" autocomplete="order_num" id="order_num" class="layui-input" style="width: auto;display: inline;" placeholder="订单号">
  118. <!-- <br/>下单时间: -->
  119. <input type="text" value="" autocomplete="order" id="date" class="layui-input" style="width: auto;display: inline;" placeholder="下单时间">
  120. <!-- 发货时间: -->
  121. <input type="text" value="" autocomplete="fa" id="fa" class="layui-input" style="width: auto;display: inline;" placeholder="发货时间">
  122. <!-- 完成时间: -->
  123. <input type="text" value="" autocomplete="finish" id="fi" class="layui-input" style="width: auto;display: inline;" placeholder="完成时间">
  124. <br/>
  125. <a href="javascript:;" class="layui-btn" id="search">数据导出</a>
  126. </blockquote>
  127. <div><h3>厨人意料管理平台-代理商采购订单</h3></div>
  128. <blockquote class="layui-elem-quote">
  129. <select class = 'dcate'>
  130. <option class = 'dcate' value="-1">选择类型</option>
  131. <option class = 'dcate' value="1">采购单</option>
  132. <option class = 'dcate' value="2">商品兑换</option>
  133. </select>
  134. <input type="text" value="" autocomplete="dshop_name" id="dshop_name" class="layui-input" style="width: auto;display: inline;" placeholder="门店名称">
  135. <input type="text" value="" autocomplete="dgoods_name" id="dgoods_name" class="layui-input" style="width: auto;display: inline;" placeholder="商品名称">
  136. <input type="text" value="" autocomplete="dorder_num" id="dorder_num" class="layui-input" style="width: auto;display: inline;" placeholder="订单号">
  137. <br/>
  138. <!-- <br/>下单时间: -->
  139. <input type="text" value="" autocomplete="dorder" id="ddate" class="layui-input" style="width: auto;display: inline;" placeholder="下单时间">
  140. <!-- 发货时间: -->
  141. <input type="text" value="" autocomplete="dfa" id="dfa" class="layui-input" style="width: auto;display: inline;" placeholder="发货时间">
  142. <!-- 完成时间: -->
  143. <input type="text" value="" autocomplete="dfinish" id="dfi" class="layui-input" style="width: auto;display: inline;" placeholder="完成时间">
  144. <br/>
  145. <a href="javascript:;" class="layui-btn" id="duihuan">数据导出</a>
  146. </blockquote>
  147. <div class="biaoti"><h3>厨人意料管理平台-代理商系统权益数据汇总</h3></div>
  148. <blockquote class="layui-elem-quote">
  149. <input type="text" value="" autocomplete="dh_name" id="dh_name" class="layui-input" style="width: auto;display: inline;" placeholder="权益名称">
  150. <input type="text" value="" autocomplete="member_name" id="member_name" class="layui-input" style="width: auto;display: inline;" placeholder="姓名">
  151. <input type="text" value="" autocomplete="mobile" id="mobile" class="layui-input" style="width: auto;display: inline;" placeholder="手机号">
  152. <input type="text" value="" autocomplete="card_num" id="card_num" class="layui-input" style="width: auto;display: inline;" placeholder="卡号">
  153. <br/>
  154. <input type="text" value="" autocomplete="getday" id="getday" class="layui-input" style="width: auto;display: inline;" placeholder="获取时间">
  155. <input type="text" value="" autocomplete="regday" id="regday" class="layui-input" style="width: auto;display: inline;" placeholder="代理商注册时间">
  156. <input type="text" value="" autocomplete="cardday" id="cardday" class="layui-input" style="width: auto;display: inline;" placeholder="礼品卡有效期">
  157. <br/>
  158. <a href="javascript:;" class="layui-btn" id="out">数据导出</a>
  159. </blockquote>
  160. <div class="biaoti"><h3>厨人意料管理平台-代理商系统权益数据明细</h3></div>
  161. <blockquote class="layui-elem-quote">
  162. <select class = 'type'>
  163. <option class = 'type' value="-1">选择类型</option>
  164. <option class = 'type' value="1">发放权益</option>
  165. <option class = 'type' value="2">兑换权益</option>
  166. <option class = 'type' value="3">使用权益</option>
  167. </select>
  168. <input type="text" value="" autocomplete="dh_name" id="dh_names" class="layui-input" style="width: auto;display: inline;" placeholder="权益名称">
  169. <input type="text" value="" autocomplete="mobile" id="mobiles" class="layui-input" style="width: auto;display: inline;" placeholder="手机号">
  170. <input type="text" value="" autocomplete="card_num" id="card_nums" class="layui-input" style="width: auto;display: inline;" placeholder="卡号">
  171. <input type="text" value="" autocomplete="shop_num" id="shop_nums" class="layui-input" style="width: auto;display: inline;" placeholder="门店编号">
  172. <input type="text" value="" autocomplete="shop_name" id="shop_names" class="layui-input" style="width: auto;display: inline;" placeholder="门店名称">
  173. <!-- <br/> -->
  174. <input type="text" value="" autocomplete="order_num" id="order_nums" class="layui-input" style="width: auto;display: inline;" placeholder="关联平台商城订单号">
  175. <input type="text" value="" autocomplete="day" id="day" class="layui-input" style="width: auto;display: inline;" placeholder="日期">
  176. <br/>
  177. <a href="javascript:;" class="layui-btn" id="out_mingxi">数据导出</a>
  178. </blockquote>
  179. </div>
  180. </div>
  181. <script>
  182. layui.use(['form','element', 'layer', 'jquery', 'laydate'], function(){
  183. var form = layui.form;
  184. var laydate = layui.laydate;
  185. laydate.render({
  186. elem: '#date',
  187. range: '~'
  188. });
  189. laydate.render({
  190. elem: '#fa',
  191. range: '~'
  192. });
  193. laydate.render({
  194. elem: '#fi',
  195. range: '~'
  196. });
  197. laydate.render({
  198. elem: '#ddate',
  199. range: '~'
  200. });
  201. laydate.render({
  202. elem: '#dfa',
  203. range: '~'
  204. });
  205. laydate.render({
  206. elem: '#dfi',
  207. range: '~'
  208. });
  209. laydate.render({
  210. elem: '#getday',
  211. range: '~'
  212. });
  213. laydate.render({
  214. elem: '#regday',
  215. range: '~'
  216. });
  217. laydate.render({
  218. elem: '#cardday',
  219. range: '~'
  220. });
  221. laydate.render({
  222. elem: '#day',
  223. range: '~'
  224. });
  225. });
  226. function search()
  227. {
  228. var date = $('#date').val();
  229. var fa = $('#fa').val();
  230. var fi = $('#fi').val();
  231. if (date) {
  232. var s = date.split(' ~ ');
  233. } else {
  234. var s = [];
  235. s[0] = '';
  236. s[1] = '';
  237. }
  238. if (fa) {
  239. var a = fa.split(' ~ ');
  240. } else {
  241. var a = [];
  242. a[0] = '';
  243. a[1] = '';
  244. }
  245. if (fi) {
  246. var f = fi.split(' ~ ');
  247. } else {
  248. var f = [];
  249. f[0] = '';
  250. f[1] = '';
  251. }
  252. cate = $(".cate").val();
  253. order_num = $('#order_num').val();
  254. goods_name = $('#goods_name').val();
  255. shop_name = $('#shop_name').val();
  256. 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';
  257. jump(link);
  258. }
  259. $('#search').click(function() {
  260. search();
  261. })
  262. function duihuan()
  263. {
  264. var date = $('#ddate').val();
  265. var fa = $('#dfa').val();
  266. var fi = $('#dfi').val();
  267. if (date) {
  268. var s = date.split(' ~ ');
  269. } else {
  270. var s = [];
  271. s[0] = '';
  272. s[1] = '';
  273. }
  274. if (fa) {
  275. var a = fa.split(' ~ ');
  276. } else {
  277. var a = [];
  278. a[0] = '';
  279. a[1] = '';
  280. }
  281. if (fi) {
  282. var f = fi.split(' ~ ');
  283. } else {
  284. var f = [];
  285. f[0] = '';
  286. f[1] = '';
  287. }
  288. dcate = $('.dcate').val();
  289. dorder_num = $('#dorder_num').val();
  290. dgoods_name = $('#dgoods_name').val();
  291. dshop_name = $('#dshop_name').val();
  292. 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 + '&cate=' + dcate + '&list_excel=1';
  293. jump(link);
  294. }
  295. $('#duihuan').click(function() {
  296. duihuan();
  297. })
  298. function out()
  299. {
  300. var getday = $('#getday').val();
  301. var regday = $('#regday').val();
  302. var cardday = $('#cardday').val();
  303. if (getday) {
  304. var g = getday.split(' ~ ');
  305. } else {
  306. var g = [];
  307. g[0] = '';
  308. g[1] = '';
  309. }
  310. if (regday) {
  311. var r = regday.split(' ~ ');
  312. } else {
  313. var r= [];
  314. r[0] = '';
  315. r[1] = '';
  316. }
  317. if (cardday) {
  318. var c = cardday.split(' ~ ');
  319. } else {
  320. var c = [];
  321. c[0] = '';
  322. c[1] = '';
  323. }
  324. dh_name = $("#dh_name").val();
  325. member_name = $("#member_name").val();
  326. card_num = $('#card_num').val();
  327. mobile = $('#mobile').val();
  328. 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';
  329. jump(link);
  330. }
  331. $('#out').click(function() {
  332. out();
  333. })
  334. function out_mingxi()
  335. {
  336. var day = $('#day').val();
  337. if (day) {
  338. var d = day.split(' ~ ');
  339. } else {
  340. var d = [];
  341. d[0] = '';
  342. d[1] = '';
  343. }
  344. dh_name = $("#dh_names").val();
  345. shop_name = $("#shop_names").val();
  346. card_num = $('#card_nums').val();
  347. shop_num = $('#shop_nums').val();
  348. order_num = $('#order_nums').val();
  349. mobile = $('#mobiles').val();
  350. type = $('.type').val();
  351. 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';
  352. jump(link);
  353. }
  354. $('#out_mingxi').click(function() {
  355. out_mingxi();
  356. })
  357. </script>
  358. </body>
  359. </html>