m-worksheet.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459
  1. <template>
  2. <view>
  3. <!-- header -->
  4. <view class="header">
  5. <view class="header_title" :class="active===1?'active':''" @click="click_item(1)">
  6. <view class="title">待审核</view>
  7. <view class="line"></view>
  8. </view>
  9. <view class="header_title" :class="active===2?'active':''" @click="click_item(2)">
  10. <view class="title">已审核</view>
  11. <view class="line"></view>
  12. </view>
  13. </view>
  14. <!-- content -->
  15. <view class="content" v-if="active === 1">
  16. <view class="list">
  17. <view class="item">
  18. <view class="item_top">
  19. <view class="left">
  20. <view class="user_img">
  21. <image src="./icon/user.png" mode=""></image>
  22. </view>
  23. <view class="user_info">
  24. <view>编号:3E9MH27</view>
  25. <view>2019-4-9 11:46</view>
  26. </view>
  27. </view>
  28. <view class="right">
  29. <view class="sheet_info">正在审核</view>
  30. </view>
  31. </view>
  32. <view class="item_center">
  33. <view class="center_tip">物资领用</view>
  34. <view class="center_title">机电设备物资领用</view>
  35. <scroll-view scroll-x="true" >
  36. <view class="center_info">
  37. <view class="info_item">
  38. <view class="box">
  39. <view class="item_name">信息监测中心-张三</view>
  40. <view class="tip">通过</view>
  41. </view>
  42. <view class="icon">
  43. <uni-icons type="arrowthinright"></uni-icons>
  44. </view>
  45. </view>
  46. <view class="info_item">
  47. <view class="box">
  48. <view class="item_name">信息监测中心-张三</view>
  49. <view class="tip">通过</view>
  50. </view>
  51. <view class="icon">
  52. <uni-icons type="arrowthinright"></uni-icons>
  53. </view>
  54. </view>
  55. <view class="info_item">
  56. <view class="box">
  57. <view class="item_name">信息监测中心-张三</view>
  58. <view class="tip">通过</view>
  59. </view>
  60. <view class="icon">
  61. <uni-icons type="arrowthinright"></uni-icons>
  62. </view>
  63. </view>
  64. </view>
  65. </scroll-view>
  66. </view>
  67. <view class="item_bottom">
  68. <view class="bottom_btn">审核</view>
  69. </view>
  70. </view>
  71. <view class="item">
  72. <view class="item_top">
  73. <view class="left">
  74. <view class="user_img">
  75. <image src="./icon/user.png" mode=""></image>
  76. </view>
  77. <view class="user_info">
  78. <view>编号:3E9MH27</view>
  79. <view>2019-4-9 11:46</view>
  80. </view>
  81. </view>
  82. <view class="right">
  83. <view class="sheet_info">正在审核</view>
  84. </view>
  85. </view>
  86. <view class="item_center">
  87. <view class="center_tip">物资领用</view>
  88. <view class="center_title">机电设备物资领用</view>
  89. <scroll-view scroll-x="true" >
  90. <view class="center_info">
  91. <view class="info_item">
  92. <view class="box">
  93. <view class="item_name">信息监测中心-张三</view>
  94. <view class="tip">通过</view>
  95. </view>
  96. <view class="icon">
  97. <uni-icons type="arrowthinright"></uni-icons>
  98. </view>
  99. </view>
  100. <view class="info_item">
  101. <view class="box">
  102. <view class="item_name">信息监测中心-张三</view>
  103. <view class="tip">通过</view>
  104. </view>
  105. <view class="icon">
  106. <uni-icons type="arrowthinright"></uni-icons>
  107. </view>
  108. </view>
  109. <view class="info_item">
  110. <view class="box">
  111. <view class="item_name">信息监测中心-张三</view>
  112. <view class="tip">通过</view>
  113. </view>
  114. <view class="icon">
  115. <uni-icons type="arrowthinright"></uni-icons>
  116. </view>
  117. </view>
  118. </view>
  119. </scroll-view>
  120. </view>
  121. <view class="item_bottom">
  122. <view class="bottom_btn">审核</view>
  123. </view>
  124. </view>
  125. </view>
  126. </view>
  127. <!-- content -->
  128. <view class="content" v-if="active === 2">
  129. <view class="list">
  130. <view class="item" @click="go_m_worksheet_pass(1)">
  131. <view class="item_top">
  132. <view class="left">
  133. <view class="user_img">
  134. <image src="./icon/user.png" mode=""></image>
  135. </view>
  136. <view class="user_info">
  137. <view>开发者 调度室</view>
  138. <view>编号:#591 2019-4-9 11:46</view>
  139. </view>
  140. </view>
  141. <view class="right">
  142. <view class="sheet_info">已审核</view>
  143. </view>
  144. </view>
  145. <view class="item_center">
  146. <view class="center_tip">物资领用</view>
  147. <view class="center_title">机电设备物资领用</view>
  148. <scroll-view scroll-x="true" >
  149. <view class="center_info">
  150. <view class="info_item">
  151. <view class="box">
  152. <view class="item_name">开发者</view>
  153. <view class="tip"></view>
  154. </view>
  155. <view class="icon">
  156. <uni-icons type="arrowthinright"></uni-icons>
  157. </view>
  158. </view>
  159. <view class="info_item">
  160. <view class="box">
  161. <view class="item_name">开发者</view>
  162. <view class="tip"></view>
  163. </view>
  164. <view class="icon">
  165. <uni-icons type="arrowthinright"></uni-icons>
  166. </view>
  167. </view>
  168. </view>
  169. </scroll-view>
  170. </view>
  171. </view>
  172. <view class="item">
  173. <view class="item_top">
  174. <view class="left">
  175. <view class="user_img">
  176. <image src="./icon/user.png" mode=""></image>
  177. </view>
  178. <view class="user_info">
  179. <view>开发者 调度室</view>
  180. <view>编号:#591 2019-4-9 11:46</view>
  181. </view>
  182. </view>
  183. <view class="right">
  184. <view class="sheet_info">已审核</view>
  185. </view>
  186. </view>
  187. <view class="item_center">
  188. <view class="center_tip">物资领用</view>
  189. <view class="center_title">机电设备物资领用</view>
  190. <scroll-view scroll-x="true" >
  191. <view class="center_info">
  192. <view class="info_item">
  193. <view class="box">
  194. <view class="item_name">开发者</view>
  195. <view class="tip"></view>
  196. </view>
  197. <view class="icon">
  198. <uni-icons type="arrowthinright"></uni-icons>
  199. </view>
  200. </view>
  201. <view class="info_item">
  202. <view class="box">
  203. <view class="item_name">开发者</view>
  204. <view class="tip"></view>
  205. </view>
  206. <view class="icon">
  207. <uni-icons type="arrowthinright"></uni-icons>
  208. </view>
  209. </view>
  210. </view>
  211. </scroll-view>
  212. </view>
  213. </view>
  214. </view>
  215. </view>
  216. </view>
  217. </template>
  218. <script>
  219. export default {
  220. data() {
  221. return {
  222. // 默认选中表
  223. active:1,
  224. Authorization:'',
  225. // 待审核列表
  226. checkList:[],
  227. // 已审核列表
  228. checkedList:[]
  229. };
  230. },
  231. onLoad() {
  232. this.Authorization = uni.getStorageSync('token_type') +' '+uni.getStorageSync('Authorization')
  233. // this.getCheckList()
  234. // this.getCheckedList()
  235. },
  236. methods:{
  237. click_item(item){
  238. this.active = item
  239. },
  240. go_m_worksheet_pass(id){
  241. uni.navigateTo({
  242. url: './m-worksheet-pass/m-worksheet-pass?id='+id,
  243. animationType: 'fade-in',
  244. animationDuration: 200
  245. })
  246. },
  247. async getCheckList(){
  248. const Authorization = this.Authorization
  249. const res = await this.$myRequest({
  250. url:'/worksheet/check/list',
  251. header:{
  252. Authorization:Authorization
  253. }
  254. })
  255. console.log(res.data.data.data)
  256. this.checkList = res.data.data
  257. },
  258. async getCheckedList(){
  259. const Authorization = this.Authorization
  260. const res = await this.$myRequest({
  261. url:'/worksheet/checked/list',
  262. header:{
  263. Authorization:Authorization
  264. }
  265. })
  266. // console.log(res.data.data)
  267. this.checkedList = res.data.data
  268. }
  269. }
  270. }
  271. </script>
  272. <style lang="scss">
  273. .header{
  274. background-color: #fff;
  275. width: 100%;
  276. height: 97rpx;
  277. box-sizing: border-box;
  278. padding-top: 21rpx;
  279. display: flex;
  280. .header_title{
  281. width: 50%;
  282. .title{
  283. text-align: center;
  284. height: 47rpx;
  285. font-size: 33rpx;
  286. font-family: PingFangSC-Medium, PingFang SC;
  287. font-weight: 500;
  288. color: #BDC3C7;
  289. line-height: 47rpx;
  290. }
  291. }
  292. .active{
  293. .title{
  294. color: #16A085;
  295. }
  296. .line{
  297. margin-top: 21rpx;
  298. background-color: #16A085;
  299. height: 8rpx;
  300. }
  301. }
  302. }
  303. .content{
  304. width: 750rpx;
  305. .list{
  306. box-sizing: border-box;
  307. padding: 30rpx;
  308. .item{
  309. margin-bottom: 30rpx;
  310. width: 690rpx;
  311. border-radius: 6rpx;
  312. border: 1rpx solid #EDEFF9;
  313. border-top: 4rpx solid #2ECC71;
  314. box-sizing: border-box;
  315. padding: 20rpx 25rpx;
  316. .item_top{
  317. display: flex;
  318. justify-content: space-between;
  319. .left{
  320. height: 88rpx;
  321. display: flex;
  322. align-items: center;
  323. .user_img{
  324. width: 75rpx;
  325. height: 75rpx;
  326. border-radius: 50%;
  327. overflow: hidden;
  328. image{
  329. width: 75rpx;
  330. height: 75rpx;
  331. }
  332. }
  333. .user_info{
  334. margin-left: 22rpx;
  335. font-size: 21rpx;
  336. font-family: MicrosoftYaHei;
  337. color: #002257;
  338. line-height: 35rpx;
  339. }
  340. }
  341. .right{
  342. .sheet_info{
  343. margin-top: 8rpx;
  344. font-size: 21rpx;
  345. font-family: MicrosoftYaHei;
  346. color: #2ECC71;
  347. line-height: 35rpx;
  348. }
  349. }
  350. }
  351. .item_center{
  352. width: 640rpx;
  353. margin-top: 10rpx;
  354. border-radius: 6rpx;
  355. border: 1rpx solid #EDEFF9;
  356. box-sizing: border-box;
  357. padding-top: 10rpx;
  358. padding-left: 20rpx;
  359. padding-bottom: 20rpx;
  360. .center_tip{
  361. font-size: 18rpx;
  362. font-family: MicrosoftYaHei;
  363. color: #3498DB;
  364. line-height: 25px;
  365. }
  366. .center_title{
  367. font-size: 30rpx;
  368. font-family: MicrosoftYaHei;
  369. color: #002257;
  370. line-height: 40rpx;
  371. }
  372. .center_info{
  373. width: 400%;
  374. margin-top: 20rpx;
  375. display: flex;
  376. .info_item{
  377. display: flex;
  378. .box{
  379. .item_name{
  380. padding: 6rpx;
  381. border-radius: 6px;
  382. border: 2px solid #2ECC71;
  383. font-size: 21rpx;
  384. font-family: MicrosoftYaHei;
  385. color: #2ECC71;
  386. }
  387. .tip{
  388. margin-top: 5rpx;
  389. font-size: 21rpx;
  390. font-family: MicrosoftYaHei;
  391. color: #27AE60;
  392. line-height: 30rpx;
  393. text-align: center;
  394. }
  395. }
  396. .icon{
  397. }
  398. }
  399. .info_item:last-child{
  400. .icon{
  401. display: none;
  402. }
  403. }
  404. }
  405. }
  406. .item_bottom{
  407. margin-top: 30rpx;
  408. height: 50rpx;
  409. .bottom_btn{
  410. float: right;
  411. width: 100rpx;
  412. height: 50rpx;
  413. text-align: center;
  414. line-height: 50rpx;
  415. background: #1ABC9C;
  416. border-radius: 2rpx;
  417. font-size: 22rpx;
  418. font-family: MicrosoftYaHei;
  419. color: #FFFFFF;
  420. }
  421. }
  422. }
  423. }
  424. }
  425. </style>