<!--
|
* @Author: 小明丶
|
* @Date: 2019-08-19 16:20:48
|
* @LastEditors: 小明丶
|
* @LastEditTime: 2019-09-06 15:36:43
|
* @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 title='客户信息' readonly isTitle></van-cell>
|
<van-cell :value="form.userName" title='用户名称' readonly ></van-cell>
|
<van-cell :value="form.mblNo" title='手机号' readonly ></van-cell>
|
<van-cell :value="form.statusStr" :value-class="statusColor" title='订单状态' readonly ></van-cell>
|
</div>
|
|
<div class="cell-group">
|
<van-cell title='合约信息' readonly isTitle></van-cell>
|
<van-cell :value="form.contName" title='合约套餐' readonly ></van-cell>
|
<van-cell :value="form.settAmt + '元'" title='结算金额' readonly ></van-cell>
|
<van-cell :value="form.monthlyFees+ '元'" title='月缴话费' readonly ></van-cell>
|
<van-cell :value="form.monthlyPayments+ '元'" title='月还款额' readonly ></van-cell>
|
<van-cell :value="form.insTermStr" title='期数' readonly ></van-cell>
|
</div>
|
|
<div class="cell-group">
|
<van-cell title='商品信息' readonly isTitle></van-cell>
|
<van-cell :value="form.goodsBrand" title='品牌' readonly ></van-cell>
|
<van-cell :value="form.goodsName" title='名称' readonly ></van-cell>
|
<van-cell :value="form.goodsModel" title='型号' readonly ></van-cell>
|
<van-cell :value="form.goodsPrice +'元'" title='价格' readonly ></van-cell>
|
<van-cell :value="form.goodsImei" title='IMEI' readonly ></van-cell>
|
</div>
|
|
<div class="cell-group" >
|
<van-cell :value="form.chanName || '无'" title='办理渠道' readonly></van-cell>
|
<van-cell :value="form.merName || '无'" title='办理商户' readonly></van-cell>
|
<van-cell :value="form.storeName || '无'" title='办理门店' readonly></van-cell>
|
<van-cell :value="form.recordPerson || '无'" title='办单员' readonly></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> -->
|
<van-button class="btn" v-if="form.uploadBtn == 1" @click="go">上传合约凭证</van-button>
|
</div>
|
</template>
|
|
<script>
|
export default {
|
data(){
|
|
return {
|
form:{},
|
statusColor:''
|
}
|
},
|
created(){
|
this.init()
|
},
|
methods:{
|
init() {
|
this.$api.getGjzjDetail(this.$route.query.id).then(res => {
|
this.form = res.body;
|
if(this.form) {
|
if (this.form.status == 1) {
|
this.statusColor = 'status-val-done';
|
} else if (this.form.status == 2) {
|
this.statusColor = 'status-val-error';
|
} else if (this.form.status == 6) {
|
this.statusColor = 'status-val-wait';
|
} else if (this.form.status == 0) {
|
this.statusColor = 'status-val-wait';
|
}
|
}
|
})
|
},
|
// 跳转到上传合约凭证页面
|
go(){
|
this.$router.push(`/contract-order-upload/${this.form.orderId}`)
|
},
|
}
|
}
|
</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;
|
|
.content {
|
padding: 10px 8px;
|
}
|
|
.cell-group {
|
margin-bottom: 10px;
|
}
|
}
|
.btn{
|
width: 320px;
|
background: @c-bg-default;
|
color: @c-text-fff;
|
display: block;
|
margin: 30px auto;
|
}
|
</style>
|