infoPage.vue 4.6 KB

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