refund-detail.vue 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  1. <template>
  2. <div class="app-container">
  3. <el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal">
  4. <el-menu-item index="1" @click="backToList">用户退款列表</el-menu-item>
  5. <el-menu-item index="2">用户退款详情</el-menu-item>
  6. </el-menu>
  7. <h1>退款单</h1>
  8. <el-card v-for="refund in refundList" :key="refund.orderID" class="box-card">
  9. <div class="refund-item">
  10. <el-row :gutter="24" class="box-row">
  11. <el-col :span="6"><b>退款编号:</b> {{ refund.returnedNo }}</el-col>
  12. <el-col :span="6"><b>申请时间:</b> <template v-if="refund.returnTime">{{ refund.returnTime | parseTime('{y}-{m}-{d} {h}:{i}') }}</template></el-col>
  13. <el-col :span="6"><b>申请金额:</b> ¥{{ refund.refundFee | toThousandFilter }}</el-col>
  14. <el-col :span="6"><b>退款状态:</b>
  15. <el-tag v-if="refund.status*1===1" type="warning" size="small">待审核</el-tag>
  16. <el-tag v-if="refund.status*1===2" type="danger" size="small">审核不通过</el-tag>
  17. <el-tag v-if="refund.status*1===3" type="success" size="small">审核通过</el-tag>
  18. </el-col>
  19. </el-row>
  20. <el-row :gutter="24" class="box-row">
  21. <el-col :span="20"><b>退款方式:</b>
  22. <template v-if="refund.returnedWay*1===4">未支付无退款</template>
  23. <template v-else-if="refund.returnedWay*1===1">
  24. <span v-if="refund.refundBalanceFee*1 !== 0">余额账户:¥{{ refund.refundBalanceFee | toThousandFilter }}</span>
  25. <span v-if="refund.refundOnlineFee*1 !== 0">线上退回:¥{{ refund.refundOnlineFee | toThousandFilter }}</span>
  26. <span v-if="refund.refundOfflineFee*1 !== 0">线下转账:¥{{ refund.refundOfflineFee | toThousandFilter }}</span>
  27. </template>
  28. <template v-else>----</template>
  29. </el-col>
  30. </el-row>
  31. <template v-if="refund.returnedWay*1===1 && refund.refundOfflineFee*1!==0">
  32. <el-row :gutter="24" class="box-row">
  33. <el-col v-if="refund.refundFee" :span="12"><b>退款银行:</b>
  34. <template v-if="refund.payType*1===1">建设银行7297</template>
  35. <template v-else-if="refund.payType*1===2">中信银行0897</template>
  36. <template v-else-if="refund.payType*1===3">中信银行7172</template>
  37. <template v-else-if="refund.payType*1===4">广发银行0115</template>
  38. <template v-else-if="refund.payType*1===5">广发银行5461</template>
  39. </el-col>
  40. <el-col v-else :span="12">暂无支付方式</el-col>
  41. </el-row>
  42. <el-row :gutter="24" class="box-row">
  43. <el-col :span="6"><b>开户名:</b> {{ refund.bankAccountName ? refund.bankAccountName : '' }}</el-col>
  44. <el-col :span="6"><b>账号:</b> {{ refund.bankAccountNo ? refund.bankAccountNo : '' }}</el-col>
  45. <el-col :span="6"><b>开户行:</b> {{ refund.openBank ? refund.openBank : '' }}</el-col>
  46. <el-col :span="6"><b>账户类型:</b>
  47. <el-tag v-if="refund.bankAccountType*1===1" type="warning" size="small">公账</el-tag>
  48. <el-tag v-if="refund.bankAccountType*1===2" type="danger" size="small">私账</el-tag>
  49. </el-col>
  50. </el-row>
  51. </template>
  52. </div>
  53. <div class="refund-item">
  54. <template v-if="order">
  55. <el-row :gutter="24" class="box-row">
  56. <el-col :span="6"><b>订单编号(ID):</b> {{ order.orderNo + '(' + order.orderID + ')' }}</el-col>
  57. <el-col :span="6"><b>下单时间:</b> <template v-if="order.orderTime">{{ order.orderTime | parseTime('{y}-{m}-{d} {h}:{i}') }}</template></el-col>
  58. <el-col :span="6"><b>订单状态:</b>
  59. <template v-if="['11','12','13','21','22','23','31','32','33'].indexOf(order.status)>=0">
  60. <el-tag type="success" size="small">{{ '交易中('+statusObj[order.status]+')' }}</el-tag>
  61. </template>
  62. <template v-else>
  63. <el-tag :type="order.status*1===6?'info':''" size="small">{{ statusObj[order.status] }}</el-tag>
  64. </template>
  65. </el-col>
  66. <el-col v-if="order.bpOrderUserinfo" :span="6"><b>买家:</b> {{ order.bpOrderUserinfo.name }}</el-col>
  67. </el-row>
  68. <el-row :gutter="24" class="box-row">
  69. <el-col :span="6"><b>收款状态:</b>
  70. <el-tag v-if="order.receiptStatus*1===1" type="danger" size="small">待收款</el-tag>
  71. <el-tag v-if="order.receiptStatus*1===2" type="warning" size="small">部分收款</el-tag>
  72. <el-tag v-if="order.receiptStatus*1===3" type="success" size="small">已收款</el-tag>
  73. </el-col>
  74. <el-col :span="6"><b>退款状态:</b>
  75. <el-tag v-if="order.refundType*1===1" type="warning" size="small">部分退</el-tag>
  76. <el-tag v-else-if="order.refundType*1===2" type="danger" size="small">全部退</el-tag>
  77. <el-tag v-else type="info" size="small">无退款</el-tag>
  78. </el-col>
  79. <el-col :span="6"><b>发货状态:</b>
  80. <el-tag v-if="order.sendOutStatus*1===1" type="danger" size="small">待发货</el-tag>
  81. <el-tag v-if="order.sendOutStatus*1===2" type="warning" size="small">部分发货</el-tag>
  82. <el-tag v-if="order.sendOutStatus*1===3" type="success" size="small">已发货</el-tag>
  83. </el-col>
  84. </el-row>
  85. <el-row v-if="order.bpOrderUserinfo" :gutter="24" class="box-row">
  86. <el-col :span="6"><b>收货人:</b> {{ order.bpOrderUserinfo.shouHuoRen }}</el-col>
  87. <el-col :span="6"><b>手机:</b> {{ order.bpOrderUserinfo.mobile }}</el-col>
  88. <el-col :span="12"><b>地址:</b> {{ order.bpOrderUserinfo.province +' '+ order.bpOrderUserinfo.city +' '+ order.bpOrderUserinfo.town +' '+ order.bpOrderUserinfo.address }}</el-col>
  89. </el-row>
  90. <div v-for="shopOrder in refund.shopOrderReturnedList" :key="shopOrder.shopOrderID" class="order-item">
  91. <el-row :gutter="22" class="box-row">
  92. <el-col :span="9"><b>子订单号(ID):</b> {{ shopOrder.shopOrderNo + '(' + shopOrder.shopOrderID + ')' }}</el-col>
  93. <el-col :span="5"><b>子订单金额:</b> ¥{{ shopOrder.needPayAmount | toThousandFilter }}</el-col>
  94. <el-col :span="5"><b>付款状态:</b>
  95. <el-tag v-if="shopOrder.payStatus*1===1" type="danger" size="small">待付款</el-tag>
  96. <el-tag v-if="shopOrder.payStatus*1===2" type="warning" size="small">部分付款</el-tag>
  97. <el-tag v-if="shopOrder.payStatus*1===3" type="success" size="small">已付款</el-tag>
  98. </el-col>
  99. <el-col :span="5"><b>发货状态:</b>
  100. <el-tag v-if="shopOrder.sendOutStatus*1===1" type="danger" size="small">待发货</el-tag>
  101. <el-tag v-if="shopOrder.sendOutStatus*1===2" type="warning" size="small">部分发货</el-tag>
  102. <el-tag v-if="shopOrder.sendOutStatus*1===3" type="success" size="small">已发货</el-tag>
  103. </el-col>
  104. </el-row>
  105. <el-row :gutter="22" class="box-row">
  106. <el-col :span="22"><b>供应商:</b> {{ shopOrder.shopName }}</el-col>
  107. </el-row>
  108. <el-row v-for="op in shopOrder.cmReturnedPurchaseProductList" :key="op.orderProductID" :gutter="22" class="product-row">
  109. <el-col :span="2">
  110. <img :src="op.mainImage" width="60" alt="">
  111. </el-col>
  112. <el-col :span="7">{{ op.name }}</el-col>
  113. <el-col :span="5">
  114. <div class="op-item"><b>数量</b>{{ op.productID*1!==999 ? ('(赠品数): x'+op.num+'('+op.presentNum+')') : (': x'+op.num) }}</div>
  115. <div v-if="op.productID*1!==999" class="op-item">规格: {{ op.unit }}</div>
  116. </el-col>
  117. <el-col v-if="op.productID*1!==999" :span="5">
  118. <div class="op-item"><b>单价:</b> ¥{{ op.price | toThousandFilter }}</div>
  119. <div class="op-item"><b>总额:</b> ¥{{ op.totalFee | toThousandFilter }}</div>
  120. </el-col>
  121. <el-col v-if="op.productID*1!==999" :span="5">
  122. <div v-if="order.sendOutStatus*1 === 2 || order.sendOutStatus*1 === 3" class="op-item"><b>已发/已收:</b> {{ ((op.num ? op.num : 0) - (op.notOutStore ? op.notOutStore : 0)) + '/' + op.receivedNum }}</div>
  123. </el-col>
  124. </el-row>
  125. </div>
  126. </template>
  127. </div>
  128. <!-- <div class="refund-item"><el-card v-if="order && order.orderInvoice" class="box-card">
  129. <el-row :gutter="24" class="box-row">
  130. <b>发票信息:</b>
  131. <template v-if="order.orderInvoice.type*1===0">不需要发票</template>
  132. <template v-else-if="order.orderInvoice.type*1===1">普通发票</template>
  133. <template v-else-if="order.orderInvoice.type*1===2">增值税发票</template>
  134. </el-row>
  135. <el-row v-if="order.orderInvoice.invoiceTitleType*1===0" :gutter="24" class="box-row">
  136. <el-col :span="6"><b>个人抬头:</b>{{ order.orderInvoice.invoiceTitle }}</el-col>
  137. </el-row>
  138. <el-row v-if="order.orderInvoice.invoiceTitleType*1===1" :gutter="24" class="box-row">
  139. <el-col :span="6"><b>企业抬头:</b>{{ order.orderInvoice.invoiceTitle }}</el-col>
  140. <el-col :span="6"><b>纳税人识别号:</b>{{ order.orderInvoice.corporationTaxNum }}</el-col>
  141. </el-row>
  142. <template v-if="order.orderInvoice.type*1===2">
  143. <el-row :gutter="24" class="box-row">
  144. <el-col :span="6"><b>单位名称:</b>{{ order.orderInvoice.invoiceTitle }}</el-col>
  145. <el-col :span="6"><b>纳税人识别号:</b>{{ order.orderInvoice.corporationTaxNum }}</el-col>
  146. <el-col :span="6"><b>注册地址:</b>{{ order.orderInvoice.registeredAddress }}</el-col>
  147. </el-row>
  148. <el-row :gutter="24" class="box-row">
  149. <el-col :span="6"><b>注册电话:</b>{{ order.orderInvoice.registeredPhone }}</el-col>
  150. <el-col :span="6"><b>开户银行:</b>{{ order.orderInvoice.openBank }}</el-col>
  151. <el-col :span="6"><b>银行账号:</b>{{ order.orderInvoice.bankAccountNo }}</el-col>
  152. </el-row>
  153. </template>
  154. </el-card></div>-->
  155. <div class="refund-item">
  156. <h3>审核信息</h3>
  157. <el-row :gutter="24" class="box-row">
  158. <el-col :span="6"><b>审核人:</b> {{ refund.reviewUserName }}</el-col>
  159. <el-col :span="6"><b>审核时间:</b> {{ refund.confirmReturnTime }}</el-col>
  160. <el-col :span="6"><b>审核备注:</b> {{ refund.reviewRemarks ? refund.reviewRemarks : '无' }}</el-col>
  161. </el-row>
  162. <el-row v-if="refund.reviewImage1 || refund.reviewImage2 || refund.reviewImage3 || refund.reviewImage4 || refund.reviewImage5 " :gutter="24" class="box-row">
  163. <el-col :span="4"><b>审核凭证:</b></el-col>
  164. <el-col :span="20">
  165. <img v-if="refund.reviewImage1" :src="refund.reviewImage1" width="65" alt="">
  166. <img v-if="refund.reviewImage2" :src="refund.reviewImage2" width="65" alt="">
  167. <img v-if="refund.reviewImage3" :src="refund.reviewImage3" width="65" alt="">
  168. <img v-if="refund.reviewImage4" :src="refund.reviewImage4" width="65" alt="">
  169. <img v-if="refund.reviewImage5" :src="refund.reviewImage5" width="65" alt="">
  170. </el-col>
  171. </el-row>
  172. </div>
  173. <div class="refund-item">
  174. <h3>申请信息</h3>
  175. <el-row :gutter="24" class="box-row">
  176. <el-col :span="6"><b>申请人:</b> {{ refund.applicationUserName }}</el-col>
  177. <el-col :span="6"><b>申请时间:</b> <template v-if="refund.returnTime">{{ refund.returnTime | parseTime('{y}-{m}-{d} {h}:{i}') }}</template></el-col>
  178. <el-col :span="6"><b>退款备注:</b> {{ refund.remarks ? refund.remarks : '无' }}</el-col>
  179. </el-row>
  180. <el-row v-if="refund.image1 || refund.image2 || refund.image3 || refund.image4 || refund.image5 " :gutter="24" class="box-row">
  181. <el-col :span="4"><b>申请凭证:</b></el-col>
  182. <el-col :span="20">
  183. <img v-if="refund.image1" :src="refund.image1" width="65" alt="">
  184. <img v-if="refund.image2" :src="refund.image2" width="65" alt="">
  185. <img v-if="refund.image3" :src="refund.image3" width="65" alt="">
  186. <img v-if="refund.image4" :src="refund.image4" width="65" alt="">
  187. <img v-if="refund.image5" :src="refund.image5" width="65" alt="">
  188. </el-col>
  189. </el-row>
  190. </div>
  191. <div class="refund-item">
  192. <el-row :gutter="24" class="box-row">
  193. <el-col :span="6"><b>申请退款金额:</b> ¥{{ refund.refundFee | toThousandFilter }}</el-col>
  194. <el-col :span="6"><b>财务签名:</b></el-col>
  195. <el-col :span="6"><b>总经理签名:</b></el-col>
  196. </el-row>
  197. </div>
  198. </el-card>
  199. <template>
  200. <el-backtop style="right: 40px; bottom: 40px;">
  201. <i class="el-icon-upload2" />
  202. </el-backtop>
  203. </template>
  204. </div>
  205. </template>
  206. <script>
  207. import { getRefundDetail } from '@/api/order'
  208. export default {
  209. data() {
  210. return {
  211. activeIndex: '2',
  212. bpClauses: [],
  213. order: null,
  214. refundList: [],
  215. statusObj: {
  216. '0': '待确认',
  217. '4': '交易完成',
  218. '5': '订单完成',
  219. '6': '已关闭',
  220. '7': '交易全退',
  221. '11': '待收款、待发货',
  222. '12': '待收款、部分发货',
  223. '13': '待收款、全部发货',
  224. '21': '部分收款、待发货',
  225. '22': '部分收款、部分发货',
  226. '23': '部分收款、全部发货',
  227. '31': '全部收款、待发货',
  228. '32': '全部收款、部分发货',
  229. '33': '全部收款、全部发货'
  230. }
  231. }
  232. },
  233. computed: {
  234. orderID: function() {
  235. return this.$route.query.orderID
  236. },
  237. refundId: function() {
  238. return this.$route.params.id
  239. }
  240. },
  241. created() {
  242. this.fetchData()
  243. },
  244. methods: {
  245. fetchData() {
  246. this.listLoading = true
  247. getRefundDetail({ id: this.refundId, orderID: this.orderID }).then(response => {
  248. this.order = response.data.order
  249. this.bpClauses = response.data.bpClauses
  250. this.refundList = response.data.cmReturnedPurchaseList
  251. this.listLoading = false
  252. }).catch(() => {
  253. this.listLoading = false
  254. })
  255. },
  256. backToList() {
  257. this.$store.dispatch('tagsView/delView', this.$route).then(() => {
  258. this.$nextTick(() => {
  259. this.$router.replace({
  260. path: '/order/refund'
  261. })
  262. })
  263. })
  264. }
  265. }
  266. }
  267. </script>
  268. <style scoped>
  269. h1{
  270. color: #409EFF;
  271. font-size: 24px;
  272. text-align: center;
  273. }
  274. h3{
  275. color: #409EFF;
  276. font-size: 16px;
  277. margin: 0;
  278. }
  279. .box-card{
  280. margin-top: 20px;
  281. font-size: 14px;
  282. }
  283. .box-row{
  284. padding: 10px 0;
  285. }
  286. .refund-item{
  287. border-bottom:1px dashed #E4E7ED;
  288. margin-bottom: 20px;
  289. }
  290. .order-item{
  291. border-bottom: 1px solid #DCDFE6;
  292. background:#F2F6FC;
  293. margin-top: 20px;
  294. padding: 5px 15px 0;
  295. border-radius: 5px;
  296. }
  297. .product-row{
  298. padding: 10px 0;
  299. background: #EBEEF5;
  300. border-top: 1px dashed #DCDFE6;
  301. }
  302. .op-item{
  303. padding: 5px 0;
  304. }
  305. </style>