sh.vue 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. <template>
  2. <view class="content">
  3. <view class="yt-list">
  4. <view class="yt-list-cell b-b">
  5. <text class="cell-tit clamp">订单编号</text>
  6. <view class="desc">{{id}}</view>
  7. </view>
  8. <!-- <view class="yt-list-cell b-b">
  9. <text class="cell-tit clamp">服务项目</text>
  10. <view class="desc">{{type}}</view>
  11. </view> -->
  12. <view class="yt-list-cell b-b">
  13. <text class="cell-tit clamp">上门时日期</text>
  14. <view class="desc">{{day}}</view>
  15. </view>
  16. <view class="yt-list-cell b-b">
  17. <text class="cell-tit clamp">上门时间</text>
  18. <view class="desc">{{time}}</view>
  19. </view>
  20. <view class="yt-list-cell b-b">
  21. <text class="cell-tit clamp">审核结果</text>
  22. <picker @change="bindPickerChange" :range="typeArray" range-key="lable" mode="selector">
  23. <view class="desc">{{stateName || '请选择审核意见'}}</view>
  24. </picker>
  25. </view>
  26. </view>
  27. <view class="bz">
  28. <view class="tit">
  29. 备注说明<text>(选填)</text>
  30. </view>
  31. <textarea name="" id="bzinfo" cols="30" rows="10" placeholder="请输入备注说明" maxlength="140"
  32. v-model="remark"></textarea>
  33. </view>
  34. <buuug7-simple-datetime-picker ref="myPicker" @submit="handleSubmit"
  35. :time-hide="[true, true, true, true, true, false]" :time-label="['年', '月', '日', '时', '分']" />
  36. <view class="base-btn" @click="gonow">
  37. 提交
  38. </view>
  39. <uni-popup ref="popupkf" type="bottom">
  40. <smh-time-range @confrim="confrim" @cancel="cancel"></smh-time-range>
  41. </uni-popup>
  42. </view>
  43. </template>
  44. <script>
  45. import {
  46. getDefaultAddress,
  47. createSubscribe,
  48. agentOrderAuth
  49. } from '@/api/user.js'
  50. export default {
  51. data() {
  52. return {
  53. id:'',
  54. type: '',
  55. day: '',
  56. time: '',
  57. state: "",
  58. stateName: '',
  59. remark:'',
  60. typeArray: [
  61. {
  62. value: 1,
  63. lable: '通过'
  64. },
  65. {
  66. value: -1,
  67. lable: '拒绝'
  68. }
  69. ]
  70. }
  71. },
  72. onLoad(opt) {
  73. this.id = opt.id
  74. this.type = opt.type
  75. this.day = opt.day
  76. this.time = opt.time
  77. },
  78. onShow() {},
  79. onReachBottom() {
  80. },
  81. onReady() {
  82. },
  83. methods: {
  84. bindPickerChange(e) {
  85. console.log(e);
  86. this.state = e.detail.value
  87. this.stateName = this.typeArray[e.detail.value].lable
  88. },
  89. gonow() {
  90. if (!this.typeArray[this.state].value ) {
  91. return this.$api.msg('请选择审核意见')
  92. }
  93. agentOrderAuth({
  94. order_id: this.id,
  95. status: this.typeArray[this.state].value,
  96. remark: this.remark,
  97. }).then(res => {
  98. console.log();
  99. uni.showToast({
  100. title: '提交成功',
  101. duration: 2000
  102. });
  103. setTimeout(()=> {
  104. uni.navigateBack()
  105. },1500)
  106. })
  107. }
  108. }
  109. }
  110. </script>
  111. <style lang="scss" scoped>
  112. .address-section {
  113. padding: 30rpx 0;
  114. background: #fff;
  115. position: relative;
  116. border-top: 1px solid $border-color-light;
  117. .order-content {
  118. min-height: 100rpx;
  119. display: flex;
  120. align-items: center;
  121. .addAddress {
  122. text-align: center;
  123. width: 100%;
  124. display: flex;
  125. justify-content: center;
  126. align-items: center;
  127. .iconaddition {
  128. font-size: 55rpx;
  129. line-height: 1;
  130. border-radius: 100rpx;
  131. margin-right: 20rpx;
  132. }
  133. }
  134. }
  135. .iconlocation {
  136. flex-shrink: 0;
  137. display: flex;
  138. align-items: center;
  139. justify-content: center;
  140. width: 90rpx;
  141. color: #888;
  142. font-size: 44rpx;
  143. }
  144. .cen {
  145. display: flex;
  146. flex-direction: column;
  147. flex: 1;
  148. font-size: 28rpx;
  149. color: $font-color-dark;
  150. }
  151. .name {
  152. font-size: 34rpx;
  153. margin-right: 24rpx;
  154. }
  155. .address {
  156. margin-top: 16rpx;
  157. margin-right: 20rpx;
  158. color: $font-color-light;
  159. }
  160. .icon-you {
  161. font-size: 32rpx;
  162. color: $font-color-light;
  163. margin-right: 30rpx;
  164. }
  165. .a-bg {
  166. position: absolute;
  167. left: 0;
  168. bottom: 0;
  169. display: block;
  170. width: 100%;
  171. height: 5rpx;
  172. }
  173. }
  174. .yt-list {
  175. margin-top: 16rpx;
  176. background: #fff;
  177. }
  178. .yt-list-cell {
  179. display: flex;
  180. align-items: center;
  181. padding: 10rpx 30rpx 10rpx 40rpx;
  182. line-height: 70rpx;
  183. position: relative;
  184. &.cell-hover {
  185. background: #fafafa;
  186. }
  187. &.b-b:after {
  188. left: 30rpx;
  189. }
  190. .cell-icon {
  191. height: 32rpx;
  192. width: 32rpx;
  193. font-size: 22rpx;
  194. color: #fff;
  195. text-align: center;
  196. line-height: 32rpx;
  197. background: #f85e52;
  198. border-radius: 4rpx;
  199. margin-right: 12rpx;
  200. &.hb {
  201. background: #ffaa0e;
  202. }
  203. &.lpk {
  204. background: #3ab54a;
  205. }
  206. }
  207. .cell-more {
  208. align-self: center;
  209. font-size: 24rpx;
  210. color: $font-color-light;
  211. margin-left: 8rpx;
  212. margin-right: -10rpx;
  213. }
  214. .cell-tit {
  215. flex: 1;
  216. font-size: 30rpx;
  217. color: #222222;
  218. margin-right: 10rpx;
  219. }
  220. .desc {
  221. flex: 1;
  222. min-width: 300rpx;
  223. text-align: right;
  224. font-size: $font-base;
  225. color: $font-color-dark;
  226. }
  227. }
  228. .bz {
  229. padding: 30rpx;
  230. margin-top: 20rpx;
  231. background-color: #fff;
  232. margin-bottom: 50rpx;
  233. }
  234. #bzinfo {
  235. padding: 20rpx 10rpx 10rpx;
  236. width: 100%;
  237. }
  238. </style>