index.vue 29 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225
  1. <template>
  2. <view :data-theme="theme">
  3. <view class='order-details'>
  4. <!-- 给header上与data上加on为退款订单-->
  5. <view class='header bg_color on'>
  6. <view class='picTxt acea-row row-middle'>
  7. <view class='data on'>
  8. <view class="acea-row row-middle mb20">
  9. <view class='state line-heightOne'>
  10. <view class='state line-heightOne'>
  11. <span v-if="refundInfo.refundStatus==0">用户提交退款申请,请您及时处理哦~</span>
  12. <span v-if="refundInfo.refundStatus==4">您已同意此退款申请,等待用户退货中~</span>
  13. <span v-if="refundInfo.refundStatus==5">用户已经填写退货信息,请您耐心等待~</span>
  14. <span v-if="refundInfo.refundStatus==2">退款金额原支付路径返回中!</span>
  15. <span v-if="refundInfo.refundStatus==3">退款金额已返还用户账户!</span>
  16. <span v-if="refundInfo.refundStatus==6">用户已经撤销此退款申请!</span>
  17. <span v-if="refundInfo.refundStatus==1">{{refundInfo.refundReason}}</span>
  18. </view>
  19. </view>
  20. <view v-show="refundInfo.refundStatus===3"><text class="font-color refundPrice">{{refundInfo.refundPrice}}元</text></view>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. <!-- 商品详情 -->
  26. <view class="borderPad margin-100">
  27. <view class="borRadius14 wrapper">
  28. <orderGoods :isShowBtn="false" :refundInfo="refundInfo" :cartInfo="[refundInfo]" :jump="true" :orderData="refundInfo">
  29. </orderGoods>
  30. <view class="borderPad">
  31. <view class="return_info">
  32. <view class='item acea-row row-between line-heightOne'>
  33. <view>退款件数:</view>
  34. <view class='conter'>{{refundInfo.applyRefundNum}}</view>
  35. </view>
  36. <view class='item acea-row row-between line-heightOne'>
  37. <view>退款金额:</view>
  38. <view class='conter'>¥{{refundInfo.refundPrice}}</view>
  39. </view>
  40. <view class='item acea-row row-between line-heightOne'>
  41. <view>退款方式:</view>
  42. <view class='conter'>原路返回</view>
  43. </view>
  44. <view class='item acea-row row-between line-heightOne'>
  45. <view>退款原因:</view>
  46. <view v-if="refundInfo.promoterType==='user'" class='conter'>{{refundInfo.refundReasonWap}}</view>
  47. <view v-else class='conter'>商家直接退款</view>
  48. </view>
  49. </view>
  50. </view>
  51. </view>
  52. </view>
  53. <!-- 商家店铺地址 -->
  54. <view v-if="refundInfo.returnGoodsType ===2 && merAddress && refundInfo.refundStatus>0" class="borderPad">
  55. <view class="borRadius14 wrapper return_info_pad">
  56. <view class='item acea-row row-between mb30'>
  57. <view>商家退回地址:</view>
  58. <view class='conter acea-row row-middle row-right'>
  59. <!-- #ifndef H5 -->
  60. <text class='copy line-heightOne' @tap="copy(merAddress.name+','+merAddress.phone+','+merAddress.addressDetail)">复制</text>
  61. <!-- #endif -->
  62. <!-- #ifdef H5 -->
  63. <text class='copy copy-data line-heightOne' :data-clipboard-text="merAddress.name+','+merAddress.phone+','+merAddress.addressDetail">复制</text>
  64. <!-- #endif -->
  65. </view>
  66. </view>
  67. <view class="text-2828 f-s-26 mb20">
  68. <text class="text-2828">{{merAddress.name}}</text>
  69. <text>{{merAddress.phone}}</text>
  70. </view>
  71. <view class="text-666 f-s-26 addressDetail">{{merAddress.addressDetail}}</view>
  72. </view>
  73. </view>
  74. <!-- 商家退回地址 -->
  75. <view v-if="refundInfo.returnGoodsType ===1 && refundInfo.refundStatus>0 &&refundInfo.receiver&&refundInfo.receiverPhone&&refundInfo.receiverAddressDetail"
  76. class="borderPad">
  77. <view class="borRadius14 wrapper return_info_pad">
  78. <view class='item acea-row row-between mb30'>
  79. <view>商家退回地址:</view>
  80. <view class='conter acea-row row-middle row-right'>
  81. <!-- #ifndef H5 -->
  82. <text class='copy line-heightOne' @tap="copy(refundInfo.receiver+','+refundInfo.receiverPhone+','+refundInfo.receiverAddressDetail)">复制</text>
  83. <!-- #endif -->
  84. <!-- #ifdef H5 -->
  85. <text class='copy copy-data line-heightOne' :data-clipboard-text="refundInfo.receiver+','+refundInfo.receiverPhone+','+refundInfo.receiverAddressDetail">复制</text>
  86. <!-- #endif -->
  87. </view>
  88. </view>
  89. <view class="text-2828 f-s-26 mb20">
  90. <text class="text-2828">{{refundInfo.receiver}}</text>
  91. <text>{{refundInfo.receiverPhone}}</text>
  92. </view>
  93. <view class="text-666 f-s-26 addressDetail">{{refundInfo.receiverAddressDetail}}</view>
  94. </view>
  95. </view>
  96. <!-- 退款订单详情 "-->
  97. <view class="borderPad">
  98. <view class='wrapper borRadius14 return_info_pad'>
  99. <view class='item acea-row row-between '>
  100. <view>订单单号:</view>
  101. <view class='conter acea-row row-middle row-right'><text class="text-overflow">{{refundInfo.orderNo}}</text>
  102. <!-- #ifndef H5 -->
  103. <text class='copy line-heightOne' @tap='copy(refundInfo.orderNo)'>复制</text>
  104. <!-- #endif -->
  105. <!-- #ifdef H5 -->
  106. <text class='copy copy-data line-heightOne' :data-clipboard-text="refundInfo.orderNo">复制</text>
  107. <!-- #endif -->
  108. </view>
  109. </view>
  110. <view class='item acea-row row-between'>
  111. <view>售后单号:</view>
  112. <view class='conter acea-row row-middle row-right'><text class="text-overflow">{{refundInfo.refundOrderNo}}</text>
  113. <!-- #ifndef H5 -->
  114. <text class='copy line-heightOne' @tap='copy(refundInfo.refundOrderNo)'>复制</text>
  115. <!-- #endif -->
  116. <!-- #ifdef H5 -->
  117. <text class='copy copy-data line-heightOne' :data-clipboard-text="refundInfo.refundOrderNo">复制</text>
  118. <!-- #endif -->
  119. </view>
  120. </view>
  121. <view class='item acea-row row-between'>
  122. <view>申请时间:</view>
  123. <view class='conter'>{{(refundInfo.createTime || 0)}}</view>
  124. </view>
  125. <view class='item acea-row row-between'>
  126. <view>售后类型:</view>
  127. <view class='conter'>{{refundInfo.afterSalesType===1?'仅退款':'退货退款'}}</view>
  128. </view>
  129. <view class='item acea-row row-between'>
  130. <view>退回方式:</view>
  131. <view class='conter'>
  132. {{refundInfo.returnGoodsType===1?'快递退回':refundInfo.returnGoodsType===2?'到店退货':'不退货'}}</view>
  133. </view>
  134. <view class='item acea-row row-between' v-if="refundInfo.refundReasonWapExplain">
  135. <view>备注说明:</view>
  136. <view class='conter-refund text-left'>{{refundInfo.refundReasonWapExplain}}</view>
  137. </view>
  138. <view class='item acea-row row-between' v-if="refundInfo.refundReasonWapImg">
  139. <view>退款凭证:</view>
  140. <view class='conter-refund text-left'>
  141. <image class="wapImg" :src="item" v-for="item in refundInfo.refundReasonWapImg.split(',')" :key='item.id'></image>
  142. </view>
  143. </view>
  144. </view>
  145. </view>
  146. <!-- 用户到店退回信息 -->
  147. <view v-if="refundInfo.returnGoodsType ===2 && refundInfo.refundStatus>0 && refundInfo.telephone" class="borderPad">
  148. <view class="borRadius14 wrapper return_info_pad">
  149. <view class='item acea-row row-between'>
  150. <view>联系电话:</view>
  151. <view class='conter'>{{refundInfo.telephone}}</view>
  152. </view>
  153. </view>
  154. </view>
  155. <!-- 用户发货信息 -->
  156. <view v-if="refundInfo.returnGoodsType ===1 && refundInfo.refundStatus>0 && refundInfo.expressName && refundInfo.trackingNumber"
  157. class="borderPad">
  158. <view class="borRadius14 wrapper return_info_pad">
  159. <view class='item acea-row row-between mb30'>
  160. <view>物流公司:</view>
  161. <view class='conter'>{{refundInfo.expressName}}</view>
  162. </view>
  163. <view class='item acea-row row-between mb30'>
  164. <view>物流单号:</view>
  165. <view class='conter acea-row row-middle row-right'>
  166. <text class="text-overflow">{{refundInfo.trackingNumber}}</text>
  167. <!-- #ifndef H5 -->
  168. <text class='copy line-heightOne' @tap='copy(refundInfo.trackingNumber)'>复制</text>
  169. <!-- #endif -->
  170. <!-- #ifdef H5 -->
  171. <text class='copy copy-data line-heightOne' :data-clipboard-text="refundInfo.trackingNumber">复制</text>
  172. <!-- #endif -->
  173. </view>
  174. </view>
  175. <view class='item acea-row row-between'>
  176. <view>联系电话:</view>
  177. <view class='conter'>{{refundInfo.telephone}}</view>
  178. </view>
  179. </view>
  180. </view>
  181. <!-- 操作按钮 "-->
  182. <view class="borderPad">
  183. <view class='wrapper borRadius14 return_info_pad btn-box acea-row' style="justify-content: flex-end;">
  184. <view></view>
  185. <view class="footer acea-row row-right row-middle">
  186. <view class="btn btn-999 acea-row row-center line-heightOne" @click="modify(refundInfo, 7)">退款单备注</view>
  187. <view class="btn on" v-if="(refundInfo.returnGoodsType==0||refundInfo.returnGoodsType==2)&&refundInfo.refundStatus==0" @click="modify(refundInfo,'2',1,0)">
  188. 退款审核
  189. </view>
  190. <view class="btn on" v-if="refundInfo.returnGoodsType==1&&refundInfo.refundStatus==0" @click="modify(refundInfo,'2',0,1)">
  191. 退款审核
  192. </view>
  193. <view class="btn on" v-if="refundInfo.refundStatus==5" @click="modify(refundInfo, 2, 1,2)">确认收货</view>
  194. </view>
  195. <PriceChange :change="change" :orderInfo="orderInfo" :isRefund="isRefund"
  196. v-on:statusChange="statusChange($event)" v-on:closechange="changeclose($event)" v-on:savePrice="savePrice"
  197. :status="status"></PriceChange>
  198. </view>
  199. </view>
  200. </view>
  201. </view>
  202. </template>
  203. <script>
  204. // +----------------------------------------------------------------------
  205. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  206. // +----------------------------------------------------------------------
  207. // | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
  208. // +----------------------------------------------------------------------
  209. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  210. // +----------------------------------------------------------------------
  211. // | Author: CRMEB Team <admin@crmeb.com>
  212. // +----------------------------------------------------------------------
  213. import PriceChange from "../components/PriceChange/index.vue";
  214. import {
  215. orderRefundInfoApi
  216. } from '@/api/order.js';
  217. import {
  218. refundReceiving,
  219. refundReceivingReject,
  220. secondHandRefundInfoApi,
  221. refundOrderAudit,
  222. refundOrderMark
  223. } from '@/api/secondHand.js';
  224. import {
  225. onRevokeRefund
  226. } from '@/libs/order';
  227. import orderGoods from "../components/orderGoods";
  228. import {
  229. getMerAddressApi
  230. } from '@/api/merchant.js'
  231. import ClipboardJS from "@/plugin/clipboard/clipboard.js";
  232. import {
  233. toLogin
  234. } from '@/libs/login.js';
  235. import {
  236. mapGetters
  237. } from "vuex";
  238. // #ifdef MP
  239. import uQRCode from '@/js_sdk/Sansnn-uQRCode/uqrcode.js'
  240. // #endif
  241. import {
  242. setThemeColor
  243. } from '@/utils/setTheme.js'
  244. const app = getApp();
  245. export default {
  246. components: {
  247. PriceChange,
  248. orderGoods
  249. },
  250. data() {
  251. return {
  252. rejectText: '',
  253. orderType: '',
  254. orderTypeId: null,
  255. rejectOrder: '',
  256. merAddress: null, //店铺地址
  257. refundOrderNo: '',
  258. refundInfo: {}, //退款单详情
  259. theme: app.globalData.theme,
  260. orderInfo:{},
  261. openErp: false,
  262. change:false,
  263. status: "",
  264. apiModalType:'',
  265. isRefund: 0, //1是仅退款;0是同意退货退款
  266. chatConfig: {
  267. consumer_hotline: '',
  268. telephone_service_switch: 'false'
  269. }, //客服配置
  270. };
  271. },
  272. computed: mapGetters(['isLogin', 'chatUrl', 'userInfo']),
  273. onLoad: function(options) {
  274. options.type == undefined || options.type == null ? this.type = 'normal' : this.type = options.type;
  275. if (!options.refundOrderNo) return this.$util.Tips({
  276. title: '缺少参数'
  277. }, {
  278. tab: 3,
  279. url: 1
  280. });
  281. this.$set(this, 'refundOrderNo', options.refundOrderNo);
  282. this.$set(this, 'orderType', options.orderType);
  283. this.$set(this, 'orderTypeId', options.orderTypeId);
  284. this.bgColor = setThemeColor();
  285. this.$set(this, 'chatConfig', this.$Cache.getItem('chatConfig'));
  286. },
  287. onShow() {
  288. if (this.isLogin) {
  289. this.orderRefundInfo();
  290. } else {
  291. toLogin();
  292. }
  293. },
  294. onHide: function() {
  295. this.isClose = true;
  296. },
  297. // 滚动监听
  298. onPageScroll(e) {
  299. // 传入scrollTop值并触发所有easy-loadimage组件下的滚动监听事件
  300. uni.$emit('scroll');
  301. },
  302. onReady: function() {
  303. // #ifdef H5
  304. this.$nextTick(function() {
  305. const clipboard = new ClipboardJS(".copy-data");
  306. clipboard.on("success", () => {
  307. this.$util.Tips({
  308. title: '复制成功'
  309. });
  310. });
  311. });
  312. // #endif
  313. },
  314. methods: {
  315. //0-仅退款 1-退货退款 2-确认收货
  316. modify: function(item, status, type,apiType) {
  317. this.apiModalType=apiType
  318. if (this.openErp && status != 1) return
  319. this.change = true;
  320. this.status = status.toString();
  321. this.orderInfo = item;
  322. if (status == 2) {
  323. this.isRefund = type
  324. }
  325. },
  326. changeclose: function(msg) {
  327. this.change = msg;
  328. },
  329. async savePrice(opt) {
  330. let that = this,
  331. data = {};
  332. data.refundOrderNo = that.orderInfo.refundOrderNo;
  333. if (that.apiModalType == 0) {
  334. if(opt.type==2&&!opt.refuse_reason){
  335. return this.$util.Tips({
  336. title: '请输入拒绝理由'
  337. })
  338. }
  339. let requestObj = {
  340. refundOrderNo:that.orderInfo.refundOrderNo,
  341. auditType:opt.type==1?'success':'refuse',
  342. reason:opt.refuse_reason?opt.refuse_reason:''
  343. }
  344. refundOrderAudit(requestObj).then(res=>{
  345. if(res.code==200){
  346. this.$util.Tips({
  347. title: '审核成功'
  348. })
  349. this.init();
  350. this.change = false
  351. }else{
  352. this.$util.Tips({
  353. title:res.message
  354. })
  355. }
  356. })
  357. } else if (that.apiModalType == 1) {
  358. //退货退款审核
  359. if(opt.type==2&&!opt.refuse_reason){
  360. return this.$util.Tips({
  361. title: '请输入拒绝理由'
  362. })
  363. }
  364. if(opt.type==1&&!opt.merAddressId){
  365. return this.$util.Tips({
  366. title: '请选择退货地址'
  367. })
  368. }
  369. //退货退款拒绝
  370. if(opt.type==2){
  371. let requestObj = {
  372. refundOrderNo:that.orderInfo.refundOrderNo,
  373. auditType:opt.type==1?'success':'refuse',
  374. reason:opt.refuse_reason?opt.refuse_reason:''
  375. }
  376. refundOrderAudit(requestObj).then(res=>{
  377. if(res.code==200){
  378. this.$util.Tips({
  379. title: '操作成功'
  380. })
  381. this.init();
  382. this.change = false
  383. }else{
  384. this.$util.Tips({
  385. title:res.message
  386. })
  387. }
  388. })
  389. }
  390. //退货退款同意
  391. if(opt.type==1){
  392. let requestObj = {
  393. refundOrderNo:that.orderInfo.refundOrderNo,
  394. auditType:opt.type==1?'success':'refuse',
  395. merAddressId:opt.merAddressId
  396. }
  397. refundOrderAudit(requestObj).then(res=>{
  398. if(res.code==200){
  399. this.$util.Tips({
  400. title: '操作成功'
  401. })
  402. this.init();
  403. this.change = false
  404. }else{
  405. this.$util.Tips({
  406. title:res.message
  407. })
  408. }
  409. })
  410. }
  411. }else if(that.apiModalType == 2){
  412. //确认收货
  413. if(opt.type==2&&!opt.refuse_reason){
  414. return this.$util.Tips({
  415. title: '请输入拒绝理由'
  416. })
  417. }
  418. if(opt.type==1){
  419. // 同意
  420. refundReceiving(that.orderInfo.refundOrderNo).then(res=>{
  421. if(res.code==200){
  422. this.$util.Tips({
  423. title: '操作成功'
  424. })
  425. this.init();
  426. this.change = false
  427. }else{
  428. this.$util.Tips({
  429. title:res.message
  430. })
  431. }
  432. })
  433. }
  434. if(opt.type==2){
  435. let requestObj = {
  436. refundOrderNo:that.orderInfo.refundOrderNo,
  437. reason:opt.refuse_reason?opt.refuse_reason:''
  438. }
  439. // 拒绝
  440. refundReceivingReject(requestObj).then(res=>{
  441. if(res.code==200){
  442. this.$util.Tips({
  443. title: '操作成功'
  444. })
  445. this.init();
  446. this.change = false
  447. }else{
  448. this.$util.Tips({
  449. title:res.message
  450. })
  451. }
  452. })
  453. }
  454. }else{
  455. data.remark=opt.remark
  456. if (!data.remark) {
  457. return this.$util.Tips({
  458. title: '请输入备注'
  459. })
  460. }
  461. refundOrderMark(data).then(res=>{
  462. if(res.code==200){
  463. this.$util.Tips({
  464. title: '备注成功'
  465. })
  466. this.getIndex();
  467. this.change = false
  468. }else{
  469. this.$util.Tips({
  470. title:res.message
  471. })
  472. }
  473. })
  474. }
  475. },
  476. //审核保存
  477. handleInputConfirm() {
  478. let that = this;
  479. if (!this.rejectText) return this.$util.Tips({
  480. title: '请输入审核不通过原因!'
  481. });
  482. uni.showLoading({
  483. title: '正在处理中'
  484. });
  485. let params = {
  486. refundOrderNo: this.rejectOrder,
  487. auditType: 'refuse',
  488. reason: this.rejectText
  489. }
  490. returningSecondHandAuditApi(params).then(res => {
  491. uni.hideLoading();
  492. return that.$util.Tips({
  493. title: '处理成功',
  494. icon: 'success'
  495. }, function() {
  496. that.orderRefundInfo();
  497. });
  498. }).catch(err => {
  499. return that.$util.Tips({
  500. title: err
  501. });
  502. });
  503. // 关闭窗口后,恢复默认内容
  504. this.$refs.rejectDialog.close()
  505. },
  506. //审核取消
  507. handleInputClose() {
  508. this.$refs.rejectDialog.close()
  509. },
  510. // 审核
  511. handleRevokeAudit(orderNo, type) {
  512. this.rejectOrder = orderNo;
  513. if (type) {
  514. uni.showLoading({
  515. title: '正在处理中'
  516. });
  517. returningSecondHandAuditApi({refundOrderNo: this.rejectOrder, auditType: 'success'}).then(res => {
  518. uni.hideLoading();
  519. return that.$util.Tips({
  520. title: '处理成功',
  521. icon: 'success'
  522. }, function() {
  523. that.orderRefundInfo();
  524. });
  525. }).catch(err => {
  526. return that.$util.Tips({
  527. title: err
  528. });
  529. });
  530. } else {
  531. this.$refs.rejectDialog.open();
  532. }
  533. },
  534. //店铺地址
  535. getMerAddress() {
  536. getMerAddressApi(this.refundInfo.merId).then(res => {
  537. this.$set(this, 'merAddress', res.data);
  538. }).catch(err => {
  539. return this.$util.Tips({
  540. title: err
  541. });
  542. })
  543. },
  544. //撤销售后
  545. handleRevokeRefund(refundOrderNo) {
  546. let that = this;
  547. onRevokeRefund(refundOrderNo, this.orderType).then(() => {
  548. this.orderRefundInfo()
  549. });
  550. },
  551. //退回商品
  552. handleReturningRefund(item) {
  553. this.$Cache.set('productInfo', item)
  554. let url =
  555. `/pages/goods/returns_and_refunds/index?refundOrderNo=${item.refundOrderNo}&returnGoodsType=${item.returnGoodsType}`;
  556. this.orderType == 'secondHand' ? url = url + '&orderType=secondHand' : ''
  557. uni.navigateTo({
  558. url: url
  559. })
  560. },
  561. kefuClick() {
  562. if (this.chatConfig.telephone_service_switch === 'true') {
  563. uni.makePhoneCall({
  564. phoneNumber: this.chatConfig.consumer_hotline //仅为示例
  565. });
  566. } else {
  567. // #ifdef APP-PLUS
  568. uni.navigateTo({
  569. url: '/pages/users/web_page/index?webUel=' + this.chatUrl + '&title=客服'
  570. })
  571. // #endif
  572. // #ifndef APP-PLUS
  573. location.href = this.chatUrl;
  574. // #endif
  575. }
  576. },
  577. /**
  578. * 拨打电话
  579. */
  580. makePhone: function(e) {
  581. uni.makePhoneCall({
  582. phoneNumber: e
  583. })
  584. },
  585. /**
  586. * 获取退款订单详细信息
  587. *
  588. */
  589. orderRefundInfo() {
  590. let that = this;
  591. uni.showLoading({
  592. title: "正在加载中"
  593. });
  594. let api = that.orderType == 'secondHand' ? secondHandRefundInfoApi : orderRefundInfoApi;
  595. api(that.refundOrderNo).then(res => {
  596. uni.hideLoading();
  597. let data = res.data;
  598. that.$set(that, 'refundInfo', data);
  599. //returnGoodsType 退货类型:0-不退货 1-快递退回,2-到店退货
  600. if (that.refundInfo.returnGoodsType === 2) that.getMerAddress();
  601. }).catch(err => {
  602. that.$util.Tips({
  603. title: err
  604. }, {
  605. tab: 4,
  606. url: '/pages/user/index'
  607. });
  608. });
  609. },
  610. init(){
  611. uni.navigateBack()
  612. },
  613. /**
  614. *
  615. * 剪切订单号
  616. */
  617. // #ifndef H5
  618. copy: function(orderNo) {
  619. let that = this;
  620. uni.setClipboardData({
  621. data: orderNo
  622. });
  623. },
  624. // #endif
  625. /**
  626. * 打电话
  627. */
  628. goTel: function() {
  629. uni.makePhoneCall({
  630. phoneNumber: this.refundInfo.deliveryId
  631. })
  632. }
  633. }
  634. }
  635. </script>
  636. <style scoped lang="scss">
  637. .addressDetail {
  638. line-height: 36rpx;
  639. }
  640. .btn-box {
  641. display: flex;
  642. padding-top: 20rpx;
  643. line-height: 60rpx;
  644. .btn-line {
  645. @include main_color(theme);
  646. @include coupons_border_color(theme);
  647. }
  648. .btn-bg {
  649. color: #fff;
  650. }
  651. .btn-999 {
  652. border: 1px solid #999999;
  653. color: #666666;
  654. }
  655. .btn {
  656. width: 176rpx;
  657. height: 60rpx;
  658. line-height: 56rpx;
  659. margin-left: 18rpx;
  660. text-align: center;
  661. border-radius: 30rpx;
  662. font-size: 28rpx;
  663. }
  664. .on {
  665. border-color: #2A7EFB !important;
  666. background: #2A7EFB !important;
  667. color: #fff !important;
  668. }
  669. }
  670. .margin-100 {
  671. margin: -86rpx auto 0 auto;
  672. }
  673. .return_info_pad {
  674. padding: 30rpx 24rpx;
  675. }
  676. .return_info {
  677. border-top: 1px solid #EEEEEE;
  678. background-color: #fff;
  679. padding: 32rpx 0;
  680. }
  681. .refundPrice {
  682. font-size: 35rpx;
  683. font-weight: bold;
  684. }
  685. .qs-btn {
  686. width: auto;
  687. height: 60rpx;
  688. text-align: center;
  689. line-height: 60rpx;
  690. border-radius: 50rpx;
  691. color: #fff;
  692. font-size: 27rpx;
  693. padding: 0 3%;
  694. color: #aaa;
  695. border: 1px solid #ddd;
  696. margin-right: 20rpx;
  697. }
  698. .text-overflow {
  699. width: 392rpx;
  700. overflow: hidden;
  701. text-overflow: ellipsis;
  702. white-space: nowrap;
  703. }
  704. .shuoming {
  705. width: 32rpx;
  706. height: 32rpx;
  707. }
  708. .mp-header {
  709. width: 100%;
  710. @include main_bg_color(theme);
  711. }
  712. .goodCall {
  713. @include main_color(theme);
  714. text-align: center;
  715. width: 100%;
  716. height: 86rpx;
  717. padding: 0 30rpx;
  718. border-bottom: 1rpx solid #eee;
  719. font-size: 30rpx;
  720. line-height: 86rpx;
  721. background: #fff;
  722. .icon-kefu {
  723. font-size: 36rpx;
  724. margin-right: 15rpx;
  725. }
  726. /* #ifdef MP */
  727. button {
  728. display: flex;
  729. align-items: center;
  730. justify-content: center;
  731. height: 86rpx;
  732. font-size: 30rpx;
  733. @include main_color(theme);
  734. }
  735. /* #endif */
  736. }
  737. .justify-between {
  738. justify-content: space-between;
  739. }
  740. .align-center {
  741. align-items: center;
  742. }
  743. .order-details {
  744. padding-bottom: 30rpx;
  745. .header {
  746. height: 250rpx;
  747. padding: 0 24rpx;
  748. }
  749. }
  750. .bg_color {
  751. @include main_bg_color(theme);
  752. }
  753. .order-details .header.on {
  754. // /background-color: #666 !important;
  755. }
  756. .order-details .header .pictrue {
  757. width: 110rpx;
  758. height: 110rpx;
  759. }
  760. .order-details .header .pictrue image {
  761. width: 100%;
  762. height: 100%;
  763. }
  764. .order-details .header .data {
  765. color: rgba(255, 255, 255, 0.8);
  766. font-size: 24rpx;
  767. margin-left: 27rpx;
  768. }
  769. .order-details .header .data.on {
  770. margin-left: 0;
  771. padding-top: 34rpx;
  772. }
  773. .order-details .header .data .state {
  774. font-size: 30rpx;
  775. font-weight: bold;
  776. color: #fff;
  777. }
  778. .order-details .header .data .time {
  779. margin-left: 20rpx;
  780. }
  781. .picTxt {
  782. padding-left: 10rpx;
  783. }
  784. .order-details .nav {
  785. background-color: #fff;
  786. font-size: 26rpx;
  787. color: #282828;
  788. padding: 27rpx 0;
  789. width: 100%;
  790. border-radius: 14rpx;
  791. margin: -100rpx auto 0 auto;
  792. }
  793. .order-details .nav .navCon {
  794. padding: 0 40rpx;
  795. }
  796. .order-details .nav .on {
  797. @include main_color(theme);
  798. }
  799. .font_color {
  800. @include main_color(theme);
  801. }
  802. .order-details .nav .progress {
  803. padding: 0 65rpx;
  804. margin-top: 10rpx;
  805. }
  806. .order-details .nav .progress .line {
  807. width: 100rpx;
  808. height: 2rpx;
  809. background-color: #939390;
  810. }
  811. .order-details .nav .progress .iconfont {
  812. font-size: 25rpx;
  813. color: #939390;
  814. margin-top: -2rpx;
  815. }
  816. .order-details .address {
  817. font-size: 26rpx;
  818. color: #868686;
  819. background-color: #fff;
  820. padding: 30rpx 0;
  821. .phone {
  822. margin-left: 20rpx;
  823. }
  824. }
  825. .order-details .address .name {
  826. font-size: 30rpx;
  827. color: #333;
  828. margin-bottom: 15rpx;
  829. }
  830. .order-details .line {
  831. width: 100%;
  832. height: 3rpx;
  833. }
  834. .order-details .line image {
  835. width: 100%;
  836. height: 100%;
  837. display: block;
  838. }
  839. .order-details .wrapper {
  840. background-color: #fff;
  841. margin-top: 12rpx;
  842. }
  843. .order-details .wrapper .item {
  844. font-size: 28rpx;
  845. color: #282828;
  846. }
  847. .order-details .wrapper .item~.item {
  848. margin-top: 34rpx;
  849. }
  850. .order-details .wrapper .item .conter {
  851. color: #282828;
  852. text-align: right;
  853. overflow: hidden;
  854. text-overflow: ellipsis;
  855. white-space: nowrap;
  856. }
  857. .mark_show {
  858. color: #868686;
  859. width: 470rpx;
  860. text-align: right;
  861. }
  862. .order-details .wrapper .item .conter .copy {
  863. font-size: 20rpx;
  864. color: #666;
  865. border-radius: 20rpx;
  866. border: 1rpx solid #999;
  867. padding: 8rpx 18rpx;
  868. margin-left: 10rpx;
  869. }
  870. .order-details .wrapper .actualPay {
  871. border-top: 1rpx solid #eee;
  872. margin-top: 30rpx;
  873. padding-top: 30rpx;
  874. }
  875. .order-details .wrapper .actualPay .money {
  876. font-weight: bold;
  877. font-size: 30rpx;
  878. @include price_color(theme);
  879. }
  880. .order-details .footer {
  881. width: 100%;
  882. height: 100rpx;
  883. position: fixed;
  884. bottom: 0;
  885. left: 0;
  886. background-color: #fff;
  887. padding-right: 30rpx;
  888. box-sizing: border-box;
  889. }
  890. .order-details .footer .bnt {
  891. width: 158rpx;
  892. height: 54rpx;
  893. text-align: center;
  894. line-height: 54rpx;
  895. border-radius: 50rpx;
  896. color: #fff;
  897. font-size: 27rpx;
  898. }
  899. .order-details .footer .bnt.cancel {
  900. color: #aaa;
  901. border: 1rpx solid #ddd;
  902. }
  903. .order-details .footer .bnt~.bnt {
  904. margin-left: 18rpx;
  905. }
  906. .order-details .writeOff {
  907. background-color: #fff;
  908. margin-top: 15rpx;
  909. padding-bottom: 50rpx;
  910. }
  911. .order-details .writeOff .title {
  912. font-size: 30rpx;
  913. color: #282828;
  914. height: 87rpx;
  915. border-bottom: 1px solid #f0f0f0;
  916. padding: 0 24rpx;
  917. line-height: 87rpx;
  918. }
  919. .order-details .writeOff .grayBg {
  920. background-color: #f2f5f7;
  921. width: 590rpx;
  922. height: 384rpx;
  923. border-radius: 20rpx 20rpx 0 0;
  924. margin: 50rpx auto 0 auto;
  925. padding-top: 55rpx;
  926. }
  927. .order-details .writeOff .grayBg .pictrue {
  928. width: 290rpx;
  929. height: 290rpx;
  930. margin: 0 auto;
  931. }
  932. .order-details .writeOff .grayBg .pictrue image {
  933. width: 100%;
  934. height: 100%;
  935. display: block;
  936. }
  937. .order-details .writeOff .gear {
  938. width: 590rpx;
  939. height: 30rpx;
  940. margin: 0 auto;
  941. }
  942. .order-details .writeOff .gear image {
  943. width: 100%;
  944. height: 100%;
  945. display: block;
  946. }
  947. .order-details .writeOff .num {
  948. background-color: #f0c34c;
  949. width: 590rpx;
  950. height: 84rpx;
  951. color: #282828;
  952. font-size: 48rpx;
  953. margin: 0 auto;
  954. border-radius: 0 0 20rpx 20rpx;
  955. text-align: center;
  956. padding-top: 4rpx;
  957. }
  958. .order-details .writeOff .rules {
  959. margin: 46rpx 30rpx 0 30rpx;
  960. border-top: 1px solid #f0f0f0;
  961. padding-top: 10rpx;
  962. }
  963. .order-details .writeOff .rules .item {
  964. margin-top: 20rpx;
  965. }
  966. .order-details .writeOff .rules .item .rulesTitle {
  967. font-size: 28rpx;
  968. color: #282828;
  969. }
  970. .order-details .writeOff .rules .item .rulesTitle .iconfont {
  971. font-size: 30rpx;
  972. color: #333;
  973. margin-right: 8rpx;
  974. margin-top: 5rpx;
  975. }
  976. .order-details .writeOff .rules .item .info {
  977. font-size: 28rpx;
  978. color: #999;
  979. margin-top: 7rpx;
  980. }
  981. .order-details .writeOff .rules .item .info .time {
  982. margin-left: 20rpx;
  983. }
  984. .order-details .map {
  985. font-size: 30rpx;
  986. color: #282828;
  987. margin-top: 15rpx;
  988. background-color: #fff;
  989. padding: 0 24rpx;
  990. .title {
  991. line-height: 86rpx;
  992. border-bottom: 1px solid #f0f0f0;
  993. }
  994. }
  995. .order-details .map .place {
  996. font-size: 26rpx;
  997. width: 176rpx;
  998. height: 50rpx;
  999. border-radius: 25rpx;
  1000. line-height: 50rpx;
  1001. text-align: center;
  1002. }
  1003. .order-details .map .place .iconfont {
  1004. font-size: 27rpx;
  1005. height: 27rpx;
  1006. line-height: 27rpx;
  1007. margin: 2rpx 3rpx 0 0;
  1008. }
  1009. .order-details .address .name .iconfont {
  1010. font-size: 34rpx;
  1011. margin-left: 10rpx;
  1012. }
  1013. .refund {
  1014. padding: 0 !important;
  1015. margin-top: 15rpx;
  1016. background-color: #fff;
  1017. .title {
  1018. display: flex;
  1019. align-items: center;
  1020. font-size: 30rpx;
  1021. color: #333;
  1022. height: 86rpx;
  1023. border-bottom: 1px solid #f5f5f5;
  1024. font-weight: 400;
  1025. padding: 0 24rpx;
  1026. image {
  1027. width: 32rpx;
  1028. height: 32rpx;
  1029. margin-right: 10rpx;
  1030. }
  1031. }
  1032. .con {
  1033. font-size: 26rpx;
  1034. color: #666666;
  1035. padding: 30rpx 24rpx;
  1036. }
  1037. }
  1038. .pictrue {
  1039. width: 130rpx;
  1040. height: 130rpx;
  1041. border-radius: 14rpx;
  1042. overflow: hidden;
  1043. image {
  1044. width: 100%;
  1045. height: 100%;
  1046. }
  1047. }
  1048. .text {
  1049. width: 490rpx;
  1050. // position: relative;
  1051. .name {
  1052. font-size: 28rpx;
  1053. color: #282828;
  1054. }
  1055. .attr {
  1056. font-size: 16rpx;
  1057. color: #868686;
  1058. margin-top: 7rpx
  1059. }
  1060. }
  1061. .wrapper-head {
  1062. background-color: #fff;
  1063. margin-top: 12rpx;
  1064. padding: 30rpx 24rpx;
  1065. }
  1066. .wrapper-info {
  1067. background-color: #fff;
  1068. margin: -100rpx auto 0 auto;
  1069. padding: 15px 12px;
  1070. .name {
  1071. width: 414rpx;
  1072. color: #333;
  1073. }
  1074. .num {
  1075. color: #999;
  1076. }
  1077. .attr {
  1078. color: #999;
  1079. font-size: 20rpx;
  1080. margin: 7rpx 0 16rpx 0;
  1081. }
  1082. .price {
  1083. font-size: 26rpx;
  1084. color: #E93323;
  1085. }
  1086. }
  1087. .borRadius-top {
  1088. border-radius: 14rpx 14rpx 0px 0px;
  1089. }
  1090. .borRadius-bottom {
  1091. border-radius: 0px 0px 14rpx 14rpx;
  1092. }
  1093. .conter-refund {
  1094. width: 76%;
  1095. text-align: right;
  1096. color: #868686;
  1097. .wapImg {
  1098. width: 106rpx;
  1099. height: 106rpx;
  1100. border-radius: 10rpx;
  1101. margin-right: 10rpx;
  1102. }
  1103. }
  1104. .bg-tk-color {
  1105. background-color: $bg-color-primary;
  1106. color: #fff;
  1107. border: none;
  1108. }
  1109. .tui-modal-custom {
  1110. width: 600rpx;
  1111. position: relative;
  1112. box-sizing: border-box;
  1113. padding: 40rpx;
  1114. border-radius: 16px;
  1115. background-color: #fff;
  1116. z-index: 9999;
  1117. .h-342 {
  1118. min-height: 268rpx;
  1119. max-height: 268rpx;
  1120. ;
  1121. overflow-y: scroll;
  1122. }
  1123. }
  1124. </style>