list.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. <template>
  2. <view class="pagebox">
  3. <view class="after_sale" v-if="info.userRefundSign" @click="skipList(info.orderNo)">
  4. 该订单存在处理中售后,请点击查看
  5. <text class="iconfont icon-you"></text>
  6. </view>
  7. <view class="order_info">
  8. <view class="order_info_number">
  9. 订单号:{{info.orderNo}}
  10. </view>
  11. <view class="order_info_item" v-for="(item,index) in info.infoResponseList">
  12. <image class="product_img" :src="item.image" mode=""></image>
  13. <view class="info_text">
  14. <view class="info_text_top">
  15. <view class="info_text_title">
  16. {{item.productName}}
  17. </view>
  18. <view class="info_text_sku">
  19. {{item.sku}}
  20. </view>
  21. </view>
  22. <view class="operate">
  23. <text class="infor-num">购买 x{{item.payNum}} <text class="infor-text"> {{item.applyRefundNum||item.refundNum?`(${item.applyRefundNum}件售后中 ${item.refundNum}件已退款)`:''}}</text></text>
  24. <text>核销:<text class="cancel_num">{{item.payNum-item.refundNum}}</text></text>
  25. </view>
  26. </view>
  27. </view>
  28. </view>
  29. <view class="page_bottom">
  30. <view class="page_bottom_num">
  31. 共{{info.totalNum}}件
  32. </view>
  33. <view class="page_bottom_btn" @click="toCancel">
  34. 确认核销
  35. </view>
  36. </view>
  37. </view>
  38. </template>
  39. <script>
  40. import {employeeOrderCancel} from '@/api/work.js'
  41. export default{
  42. data(){
  43. return{
  44. popup_center:'center',
  45. info:{},
  46. verifyCode:''
  47. }
  48. },
  49. computed:{
  50. },
  51. onLoad(options) {
  52. this.info=JSON.parse(options.info)
  53. this.verifyCode=options.verifyCode
  54. },
  55. methods:{
  56. skipList(orderNo){
  57. uni.navigateTo({
  58. url:`/pages/admin/skipRefund/index?orderNo=${orderNo}`
  59. })
  60. },
  61. toCancel(){
  62. employeeOrderCancel({verifyCode:this.verifyCode}).then(res=>{
  63. if(res.code==200){
  64. uni.navigateTo({
  65. url:`/pages/admin/cancel/result?type=1&&orderNo=${this.info.orderNo}`
  66. })
  67. }else{
  68. uni.navigateTo({
  69. url:'/pages/admin/cancel/result?type=0'
  70. })
  71. }
  72. }).catch(err => {
  73. return this.$util.Tips({
  74. title: err
  75. });
  76. })
  77. },
  78. }
  79. }
  80. </script>
  81. <style lang="scss" scoped>
  82. .pagebox{
  83. padding: 20rpx;
  84. padding-bottom: 150rpx;
  85. .after_sale{
  86. font-size: 26rpx;
  87. background-color: #E5EFFE;
  88. height: 90rpx;
  89. line-height: 90rpx;
  90. padding-left: 20rpx;
  91. border-radius: 10rpx;
  92. color: #2A7EFB;
  93. position: relative;
  94. margin-bottom: 20rpx;
  95. .icon-you{
  96. position: absolute;
  97. right: 10rpx;
  98. }
  99. }
  100. .order_info{
  101. .order_info_number{
  102. border-bottom: 2rpx solid #F5F5F5;
  103. padding-bottom: 30rpx;
  104. }
  105. padding:30rpx 20rpx ;
  106. background-color: #fff;
  107. border-radius: 20rpx;
  108. .info_text{
  109. margin-left: 15rpx;
  110. display: flex;
  111. flex-direction: column;
  112. justify-content: space-between;
  113. }
  114. .order_info_item{
  115. display: flex;
  116. padding: 30rpx 0;
  117. .product_img{
  118. width: 180rpx;
  119. height: 180rpx;
  120. border-radius: 10rpx;
  121. }
  122. .info_text_title{
  123. width: 480rpx;
  124. overflow: hidden;
  125. text-overflow: ellipsis;
  126. white-space: nowrap;
  127. }
  128. .info_text_sku{
  129. color: #999;
  130. font-size: 24rpx;
  131. margin-top: 8rpx;
  132. }
  133. .operate{
  134. font-size: 24rpx;
  135. display: flex;
  136. justify-content: space-between;
  137. .cancel_num{
  138. background-color: #F5F5F5;
  139. padding: 10rpx 20rpx;
  140. }
  141. }
  142. }
  143. }
  144. .page_bottom{
  145. width: 100vw;
  146. height: 100rpx;
  147. position: fixed;
  148. bottom: 0;
  149. left: 0rpx;
  150. background-color: #fff;
  151. display: flex;
  152. justify-content: space-between;
  153. align-items: center;
  154. padding: 0 20rpx;
  155. .page_bottom_btn{
  156. width: 200rpx;
  157. height: 64rpx;
  158. background: #2A7EFB;
  159. border-radius: 40rpx;
  160. line-height: 64rpx;
  161. text-align: center;
  162. font-weight: 500;
  163. font-size: 24rpx;
  164. color: #FFFFFF;
  165. }
  166. }
  167. }
  168. .infor-text{
  169. color: #2A7EFB ;
  170. }
  171. /deep/ .uni-popup__wrapper {
  172. width: 600rpx;
  173. height: 310rpx;
  174. background: #FFFFFF;
  175. border-radius: 14rpx;
  176. }
  177. .sh_popup-content {
  178. .sh_popup_title {
  179. font-weight: 500;
  180. font-size: 32rpx;
  181. color: #333333;
  182. text-align: center;
  183. margin-top: 40rpx;
  184. }
  185. .sh_popup_text {
  186. font-weight: 400;
  187. font-size: 30rpx;
  188. color: #666666;
  189. text-align: center;
  190. margin-top: 30rpx;
  191. }
  192. .sh_popup_btn {
  193. display: flex;
  194. justify-content: space-between;
  195. margin-top: 40rpx;
  196. padding: 0 47rpx;
  197. .btn {
  198. width: 244rpx;
  199. height: 72rpx;
  200. border-radius: 50rpx;
  201. text-align: center;
  202. line-height: 72rpx;
  203. }
  204. .no_btn {
  205. border: 1px solid #2A7EFB;
  206. color: #2A7EFB;
  207. }
  208. .yes_btn {
  209. background: #2A7EFB;
  210. color: #FFFFFF;
  211. }
  212. }
  213. }
  214. .infor-num{
  215. width: 350rpx;
  216. }
  217. </style>