infoPage.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  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">
  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. }
  49. },
  50. onLoad(option) {
  51. this.hwmsAppRegisterOrderDetail(option.id);
  52. },
  53. onShow() {
  54. },
  55. mounted() {
  56. },
  57. methods: {
  58. async hwmsAppRegisterOrderDetail(id){
  59. const {
  60. data
  61. } = await hwmsAppRegisterOrderDetail({id:id});
  62. if (data.code == 200) {
  63. data.data.reportTime = parseTime(data.data.reportTime, "{y}-{m}-{d} {h}:{i}:{s}")
  64. this.$set(this,'newData',data.data);
  65. }
  66. },
  67. },
  68. }
  69. </script>
  70. <style lang="stylus" scoped>
  71. .weighingRegistrationInfoPage{
  72. height: 100%;
  73. display flex;
  74. flex-direction column;
  75. background-color: #fff;
  76. position: relative;
  77. overflow-x: hidden;
  78. overflow-y: scroll;
  79. .title-p{
  80. line-height:80rpx;
  81. font-size:34rpx;
  82. padding:0 30rpx;
  83. color:#0183FA;
  84. }
  85. .title-weight-p{
  86. line-height:60rpx;
  87. font-size:32rpx;
  88. padding:0 50rpx;
  89. color:#333;
  90. font-weight:700;
  91. }
  92. .text-p{
  93. line-height:60rpx;
  94. font-size:32rpx;
  95. padding:0 50rpx;
  96. color:#333;
  97. }
  98. .signature-box{
  99. display: flex;
  100. line-height:60rpx;
  101. font-size:32rpx;
  102. padding:0 50rpx;
  103. view{
  104. flex:1;
  105. }
  106. img{
  107. width:400rpx;
  108. height:160rpx;
  109. margin-top:15rpx;
  110. }
  111. }
  112. .img-box{
  113. line-height:60rpx;
  114. font-size:32rpx;
  115. padding:0 50rpx;
  116. margin-bottom:80rpx;
  117. view:nth-child(1){
  118. line-height:60rpx;
  119. font-size:32rpx;
  120. color:#333;
  121. font-weight:700;
  122. }
  123. view:nth-child(2){
  124. img{
  125. display: inline-block;
  126. width:210rpx;
  127. height:210rpx;
  128. }
  129. img:nth-child(2){
  130. margin:0 10rpx;
  131. }
  132. }
  133. }
  134. .positon-p{
  135. position: absolute;
  136. top:20rpx;
  137. right:30rpx;
  138. }
  139. .text-weight-box{
  140. display: flex;
  141. line-height:60rpx;
  142. font-size:32rpx;
  143. padding:0 50rpx;
  144. color:#333;
  145. font-weight:700;
  146. view:nth-child(1){
  147. flex:1;
  148. }
  149. view:nth-child(2){
  150. }
  151. }
  152. .text-box{
  153. display: flex;
  154. line-height:60rpx;
  155. font-size:32rpx;
  156. padding:0 50rpx;
  157. color:#333;
  158. view:nth-child(1){
  159. flex:1;
  160. }
  161. view:nth-child(2){
  162. }
  163. }
  164. .remark-box{
  165. line-height:60rpx;
  166. font-size:32rpx;
  167. padding:0 30rpx;
  168. color:#333;
  169. view:nth-child(1){
  170. line-height:80rpx;
  171. font-size:32rpx;
  172. color:#333;
  173. font-weight:700;
  174. }
  175. view:nth-child(2){
  176. padding:0 20rpx;
  177. line-height:50rpx;
  178. font-size:32rpx;
  179. color:#333;
  180. }
  181. }
  182. .flex-null-p{
  183. width:2rpx;
  184. height:20rpx;
  185. }
  186. .bottom-button-p{
  187. width:700rpx;
  188. height:80rpx;
  189. line-height:80rpx;
  190. font-size:34rpx;
  191. color:#fff;
  192. background-color: #0183FA;
  193. margin:40rpx 25rpx;
  194. border-radius:10rpx;
  195. text-align: center;
  196. }
  197. .colorA{
  198. color:#0183FA;
  199. }
  200. .colorB{
  201. color:#00CD66;
  202. }
  203. .colorC{
  204. color:#FF6A6A;
  205. }
  206. }
  207. </style>