signInfo.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <template>
  2. <view class="u-page">
  3. <view>
  4. <view>
  5. <u-form :model="form" ref="uForm">
  6. <!-- <u-form-item label="客户单号" label-width="80" :label-style="{'margin-left':'40rpx'}">-->
  7. <!-- <u-input v-model="form.customerRefferenceId" disabled/>-->
  8. <!-- </u-form-item>-->
  9. <u-form-item label="签收人" label-width="80" :label-style="{'margin-left':'40rpx'}">
  10. <u-input v-model="form.userName" disabled/>
  11. </u-form-item>
  12. <u-form-item label="签收时间" label-width="80" :label-style="{'margin-left':'40rpx'}">
  13. <u-input v-model="form.signTime" disabled/>
  14. </u-form-item>
  15. <u-form-item label="签收照片" label-width="80" :label-style="{'margin-left':'40rpx'}">
  16. <u--image
  17. v-for="(item, index) in picItemList"
  18. :showLoading="true"
  19. :src="item.src"
  20. width="80px"
  21. height="80px"
  22. ></u--image>
  23. </u-form-item>
  24. </u-form>
  25. </view>
  26. </view>
  27. </view>
  28. </template>
  29. <script>
  30. import {
  31. getSignInfo
  32. } from '@/api/index.js';
  33. export default {
  34. data() {
  35. return {
  36. itemSrc:'http://localhost:8012/BH_CLIS/AjaxUpload/downloadImageById.action?id=402848c49492834c019492965bf00008',
  37. src:'http://localhost:8012/BH_CLIS/AjaxUpload/downloadImageById.action?id=',
  38. picItemList: [],
  39. form: {
  40. customerRefferenceId: '',
  41. userName: '',
  42. signTime: '',
  43. },
  44. };
  45. },
  46. onLoad(options) {
  47. let accountId = undefined
  48. if (uni.getStorageSync('accountId')) {
  49. accountId = uni.getStorageSync('accountId')
  50. }
  51. getSignInfo({orderCenterOrderId: options.id,accountId: accountId}).then(res => {
  52. if (res.code === "success") {
  53. if (res.data.docIds){
  54. res.data.docIds.forEach((item, index) => {
  55. this.picItemList.push({
  56. src: this.src + item
  57. });
  58. });
  59. console.log(this.picItemList)
  60. }
  61. this.form.userName = res.data.signedTime;
  62. this.form.signTime = res.data.signedPersion;
  63. } else {
  64. }
  65. }).catch(err => {
  66. });
  67. },
  68. methods: {
  69. clickHandler() {
  70. // #ifndef MP-WEIXIN
  71. uni.$u.toast('请在微信小程序内查看效果')
  72. // #endif
  73. }
  74. },
  75. }
  76. </script>
  77. <style lang="scss" scoped>
  78. .u-page {
  79. padding: 0;
  80. &__item {
  81. &__title {
  82. color: $u-tips-color;
  83. background-color: $u-bg-color;
  84. padding: 15px;
  85. font-size: 15px;
  86. &__slot-title {
  87. color: $u-primary;
  88. font-size: 14px;
  89. }
  90. }
  91. }
  92. }
  93. .warp {
  94. width: 750rpx;
  95. min-height: 100vh;
  96. }
  97. .scheduler_top {
  98. height: 10vh;
  99. background-color: #1676FF;
  100. }
  101. .scheduler_search {
  102. padding-top: 30rpx;
  103. background-color: #1676FF;
  104. height: 8vh;
  105. }
  106. .scheduler_list {
  107. margin-top: 2vh;
  108. height: 60vh;
  109. }
  110. .order_footer {
  111. position: fixed;
  112. width: 750rpx;
  113. bottom: 5vh;
  114. height: 10vh;
  115. }
  116. .tabBar {
  117. height: 14vh;
  118. }
  119. .uni-common-mt {
  120. margin-top: 60rpx;
  121. }
  122. .uni-padding-wrap {
  123. // width: 750rpx;
  124. padding: 0px 60rpx;
  125. }
  126. /deep/ .u-collapse-head.data-v-31fbc7f8 {
  127. padding-left: 60rpx;
  128. }
  129. .detailStyle {
  130. font-size: 28rpx;
  131. }
  132. .u-space {
  133. display: inline-block;
  134. width: 20rpx;
  135. }
  136. </style>