infoPage.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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. newData:{},
  40. }
  41. },
  42. onLoad(option) {
  43. this.hwmsAppWasteOrderHistoryDetail(option.id);
  44. },
  45. onShow() {
  46. },
  47. mounted() {
  48. },
  49. methods: {
  50. goPage(type){
  51. if(type == 1){
  52. uni.navigateTo({
  53. url: "/pages_hazardousWasteRecycling/views/historicalRecords/index",
  54. });
  55. }else if(type == 2){
  56. uni.navigateTo({
  57. url: "/pages_hazardousWasteRecycling/views/weighingRegistration/infoPage?id="+this.newData.registerId,
  58. });
  59. }
  60. },
  61. async hwmsAppWasteOrderHistoryDetail(id){
  62. const {
  63. data
  64. } = await hwmsAppWasteOrderHistoryDetail({id:id});
  65. if (data.code == 200) {
  66. data.data.reportTime = parseTime(data.data.reportTime, "{y}-{m}-{d} {h}:{i}:{s}")
  67. this.$set(this,'newData',data.data);
  68. }
  69. },
  70. },
  71. }
  72. </script>
  73. <style lang="stylus" scoped>
  74. .historicalRecordsInfoPage{
  75. height: 100%;
  76. display flex;
  77. flex-direction column;
  78. background-color: #fff;
  79. position: relative;
  80. overflow-x: hidden;
  81. overflow-y: scroll;
  82. .title-p{
  83. line-height:80rpx;
  84. font-size:32rpx;
  85. padding:0 30rpx;
  86. color:#666;
  87. }
  88. .title-weight-p{
  89. line-height:60rpx;
  90. font-size:32rpx;
  91. padding:0 50rpx;
  92. color:#333;
  93. font-weight:700;
  94. }
  95. .text-p{
  96. line-height:60rpx;
  97. font-size:32rpx;
  98. padding:0 50rpx;
  99. color:#333;
  100. }
  101. .positon-p{
  102. position: absolute;
  103. top:20rpx;
  104. right:30rpx;
  105. }
  106. .text-weight-box{
  107. display: flex;
  108. line-height:60rpx;
  109. font-size:32rpx;
  110. padding:0 50rpx;
  111. color:#333;
  112. font-weight:700;
  113. view:nth-child(1){
  114. flex:1;
  115. }
  116. view:nth-child(2){
  117. }
  118. }
  119. .text-box{
  120. display: flex;
  121. line-height:60rpx;
  122. font-size:32rpx;
  123. padding:0 50rpx;
  124. color:#333;
  125. view:nth-child(1){
  126. flex:1;
  127. }
  128. view:nth-child(2){
  129. }
  130. }
  131. .remark-box{
  132. line-height:60rpx;
  133. font-size:32rpx;
  134. padding:0 30rpx;
  135. color:#333;
  136. view:nth-child(1){
  137. line-height:80rpx;
  138. font-size:32rpx;
  139. color:#333;
  140. font-weight:700;
  141. }
  142. view:nth-child(2){
  143. padding:0 20rpx;
  144. line-height:50rpx;
  145. font-size:32rpx;
  146. color:#333;
  147. }
  148. }
  149. .flex-null-p{
  150. flex:1;
  151. }
  152. .bottom-button-p{
  153. width:700rpx;
  154. height:80rpx;
  155. line-height:80rpx;
  156. font-size:34rpx;
  157. color:#fff;
  158. background-color: #0183FA;
  159. margin:40rpx 25rpx;
  160. border-radius:10rpx;
  161. text-align: center;
  162. }
  163. .colorA{
  164. color:#0183FA;
  165. }
  166. .colorB{
  167. color:#00CD66;
  168. }
  169. .colorC{
  170. color:#FF6A6A;
  171. }
  172. }
  173. </style>