refundMoneyDetail.vue 10 KB

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