orderInfo1.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>订单详情</title>
  6. <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport"/>
  7. <meta content="yes" name="apple-mobile-web-app-capable"/>
  8. <meta content="black" name="apple-mobile-web-app-status-bar-style"/>
  9. <meta content="telephone=no" name="format-detection"/>
  10. <link href="../../css/aui.css" rel="stylesheet" type="text/css"/>
  11. <link href="../../css/html.css" rel="stylesheet" type="text/css"/>
  12. <style>
  13. .aui-list .aui-list-item {
  14. border: 0px !important;
  15. }
  16. @media screen and (-webkit-min-device-pixel-ratio: 1.5) {
  17. .aui-list.aui-list-in .aui-list-item {
  18. background-image: none !important;
  19. }
  20. }
  21. @media screen and (-webkit-min-device-pixel-ratio: 1.5) {
  22. .aui-list.aui-list-in .aui-list-item {
  23. background-image: none !important;
  24. }
  25. }
  26. @media screen and (-webkit-min-device-pixel-ratio: 1.5) {
  27. .aui-list {
  28. background-image: none !important;
  29. }
  30. }
  31. .aui-list .aui-list-item, .aui-list .aui-list-item-inner {
  32. min-height: 1.7rem !important;
  33. }
  34. .aui-list-item-right1 {
  35. color: #067974 !important;
  36. border: 1px solid #067974;
  37. padding: 1px 3px;
  38. border-radius: 5px;
  39. }
  40. .zmq-info-left {
  41. width: 30%;
  42. display: flex;
  43. display: -webkit-flex;
  44. }
  45. .zmq-info-left img {
  46. width: 3.5rem;
  47. height: 3.5rem;
  48. margin: auto;
  49. }
  50. .zmq-info-right {
  51. width: 68%;
  52. }
  53. .zmq-item:not(:first-of-type) {
  54. margin-top: 10px;
  55. }
  56. </style>
  57. </head>
  58. <body>
  59. <section class="aui-flexView" id="app" v-cloak>
  60. <div class="aui-card-list">
  61. <div class="aui-card-list-content">
  62. <ul class="aui-list aui-media-list">
  63. <li class="aui-list-item aui-list-item-middle">
  64. <div class="aui-media-list-item-inner">
  65. <div class="aui-list-item-inner">
  66. <div class="aui-list-item-text">
  67. <div class="aui-list-item-title aui-font-size-14 zmq-text-normal">
  68. 下单时间:{{orderInfo.createTime}}
  69. </div>
  70. <div class="aui-list-item-right zmq-btn-img zmq-radius-10 zmq-padding-status zmq-text-white">
  71. {{orderStatus[orderInfo.status]}}
  72. </div>
  73. </div>
  74. <div class="aui-list-item-text zmq-text-msg">
  75. {{orderInfo.agentName}}
  76. </div>
  77. <div class="aui-list-item-text zmq-text-explain zmq-flex-start zmq-margin-vertical-2">
  78. <img src="../../image/drawable-xhdpi/11.png" class="zmq-icon-inline"/>{{orderInfo.agentName}}
  79. </div>
  80. <!--<div class="aui-list-item-text zmq-text-explain zmq-flex-start zmq-margin-vertical-2">
  81. <img src="../../image/drawable-xhdpi/map.png" class="zmq-icon-inline"/>金宇经销商
  82. </div>
  83. <div class="aui-list-item-text zmq-text-explain zmq-flex-start zmq-margin-vertical-2">
  84. <img src="../../image/drawable-xhdpi/phone.png" class="zmq-icon-inline"/>0182-0003992
  85. </div>-->
  86. </div>
  87. </div>
  88. </li>
  89. </ul>
  90. </div>
  91. </div>
  92. <div class="zmq-width-90">
  93. <div class="aui-content aui-margin-b-15">
  94. <ul class="aui-list aui-list-in zmq-radius-10 zmq-border-none">
  95. <li class="aui-list-item">
  96. <div class="aui-list-item-inner">
  97. <div class="aui-list-item-title zmq-text-font-07">
  98. 订单号
  99. </div>
  100. <div class="aui-list-item-right zmq-text-font-07">
  101. {{orderInfo.orderNum}}
  102. </div>
  103. </div>
  104. </li>
  105. <!--<li class="aui-list-item">
  106. <div class="aui-list-item-inner">
  107. <div class="aui-list-item-title zmq-text-font-07">
  108. 退回单数
  109. </div>
  110. <div class="aui-list-item-right zmq-text-msg zmq-text-font-07">
  111. 2
  112. </div>
  113. </div>
  114. </li>-->
  115. <li class="aui-list-item">
  116. <div class="aui-list-item-inner">
  117. <div class="aui-list-item-title zmq-text-font-07">
  118. 商品总数
  119. </div>
  120. <div class="aui-list-item-right zmq-text-msg zmq-text-font-07">
  121. {{orderInfo.amount}}
  122. </div>
  123. </div>
  124. </li>
  125. </ul>
  126. </div>
  127. </div>
  128. <div class="zmq-width-90">
  129. <div class="aui-content aui-margin-b-15">
  130. <ul class="aui-list aui-list-in zmq-radius-5 zmq-border-none zmq-flex zmq-item" v-for="(i,d) in orderInfo.bizOrderInfoDtoList" style="padding: 5px 0px;">
  131. <div class="zmq-info-left">
  132. <img v-lazy ="i.materialDto.simpleImgPath">
  133. </div>
  134. <div class="zmq-info-right">
  135. <li class="aui-list-item" style="padding : 0px">
  136. <div class="aui-list-item-inner">
  137. <div class="aui-list-item-title zmq-text-font-07" style="width: 80%">
  138. {{i.materialDto.materialName}}
  139. </div>
  140. <div class="aui-list-item-right zmq-text-font-08 zmq-text-msg" style="width: 40%;text-align: right">
  141. x{{i.amount}}
  142. </div>
  143. </div>
  144. </li>
  145. <li class="aui-list-item" style="padding-bottom : 0.5rem">
  146. <div class="zmq-flex zmq-width-100 zmq-margin-top-10">
  147. <div class="zmq-flex-1 zmq-textAlign-center zmq-text-explain">
  148. <span class="aui-list-item-right1">{{i.materialDto.brand}}</span>
  149. </div>
  150. <div class="zmq-flex-1 zmq-textAlign-center zmq-text-explain">
  151. <span class="aui-list-item-right1">{{i.materialDto.pattern}}</span>
  152. </div>
  153. </div>
  154. </li>
  155. </div>
  156. <!--<li class="aui-list-item">
  157. <div class="zmq-flex zmq-width-100">
  158. <div class="zmq-flex-1 zmq-textAlign-center">
  159. <div class="zmq-text-white zmq-bg-noraml zmq-inline zmq-text-font-05 zmq-padding-status">
  160. 已接单:5
  161. </div>
  162. </div>
  163. <div class="zmq-flex-1 zmq-textAlign-center">
  164. <div class="zmq-text-white zmq-bg-danger zmq-inline zmq-text-font-05 zmq-padding-status">
  165. 已退单:5
  166. </div>
  167. </div>
  168. </div>
  169. </li>
  170. -->
  171. </ul>
  172. </div>
  173. <!--<div class="aui-content aui-margin-b-15">
  174. <ul class="aui-list aui-list-in zmq-radius-5 zmq-border-none">
  175. <li class="aui-list-item">
  176. <div class="aui-list-item-inner">
  177. <div class="aui-list-item-title zmq-text-font-07">
  178. 金鱼轮胎 12R2010C112
  179. </div>
  180. <div class="aui-list-item-right zmq-text-font-09 zmq-text-msg">
  181. x5
  182. </div>
  183. </div>
  184. </li>
  185. <li class="aui-list-item">
  186. <div class="zmq-flex zmq-width-100 zmq-margin-top-10">
  187. <div class="zmq-flex-1 zmq-textAlign-center zmq-text-explain">
  188. 金宇轮胎12R225
  189. </div>
  190. <div class="zmq-flex-1 zmq-textAlign-center zmq-text-explain">
  191. JT538 库存充足
  192. </div>
  193. </div>
  194. </li>
  195. <li class="aui-list-item">
  196. <div class="zmq-flex zmq-width-100">
  197. <div class="zmq-flex-1 zmq-textAlign-center">
  198. <div class="zmq-text-white zmq-bg-noraml zmq-inline zmq-text-font-05 zmq-padding-status">
  199. 已接单:5
  200. </div>
  201. </div>
  202. <div class="zmq-flex-1 zmq-textAlign-center">
  203. <div class="zmq-text-white zmq-bg-danger zmq-inline zmq-text-font-05 zmq-padding-status">
  204. 已退单:5
  205. </div>
  206. </div>
  207. </div>
  208. </li>
  209. </ul>
  210. </div>-->
  211. </div>
  212. <!--<section class="aui-scrollView">
  213. <div class="aui-pay-change">
  214. <div class="aui-flex">
  215. <div class="aui-flex-box">
  216. <h3>已接单</h3>
  217. <p v-show="orderInfo.takeTime == null">
  218. 下单时间:2019-09-09 10:30
  219. </p>
  220. <p v-show="orderInfo.takeTime != null">
  221. 接单时间:2019-09-09 10:30
  222. </p>
  223. </div>
  224. <div class="aui-pay-zfb">
  225. <img src="../../images/11.png" alt="">
  226. </div>
  227. </div>
  228. </div>
  229. <div class="aui-flex">
  230. <div class="aui-flex-box">
  231. <h3> 金宇经销商 <em>86-18519238945</em></h3>
  232. <p>
  233. 青岛市崂山区文玲路
  234. </p>
  235. </div>
  236. </div>
  237. <div class="divHeight"></div>
  238. <div class="aui-cp-edu b-line">
  239. <div class="aui-san-sml"></div>
  240. <div class="aui-flex aui-flex-ed">
  241. <div class="aui-flex-box">
  242. 订单号 <em>223123123123</em>
  243. </div>
  244. </div>
  245. <div class="aui-flex aui-flex-ed">
  246. <div class="aui-flex-box" style="color:#333; font-size:15px;">
  247. 退回商品数<em style="color:#333">3</em>
  248. </div>
  249. </div>
  250. <div class="aui-flex aui-flex-ed">
  251. <div class="aui-flex-box" style="color:#333; font-size:15px;">
  252. 被接单数<em style="color:#333">5</em>
  253. </div>
  254. </div>
  255. </div>
  256. <div class="aui-commodity-bg" v-for="(store,storeIndex) in orderInfos">
  257. <div class="aui-flex">
  258. <div class="aui-flex-box">
  259. <h4>金宇轮胎 12R22517C</h4>
  260. <p>
  261. 金宇轮胎 12R225
  262. </p>
  263. <p style="margin-top: -5px">
  264. JT538 库存充足
  265. </p>
  266. </div>
  267. <div>
  268. <h5 style="text-align: right;margin-bottom: 10px">X5</h5>
  269. <h5 class="changeNum">已接单5</h5>
  270. <h5 v-show="store.o == 5" class="changeNum t">已退单5</h5>
  271. </div>
  272. </div>
  273. </div>
  274. <div class="divHeight b-line"></div>
  275. </section>-->
  276. <footer class="aui-footer zmq-footer-fixed" v-show="orderInfo.status == 0">
  277. <div class="zmq-width-90 aui-footer-text-info zmq-textAlign-center zmq-padding-btn ">
  278. <a href="javascript:;" class="aui-payment zmq-bg-danger zmq-text-white zmq-btn-circle" style="border: 0px solid#fff" v-on:click="saveOrder(2,'驳回')">驳回订单</a>
  279. <a href="javascript:;" class="aui-payment zmq-text-white zmq-btn-img zmq-btn-circle" style="border: 0px solid#fff" v-on:click="saveOrder(1,'接单')">我要接单</a>
  280. </div>
  281. </footer>
  282. </section>
  283. </body>
  284. <script type="text/javascript" src="../../script/api.js"></script>
  285. <script type="text/javascript" src="../../script/vue.js"></script>
  286. <script type="text/javascript" src="../../script/httpRequest.js"></script>
  287. <script type="text/javascript" src="../../script/vue_plugins.js"></script>
  288. <script type="text/javascript" src="../../script/vue-lazyload.js"></script>
  289. <script type="text/javascript">
  290. apiready = function() {
  291. var orderid = api.pageParam.orderid;
  292. new Vue({
  293. el : '#app',
  294. data : {
  295. orderid : orderid,
  296. // 接单url
  297. saveUrl : 'orderReviceUrl',
  298. // 接单状态
  299. saveStatus : 1,
  300. // 获取订单详情
  301. getOrderInfoUrl : 'getOrderInfo',
  302. // 订单详情
  303. orderInfo : '',
  304. orderInfos : [],
  305. // 订单状态
  306. orderStatus : ["待接单", "已接单", "已驳回"],
  307. },
  308. filters : {
  309. statusToStr : function(status) {
  310. var str = "";
  311. switch (status) {
  312. case 0:
  313. str = "待接单";
  314. break;
  315. case 1:
  316. str = "已接单";
  317. break;
  318. default :
  319. break;
  320. }
  321. return str
  322. }
  323. },
  324. methods : {
  325. init : function() {
  326. this.getInfo();
  327. },
  328. // 获取订单详情
  329. getInfo : function() {
  330. var _this = this;
  331. this.$post(this.getOrderInfoUrl, "", function(ret) {
  332. if (ret.code == 0) {
  333. _this.orderInfo = ret.bizOrderDto;
  334. }
  335. }, this.orderid);
  336. },
  337. // 接单
  338. saveOrder : function(stauts, n) {
  339. var data = {
  340. id : this.orderid,
  341. status : stauts,
  342. url : 'json',
  343. type : 'body',
  344. }, url = this.saveUrl, _this = this;
  345. this.showModal("温馨提示", "是否确认" + n, ["确认", "取消"], function(index) {
  346. if (index == 1) {
  347. _this.$post(url, data, function(ret) {
  348. if (ret.code == 0) {
  349. _this.showToast(n + "成功");
  350. setTimeout(function() {
  351. _this.getInfo();
  352. }, 300);
  353. }
  354. })
  355. }
  356. })
  357. }
  358. },
  359. mounted : function() {
  360. Vue.use(VueLazyload, {
  361. preLoad : 1.3,
  362. error : '../../image/noimg.png',
  363. loading : '../../image/load.gif',
  364. attempt : 1,
  365. });
  366. this.init();
  367. }
  368. })
  369. }
  370. </script>
  371. </html>