review.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <template>
  2. <view class="task-page">
  3. <div class="title">{{item.hdangerTitle}}</div>
  4. <div class="info">
  5. <div class="item">
  6. <view class="name">执行人</view>
  7. <view class="cont">执行人</view>
  8. </div>
  9. <div class="item">
  10. <view class="name">执行部门</view>
  11. <view class="cont">执行部门</view>
  12. </div>
  13. <div class="item">
  14. <view class="name">上报时间</view>
  15. <view class="cont">{{parseTime(new Date())}}</view>
  16. </div>
  17. </div>
  18. <view class="footer" @click="onSubmit">评审</view>
  19. </view>
  20. </template>
  21. <script>
  22. import {parseTime} from '@/libs/index.js'
  23. export default {
  24. data() {
  25. return {
  26. item:{
  27. },
  28. flow:{
  29. status:"",
  30. time:"",
  31. desc:"",
  32. attachList:[]
  33. },
  34. items:[],
  35. checkState:[{"value": 1,"text": "是" },{"value": 0,"text": "否"}]
  36. }
  37. },
  38. onLoad() {
  39. this.getTask()
  40. },
  41. methods: {
  42. parseTime,
  43. init(){
  44. let items=[]
  45. for(let i=0;i<10;i++){
  46. items.push({
  47. id:i,
  48. title:'检查防水是否完好',
  49. state:1
  50. })
  51. }
  52. this.items=items
  53. },
  54. getTask(){
  55. this.item=uni.getStorageSync('danger-info')
  56. },
  57. changeCheck(item){
  58. if(!item.state){
  59. uni.showModal({
  60. title: '提示',
  61. content: `请确认${item.title}状态为否`,
  62. success: function (res) {
  63. if (res.confirm) {
  64. console.log('用户点击确定');
  65. } else if (res.cancel) {
  66. console.log('用户点击取消');
  67. }
  68. }
  69. });
  70. }
  71. },
  72. onSubmit(){
  73. uni.navigateTo({
  74. url:'/pages/risk/review/form/form'
  75. })
  76. }
  77. }
  78. }
  79. </script>
  80. <style lang="scss" scoped>
  81. .task-page{
  82. background-color: #F3F5FB;
  83. height: 100vh;
  84. .title{
  85. font-family: 'Source Han Sans CN';
  86. font-style: normal;
  87. font-weight: 700;
  88. font-size: 36rpx;
  89. line-height: 54rpx;
  90. color: #212121;
  91. padding:0 32rpx;
  92. }
  93. .info{
  94. padding: 0 32rpx;
  95. margin: 40rpx 0;
  96. background: #FFFFFF;
  97. border-radius: 32rpx 32rpx 0px 0px;
  98. .item{
  99. border-bottom: 1rpx solid #EFF1F3;
  100. padding: 40rpx 32rpx;
  101. .name{
  102. font-size: 28rpx;
  103. color: #999999;
  104. line-height: 1;
  105. }
  106. .cont{
  107. font-size: 30rpx;
  108. color: #212121;
  109. line-height: 1.5;
  110. padding-top: 12rpx;
  111. }
  112. &:last-child{
  113. border-bottom:none;
  114. }
  115. }
  116. }
  117. .footer{
  118. width: 100%;
  119. height: 136upx;
  120. background: #FFFFFF;
  121. border-radius: 16upx 16upx 0px 0px;
  122. position: fixed;
  123. left: 0;
  124. bottom: 0;
  125. text-align: center;
  126. color: #168DEC;
  127. font-size: 32upx;
  128. padding-top: 20upx;
  129. letter-spacing: 2px;
  130. }
  131. }
  132. .item-checklist{
  133. display: flex;
  134. justify-content: space-between;
  135. padding: 15rpx 32rpx;
  136. border-bottom: 1rpx solid #EFF1F3;
  137. .name{
  138. flex: 1;
  139. }
  140. }
  141. </style>