platForm.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535
  1. <template>
  2. <div class="workBench">
  3. <div class="topBody">
  4. <p class="breadcrumb">工作台</p>
  5. <div class="bottom">
  6. <div class="touxiang">
  7. <img src="@/assets/touxiang.png" alt="">
  8. </div>
  9. <div class='tip'>
  10. <p class="greet">早安,{{userInfo.username}},祝你开心每一天!</p>
  11. <p class="descPosition">
  12. <span>运营经理</span>
  13. <a-divider type="vertical" />
  14. <span>华北地区-头条事业部</span>
  15. </p>
  16. </div>
  17. </div>
  18. </div>
  19. <div class="section">
  20. <div class="sectionBody">
  21. <div class="sectionLeftBox">
  22. <div class="leftTop">
  23. <div class="sectionHead">
  24. 我的工作内容
  25. </div>
  26. <div class="zhanshiBox">
  27. <div class="item" @click="goOrderList(1)">
  28. <div class="title">
  29. <img src="@/assets/work.png" alt="" class="iconImg">
  30. <span>待确定的订单</span>
  31. </div>
  32. <div class="itemBody">
  33. <p class="count">60 <span>个</span></p>
  34. </div>
  35. </div>
  36. <div class="item" @click="goOrderList(2)">
  37. <div class="title">
  38. <img src="@/assets/work.png" alt="" class="iconImg">
  39. <span>待指派的订单</span>
  40. </div>
  41. <div class="itemBody">
  42. <p class="count">60 <span>个</span></p>
  43. </div>
  44. </div>
  45. <div class="item" @click="goMaterialList(1)">
  46. <div class="title">
  47. <img src="@/assets/work.png" alt="" class="iconImg">
  48. <span>我参与的物料</span>
  49. </div>
  50. <div class="itemBody">
  51. <p class="count">60 <span>个</span></p>
  52. </div>
  53. </div>
  54. <div class="item" @click="goMaterialList(2)">
  55. <div class="title">
  56. <img src="@/assets/work.png" alt="" class="iconImg">
  57. <span>被驳回的物料</span>
  58. </div>
  59. <div class="itemBody">
  60. <p class="count">60 <span>个</span></p>
  61. </div>
  62. </div>
  63. <div class="item" @click="goOrderList(3)">
  64. <div class="title">
  65. <img src="@/assets/work.png" alt="" class="iconImg">
  66. <span>已完成的订单</span>
  67. </div>
  68. <div class="itemBody">
  69. <p class="count">60 <span>个</span></p>
  70. </div>
  71. </div>
  72. <div class="item" @click="goOrderList(4)">
  73. <div class="title">
  74. <img src="@/assets/work.png" alt="" class="iconImg">
  75. <span>全部订单</span>
  76. </div>
  77. <div class="itemBody">
  78. <p class="count">60 <span>个</span></p>
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. <div class="leftBottom">
  84. <div class="sectionHead">
  85. 订单进度
  86. <a-button type="link" class="allOrder" @click="goOrderList(4)">全部订单</a-button>
  87. </div>
  88. <div class="orderProgress">
  89. <ul class="orderProgress-list">
  90. <li v-for="(item,index) in orderProgressList" :key="index" >
  91. <div style="display:flex;align-items: center;" class="orderProgress-list-item" @click="orderDetail(item)">
  92. <div style="display:flex;width:80%; align-items: center;" >
  93. <span class="item-icon"></span>
  94. <div class="content">
  95. <p class="name">{{item.orderTitle}}</p>
  96. <p class="desc">{{item.orderRemark}}</p>
  97. </div>
  98. </div>
  99. <div class="progress">
  100. <a-progress type="circle" :percent="75" :width='30' :showInfo='false' :strokeWidth='10' />
  101. <span style="margin-left:15px">75%</span>
  102. </div>
  103. </div>
  104. </li>
  105. </ul>
  106. <!-- hideOnSinglePage -->
  107. <a-pagination size="small" :total="totalPage" :current='currentPage' class="fenye" :change='pageChange' show-size-changer show-quick-jumper hideOnSinglePage />
  108. </div>
  109. </div>
  110. </div>
  111. <div class="sectionRightBox">
  112. <div class="rightTop">
  113. <div class="sectionHead">
  114. 操作记录
  115. </div>
  116. <div class="optionRecordList">
  117. <a-timeline>
  118. <a-timeline-item color='#F0F2F5' style="height:30px">
  119. <p style="margin-bottom:0px">
  120. <span class="content-item">Create a services site 2015-09-01</span>
  121. <span class="time">1分钟前</span>
  122. </p>
  123. </a-timeline-item>
  124. <a-timeline-item color='#F0F2F5' style="height:30px">
  125. <p style="margin-bottom:0px">
  126. <span class="content-item">Create a services site 2015-09-01</span>
  127. <span class="time">1分钟前</span>
  128. </p>
  129. </a-timeline-item>
  130. <a-timeline-item color='#F0F2F5' style="height:30px">
  131. <p style="margin-bottom:0px">
  132. <span class="content-item">Create a services site 2015-09-01</span>
  133. <span class="time">1分钟前</span>
  134. </p>
  135. </a-timeline-item>
  136. <a-timeline-item color='#F0F2F5' style="height:30px">
  137. <p style="margin-bottom:0px">
  138. <span class="content-item">Create a services site 2015-09-01</span>
  139. <span class="time">1分钟前</span>
  140. </p>
  141. </a-timeline-item>
  142. </a-timeline>
  143. </div>
  144. </div>
  145. <div class="rightBottom">
  146. <div class="sectionHead">
  147. 本周项目燃尽图
  148. </div>
  149. <div class="burnDown">
  150. <a-progress type="circle" :percent="75" :width='150' :strokeWidth='6' />
  151. <div class="tip">
  152. <p class="done">
  153. <span class="item-icon"></span>
  154. <span>已完成订单:{{}}个</span>
  155. </p>
  156. <p class="all">
  157. <span class="item-icon"></span>
  158. <span>未完成订单:{{}}个</span>
  159. </p>
  160. </div>
  161. </div>
  162. </div>
  163. </div>
  164. </div>
  165. </div>
  166. </div>
  167. </template>
  168. <script>
  169. import moment from 'moment';
  170. import { getAction, postAction, downFile, downFilePost } from '@/api/manage';
  171. export default {
  172. name:'designlearder-platform',
  173. data() {
  174. return {
  175. touxiang:'@/assets/touxiang.png',
  176. // 订单进度
  177. orderProgressList:[
  178. ],
  179. // 操作记录
  180. optionRecord:[],
  181. // 本周项目燃尽图
  182. burnDownChart:[],
  183. // 分页参数
  184. totalPage:0,
  185. currentPage:1,
  186. userInfo:{},
  187. roleCode:''
  188. }
  189. },
  190. methods: {
  191. orderDetail(item){
  192. console.log(item)
  193. this.$parent.currentTabComponent='orderDetail';
  194. this.$parent.orderId=item.id
  195. },
  196. goOrderList(val){
  197. console.log(val);
  198. // console.log(this.$parent)
  199. this.$parent.currentTabComponent='orderList';
  200. this.$parent.orderStatus=val
  201. },
  202. goMaterialList(val){
  203. this.$parent.currentTabComponent='materialList';
  204. this.$parent.materialStatus=val
  205. },
  206. // 分页页码改变
  207. pageChange(page, pageSize){
  208. this.currentPage=page;
  209. this.getOrderList()
  210. },
  211. // 全部订单
  212. allOrder() {
  213. this.$router.push('/workBench/orderList')
  214. },
  215. // 获取订单列表
  216. getOrderList(){
  217. let params={
  218. design:this.userInfo.id,
  219. pageNo:this.currentPage,
  220. pageSize:10,
  221. }
  222. getAction('/platform/order/listByCreatorOrDesignLeader',params).then(res=>{
  223. console.log(res);
  224. this.loading=false;
  225. if(res.success){
  226. this.orderProgressList=res.result.records;
  227. this.totalPage=res.result.total;
  228. }
  229. })
  230. },
  231. },
  232. mounted(){
  233. let userInfo=localStorage.getItem('pro__Login_Userinfo');
  234. if(userInfo){
  235. this.userInfo=JSON.parse(userInfo).value
  236. }
  237. this.roleCode=localStorage.getItem('roleCode')
  238. this.getOrderList()
  239. }
  240. }
  241. </script>
  242. <style lang="scss" scoped>
  243. .workBench{
  244. ul,li{
  245. margin: 0;
  246. padding: 0;
  247. }
  248. width: 100%;
  249. .topBody{
  250. width: 100%;
  251. height: 146px;
  252. background: #FFFFFF;
  253. margin-bottom: 12px;
  254. padding: 20px;
  255. box-sizing: border-box;
  256. .breadcrumb{
  257. width: 42px;
  258. height: 22px;
  259. font-size: 12px;
  260. font-family: PingFangSC-Regular, PingFang SC;
  261. font-weight: 400;
  262. color: #000000;
  263. line-height: 22px;
  264. }
  265. .bottom{
  266. display: flex;
  267. position: relative;
  268. // padding: 20px;
  269. .touxiang{
  270. width: 72px;
  271. height: 72px;
  272. margin-right: 20px;
  273. border-radius: 50%;
  274. overflow: hidden;
  275. img{
  276. width: 100%;
  277. height: 100%;
  278. border-radius: 50%;
  279. }
  280. }
  281. .tip{
  282. .greet{
  283. height: 28px;
  284. font-size: 20px;
  285. font-family: PingFangSC-Medium, PingFang SC;
  286. font-weight: 500;
  287. color: rgba(0, 0, 0, 0.85);
  288. line-height: 28px;
  289. }
  290. .descPosition{
  291. height: 22px;
  292. font-size: 14px;
  293. font-family: PingFangSC-Regular, PingFang SC;
  294. font-weight: 400;
  295. color: rgba(0, 0, 0, 0.45);
  296. line-height: 22px;
  297. }
  298. }
  299. .mybtn{
  300. position: absolute;
  301. // top: 50%;
  302. // margin-left: -18px;
  303. right: 0;
  304. }
  305. }
  306. }
  307. .section{
  308. .sectionBody{
  309. display: flex;
  310. .sectionHead{
  311. padding: 15px 20px;
  312. // height: 24px;
  313. font-size: 16px;
  314. font-family: PingFangSC-Medium, PingFang SC;
  315. font-weight: 500;
  316. color: rgba(0, 0, 0, 0.85);
  317. line-height: 24px;
  318. border-bottom: 1px solid #E9E9E9;;
  319. position: relative;
  320. .allOrder{
  321. position: absolute;
  322. right: 5px;
  323. }
  324. }
  325. .sectionLeftBox{
  326. width: 70%;
  327. .leftTop{
  328. overflow: hidden;
  329. background: white;
  330. }
  331. .zhanshiBox{
  332. display: flex;
  333. flex-wrap: wrap;
  334. .item{
  335. width: 33.33%;
  336. // background: brown;
  337. padding: 20px ;
  338. border-right: 1px solid #E9E9E9;
  339. border-bottom: 1px solid #E9E9E9;
  340. .title{
  341. padding-bottom: 34px;
  342. color: #000000;
  343. .iconImg{
  344. width: 24px;
  345. margin-right: 8px;
  346. }
  347. }
  348. .itemBody{
  349. text-align: center;
  350. .count{
  351. font-size: 24px;
  352. font-family: PingFangSC-Medium, PingFang SC;
  353. font-weight: 500;
  354. color: #000000;
  355. line-height: 32px;
  356. cursor: pointer;
  357. span{
  358. font-size: 16px;
  359. cursor: pointer;
  360. }
  361. }
  362. .count:hover{
  363. color: #1890FF;
  364. }
  365. }
  366. }
  367. .item:nth-child(3n){
  368. border-right: 0;
  369. }
  370. }
  371. .leftBottom{
  372. margin-top: 12px;
  373. background: white;
  374. .orderProgress{
  375. padding: 0 20px;
  376. .orderProgress-list-item{
  377. padding: 10px 0;
  378. display: flex;
  379. align-items: center;
  380. border-bottom: 1px solid #E9E9E9;;
  381. justify-content:space-between;
  382. cursor: pointer;
  383. .item-icon{
  384. width: 8px;
  385. height: 8px;
  386. background: #3BA0FF;
  387. margin-right: 15px;
  388. display: inline-block;
  389. border-radius: 50%;
  390. }
  391. .content{
  392. width: 70%;
  393. overflow: hidden;
  394. font-size: 14px;
  395. font-family: PingFangSC-Regular, PingFang SC;
  396. font-weight: 400;
  397. .name{
  398. height: 22px;
  399. color: rgba(0, 0, 0, 0.65);
  400. line-height: 22px;
  401. text-overflow: ellipsis;
  402. white-space: nowrap;
  403. overflow: hidden;
  404. margin-bottom: 0px;
  405. }
  406. .desc{
  407. height: 22px;
  408. color: rgba(0, 0, 0, 0.25);
  409. line-height: 22px;
  410. text-overflow: ellipsis;
  411. white-space: nowrap;
  412. overflow: hidden;
  413. margin-bottom: 0px;
  414. }
  415. }
  416. .progress{
  417. float: right;
  418. }
  419. }
  420. .fenye{
  421. padding: 20px 0;
  422. text-align: right;
  423. }
  424. }
  425. }
  426. }
  427. .sectionRightBox{
  428. width: 29.5%;
  429. // background: white;
  430. margin-left: 12px;
  431. .rightTop{
  432. height: 370px;
  433. background: white;
  434. .optionRecordList{
  435. padding: 20px;
  436. p{
  437. width: 100%;
  438. }
  439. .content-item{
  440. width: 80%;
  441. display: inline-block;
  442. overflow: hidden;
  443. text-overflow: ellipsis;
  444. white-space: nowrap;
  445. }
  446. .time{
  447. width: 20%;
  448. display: inline-block;
  449. overflow: hidden;
  450. text-overflow: ellipsis;
  451. white-space: nowrap;
  452. }
  453. }
  454. }
  455. .rightBottom{
  456. margin-top: 12px;
  457. background: white;
  458. .burnDown{
  459. padding: 30px 20px;
  460. text-align: center;
  461. .tip{
  462. margin-top: 40px;
  463. display: flex;
  464. justify-content: space-around;
  465. height: 22px;
  466. font-size: 14px;
  467. font-family: PingFangSC-Regular, PingFang SC;
  468. font-weight: 400;
  469. color: rgba(0, 0, 0, 0.65);
  470. line-height: 22px;
  471. .done{
  472. .item-icon{
  473. width: 8px;
  474. height: 8px;
  475. background: #3BA0FF;
  476. margin-right: 15px;
  477. display: inline-block;
  478. border-radius: 50%;
  479. }
  480. }
  481. .all{
  482. .item-icon{
  483. width: 8px;
  484. height: 8px;
  485. background: #F0F2F5;
  486. margin-right: 15px;
  487. display: inline-block;
  488. border-radius: 50%;
  489. }
  490. }
  491. }
  492. }
  493. }
  494. }
  495. }
  496. }
  497. }
  498. </style>
  499. <style lang="less">
  500. .workBench{
  501. .ant-timeline-item-head{
  502. background: rgb(240,242,245);
  503. }
  504. }
  505. </style>