sht.vue 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  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 clamp">{{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. wuyouAgentOrderAuth,
  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. wuyouAgentOrderAuth({
  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. })
  104. }
  105. }
  106. }
  107. </script>
  108. <style lang="scss" scoped>
  109. .address-section {
  110. padding: 30rpx 0;
  111. background: #fff;
  112. position: relative;
  113. border-top: 1px solid $border-color-light;
  114. .order-content {
  115. min-height: 100rpx;
  116. display: flex;
  117. align-items: center;
  118. .addAddress {
  119. text-align: center;
  120. width: 100%;
  121. display: flex;
  122. justify-content: center;
  123. align-items: center;
  124. .iconaddition {
  125. font-size: 55rpx;
  126. line-height: 1;
  127. border-radius: 100rpx;
  128. margin-right: 20rpx;
  129. }
  130. }
  131. }
  132. .iconlocation {
  133. flex-shrink: 0;
  134. display: flex;
  135. align-items: center;
  136. justify-content: center;
  137. width: 90rpx;
  138. color: #888;
  139. font-size: 44rpx;
  140. }
  141. .cen {
  142. display: flex;
  143. flex-direction: column;
  144. flex: 1;
  145. font-size: 28rpx;
  146. color: $font-color-dark;
  147. }
  148. .name {
  149. font-size: 34rpx;
  150. margin-right: 24rpx;
  151. }
  152. .address {
  153. margin-top: 16rpx;
  154. margin-right: 20rpx;
  155. color: $font-color-light;
  156. }
  157. .icon-you {
  158. font-size: 32rpx;
  159. color: $font-color-light;
  160. margin-right: 30rpx;
  161. }
  162. .a-bg {
  163. position: absolute;
  164. left: 0;
  165. bottom: 0;
  166. display: block;
  167. width: 100%;
  168. height: 5rpx;
  169. }
  170. }
  171. .yt-list {
  172. margin-top: 16rpx;
  173. background: #fff;
  174. }
  175. .yt-list-cell {
  176. display: flex;
  177. align-items: center;
  178. padding: 10rpx 30rpx 10rpx 40rpx;
  179. line-height: 70rpx;
  180. position: relative;
  181. &.cell-hover {
  182. background: #fafafa;
  183. }
  184. &.b-b:after {
  185. left: 30rpx;
  186. }
  187. .cell-icon {
  188. height: 32rpx;
  189. width: 32rpx;
  190. font-size: 22rpx;
  191. color: #fff;
  192. text-align: center;
  193. line-height: 32rpx;
  194. background: #f85e52;
  195. border-radius: 4rpx;
  196. margin-right: 12rpx;
  197. &.hb {
  198. background: #ffaa0e;
  199. }
  200. &.lpk {
  201. background: #3ab54a;
  202. }
  203. }
  204. .cell-more {
  205. align-self: center;
  206. font-size: 24rpx;
  207. color: $font-color-light;
  208. margin-left: 8rpx;
  209. margin-right: -10rpx;
  210. }
  211. .cell-tit {
  212. flex: 1;
  213. font-size: 30rpx;
  214. color: #222222;
  215. margin-right: 10rpx;
  216. }
  217. .desc {
  218. flex: 1;
  219. min-width: 300rpx;
  220. text-align: right;
  221. font-size: $font-base;
  222. color: $font-color-dark;
  223. }
  224. }
  225. .bz {
  226. padding: 30rpx;
  227. margin-top: 20rpx;
  228. background-color: #fff;
  229. margin-bottom: 50rpx;
  230. }
  231. #bzinfo {
  232. padding: 20rpx 10rpx 10rpx;
  233. width: 100%;
  234. }
  235. </style>