backMoneyList_body.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
  6. <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
  7. <title>订单内容</title>
  8. <link rel="stylesheet" type="text/css" href="./css/api.css" />
  9. <link rel="stylesheet" type="text/css" href="./css/style1.css" />
  10. <link rel="stylesheet" type="text/css" href="css/vant-ui.css" />
  11. <link rel="stylesheet" type="text/css" href="css/iconfont.css">
  12. <script type="text/javascript" src="./js/auto-size.js"></script>
  13. <style>
  14. ul {
  15. -webkit-margin-before: 1em;
  16. -webkit-margin-after: 1em;
  17. -webkit-margin-start: 0px;
  18. -webkit-margin-end: 0px;
  19. -webkit-padding-start: 0px;
  20. }
  21. p {
  22. display: block;
  23. -webkit-margin-before: 0em;
  24. -webkit-margin-after: 0em;
  25. -webkit-margin-start: 0px;
  26. -webkit-margin-end: 0px;
  27. }
  28. li {
  29. list-style-type: none;
  30. }
  31. .empty {
  32. width: 96%;
  33. height: auto;
  34. /*background: rgba(255, 255, 255, 1);*/
  35. box-shadow: 0px 6px 24px 0px rgba(0, 0, 0, 0.1);
  36. border-radius: 20px;
  37. margin: 0 auto;
  38. margin-top: .2rem;
  39. }
  40. .empty>div:nth-child(1) {
  41. width: 92%;
  42. margin: 0 auto;
  43. padding-top: .5rem;
  44. }
  45. .empty>div:nth-child(1)>div:nth-child(1) {
  46. width: .2rem;
  47. height: .8rem;
  48. background: rgba(246, 207, 25, 1);
  49. float: left;
  50. margin-left: -.41rem;
  51. }
  52. .empty>div:nth-child(1)>div:nth-child(2) {
  53. font-size: .42rem
  54. }
  55. .empty>div:nth-child(1)>div:nth-child(3) {
  56. float: right;
  57. width: 2.6rem;
  58. height: .8rem;
  59. background: rgba(246, 207, 25, 1);
  60. border-radius: 20px 0px 0px 20px;
  61. margin-top: -.7rem;
  62. margin-right: -.41rem;
  63. text-align: center;
  64. line-height: .8rem;
  65. color: #fff;
  66. }
  67. .empty>div:nth-child(2) {
  68. width: 92%;
  69. margin: 0 auto;
  70. padding-top: .2rem;
  71. border-top: .02rem solid #E7E8EA;
  72. margin-top: .6rem;
  73. }
  74. .empty>div:nth-child(2)>p {
  75. font-size: .88rem;
  76. margin-bottom: .2rem;
  77. }
  78. .empty>div:nth-child(2)>ul>li {
  79. font-size: .42rem;
  80. }
  81. .empty>div:nth-child(2)>ul>li:nth-child(1) {
  82. float: left;
  83. }
  84. .empty>div:nth-child(2)>ul>li:nth-child(2) {
  85. float: right;
  86. }
  87. .empty>div:nth-child(2)>ul>li:nth-child(3) {
  88. padding-top: 1rem;
  89. }
  90. .empty>div:nth-child(3) {
  91. width: 92%;
  92. margin: 0 auto;
  93. margin-top: .2rem;
  94. border-top: .02rem solid #E7E8EA;
  95. padding-top: .4rem;
  96. }
  97. .empty>div:nth-child(3) {
  98. display: flex;
  99. justify-content: space-between;
  100. padding-bottom: .2rem;
  101. }
  102. .empty>div:nth-child(3)>div:nth-child(1) {
  103. line-height: .9rem;
  104. color: #616266;
  105. }
  106. .empty>div:nth-child(3)>div:nth-child(2) {
  107. font-size: .56rem;
  108. color: #303133;
  109. }
  110. .auditBtn {
  111. display: flex;
  112. margin-bottom: .1rem;
  113. }
  114. .auditBtn div:nth-child(1) {
  115. background-color: #999;
  116. color: #FFFFFF;
  117. font-size: .4rem;
  118. padding: .2rem .3rem;
  119. border-radius: .2rem;
  120. }
  121. .auditBtn div:nth-child(2) {
  122. background-color: #0096df;
  123. color: #FFFFFF;
  124. font-size: .4rem;
  125. padding: .2rem .3rem;
  126. border-radius: .2rem;
  127. margin-left: .2rem;
  128. }
  129. /*头部带查询样式*/
  130. /*.pageView.filterpage {
  131. background: #00a0ea;
  132. }*/
  133. .flex {
  134. display: flex !important;
  135. display: -webkit-flex !important;
  136. }
  137. .flex.a-center {
  138. align-items: center;
  139. }
  140. .flex.a-end {
  141. align-items: flex-end;
  142. }
  143. .flex.j-center {
  144. justify-content: center;
  145. }
  146. .flex.j-end {
  147. justify-content: flex-end;
  148. }
  149. .flex.jlr {
  150. justify-content: space-between;
  151. }
  152. .flex.col {
  153. flex-direction: column;
  154. }
  155. .flex.wrap {
  156. flex-wrap: wrap;
  157. }
  158. .flex .fx1 {
  159. flex: 1;
  160. }
  161. .pageView.filterpage .search {
  162. width: 100%;
  163. background: #00a0ea;
  164. height: 1.1rem;
  165. padding-left: 0.36rem;
  166. padding-right: 0.36rem;
  167. position: relative;
  168. box-sizing: border-box;
  169. /*left: 0;
  170. top: 0.86rem; */
  171. }
  172. .pageView.filterpage .search .searchbox {
  173. width: 100%;
  174. height: 0.94rem;
  175. background: #fff;
  176. border-radius: 5px;
  177. }
  178. .pageView.filterpage .search .searchbox input {
  179. width: 100%;
  180. font-size: 0.42rem;
  181. display: block;
  182. color: #999;
  183. height: 100%;
  184. position: relative;
  185. padding-left: 15%;
  186. padding-right: 5%;
  187. background: none;
  188. border: 0;
  189. outline: none;
  190. }
  191. .pageView.filterpage .search .searchbox svg {
  192. position: absolute;
  193. left: 10%;
  194. top: 50%;
  195. transform: translateY(-50%);
  196. }
  197. .pageView.filterpage .zhuceTimer {
  198. width: 100%;
  199. margin-bottom: 0.2rem;
  200. background: #fff;
  201. padding: 0.25rem 0.3rem;
  202. color: #00a0ea;
  203. font-size: .42rem;
  204. background-color: #00a0ea;
  205. color: #fff;
  206. box-sizing: border-box;
  207. }
  208. .pageView.filterpage .zhuceTimer h4 {
  209. font-size: .42rem;
  210. }
  211. </style>
  212. </head>
  213. <body>
  214. <div id="app" style="position : fixed;height : 100%;width:100%;background-color:#fff" v-cloak>
  215. <div class="pageView filterpage">
  216. <div class="searchSpec">
  217. <div class="search flex a-center">
  218. <div class="searchbox">
  219. <svg t="1589079341958" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5394" width="22" height="22">
  220. <path d="M883.626667 823.04l-145.066667-144.64A337.92 337.92 0 0 0 810.666667 469.333333a341.333333 341.333333 0 1 0-341.333334 341.333334 337.92 337.92 0 0 0 209.066667-72.106667l144.64 145.066667a42.666667 42.666667 0 0 0 60.586667 0 42.666667 42.666667 0 0 0 0-60.586667zM213.333333 469.333333a256 256 0 1 1 256 256 256 256 0 0 1-256-256z" p-id="5395" fill="#bfbfbf"></path>
  221. </svg>
  222. <input type="search" placeholder="请输入轮胎胎号" v-model="keyword">
  223. </div>
  224. </div>
  225. </div>
  226. <van-popup position="bottom" v-model="timeShow">
  227. <mycalendar title="选择日期" @comfirm="comfirm" @close="timeShow = false"></mycalendar>
  228. </van-popup>
  229. <div class="zhuceTimer flex a-center jlr">
  230. <div class="flex a-center" v-on:click="getTimes">
  231. <h4>获得时间:</h4>
  232. <p v-on:click="getTimes(0)">{{ startTime }}</p> ~
  233. <p v-on:click="getTimes(1)">{{ endTime }}</p>
  234. </div>
  235. </div>
  236. </div>
  237. <div id="mescroll" class="mescroll-touch-y mescroll">
  238. <div class="empty" v-for="(order,index) in list">
  239. <div>
  240. <div></div>
  241. <div>
  242. <samp>获得奖励:</samp><samp>{{ order.bonus }}元</samp>
  243. </div>
  244. <!-- <div>
  245. <span>{{ order.status | judgeStatus }}</span>
  246. </div> -->
  247. </div>
  248. <div>
  249. <p style="font-size:0.3rem">
  250. 物料:{{ order.matnr }}
  251. </p>
  252. <ul>
  253. <li>
  254. 品牌:<span>{{ order.brand }}</span>
  255. </li>
  256. <li>
  257. 规格:<span>{{ order.spec }}</span>
  258. </li>
  259. <li>
  260. 获得时间:<span>{{ order.createTime }}</span>
  261. </li>
  262. </ul>
  263. </div>
  264. <div>
  265. <div>
  266. <p>
  267. 扫码胎号:<span>{{ order.tirenumber }}</span>
  268. </p>
  269. </div>
  270. </div>
  271. </div>
  272. <div v-show="list.length == 0" style="text-align:center;width:100%;overflow: auto;">
  273. <img src="./image/noData.png" style="margin:1rem auto;width:100%;height : 100%" />
  274. </div>
  275. <div style="width: 1rem;height: 1rem;"></div>
  276. </div>
  277. </div>
  278. </body>
  279. <link rel="stylesheet" href="./mescroll/mescroll.min.css">
  280. <script type="text/javascript" src="./mescroll/mescroll.min.js"></script>
  281. <script type="text/javascript" src="../script/vue.js"></script>
  282. <script type="text/javascript" src="../script/api.js"></script>
  283. <script type="text/javascript" src="../script/httpRequest.js"></script>
  284. <script type="text/javascript" src="../script/vue_plugins.js"></script>
  285. <script src="js/vant-ui.js"></script>
  286. <script type="text/javascript">
  287. apiready = function() {
  288. new Vue({
  289. el: '#app',
  290. data: {
  291. list: [],
  292. userid: '',
  293. current: 1,
  294. size: 10, // 订单状态 0,新创建,1已接单,2,驳回,3完成 经销商审核 0 待审核 1 同意 2 拒绝
  295. frist: 1,
  296. totalPages: 1,
  297. hasOther: false,
  298. mescroll: '',
  299. // 添加查询
  300. timeShow: false,
  301. keyword: '',
  302. startTime: '开始时间',
  303. endTime: '结束时间'
  304. },
  305. filters: {
  306. judgeStatus: function(auditStatus, status) {
  307. return ["待接单", "已接单", "已驳回", "已完成"][status];
  308. }
  309. },
  310. mounted: function() {
  311. this.init();
  312. },
  313. watch: {
  314. keyword: function(nw, od) {
  315. this.current = 1;
  316. this.getOrderList();
  317. }
  318. },
  319. methods: {
  320. // 查询数据
  321. // 选择筛选条件
  322. comfirm: function(v) {
  323. this.timeShow = false
  324. },
  325. //选择时间
  326. getTimes: function(type) {
  327. var _this = this;
  328. this.getTime(function(time) {
  329. if (type == 0) {
  330. _this.startTime = time;
  331. } else {
  332. _this.endTime = time;
  333. }
  334. _this.getOrderList();
  335. })
  336. },
  337. init: function() {
  338. this.userid = $api.getStorage('userid');
  339. this.getOrderList();
  340. },
  341. configs: function() {
  342. var _this = this;
  343. this.frist = 2;
  344. this.configDownAndPull("mescroll", function(mescroll) {
  345. _this.mescroll = mescroll;
  346. _this.current = 1;
  347. _this.getOrderList(mescroll);
  348. }, function(mescroll) {
  349. if (_this.current < _this.totalPages) {
  350. _this.current = _this.current + 1;
  351. _this.getOrderList(mescroll, 1);
  352. } else {
  353. mescroll.endSuccess(_this.size, false);
  354. }
  355. })
  356. },
  357. addMore: function() {
  358. var _this = this;
  359. if (_this.current < _this.totalPages) {
  360. _this.current = _this.current + 1;
  361. _this.getCouponList(_this.mescroll, 1);
  362. } else {
  363. _this.hasOther = true;
  364. }
  365. },
  366. //获取列表
  367. getOrderList: function(mescroll) {
  368. var params = {
  369. "storeId": this.userid,
  370. "size": this.size,
  371. "current": this.current,
  372. url: 'json',
  373. type: 'body',
  374. "tirenumber": this.keyword,
  375. "startTime": this.startTime == '开始时间' ? '' : this.startTime + ' 00:00:00',
  376. "endTime": this.endTime == '结束时间' ? '' : this.endTime + ' 23:59:59',
  377. },
  378. _this = this;
  379. this.$post('lookUserTotalU', params, function(ret) {
  380. if (ret.code == 0 || ret.code == '0') {
  381. _this.totalPages = ret.page.pages;
  382. _this.list = _this.current == 1 ? ret.page.records : _this.list.concat(ret.page.records);
  383. if (mescroll) {
  384. mescroll.endSuccess(_this.size, true);
  385. }
  386. if (_this.frist == 1) {
  387. _this.$nextTick(function() {
  388. _this.configs();
  389. })
  390. }
  391. }
  392. });
  393. },
  394. // 处理订单操作handerOrderUrl
  395. handleOrder: function(type, id, index) {
  396. var data = {
  397. "id": id.toString(),
  398. "agentAuditStatus": type == 0 ? '2' : '1',
  399. "type": "body",
  400. "url": "json"
  401. },
  402. _this = this;
  403. this.$post('handerOrderUrl', data, function(ret) {
  404. if (ret.code == 0 || ret.code == '0') {
  405. api.toast({
  406. msg: ret.msg
  407. });
  408. setTimeout(function() {
  409. _this.$set(_this.list[index], "status", (type == 0 ? '2' : '1'));
  410. }, 200);
  411. }
  412. });
  413. },
  414. // 查看订单详情
  415. lookOrderInfo: function(orderId) {
  416. this.goWin('orderInfo_win', 'orderInfo_win.html', {
  417. id: orderId
  418. });
  419. }
  420. }
  421. })
  422. }
  423. </script>
  424. </html>