platForm.vue 21 KB

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