<!--
|
* @Author: 小明丶
|
* @Date: 2019-08-19 16:20:48
|
* @LastEditors : 小明丶
|
* @LastEditTime : 2020-01-16 11:22:19
|
* @Description: 购机直降——订单详情
|
-->
|
<template>
|
<div class="hb-detail-box h-100-g">
|
<v-navbar title="订单详情" fixed></v-navbar>
|
<div class="content">
|
<div class="cell-group">
|
<van-cell readonly isTitle>
|
<template slot="title">
|
<img src="../../assets/img/imgti.png" alt="" class="imgti">
|
<span class="custom-title">客户信息</span>
|
</template>
|
</van-cell>
|
<van-cell :value="form.userName" title='用户名称' readonly title-class="tot" value-class="val" style="width: 96%;margin-left: 2%;"></van-cell>
|
<van-cell :value="form.mblNo" title='手机号' readonly title-class="tot" value-class="val" style="width: 96%;margin-left: 2%;"></van-cell>
|
<van-cell :value="form.statusStr" title='订单状态' readonly title-class="tot" value-class="val" style="width: 96%;margin-left: 2%;"></van-cell>
|
</div>
|
|
<div class="cell-group">
|
<van-cell readonly isTitle>
|
<template slot="title">
|
<img src="../../assets/img/imgti.png" alt="" class="imgti">
|
<span class="custom-title">合约信息</span>
|
</template>
|
</van-cell>
|
<van-cell :value="form.contName" title='合约套餐' readonly title-class="tot" value-class="val" style="width: 96%;margin-left: 2%;"></van-cell>
|
<van-cell :value="form.settAmt + '元'" title='结算金额' readonly title-class="tot" value-class="val" style="width: 96%;margin-left: 2%;"></van-cell>
|
<van-cell :value="form.monthlyFees+ '元'" title='月缴话费' readonly title-class="tot" value-class="val" style="width: 96%;margin-left: 2%;"></van-cell>
|
<!--<van-cell :value="form.monthlyPayments+ '元'" title='月还款额' readonly ></van-cell>-->
|
<van-cell :value="form.insTermStr" title='期数' readonly title-class="tot" value-class="val" style="width: 96%;margin-left: 2%;"></van-cell>
|
</div>
|
|
<div class="cell-group">
|
<van-cell readonly isTitle>
|
<template slot="title">
|
<img src="../../assets/img/imgti.png" alt="" class="imgti">
|
<span class="custom-title">商品信息</span>
|
</template>
|
</van-cell>
|
<van-cell :value="form.goodsBrand" title='品牌' readonly title-class="tot" value-class="val" style="width: 96%;margin-left: 2%;"></van-cell>
|
<van-cell :value="form.goodsName" title='名称' readonly title-class="tot" value-class="val" style="width: 96%;margin-left: 2%;"></van-cell>
|
<van-cell :value="form.goodsModel" title='型号' readonly title-class="tot" value-class="val" style="width: 96%;margin-left: 2%;"></van-cell>
|
<van-cell :value="form.goodsPrice +'元'" title='价格' readonly title-class="tot" value-class="val" style="width: 96%;margin-left: 2%;"></van-cell>
|
<van-cell :value="form.goodsImei" title='IMEI' readonly title-class="tot" value-class="val" style="width: 96%;margin-left: 2%;"></van-cell>
|
</div>
|
|
</div>
|
|
<!-- <f-button class="btn-upload" v-if="orderInfo.uploadBtn == 1" @on-click="$router.push(`/contract-order-upload/${orderInfo.orderId}`)" >上传合约凭证</f-button> -->
|
<f-confirm v-model="showModal" @on-confirm='confirmYes' :showCancelBtn='true'>
|
<div>是否确认退货</div>
|
</f-confirm>
|
<van-button class="btn" v-if="form.uploadBtn == 1" @click="go">上传合约凭证</van-button>
|
<van-button class="btn-return" v-if="canRefund == 1" round @click="returnGoods">退货</van-button>
|
</div>
|
</template>
|
|
<script>
|
import Vue from "vue";
|
import { Dialog } from "vant";
|
Vue.use(Dialog);
|
export default {
|
data(){
|
return {
|
form:{},
|
canRefund: 0,
|
orderId: this.$route.query.id,
|
showModal: false
|
}
|
},
|
created(){
|
this.init()
|
},
|
methods:{
|
init() {
|
this.$api.getXygDetail(this.$route.query.id).then(res => {
|
this.form = res.body;
|
this.canRefund = res.body.canRefund;
|
});
|
},
|
// 跳转到上传合约凭证页面
|
go(){
|
this.$router.push(`/xyg/upload/${this.form.orderId}`)
|
},
|
//退货
|
returnGoods() {
|
this.showModal = true;
|
},
|
|
confirmYes () {
|
this.$api.h_xygRefund({ orderId: this.orderId }).then(res => {
|
this.init();
|
});
|
}
|
}
|
}
|
</script>
|
<style lang="less" scoped>
|
.status-val-done {
|
color:#19BE6B;
|
}
|
.status-val-refund {
|
color:#FF9900;
|
}
|
.status-val-wait {
|
color:#FF9900;
|
}
|
.status-val-error {
|
color:#ED4014;
|
}
|
.hb-detail-box {
|
padding-top: 44px;
|
background-color: @c-bg-f5;
|
.imgti{
|
width: 6px;
|
height: 13px;
|
display: inline-block;
|
vertical-align: middle;
|
}
|
.content {
|
padding: 10px 0;
|
}
|
|
.cell-group {
|
margin-bottom: 12px;
|
width: 100%;
|
box-sizing: border-box;
|
padding: 0 16px;
|
background-color: white;
|
.tixing{
|
display:inline-block;
|
border-right:solid 6px rgb(226, 112, 207);
|
border-top:solid 6px transparent;
|
border-bottom:solid 6px transparent;
|
height:6px;
|
vertical-align: middle;
|
background:linear-gradient(180deg,rgba(241,120,220,1),rgba(210,125,249,1));
|
}
|
.tot{
|
font-size: 14px;
|
color: #999999;
|
}
|
.val{
|
font-size: 14px;
|
color: #333333;
|
|
}
|
.custom-title{
|
font-size: 15px;
|
font-weight:bold;
|
color:rgba(51,51,51,1);
|
}
|
}
|
}
|
.btn{
|
width: 320px;
|
background: @c-bg-default;
|
color: @c-text-fff;
|
display: block;
|
margin: 30px auto;
|
}
|
.btn-return {
|
width: 84%;
|
margin: 0 8%;
|
background: @c-default;
|
color: @c-text-fff;
|
display: block;
|
margin-top: 15px;
|
}
|
</style>
|