confirmation.vue 5.0 KB

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