backList_Search.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport"
  6. content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
  7. <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
  8. <title>订单内容</title>
  9. <link rel="stylesheet" type="text/css" href="./css/api.css" />
  10. <link rel="stylesheet" type="text/css" href="../css/aui-win.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: .48rem;
  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. .zhuceTimer {
  130. padding: 0.2rem 0.3rem;
  131. font-size: 0.45rem;
  132. background-color: #00a0ea;
  133. color: #fff;
  134. }
  135. .box01 {
  136. color: #434343;
  137. position: relative;
  138. font-size: .4rem;
  139. }
  140. .box01 input {
  141. -webkit-appearance: none;
  142. -moz-appearance: none;
  143. appearance: none;
  144. outline: 0;
  145. width: 9rem;
  146. height:.8rem;
  147. border: 0px solid #fff;
  148. border-radius: 5px;
  149. box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.1);
  150. padding: 0 0 0 .8rem;
  151. }
  152. .icon {
  153. display: inline-block;
  154. height: .4rem;
  155. width: .4rem;
  156. background-image: url(search.svg);
  157. background-repeat: no-repeat;
  158. position: absolute;
  159. top: .018rem;
  160. left: .15rem;
  161. z-index: 2;
  162. }
  163. [v-cloak] {
  164. display : none
  165. }
  166. </style>
  167. </head>
  168. <body>
  169. <div id="app" v-cloak>
  170. <div style="position: fixed;width: 100%;">
  171. <div style="background-color: #00a0ea;display: flex;justify-content: center;">
  172. <div class="box01">
  173. <input type="text" placeholder="请搜索门店" v-model="keyword">
  174. <span class="aui-iconfont aui-icon-search icon"></span>
  175. </div>
  176. </div>
  177. <div class="zhuceTimer ">
  178. <div v-on:click="getTimes" style="display: flex;">
  179. <div>门店核销时间:</div>
  180. <div v-on:click="getTimes(0)" style="color:#fff;">{{ startTime }}</div> ~ <div
  181. v-on:click="getTimes(1)" style="color:#fff">{{ endTime }}</div>
  182. </div>
  183. <div v-if="list">
  184. <div class="">
  185. 期间代理商待审核总金额:{{list.notReviewedAmount}}
  186. </div>
  187. <div class="">
  188. 期间代理商审核拒绝总金额:{{list.defeatedAmount}}
  189. </div>
  190. <div class="">
  191. 期间代理商审核同意总金额:{{list.succeedAmount}}
  192. </div>
  193. </div>
  194. </div>
  195. </div>
  196. <div style="padding-top: 4rem;">
  197. <div class="empty pageView youhuijuan" v-for="(order,index) in lists">
  198. <div>
  199. <div></div>
  200. <div>
  201. <samp>金额:{{ order.amount }}</samp>
  202. </div>
  203. <div>
  204. <span>{{ order.status | judgeStatus(order.status)}}</span><img src="" alt="">
  205. </div>
  206. </div>
  207. <div>
  208. <p>
  209. 门店名称:{{ order.storeName }}
  210. </p>
  211. <p>
  212. 核销码:{{ order.couponCode }}
  213. </p>
  214. <ul>
  215. <li>
  216. 创建时间:<span>{{ order.createTime }}</span>
  217. </li>
  218. </ul>
  219. </div>
  220. <div>
  221. <div>
  222. <p>
  223. B2B状态:<span v-if="'0'==order.status">未提交</span>
  224. <span v-if="'1'==order.status">未提交</span>
  225. <span v-if="'2'==order.status&&'0'==order.b2bStatus">待审核</span>
  226. <span v-if="'2'==order.status&&'1'==order.b2bStatus">审核不通过</span>
  227. <span v-if="'2'==order.status&&'2'==order.b2bStatus">审核通过</span>
  228. </p>
  229. </div>
  230. <div class="auditBtn" v-show="order.status == 0">
  231. <div v-on:click.stop="handleOrder(order.couponCode,1,index)">拒绝</div>
  232. <div v-on:click.stop="handleOrder(order.couponCode,2,index)">同意</div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. </div>
  238. </body>
  239. <link rel="stylesheet" href="./mescroll/mescroll.min.css">
  240. <script type="text/javascript" src="../script/aui-scroll.js"></script>
  241. <script type="text/javascript" src="./mescroll/mescroll.min.js"></script>
  242. <script type="text/javascript" src="../script/vue.js"></script>
  243. <script type="text/javascript" src="../script/api.js"></script>
  244. <script type="text/javascript" src="../script/httpRequest.js"></script>
  245. <script type="text/javascript" src="../script/vue_plugins.js"></script>
  246. <script src="js/vant-ui.js"></script>
  247. <script type="text/javascript">
  248. apiready = function () {
  249. new Vue({
  250. el: '#app',
  251. data: {
  252. keyword: '',
  253. lists: [],
  254. startTime: '开始',
  255. endTime: '至今',
  256. list:"",
  257. lists: []
  258. },
  259. watch: {
  260. keyword: function () {
  261. this.selectCouponLike();
  262. }
  263. },
  264. filters: {
  265. judgeStatus: function (auditStatus, status) {
  266. return ["待审核", "审核未通过", "审核通过"][status];
  267. },
  268. formatDate: function (time) {
  269. return time.substring(0, 10)
  270. }
  271. },
  272. mounted: function () {
  273. this.init();
  274. },
  275. methods: {
  276. init: function () {
  277. this.kunnr = $api.getStorage('kunnr');
  278. },
  279. getTimes: function (type) {
  280. var _this = this;
  281. this.getTime(function (time) {
  282. if (type == 0) {
  283. _this.startTime = time;
  284. } else {
  285. _this.endTime = time;
  286. }
  287. _this.selectCouponLike();
  288. })
  289. },
  290. selectCouponLike: function () {
  291. var data = {
  292. "kunnr": this.kunnr,
  293. "storeName": this.keyword,
  294. "startTime": this.startTime == '开始' ? '' : this.startTime + ' 00:00:00',
  295. "endTime": this.endTime == '至今' ? '' : this.endTime + ' 23:59:59',
  296. "url": "json",
  297. "type": "body"
  298. },
  299. _this = this,
  300. url = "selectCouponLike";
  301. this.$post(url, data, function (ret) {
  302. _this.list = ret.data;
  303. _this.lists = ret.data.bizCouponDtoList;
  304. })
  305. },
  306. // 处理订单操作handerOrderUrl
  307. handleOrder: function (code, status, index) {
  308. var data = {
  309. couponCode: code,
  310. status: status,
  311. kunnr: this.kunnr,
  312. url: 'json',
  313. type: 'body'
  314. },
  315. _this = this,
  316. url = "checkConponU";
  317. this.$post(url, data, function (res) {
  318. if (res.code == 0) {
  319. api.toast({
  320. msg: (status == 1 ? '拒绝' : '同意') + '成功',
  321. });
  322. setTimeout(function () {
  323. _this.$set(_this.lists[index], "status", (status == 2 ? '2' : '1'));
  324. if (status == 2) {
  325. _this.$set(_this.lists[index], "b2bStatus", 0);
  326. }
  327. }, 200);
  328. }
  329. })
  330. },
  331. // 查看订单详情
  332. lookOrderInfo: function (orderId) {
  333. this.goWin('orderInfo_win', 'orderInfo_win.html', {
  334. id: orderId
  335. });
  336. }
  337. }
  338. })
  339. }
  340. </script>
  341. </html>