infoPage.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. <!-- 历史记录详情 -->
  2. <template>
  3. <view class="historicalRecordsInfoPage">
  4. <view class="title-p" style="margin-top:20rpx;">基础信息</view>
  5. <view class="title-weight-p">报备单编号:{{newData.reportNo}}</view>
  6. <view class="text-p">报备实验室:{{newData.subName}}({{newData.roomNum}})</view>
  7. <view class="text-p">上门回收日期:{{newData.expectTime}}({{newData.expectWeek}})</view>
  8. <view class="text-p">报备人:{{newData.reportName}}({{newData.reportAccount}})</view>
  9. <view class="text-p">报备时间:{{newData.reportTime}}</view>
  10. <view class="title-p">报备内容</view>
  11. <view class="positon-p" :class="newData.status=='0'?'colorA':(newData.status=='1'?'colorB':(newData.listNewData0=='2'?'colorC':''))">{{newData.listNewData0=='0'?'已报备待回收':(newData.status=='1'?'已回收':(newData.status=='2'?'超期未回收':''))}}</view>
  12. <view class="text-weight-box">
  13. <view>危险废物种类</view>
  14. <view>共{{newData.wasteOrderHistoryDetailItemVos.length}}种</view>
  15. </view>
  16. <view class="text-box" v-for="(item,index) in newData.wasteOrderHistoryDetailItemVos" :key="index">
  17. <view>{{item.typeName}}</view>
  18. <view>{{item.quantity}}{{item.unit}}</view>
  19. </view>
  20. <view class="remark-box">
  21. <view>备注说明</view>
  22. <view>{{newData.remark}}</view>
  23. </view>
  24. <view class="flex-null-p"></view>
  25. <view class="bottom-button-p" v-if="newData.status=='0'" @click="goPage(1)">修改报备单</view>
  26. <view class="bottom-button-p" v-if="newData.status=='1'" @click="goPage(2)">称重登记单</view>
  27. </view>
  28. </template>
  29. <script>
  30. import {
  31. parseTime
  32. } from '@/component/public.js'
  33. import {
  34. hwmsAppWasteOrderHistoryDetail,
  35. } from '@/pages_hazardousWasteRecycling/api/index.js'
  36. export default {
  37. data() {
  38. return {
  39. newId:'',
  40. newData:{
  41. wasteOrderHistoryDetailItemVos:[],
  42. },
  43. }
  44. },
  45. onLoad(option) {
  46. this.$set(this,'newId',option.id);
  47. },
  48. onShow() {
  49. this.hwmsAppWasteOrderHistoryDetail(this.newId);
  50. },
  51. mounted() {
  52. },
  53. methods: {
  54. goPage(type){
  55. if(type == 1){
  56. uni.navigateTo({
  57. url: "/pages_hazardousWasteRecycling/views/recyclingReportRecord/index?subId="+this.newData.subId,
  58. });
  59. }else if(type == 2){
  60. uni.navigateTo({
  61. url: "/pages_hazardousWasteRecycling/views/weighingRegistration/infoPage?id="+this.newData.registerId,
  62. });
  63. }
  64. },
  65. async hwmsAppWasteOrderHistoryDetail(id){
  66. const {
  67. data
  68. } = await hwmsAppWasteOrderHistoryDetail({id:id});
  69. if (data.code == 200) {
  70. data.data.reportTime = parseTime(data.data.reportTime, "{y}-{m}-{d} {h}:{i}:{s}")
  71. this.$set(this,'newData',data.data);
  72. }
  73. },
  74. },
  75. }
  76. </script>
  77. <style lang="stylus" scoped>
  78. .historicalRecordsInfoPage{
  79. height: 100%;
  80. display flex;
  81. flex-direction column;
  82. background-color: #fff;
  83. position: relative;
  84. overflow-x: hidden;
  85. overflow-y: scroll;
  86. .title-p{
  87. line-height:80rpx;
  88. font-size:32rpx;
  89. padding:0 30rpx;
  90. color:#666;
  91. }
  92. .title-weight-p{
  93. line-height:60rpx;
  94. font-size:32rpx;
  95. padding:0 50rpx;
  96. color:#333;
  97. font-weight:700;
  98. }
  99. .text-p{
  100. line-height:60rpx;
  101. font-size:32rpx;
  102. padding:0 50rpx;
  103. color:#333;
  104. }
  105. .positon-p{
  106. position: absolute;
  107. top:20rpx;
  108. right:30rpx;
  109. }
  110. .text-weight-box{
  111. display: flex;
  112. line-height:60rpx;
  113. font-size:32rpx;
  114. padding:0 50rpx;
  115. color:#333;
  116. font-weight:700;
  117. view:nth-child(1){
  118. flex:1;
  119. }
  120. view:nth-child(2){
  121. }
  122. }
  123. .text-box{
  124. display: flex;
  125. line-height:60rpx;
  126. font-size:32rpx;
  127. padding:0 50rpx;
  128. color:#333;
  129. view:nth-child(1){
  130. flex:1;
  131. }
  132. view:nth-child(2){
  133. }
  134. }
  135. .remark-box{
  136. line-height:60rpx;
  137. font-size:32rpx;
  138. padding:0 30rpx;
  139. color:#333;
  140. view:nth-child(1){
  141. line-height:80rpx;
  142. font-size:32rpx;
  143. color:#333;
  144. font-weight:700;
  145. }
  146. view:nth-child(2){
  147. padding:0 20rpx;
  148. line-height:50rpx;
  149. font-size:32rpx;
  150. color:#333;
  151. }
  152. }
  153. .flex-null-p{
  154. flex:1;
  155. }
  156. .bottom-button-p{
  157. width:700rpx;
  158. height:80rpx;
  159. line-height:80rpx;
  160. font-size:34rpx;
  161. color:#fff;
  162. background-color: #0183FA;
  163. margin:40rpx 25rpx;
  164. border-radius:10rpx;
  165. text-align: center;
  166. }
  167. .colorA{
  168. color:#0183FA;
  169. }
  170. .colorB{
  171. color:#00CD66;
  172. }
  173. .colorC{
  174. color:#FF6A6A;
  175. }
  176. }
  177. </style>