cses_spt_detail.vue 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555
  1. <template>
  2. <div id="taskdetail">
  3. <div class="topbar">
  4. <div class="topbar_left" @click="goback">
  5. <svg class="icon" aria-hidden="true">
  6. <use xlink:href="#icon-fanhui"></use>
  7. </svg>
  8. </div>
  9. <div class="topbar_middle">
  10. 订单详情
  11. </div>
  12. <div class="topbar_right">
  13. <svg class="icon" aria-hidden="true">
  14. <use xlink:href="#icon-caidan"></use>
  15. </svg>
  16. </div>
  17. </div>
  18. <div id="content">
  19. <div class="toparea_dt" :class="colortop">
  20. <div class="taskcode_dt">
  21. FXXS1990305001
  22. <svg class="icon" aria-hidden="true" v-if="ifnew==1">
  23. <use xlink:href="#icon-ziyuan"></use>
  24. </svg>
  25. </div>
  26. <div class="taskflag_dt">
  27. <svg class="icon" aria-hidden="true">
  28. <use xlink:href="#icon-weikaishi" v-if="taskflag_dt=='待接收'"></use>
  29. <use xlink:href="#icon-jindu" v-if="taskflag_dt=='在进行'"></use>
  30. <use xlink:href="#icon-CombinedShape" v-if="taskflag_dt=='已完成'"></use>
  31. </svg>
  32. {{taskflag_dt}}
  33. </div>
  34. </div>
  35. <div class="taskinfo_dt">
  36. <div class="cust_dt">
  37. <svg class="icon" aria-hidden="true">
  38. <use xlink:href="#icon-kehu"></use>
  39. </svg>
  40. 安吉富和家具有限公司
  41. </div>
  42. </div>
  43. <div class="reptel_dt">
  44. <svg class="icon" aria-hidden="true">
  45. <use xlink:href="#icon-address"></use>
  46. </svg>
  47. <span>云天明</span>
  48. <span style="margin-left:10px;">13800138000</span>
  49. </div>
  50. <div class="address_dt">地址:广东省顺德市芙蓉中路二段115号湖南千思湖南千思湖南千思湖南千思湖南千思</div>
  51. <!-- <div class="liubai_dt"></div> -->
  52. <div class="middlearea">
  53. <div class='taskinfo_dtflex'>
  54. <div class="taskinfo_dttitle_dt">
  55. <div class="title_dt ">订货日期:</div>
  56. <div class="taskinfo_dtitem leftsize">2019-03-10</div>
  57. </div>
  58. <div class="taskinfo_dttitle_dt">
  59. <div class="title_dt rightside">交货日期:</div>
  60. <div class="taskinfo_dtitem requiredate">2019-03-15</div>
  61. </div>
  62. </div>
  63. <div class="taskinfo_dtamt">
  64. <div class="taskinfo_dttitle_dt">
  65. <div class="title_dt">金额:</div>
  66. <div class="taskinfo_dtitem taskamt leftsize">¥3500</div>
  67. </div>
  68. <div class="taskinfo_dttitle_dt rightside">
  69. <div class="title_dt">结算方式:</div>
  70. <div class="taskinfo_dtitem">款到发货</div>
  71. </div>
  72. </div>
  73. </div>
  74. <div class="dscrp">
  75. <svg class="icon" aria-hidden="true">
  76. <use xlink:href="#icon-wentibuchong"></use>
  77. </svg>
  78. 我是备注信息,如果没有,就不显示这一个div了。哔哩吧啦哔哩吧啦,哔哩吧啦哔哩吧啦,哔哩吧啦哔哩吧啦,哔哩吧啦哔哩吧啦!
  79. </div>
  80. <div class="liubai_dt"></div>
  81. <div class="subtitle_dt">订单明细</div>
  82. <div class="taskmx_dt">
  83. <div id="rowmx_dt">
  84. <div class="mxmtrl_dt">
  85. <svg class="icon" aria-hidden="true">
  86. <use xlink:href="#icon-dian"></use>
  87. </svg>
  88. 枪钉
  89. <span class="cses-spt-detail-mxdate">
  90. <svg class="icon" aria-hidden="true">
  91. <use xlink:href="#icon-jiaohuoriqishezhi"></use>
  92. </svg>
  93. 2019/03/15
  94. </span>
  95. </div>
  96. <div class="mxqty_dt">数量:5000粒,单价:0.1元,合计500元</div>
  97. <div class="mxqty_dt">发货:5000粒,质检合格:4980粒,不合格:20粒,收货:4980粒</div>
  98. <div class="cses-spt-check">
  99. <div class="cses-spt-check-title">不合格项目:破损12粒,生锈8粒</div>
  100. <div class="cses-spt-check-wrap">
  101. <div class="cses-spt-check-mx">
  102. <div><img src="../../assets/timg.jpg" class="check-img-responsive"></div>
  103. <div class="cses-spt-check-item">破损</div>
  104. </div>
  105. <div class="cses-spt-check-mx">
  106. <div><img src="../../assets/timg22.jpg" class="check-img-responsive"></div>
  107. <div class="cses-spt-check-item">生锈</div>
  108. </div>
  109. </div>
  110. </div>
  111. </div>
  112. <div id="rowmx_dt">
  113. <div class="mxmtrl_dt">
  114. <svg class="icon" aria-hidden="true">
  115. <use xlink:href="#icon-dian"></use>
  116. </svg>
  117. 角码
  118. <span class="cses-spt-detail-mxdate">
  119. <svg class="icon" aria-hidden="true">
  120. <use xlink:href="#icon-jiaohuoriqishezhi"></use>
  121. </svg>
  122. 2019/03/15
  123. </span>
  124. </div>
  125. <div class="mxqty_dt">数量:2000个,单价:0.5元,合计1000元</div>
  126. <div class="mxqty_dt">发货:2000个,质检合格:2000个,收货:2000个</div>
  127. </div>
  128. <div id="rowmx_dt">
  129. <div class="mxmtrl_dt">
  130. <svg class="icon" aria-hidden="true">
  131. <use xlink:href="#icon-dian"></use>
  132. </svg>
  133. 滚轮
  134. <span class="cses-spt-detail-mxdate">
  135. <svg class="icon" aria-hidden="true">
  136. <use xlink:href="#icon-jiaohuoriqishezhi"></use>
  137. </svg>
  138. 2019/03/15
  139. </span>
  140. </div>
  141. <div class="mxqty_dt">数量:400个,单价:5元,合计2000元</div>
  142. <div class="mxqty_dt">发货:400个,质检合格:400个,收货:400个</div>
  143. </div>
  144. </div>
  145. <div class="liubai_dt"></div>
  146. <div class="subtitle_dt">订单进度跟踪</div>
  147. <div class="jindu">
  148. <div>
  149. <svg class="icon" aria-hidden="true">
  150. <use xlink:href="#icon-buzhoutiaowancheng"></use>
  151. </svg>
  152. 下单日期:2019-03-10 09:30
  153. </div>
  154. <div>
  155. <svg class="icon" aria-hidden="true">
  156. <use xlink:href="#icon-buzhoutiaowancheng"></use>
  157. </svg>
  158. 接收时间:2019-03-10 10:05
  159. </div>
  160. <div>
  161. <svg class="icon" aria-hidden="true">
  162. <use xlink:href="#icon-buzhoutiaowancheng"></use>
  163. </svg>
  164. 发货开单:2019-03-14 15:00
  165. </div>
  166. <div>
  167. <svg class="icon" aria-hidden="true">
  168. <use xlink:href="#icon-buzhoutiaowancheng"></use>
  169. </svg>
  170. 发货完成:2019-03-14 15:30
  171. </div>
  172. <div>
  173. <svg class="icon" aria-hidden="true">
  174. <use xlink:href="#icon-buzhoutiaowancheng"></use>
  175. </svg>
  176. 质检完成:2019-03-15 09:30
  177. </div>
  178. <div>
  179. <svg class="icon" aria-hidden="true">
  180. <use xlink:href="#icon-buzhoutiaowancheng"></use>
  181. </svg>
  182. 收货完成:2019-03-15 10:30
  183. </div>
  184. <!-- <div>
  185. *要求完成日期:
  186. </div> -->
  187. </div>
  188. </div>
  189. <div class="spt-detail-btn-wrap" v-if="taskflag_dt=='待接收'">
  190. <div class="spt-detail-btn spt-detail-border-right">
  191. <svg class="icon" aria-hidden="true">
  192. <use xlink:href="#icon-tongyi"></use>
  193. </svg>
  194. 接收
  195. </div>
  196. <div class="spt-detail-btn">
  197. <svg class="icon" aria-hidden="true">
  198. <use xlink:href="#icon-guanbi"></use>
  199. </svg>
  200. 拒绝
  201. </div>
  202. </div>
  203. </div>
  204. </template>
  205. <script>
  206. export default {
  207. name: 'saletaskDetail',
  208. data() {
  209. return {
  210. taskflag_dt: '已完成',
  211. ifnew: 0
  212. };
  213. },
  214. methods: {
  215. goback() {
  216. {
  217. history.back();
  218. }
  219. }
  220. },
  221. computed: {
  222. colortop: function () {
  223. return {
  224. bgcolorred: this.taskflag_dt == "待接收",
  225. bgcolorgreen: this.taskflag_dt == "在进行",
  226. bgcolorblue: this.taskflag_dt == "已完成"
  227. };
  228. },
  229. }
  230. }
  231. </script>
  232. <style>
  233. body {
  234. margin: 0;
  235. padding: 0;
  236. /* background-color: #fff; */
  237. font-family: "微软雅黑";
  238. }
  239. .topbar {
  240. min-height: 44px;
  241. border-bottom: 1px solid #e5e5e5;
  242. background: #fff;
  243. position: fixed;
  244. width: 100%;
  245. z-index: 9999;
  246. display: flex;
  247. font-size: 18px;
  248. align-items: center;
  249. }
  250. .topbar_left {
  251. /* flex: 0 0 %; */
  252. margin-left: 10px;
  253. }
  254. .topbar_middle {
  255. text-align: center;
  256. flex: 0 0 85%;
  257. }
  258. .topbar_right {
  259. /* flex: 0 0 10%; */
  260. position: absolute;
  261. right: 10px;
  262. }
  263. #taskdetail {
  264. background-color: #fff;
  265. }
  266. #content {
  267. position: absolute;
  268. top: 44px;
  269. background-color: #fff;
  270. width: 100%;
  271. padding-bottom: 60px;
  272. }
  273. .toparea_dt {
  274. color: white;
  275. background-color: #fc4e2c;
  276. height: 80px;
  277. display: flex;
  278. }
  279. .bgcolorred {
  280. background-color: #fc4e2c
  281. }
  282. .bgcolorgreen {
  283. background-color: #8dc026;
  284. }
  285. .bgcolorblue {
  286. background-color: #1e90ff;
  287. }
  288. .taskcode_dt {
  289. font-size: 22px;
  290. font-weight: bold;
  291. padding: 10px 0 10px 10px;
  292. line-height: 30px;
  293. }
  294. .taskflag_dt {
  295. font-size: 18px;
  296. font-weight: bold;
  297. padding: 10px;
  298. line-height: 30px;
  299. position: absolute;
  300. right: 10px;
  301. }
  302. .taskinfo_dt {
  303. background-color: #fff;
  304. width: 100%;
  305. height: 35px;
  306. border-top-left-radius: 20px;
  307. border-top-right-radius: 20px;
  308. border-bottom-right-radius: 0px;
  309. border-bottom-left-radius: 0px;
  310. position: absolute;
  311. top: 50px;
  312. }
  313. .cust_dt {
  314. font-size: 16px;
  315. font-weight: bold;
  316. padding: 10px
  317. }
  318. .reptel_dt {
  319. font-size: 14px;
  320. font-weight: bold;
  321. margin: 10px 0 2px 10px;
  322. }
  323. .address_dt {
  324. font-size: 13px;
  325. margin-left: 30px;
  326. margin-right: 20px;
  327. margin-bottom: 10px;
  328. color: #666666;
  329. }
  330. .hyaddress_dt {
  331. font-size: 13px;
  332. margin-left: 10px;
  333. margin-right: 10px;
  334. margin-bottom: 10px;
  335. color: #666666;
  336. }
  337. .liubai_dt {
  338. width: 100%;
  339. height: 10px;
  340. background-color: #f6f6f6;
  341. }
  342. .middlearea {
  343. margin: 10px;
  344. font-size: 14px;
  345. }
  346. .taskinfo_dtflex {
  347. display: flex;
  348. /* height: 60px; */
  349. align-items: center;
  350. }
  351. .taskinfo_dttitle_dt {
  352. font-weight: bold;
  353. margin-bottom: 5px;
  354. display: flex;
  355. flex-wrap: wrap;
  356. }
  357. .title_dt {
  358. width: 80px;
  359. text-align: right
  360. }
  361. .taskinfo_dtitem {
  362. font-weight: normal;
  363. color: #333;
  364. }
  365. .taskinfo_dtamt {
  366. display: flex;
  367. }
  368. .taskamt {
  369. font-weight: bold;
  370. color: #ff0000;
  371. }
  372. .leftsize {
  373. width: 100px;
  374. }
  375. .dscrp {
  376. border-radius: 10px;
  377. background: #f0eded;
  378. padding: 10px 20px;
  379. margin: 0 20px 10px 20px;
  380. font-size: 15px;
  381. color: #555555;
  382. line-height: 18px;
  383. }
  384. .subtitle_dt {
  385. font-size: 17px;
  386. font-weight: 700;
  387. text-align: center;
  388. margin: 0 20px;
  389. height: 42px;
  390. line-height: 43px;
  391. }
  392. .jindu {
  393. border-top: 1px solid #f0f0f0;
  394. margin: 0 20px;
  395. font-size: 15px;
  396. line-height: 30px;
  397. padding: 10px 0;
  398. }
  399. .jindubtn {
  400. margin-left: 20px;
  401. border: 1px solid #bbb;
  402. padding: 0 10px;
  403. border-radius: 15px;
  404. font-size: 13px;
  405. }
  406. .taskmx_dt {
  407. border-top: 1px solid #f0f0f0;
  408. }
  409. #rowmx_dt {
  410. margin-bottom: 10px;
  411. }
  412. .mxmtrl_dt {
  413. margin: 5px;
  414. font-size: 16px;
  415. }
  416. .mxqty_dt {
  417. font-size: 14px;
  418. color: #888888;
  419. margin: 0 10px 3px 25px;
  420. }
  421. .spt-detail-btn-wrap {
  422. display: flex;
  423. position: fixed;
  424. bottom: 0;
  425. background-color: #fc4e2c;
  426. width: 100%;
  427. z-index: 9999;
  428. align-items: center;
  429. justify-content: center;
  430. padding: 5px 0 2px 0;
  431. box-shadow: 0 -1px 3px #f1f1f1;
  432. }
  433. .spt-detail-btn {
  434. color: #ffffff;
  435. font-size: 16px;
  436. font-weight: bold;
  437. width: 45%;
  438. text-align: center;
  439. padding: 8px
  440. }
  441. .spt-detail-border-right {
  442. border-right: 1px solid #f0f0f0;
  443. }
  444. .spt-detail-btn-on {
  445. color: #ff7f50
  446. }
  447. .spt-detail-icon {
  448. font-size: 23px;
  449. }
  450. .cses-spt-detail-mxdate {
  451. margin-left: 10px;
  452. padding: 2px 10px;
  453. background-color: #f0eded;
  454. border-radius: 15px;
  455. font-size: 15px;
  456. }
  457. .cses-spt-check {
  458. font-size: 14px;
  459. background-color: #f5f5f5;
  460. border-radius: 15px;
  461. padding: 10px;
  462. margin: 10px 20px
  463. }
  464. .cses-spt-check-title {
  465. padding: 0 0 10px 0
  466. }
  467. .cses-spt-check-wrap{
  468. display: flex;
  469. }
  470. .cses-spt-check-mx {
  471. text-align: center;
  472. }
  473. .check-img-responsive {
  474. display: inline-block;
  475. height: auto;
  476. max-width: 90%;
  477. }
  478. .cses-spt-check-item {}
  479. </style>