refundDetail.vue 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619
  1. <template>
  2. <view class="box">
  3. <view class="cont">
  4. <view class="topBox goodsBox" v-if="data.openSheetRefund.refundState == 1 || data.openSheetRefund.refundState == 3">
  5. <view class="topState">
  6. <view class="tsTop">
  7. <view class="tsYd"></view>
  8. <view class="tsHx"></view>
  9. <view class="tsYd"></view>
  10. <view class="tsHx tsHx2"></view>
  11. <view class="tsYd tsYd2"></view>
  12. <view class="tsHx tsHx2"></view>
  13. <view class="tsYd tsYd2"></view>
  14. </view>
  15. <view class="tsM">
  16. <view class="tsMline">发起退款</view>
  17. <view class="tsMline">商家处理</view>
  18. <view class="tsMline tsMline2">商家退款</view>
  19. <view class="tsMline tsMline2">退款结束</view>
  20. </view>
  21. <view class="txTxt" v-if="data.openSheetRefund.refundState == 1">
  22. <span>请等待</span><span style="color: #EC0F0A;">商家处理</span>
  23. </view>
  24. <view class="txTxt2" v-if="data.openSheetRefund.refundState == 1">已发起退款申请</view>
  25. <view class="txTxt" v-if="data.openSheetRefund.refundState == 3">
  26. <span>商家</span><span style="color: #EC0F0A;">拒绝退款</span>
  27. </view>
  28. </view>
  29. </view>
  30. <view class="goodsBox topBox" v-if="data.openSheetRefund.refundState == 2">
  31. <view class="tkTopTitle">退款成功</view>
  32. <view class="tksuccess">
  33. <view class="tksuccessYx">
  34. <view class="tksuccessTxt">原路退回</view>
  35. <view class="tksuccessPrice">¥<span style="font-size: 36rpx;">{{data.openSheetRefund.money}}</span> </view>
  36. </view>
  37. <view class="tksuccessTime">{{data.openSheetRefund.reAccountTime}}</view>
  38. </view>
  39. </view>
  40. <!-- 退款关闭-->
  41. <view class="goodsBox topBox" v-if="data.openSheetRefund.refundState == 4||data.openSheetRefund.refundState == 5">
  42. <view class="tkTopTitle">退款关闭</view>
  43. <view class="tkErr" v-if="data.openSheetRefund.refundState == 4">退款失败</view>
  44. <view class="tkErr" v-if="data.openSheetRefund.refundState == 5">用户已取消退款</view>
  45. </view>
  46. <!-- 退款关闭-->
  47. <view class="itemBox flex">
  48. </image>
  49. <image class="itemIMg" src="../../static/timg/noimg.png" mode=""></image>
  50. <view class="itemRight">
  51. <view class="itemName">{{data.openSheetRefund.itemName}}</view>
  52. <view class="priceBox">
  53. <view class="price">¥{{data.openSheet.realMoney}}</view>
  54. </view>
  55. </view>
  56. </view>
  57. <view class="goodsBox">
  58. <view class="goodsline flex" v-if="data.openSheetRefund.couponCount==1" >
  59. <view class="goodsLeft">退款券号</view>
  60. <view class="goodRight" style="display: flex;">
  61. <image src="../../static/img2/copy.png" mode="" class="copyIcon"></image>
  62. <span>{{data.openSheetRefund.couponCode}}</span>
  63. </view>
  64. </view>
  65. <view class="goodsline flex" v-if="data.openSheetRefund.couponCount!=1">
  66. <view class="goodsLeft">退款券号</view>
  67. <view class="goodRight" style="display: flex;" @click="codeFn">
  68. <span>共{{data.openSheetRefund.couponCount}}份券号</span>
  69. <image src="../../static/img2/hjt.png" mode="" class="jtIcon"></image>
  70. </view>
  71. </view>
  72. <view class="goodsline flex" >
  73. <view class="goodsLeft">退款份数</view>
  74. <view class="goodRight" >
  75. {{data.openSheetRefund.couponCount}}份
  76. </view>
  77. </view>
  78. <view class="goodsline flex" >
  79. <view class="tkPrice">
  80. <view class="tkPrice1">退款金额</view>
  81. <view class="tkPrice2">实际退款金额以到账金额为准</view>
  82. </view>
  83. <view class="tkPriceNum">¥{{data.openSheetRefund.money}}</view>
  84. </view>
  85. <view class="goodsline flex" >
  86. <view class="goodsLeft">退款方式</view>
  87. <view class="goodRight" style="font-size: 26rpx;color: #222222;">原路退回</view>
  88. </view>
  89. <view class="goodsline flex" >
  90. <view class="goodsLeft">商品是否已使用</view>
  91. <view class="goodRight" >{{data.openSheetRefund.hType==1?'未使用':'已使用'}}</view>
  92. </view>
  93. <view class="goodsline flex" >
  94. <view class="goodsLeft">退款原因</view>
  95. <view class="goodRight" >{{data.openSheetRefund.refundReason}}</view>
  96. </view>
  97. <view class="goodsline flex" >
  98. <view class="goodsLeft">退款说明</view>
  99. <view class="goodRight" style="width: 400rpx;">{{data.openSheetRefund.content}}</view>
  100. </view>
  101. <view class="goodsline flex" >
  102. <view class="goodsLeft">退款凭证</view>
  103. <view class="goodRight tkImgBox" >
  104. <image class="tkImg" v-for="(item,index) in data.evidenceList" :src="item.url" mode="aspectFit"></image>
  105. </view>
  106. </view>
  107. </view>
  108. <view class="goodsBox">
  109. <view class="goodsline flex" >
  110. <view class="goodsLeft">订单编号</view>
  111. <view class="goodRight" style="display: flex;">
  112. <image @click="copy(data.openSheetRefund.sheetCode)" src="../../static/img2/copy.png" mode="" class="copyIcon"></image>
  113. <span>{{data.openSheetRefund.sheetCode}}</span>
  114. </view>
  115. </view>
  116. <view class="goodsline flex" >
  117. <view class="goodsLeft">退款编号</view>
  118. <view class="goodRight" style="display: flex;">
  119. <image @click="copy(data.openSheetRefund.code)" src="../../static/img2/copy.png" mode="" class="copyIcon"></image>
  120. <span>{{data.openSheetRefund.code}}</span>
  121. </view>
  122. </view>
  123. </view>
  124. </view>
  125. <view class="reasonBox" v-if="codeShow">
  126. <view class="codeCont">
  127. <view class="reasonTop">
  128. <view class="chahao"></view>
  129. <view class="tkTitle">退款券号</view>
  130. <image @click="qdTkclose" class="chahao" src="../../static/img2/chahao.png" mode=""></image>
  131. </view>
  132. <view class="codeLineBox">
  133. <view class="codeLine" v-for="(v,i) in data.openSheetRefund.couponCode.split(',')">
  134. <span style="padding-right: 10rpx;">{{v}}</span>
  135. <image src="../../static/img2/copy.png" mode="" @click="copy(v)" class="copyIcon"></image>
  136. </view>
  137. </view>
  138. </view>
  139. </view>
  140. <view style="height: 40rpx;"></view>
  141. </view>
  142. </template>
  143. <script>
  144. export default {
  145. components: {
  146. },
  147. data() {
  148. return {
  149. themeColor:'',
  150. ext:'',
  151. userInfo:'',
  152. carInfo:'',
  153. customerInfo:'',
  154. codeShow:false,
  155. id:'09ee0273-d2b2-4204-a1db-f0555ec2ea10',
  156. data:'',
  157. }
  158. },
  159. onLoad(opt) {
  160. if(opt.id){
  161. this.id=opt.id
  162. }
  163. this.userInfo=this.$store.state.userInfo;
  164. this.ext=this.$common.getExtStoreId();
  165. if(this.userInfo){
  166. this.getData()
  167. }else{
  168. this.$common.automaticlogin().then(val => {
  169. this.userInfo=this.$store.state.userInfo;
  170. if (this.id) {
  171. this.getData();
  172. }
  173. if(!this.userInfo){
  174. //this.authorizShow=true
  175. }
  176. })
  177. }
  178. },
  179. onShow() {
  180. },
  181. methods: {
  182. getData(){
  183. uni.showLoading({
  184. title: '加载中'
  185. })
  186. this.$http('openOrderManagement/openSheetRefundDetail', {
  187. id: this.id,
  188. }, 'GET').then(res => {
  189. uni.hideLoading();
  190. this.data=res.data
  191. })
  192. },
  193. qdTkclose(){
  194. this.codeShow=false;
  195. },
  196. codeFn(){
  197. this.codeShow=true;
  198. },
  199. copy(txt) {
  200. uni.setClipboardData({
  201. data: txt,
  202. success: function() {
  203. uni.showToast({
  204. title: '复制成功',
  205. icon: 'none',
  206. duration: 2000
  207. });
  208. }
  209. });
  210. },
  211. },
  212. onPullDownRefresh() {
  213. this.getData()
  214. setTimeout(function() {
  215. uni.stopPullDownRefresh();
  216. }, 1000);
  217. },
  218. }
  219. </script>
  220. <style scoped lang="less">
  221. .box {
  222. width: 100vw;
  223. min-height: 100vh;
  224. background: #F4F4F4;
  225. }
  226. .tkTopTitle{
  227. font-weight: 500;
  228. font-size: 32rpx;
  229. color: #222222;
  230. line-height: 50rpx;
  231. padding-top: 20rpx;
  232. }
  233. .tksuccess{
  234. background: #F7F7F7;
  235. border-radius: 16rpx;
  236. padding: 20rpx;
  237. margin-top: 20rpx;
  238. }
  239. .tksuccessYx{
  240. display: flex;justify-content: space-between;
  241. }
  242. .tksuccessTxt{
  243. font-weight: 500;
  244. font-size: 28rpx;
  245. color: #222222;
  246. line-height: 40rpx;
  247. }
  248. .tksuccessPrice{
  249. font-weight: 500;
  250. font-size: 26rpx;
  251. color: #EC0F0A;
  252. }
  253. .tksuccessTime{
  254. font-size: 26rpx;
  255. color: #9A9A9A;
  256. }
  257. .tsTop{
  258. display: flex;justify-content: center;
  259. }
  260. .tsM{
  261. display: flex;justify-content: center;
  262. }
  263. .tsMline{
  264. font-size: 24rpx;
  265. color: #666666;
  266. line-height: 33rpx;
  267. text-align: center;
  268. width: 210rpx;
  269. padding-top: 8rpx;
  270. }
  271. .txTxt{
  272. font-weight: 500;
  273. font-size: 36rpx;
  274. color: #222222;
  275. line-height: 50rpx;
  276. padding-top: 50rpx;
  277. }
  278. .txTxt2{
  279. font-size: 24rpx;
  280. color: #9A9A9A;
  281. line-height: 33rpx;
  282. padding-top: 8rpx;
  283. padding-bottom: 20rpx;
  284. }
  285. .tsYd{
  286. width: 12rpx;
  287. height: 12rpx;
  288. border: 3rpx solid #88888A;
  289. border-radius: 50%;
  290. }
  291. .tsHx{
  292. width: 135rpx;
  293. height: 4rpx;
  294. background: #5B5B5C;
  295. border-radius: 2rpx;
  296. margin-left: 9rpx;
  297. margin-right: 9rpx;
  298. margin-top: 6rpx;
  299. }
  300. .tsYd2{
  301. border: 3rpx solid #eeeeee;
  302. }
  303. .tsHx2{
  304. background: #eeeeee;
  305. }
  306. .tsMline2{
  307. color: #9A9A9A;
  308. }
  309. .topState{
  310. padding-top: 20rpx;
  311. }
  312. .topBox{
  313. margin-bottom: 20rpx;
  314. }
  315. .copyIcon{
  316. width: 30rpx;height: 30rpx;
  317. margin-top: 4rpx;margin-right: 6rpx;
  318. }
  319. .tkImg{
  320. width: 148rpx;height: 148rpx;
  321. margin-left: 10rpx;
  322. margin-bottom: 10rpx;
  323. }
  324. .tkImgBox{
  325. display: flex;flex-wrap: wrap;
  326. width: 484rpx;
  327. }
  328. .reasonTop{
  329. display: flex;justify-content: space-between;
  330. padding: 32rpx 42rpx;
  331. }
  332. .chahao{
  333. width: 21rpx;height: 21rpx;
  334. padding-top: 10rpx;
  335. padding-left: 10rpx;
  336. padding-right: 10rpx;
  337. padding-bottom: 10rpx;
  338. }
  339. .tkTitle{
  340. font-weight: 500;
  341. font-size: 28rpx;
  342. color: #222222;
  343. line-height: 40rpx;
  344. }
  345. .reasonBox{
  346. position: fixed;
  347. left: 0;
  348. top: 0;
  349. height: 100vh;
  350. width: 750rpx;
  351. background: rgba(0, 0, 0, 0.5);
  352. }
  353. .codeCont{
  354. width: 750rpx;
  355. background: #FFFFFF;
  356. border-radius: 28rpx 28rpx 0rpx 0rpx;
  357. position: absolute;
  358. left: 0;
  359. bottom: 0;
  360. height: 383rpx;
  361. }
  362. .reasonCont{
  363. height: 70vh;
  364. width: 750rpx;
  365. background: #FFFFFF;
  366. border-radius: 28rpx 28rpx 0rpx 0rpx;
  367. position: absolute;
  368. left: 0;
  369. bottom: 0;
  370. }
  371. .reasonContLine{
  372. display: flex;justify-content: space-between;
  373. padding: 20rpx 0;
  374. }
  375. .reasonContLineTitle{
  376. font-weight: 500;
  377. font-size: 28rpx;
  378. color: #222222;
  379. }
  380. .reasonContLineTxt{
  381. font-weight: 400;
  382. font-size: 28rpx;
  383. color: #222222;
  384. line-height: 40rpx;
  385. }
  386. .reasonContLineCk{
  387. width: 28rpx;
  388. height: 28rpx;
  389. border: 2rpx solid #9A9A9A;
  390. border-radius: 16rpx;
  391. margin-top: 6rpx;
  392. }
  393. .reasonContLineBox{
  394. padding: 0 33rpx;
  395. height: calc(70vh - 270rpx);
  396. overflow-y: scroll;
  397. }
  398. .ckLine{
  399. display: flex;color: #9A9A9A;
  400. font-size: 26rpx;
  401. }
  402. .xinghao{
  403. color: #EC0F0A;
  404. }
  405. .jtIcon{
  406. width: 10rpx;height: 20rpx;
  407. margin-top: 8rpx;
  408. margin-left: 10rpx;
  409. }
  410. .tkPrice1{
  411. font-size: 26rpx;
  412. color: #222222;
  413. }
  414. .tkPrice2{
  415. font-size: 24rpx;
  416. color: #9A9A9A;
  417. padding-top: 8rpx;
  418. }
  419. .tkPriceNum{
  420. font-size: 26rpx;
  421. color: #222222;
  422. line-height: 50rpx;
  423. }
  424. .textareaNum{
  425. padding-bottom: 18rpx;
  426. }
  427. .tkSm{
  428. font-size: 26rpx;
  429. color: #222222;
  430. padding-top: 18rpx;
  431. }
  432. .tktextarea{
  433. font-size: 26rpx;
  434. background: #F7F7F7;
  435. border-radius: 14rpx;
  436. margin-top: 20rpx;
  437. width: 600rpx;padding: 20rpx 30rpx;
  438. margin-bottom: 10rpx;
  439. }
  440. .textareaNum{
  441. font-size: 24rpx;
  442. color: #9A9A9A;
  443. display: flex;justify-content: flex-end;
  444. }
  445. .cont{
  446. padding: 20rpx 24rpx;
  447. }
  448. .itemBox{
  449. background: #FFFFFF;
  450. border-radius: 16rpx;padding: 24rpx;
  451. }
  452. .itemIMg{
  453. width: 128rpx;
  454. height: 128rpx;border-radius: 10rpx;
  455. }
  456. .flex{
  457. display: flex;
  458. }
  459. .itemRight{
  460. width: 450rpx;padding-left: 24rpx;
  461. }
  462. .itemName{
  463. font-weight: 500;
  464. font-size: 28rpx;
  465. color: #222222;
  466. line-height: 40rpx;
  467. }
  468. .buyType{
  469. padding: 0 8rpx;text-align: center;
  470. height: 32rpx;line-height: 34rpx;
  471. border-radius: 5rpx;
  472. border: 1px solid #FF0035;font-size: 22rpx;
  473. color: #FF0035;
  474. margin-top: 10rpx;
  475. }
  476. .priceBox{
  477. display: flex;justify-content: space-between;padding-top: 40rpx;
  478. }
  479. .price{
  480. font-size: 28rpx;
  481. color: #222222;
  482. line-height: 50rpx;
  483. }
  484. .itemNum{
  485. font-size: 34rpx;line-height: 50rpx;
  486. color: #686868;
  487. }
  488. .itemnotes{
  489. font-size: 24rpx;padding-top: 12rpx;
  490. color: #FFC107;
  491. }
  492. .mealBox{
  493. background: #FFFFFF;
  494. padding: 20rpx 24rpx;
  495. margin-top: 20rpx;
  496. font-size: 26rpx;
  497. color: #666666;
  498. border-radius: 16rpx;
  499. }
  500. .fwlcTitle{
  501. color: #333333;font-size: 30rpx;font-weight: 500;
  502. padding-bottom: 20rpx;
  503. }
  504. .mealTop{
  505. display: flex;
  506. justify-content: space-between;
  507. height: 72rpx;
  508. line-height: 72rpx;
  509. font-weight: 500;
  510. font-size: 26rpx;
  511. color: #222222;
  512. font-size: 26rpx;
  513. padding: 0 20rpx;
  514. }
  515. .mealNum{
  516. text-align: center;
  517. width: 120rpx;
  518. }
  519. .mealexpire{
  520. text-align: center; width: 120rpx;
  521. }
  522. .mealName{
  523. width: 460rpx;
  524. }
  525. .mealTop2{
  526. display: flex;
  527. justify-content: space-between;
  528. height: 72rpx;
  529. line-height: 72rpx;
  530. font-weight: 500;
  531. font-size: 26rpx;
  532. color: #222222;
  533. font-size: 26rpx;
  534. padding: 0 20rpx;
  535. background: #FFF6DB;
  536. }
  537. .mealXj{
  538. background: #FFFCF3;
  539. }
  540. .xjLine{
  541. display: flex;
  542. font-weight: 500;
  543. font-size: 26rpx;
  544. color: #222222;
  545. padding: 20rpx 20rpx;
  546. }
  547. .xjyd{
  548. width: 8rpx;
  549. height: 8rpx;
  550. background: #FABF1B;
  551. border-radius: 50rpx;
  552. margin-top: 12rpx;
  553. margin-right: 10rpx;
  554. }
  555. .mealMs{
  556. background: #FFFFFF;
  557. padding: 20rpx;
  558. font-weight: 400;
  559. font-size: 24rpx;
  560. color: #9A9A9A;
  561. line-height: 38rpx;
  562. }
  563. .goodsBox{
  564. padding:18rpx 24rpx;font-size: 26rpx;
  565. color: #222222;background: #FFFFFF;margin-top: 20rpx;
  566. border-radius: 16rpx;
  567. }
  568. .goodsline{
  569. justify-content: space-between;
  570. padding: 18rpx 0;
  571. }
  572. .mealBox img{
  573. width: 100%;
  574. }
  575. .mealBox image{
  576. width: 100%;
  577. }
  578. .tkErr{
  579. font-size: 26rpx;
  580. color: #9A9A9A;
  581. padding-bottom: 10rpx;
  582. padding-bottom: 20rpx;
  583. }
  584. .codeLine{
  585. font-size: 26rpx;
  586. color: #222222;
  587. display: flex;
  588. justify-content: center;
  589. padding-bottom: 30rpx;
  590. }
  591. </style>