refundMoneyDetail.vue 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443
  1. <template>
  2. <view class="content">
  3. <view class="topView">
  4. <!-- 待处理 -->
  5. <view class="waitBg" v-if="state>0">
  6. <view class="title">请等待平台处理</view>
  7. <!-- 进度条 -->
  8. <view class="progress">
  9. <image :src="(state>0 ? tongguoUrl : waitUrl)" class="waitImg" :class="{tongguoImg:state>0}">
  10. </image>
  11. <view class="line" :class="{lightLine:state>0}"></view>
  12. <image :src="(state>1 ? tongguoUrl : waitUrl)" class="waitImg" :class="{tongguoImg:state>1}">
  13. </image>
  14. <view class="line" :class="{lightLine:state>1}"></view>
  15. <image :src="(state>2 ? tongguoUrl : waitUrl)" class="waitImg" :class="{tongguoImg:state>2}">
  16. </image>
  17. </view>
  18. <!-- 进度条 文字提示 -->
  19. <view class="progressT">
  20. <view class="stateView">
  21. <view class="progressTitle">提交申请</view>
  22. <view class="time" v-if="state>0">{{detailData.createTime}}</view>
  23. </view>
  24. <view style="width: 9%;"></view>
  25. <view class="stateView">
  26. <view class="progressTitle">平台审核</view>
  27. <view class="time" v-if="state>1">{{detailData.handlerTime}}</view>
  28. </view>
  29. <view style="width: 9%;"></view>
  30. <view class="stateView">
  31. <view class="progressTitle">平台同意退款</view>
  32. <view class="time" v-if="state>2">{{detailData.handlerTime}}</view>
  33. </view>
  34. </view>
  35. </view>
  36. <!-- 退款关闭 -->
  37. <view class="waitBg" v-if="state==0" style="height: 100rpx;">
  38. <view class="title">退款关闭</view>
  39. <view class="title3">{{detailData.handlerTime}}</view>
  40. </view>
  41. <!-- 平台拒绝 -->
  42. <view class="waitBg" v-if="state==-1" style="height: 100rpx;">
  43. <view class="title">平台已拒绝</view>
  44. <view class="title3">{{detailData.handlerTime}}</view>
  45. </view>
  46. </view>
  47. <!-- 退款提交 -->
  48. <view class="whiteView" v-if="state==1">
  49. <view class="title1">您已成功发起退款申请,请耐心等待平台处理</view>
  50. <view class="title2">平台同意后,系统将退款给您</view>
  51. <view class="title3">如果平台拒绝,您可以修改退款申请后再次发起,平台会重新处理</view>
  52. </view>
  53. <!-- 退款关闭 -->
  54. <view class="whiteView" v-if="state==0">
  55. <view class="title1">您已撤销本次退款申请,如有问题仍未解决,您可以重新发起申请</view>
  56. </view>
  57. <!-- 平台拒绝 -->
  58. <view class="whiteView" v-if="state==-1">
  59. <view class="title1">平台拒绝原因:这是选择的原因</view>
  60. <view class="title2">您可以修改退款申请后再次发起,平台会重新处理</view>
  61. </view>
  62. <!-- 同意申请 -->
  63. <view class="tongyiView" v-if="state!=1">
  64. <view class="title1">进度详情</view>
  65. <image src="../../static/img/rightArrow.png" mode="" style="width: 14rpx; height: 23rpx;"></image>
  66. </view>
  67. <!-- 退款信息 -->
  68. <view class="whiteView">
  69. <view class="informationLine">
  70. <view class="informationTxt">退款原因:</view>
  71. <view class="informationNum">{{detailData.applyReason}}</view>
  72. </view>
  73. <view class="informationLine">
  74. <view class="informationTxt">申请退款金额:</view>
  75. <view class="informationNum">{{detailData.money}}</view>
  76. </view>
  77. <view class="informationLine">
  78. <view class="informationTxt">申请时间:</view>
  79. <view class="informationNum">{{detailData.createTime}}</view>
  80. </view>
  81. <view class="informationLine">
  82. <view class="informationTxt">补充描述:</view>
  83. <view class="informationNum" v-if="detailData.applyReasonComment!=null">
  84. {{detailData.applyReasonComment}}</view>
  85. </view>
  86. <view class="informationLine">
  87. <view class="informationTxt">售后单号:</view>
  88. <view class="informationNum">{{detailData.serviceCode}}</view>
  89. <view class="copyBtn" @click="copy(orderData.serviceCode)">复制</view>
  90. </view>
  91. <view class="informationLine">
  92. <view class="informationTxt">订单单号:</view>
  93. <view class="informationNum">{{detailData.sheetCode}}</view>
  94. <view class="copyBtn" @click="copy(orderData.sheetCode)">复制</view>
  95. <view style="color: #3F90F7; font-size: 26rpx; margin-left: 50rpx;" @click="goOrderDetail()">详情</view>
  96. </view>
  97. </view>
  98. <!-- 底部按钮 操作 -->
  99. <view style="height: 150rpx;"></view>
  100. <view class="orderBottom" v-if="state==1">
  101. <view class="cancelBtn" @click="cancelBtn">撤销申请</view>
  102. <view class="cancelBtn" @click="editBtn">修改申请</view>
  103. </view>
  104. </view>
  105. </template>
  106. <script>
  107. export default {
  108. data() {
  109. return {
  110. state: -1, // -1 拒绝 0自己撤销关闭 1 提交申请 3 同意申请
  111. tongguoUrl: '../../static/img/icon_tongguo.png',
  112. waitUrl: '../../static/img/icon_yuan.png',
  113. id: '',
  114. detailData: '',
  115. }
  116. },
  117. onLoad(opt) {
  118. this.id = opt.id
  119. this.getData();
  120. },
  121. onShow() {
  122. this.getData();
  123. },
  124. methods: {
  125. goOrderDetail() {
  126. uni.navigateTo({
  127. url: '../order/orderDetail?id=' + this.detailData.sheetID
  128. })
  129. },
  130. getData() {
  131. uni.showLoading({
  132. title: '加载中'
  133. })
  134. let url = '/worldKeepCar/orderRefund/refundDetail',
  135. params = {
  136. id: this.id,
  137. }
  138. this.$http(url, params, 'GET').then(res => {
  139. uni.hideLoading();
  140. this.detailData = res.data
  141. // 退款状态
  142. // "changeState": 备注:处理状态1待处理2退款成功3退款关闭
  143. if (this.detailData.serviceState == 1) {
  144. // 平台处理
  145. this.state = 1;
  146. } else if (this.detailData.serviceState == 2) {
  147. // 平台同意
  148. this.state = 3;
  149. }
  150. if (this.detailData.handlerReasonID != null) {
  151. // 拒绝
  152. this.state = -1;
  153. }
  154. if (this.detailData.cancelType != null) {
  155. // 关闭
  156. this.state = 0;
  157. }
  158. })
  159. },
  160. copy(txt) {
  161. uni.setClipboardData({
  162. data: txt,
  163. success: function() {
  164. uni.showToast({
  165. title: '复制成功',
  166. icon: 'none',
  167. duration: 2000
  168. });
  169. }
  170. });
  171. },
  172. cancelBtn(){
  173. uni.showLoading({
  174. title: '加载中'
  175. })
  176. let url = 'worldKeepCar/orderRefund/cancelApply',
  177. params = {
  178. id: this.detailData.ID,
  179. }
  180. this.$http(url, params, 'POST').then(res => {
  181. uni.hideLoading();
  182. if(res.code==0){
  183. uni.showToast({
  184. title: '撤销成功',
  185. icon: 'none',
  186. duration: 2000,
  187. });
  188. setTimeout(function() {
  189. uni.navigateBack({
  190. })
  191. }, 2000);
  192. }
  193. })
  194. },
  195. editBtn(){
  196. uni.navigateTo({
  197. url:'refundMoney?edit=true'+'&editId='+this.detailData.id+'&money='+this.detailData.money+'&reasonId='+this.detailData.applyReasonID+'&reason='+this.detailData.applyReason+'&exeContent='+this.detailData.applyReasonComment
  198. })
  199. }
  200. }
  201. }
  202. </script>
  203. <style>
  204. .content {
  205. background-color: #F4F5F7;
  206. min-height: 100vh;
  207. }
  208. .topView {
  209. background: linear-gradient(315deg, #FD5002 0%, #FE8F00 100%);
  210. padding: 20rpx 24rpx;
  211. }
  212. .waitBg {
  213. background-color: #FFFFFF;
  214. border-radius: 20rpx;
  215. height: 209rpx;
  216. padding: 30rpx;
  217. }
  218. .title {
  219. color: #333333;
  220. font-size: 32rpx;
  221. font-weight: bold;
  222. margin-bottom: 30rpx;
  223. }
  224. .progress {
  225. display: flex;
  226. align-items: center;
  227. padding: 10rpx 70rpx;
  228. }
  229. .waitImg {
  230. width: 20rpx;
  231. height: 20rpx;
  232. }
  233. .tongguoImg {
  234. width: 38rpx;
  235. height: 38rpx;
  236. }
  237. .line {
  238. width: 40%;
  239. margin: 0rpx 5rpx;
  240. height: 2px;
  241. background: #FF2400;
  242. opacity: 0.4;
  243. }
  244. .lightLine {
  245. width: 40%;
  246. margin: 0rpx 5rpx;
  247. height: 2px;
  248. background: #FF2400;
  249. opacity: 1.0;
  250. }
  251. .progressT {
  252. display: flex;
  253. align-items: center;
  254. }
  255. .stateView {
  256. width: 30%;
  257. }
  258. .progressTitle {
  259. color: #333333;
  260. font-size: 22rpx;
  261. text-align: center;
  262. }
  263. .time {
  264. color: #999999;
  265. font-size: 22rpx;
  266. text-align: center;
  267. }
  268. .whiteView {
  269. background-color: #FFFFFF;
  270. padding: 30rpx 24rpx;
  271. margin: 20rpx 0;
  272. }
  273. .title1 {
  274. color: #3C3C3C;
  275. font-size: 30rpx;
  276. font-weight: bold;
  277. }
  278. .title2 {
  279. color: #999999;
  280. font-size: 24rpx;
  281. padding-top: 16rpx;
  282. padding-bottom: 8rpx;
  283. }
  284. .title3 {
  285. color: #999999;
  286. font-size: 24rpx;
  287. }
  288. .storeTitle {
  289. color: #3C3C3C;
  290. font-size: 30rpx;
  291. font-weight: bold;
  292. border-bottom: 1rpx #EEEEEE solid;
  293. padding-bottom: 22rpx;
  294. }
  295. .store {
  296. display: flex;
  297. padding-top: 20rpx;
  298. align-items: center;
  299. }
  300. .leftIcon {
  301. width: 30rpx;
  302. height: 30rpx;
  303. margin-right: 10rpx;
  304. }
  305. .name {
  306. color: #3C3C3C;
  307. font-size: 26rpx;
  308. }
  309. .address {
  310. color: #999999;
  311. font-size: 26rpx;
  312. }
  313. .informationLine {
  314. display: flex;
  315. font-size: 26rpx;
  316. padding: 20rpx 0;
  317. }
  318. .informationTxt {
  319. color: #666666;
  320. }
  321. .informationNum {
  322. color: #333333;
  323. }
  324. .copyBtn {
  325. width: 86rpx;
  326. height: 40rpx;
  327. background: #F4F5F7;
  328. border-radius: 20rpx;
  329. font-size: 24rpx;
  330. color: #333333;
  331. text-align: center;
  332. line-height: 40rpx;
  333. margin-left: 20rpx;
  334. }
  335. .orderBottom {
  336. width: 750rpx;
  337. height: 98rpx;
  338. background: #FFFFFF;
  339. position: fixed;
  340. left: 0;
  341. bottom: 0;
  342. display: flex;
  343. justify-content: flex-end;
  344. }
  345. .cancelBtn {
  346. width: 150rpx;
  347. height: 56rpx;
  348. border-radius: 36rpx;
  349. border: 2rpx solid #DDDDDD;
  350. text-align: center;
  351. line-height: 56rpx;
  352. font-size: 28rpx;
  353. color: #3C3C3C;
  354. margin-top: 21rpx;
  355. margin-right: 16rpx;
  356. margin-left: 20rpx;
  357. }
  358. .tongyiView {
  359. display: flex;
  360. justify-content: space-between;
  361. align-items: center;
  362. background-color: #FFFFFF;
  363. padding: 30rpx 24rpx;
  364. margin: 20rpx 0;
  365. }
  366. </style>