review.vue 2.8 KB

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