infoPage.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. <!-- 登记称重详情 -->
  2. <template>
  3. <view class="weighingRegistrationInfoPage">
  4. <view class="title-p" style="margin-top:20rpx;">基础信息</view>
  5. <view class="title-weight-p">称重登记单编号:{{newData.registerNo}}</view>
  6. <view class="text-p">实验室:{{newData.subName}}({{newData.roomNum}})</view>
  7. <view class="text-p">上门回收日期:{{newData.recycleTime}}({{newData.recycleWeek}})</view>
  8. <view class="text-p">报备人:{{newData.reportName}}({{newData.reportAccount}})</view>
  9. <view class="text-p">报备时间:{{newData.reportTime}}</view>
  10. <view class="text-p">称重登记人:{{newData.register}}({{newData.registerNum}})</view>
  11. <view class="text-p">称重登记时间:{{newData.registerTime}}</view>
  12. <view class="text-p">回收人员确认时间:{{newData.confirmTime}}</view>
  13. <view class="signature-box">
  14. <view>回收人员签名:</view>
  15. <img :src="baseUrl+newData.collectorSign">
  16. </view>
  17. <view class="title-p">称重登记内容</view>
  18. <view class="text-weight-box">
  19. <view>危险废物种类</view>
  20. <view>共{{newData.details.length}}种</view>
  21. </view>
  22. <view class="text-box" v-for="(item,index) in newData.details" :key="index">
  23. <view>{{item.typeName}}</view>
  24. <view>{{item.weight}}kg</view>
  25. </view>
  26. <view class="img-box" v-if="newData.images[0]">
  27. <view>图片</view>
  28. <view>
  29. <img :src="baseUrl+img" v-for="(img,imgIndex) in newData.images" :key="imgIndex">
  30. </view>
  31. </view>
  32. <view class="flex-null-p"></view>
  33. </view>
  34. </template>
  35. <script>
  36. import {
  37. parseTime
  38. } from '@/component/public.js'
  39. import { config } from '@/api/request/config.js'
  40. import {
  41. hwmsAppRegisterOrderDetail,
  42. } from '@/pages_hazardousWasteRecycling/api/index.js'
  43. export default {
  44. data() {
  45. return {
  46. baseUrl:config.base_url,
  47. newData:{
  48. images:[],
  49. },
  50. }
  51. },
  52. onLoad(option) {
  53. this.hwmsAppRegisterOrderDetail(option.id);
  54. },
  55. onShow() {
  56. },
  57. mounted() {
  58. },
  59. methods: {
  60. async hwmsAppRegisterOrderDetail(id){
  61. const {
  62. data
  63. } = await hwmsAppRegisterOrderDetail({id:id});
  64. if (data.code == 200) {
  65. data.data.reportTime = parseTime(data.data.reportTime, "{y}-{m}-{d} {h}:{i}:{s}")
  66. this.$set(this,'newData',data.data);
  67. }
  68. },
  69. },
  70. }
  71. </script>
  72. <style lang="stylus" scoped>
  73. .weighingRegistrationInfoPage{
  74. height: 100%;
  75. display flex;
  76. flex-direction column;
  77. background-color: #fff;
  78. position: relative;
  79. overflow-x: hidden;
  80. overflow-y: scroll;
  81. .title-p{
  82. line-height:80rpx;
  83. font-size:34rpx;
  84. padding:0 30rpx;
  85. color:#0183FA;
  86. }
  87. .title-weight-p{
  88. line-height:60rpx;
  89. font-size:32rpx;
  90. padding:0 50rpx;
  91. color:#333;
  92. font-weight:700;
  93. }
  94. .text-p{
  95. line-height:60rpx;
  96. font-size:32rpx;
  97. padding:0 50rpx;
  98. color:#333;
  99. }
  100. .signature-box{
  101. display: flex;
  102. line-height:60rpx;
  103. font-size:32rpx;
  104. padding:0 50rpx;
  105. view{
  106. flex:1;
  107. }
  108. img{
  109. width:400rpx;
  110. height:160rpx;
  111. margin-top:15rpx;
  112. }
  113. }
  114. .img-box{
  115. line-height:60rpx;
  116. font-size:32rpx;
  117. padding:0 50rpx;
  118. margin-bottom:80rpx;
  119. view:nth-child(1){
  120. line-height:60rpx;
  121. font-size:32rpx;
  122. color:#333;
  123. font-weight:700;
  124. }
  125. view:nth-child(2){
  126. img{
  127. display: inline-block;
  128. width:210rpx;
  129. height:210rpx;
  130. }
  131. img:nth-child(2){
  132. margin:0 10rpx;
  133. }
  134. }
  135. }
  136. .positon-p{
  137. position: absolute;
  138. top:20rpx;
  139. right:30rpx;
  140. }
  141. .text-weight-box{
  142. display: flex;
  143. line-height:60rpx;
  144. font-size:32rpx;
  145. padding:0 50rpx;
  146. color:#333;
  147. font-weight:700;
  148. view:nth-child(1){
  149. flex:1;
  150. }
  151. view:nth-child(2){
  152. }
  153. }
  154. .text-box{
  155. display: flex;
  156. line-height:60rpx;
  157. font-size:32rpx;
  158. padding:0 50rpx;
  159. color:#333;
  160. view:nth-child(1){
  161. flex:1;
  162. }
  163. view:nth-child(2){
  164. }
  165. }
  166. .remark-box{
  167. line-height:60rpx;
  168. font-size:32rpx;
  169. padding:0 30rpx;
  170. color:#333;
  171. view:nth-child(1){
  172. line-height:80rpx;
  173. font-size:32rpx;
  174. color:#333;
  175. font-weight:700;
  176. }
  177. view:nth-child(2){
  178. padding:0 20rpx;
  179. line-height:50rpx;
  180. font-size:32rpx;
  181. color:#333;
  182. }
  183. }
  184. .flex-null-p{
  185. width:2rpx;
  186. height:20rpx;
  187. }
  188. .bottom-button-p{
  189. width:700rpx;
  190. height:80rpx;
  191. line-height:80rpx;
  192. font-size:34rpx;
  193. color:#fff;
  194. background-color: #0183FA;
  195. margin:40rpx 25rpx;
  196. border-radius:10rpx;
  197. text-align: center;
  198. }
  199. .colorA{
  200. color:#0183FA;
  201. }
  202. .colorB{
  203. color:#00CD66;
  204. }
  205. .colorC{
  206. color:#FF6A6A;
  207. }
  208. }
  209. </style>