|
@@ -1,43 +1,49 @@
|
|
<template>
|
|
<template>
|
|
<div>
|
|
<div>
|
|
- <common @asynCallBack="asynCallBack"></common>
|
|
|
|
- <top-header :pageTitle="pageTitle" ></top-header>
|
|
|
|
|
|
+ <common @asynCallBack="asynCallBack"></common>
|
|
|
|
+ <top-header :pageTitle="pageTitle" :leftShow="leftShow" ></top-header>
|
|
|
|
|
|
<div class="mui-content vongi-qingjiadt margin60" >
|
|
<div class="mui-content vongi-qingjiadt margin60" >
|
|
- <div class="vongi-cashier flew-sp">
|
|
|
|
- <div class="vongi-zd flew-items">
|
|
|
|
- <div class="mui-media-object">
|
|
|
|
- <img :src="goodsTpey.iconPic">
|
|
|
|
- </div>
|
|
|
|
- <h3>
|
|
|
|
- {{goodsTpey.goodsName}}
|
|
|
|
- </h3>
|
|
|
|
- </div>
|
|
|
|
- <div class="vongi-cd-pay">
|
|
|
|
- <span class="iconfont icon-baobiao color4fc5f7" @click="goRecord()"></span>
|
|
|
|
- <h5>历史账单</h5>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <div class="vongi-zd vongi-zdto flew-items">
|
|
|
|
+ <img :src="detail.goodsPic" width="24">
|
|
|
|
+ <h3>{{detail.billName}}</h3>
|
|
</div>
|
|
</div>
|
|
- <form class="mui-input-group vongi-cd-payli">
|
|
|
|
- <div class="mui-input-row flew-sp">
|
|
|
|
- <h3>{{detail.body}}</h3>
|
|
|
|
- <h3>¥{{detail.totalFee}}</h3>
|
|
|
|
|
|
+ <form class="mui-input-group">
|
|
|
|
+ <div class="mui-input-row">
|
|
|
|
+ <label>缴费单位</label>
|
|
|
|
+ <span>{{detail.companyName}}</span>
|
|
</div>
|
|
</div>
|
|
- <div class="mui-input-row" v-for="(value,key,index) in list">
|
|
|
|
- <label>{{key}}</label>
|
|
|
|
- <span>{{value}}</span>
|
|
|
|
|
|
+ <div class="mui-input-row">
|
|
|
|
+ <label>推送用户</label>
|
|
|
|
+ <span>{{detail.personName}}</span>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
<div class="mui-input-row">
|
|
<div class="mui-input-row">
|
|
- <label>创建时间</label>
|
|
|
|
- <span>{{detail.createTime}}</span>
|
|
|
|
|
|
+ <label>本期账单总金额</label>
|
|
|
|
+ <span class="mui-h1 colorfe616c">¥{{detail.totalFee}}</span>
|
|
</div>
|
|
</div>
|
|
<div class="mui-input-row">
|
|
<div class="mui-input-row">
|
|
- <label style="width:25%">订单号</label>
|
|
|
|
- <span style="width:75%" class="mui-ellipsis">{{detail.outOrderNo}}</span>
|
|
|
|
|
|
+ <label>账单备注</label>
|
|
|
|
+ <span>{{detail.remark}}</span>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
</form>
|
|
</form>
|
|
<div class="mui-content-padded">
|
|
<div class="mui-content-padded">
|
|
|
|
+ <h5 class="flew-sp">账单明细<span class="colorfe616c">请在收到账单5日内交纳如下费用</span></h5>
|
|
|
|
+ </div>
|
|
|
|
+ <ul class="mui-table-view vongi-pay-list openfyy-list">
|
|
|
|
+ <li class="mui-table-view-cell" v-for="mod in list">
|
|
|
|
+ <div class=" mui-card-content-inner flew-sp">
|
|
|
|
+ <div class="mui-media-body">
|
|
|
|
+ <div class='mui-ellipsis flew-sp flew-items'><span class="color4fc5f7">{{mod.goodsName}}</span>({{mod.numStr}})</div>
|
|
|
|
+ <p>{{mod.standard}}</p>
|
|
|
|
+ </div>
|
|
|
|
+ <span class="mui-h2">{{mod.details}}元</span>
|
|
|
|
+ </div>
|
|
|
|
+ <p class="mui-card-footer">起止日期:{{mod.beginAndTime}}</p>
|
|
|
|
+ </li>
|
|
|
|
+ </ul>
|
|
|
|
+
|
|
|
|
+ <div class="mui-content-padded" v-if="detail.payStatus=='10'" >
|
|
<h5>支付方式</h5></div>
|
|
<h5>支付方式</h5></div>
|
|
<form class="mui-input-group margin10">
|
|
<form class="mui-input-group margin10">
|
|
<div class="mui-input-row mui-radio">
|
|
<div class="mui-input-row mui-radio">
|
|
@@ -53,7 +59,8 @@
|
|
<div class="vongi-cashier-btn-white">
|
|
<div class="vongi-cashier-btn-white">
|
|
<span>合计:<b class="colorfe616c">¥{{detail.totalFee}}</b></span>
|
|
<span>合计:<b class="colorfe616c">¥{{detail.totalFee}}</b></span>
|
|
<div class="vongi-cashier-btn" v-if="detail.payStatus=='10'" @click="submit">支付</div>
|
|
<div class="vongi-cashier-btn" v-if="detail.payStatus=='10'" @click="submit">支付</div>
|
|
- </div>
|
|
|
|
|
|
+ <div class="vongi-cashier-btn" v-if="detail.payStatus!='10'">{{detail.orderInfo.payStatusStr}}</div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<img id="qrcode">
|
|
<img id="qrcode">
|
|
@@ -103,7 +110,7 @@
|
|
|
|
|
|
list:[],
|
|
list:[],
|
|
goodsTpey:{},
|
|
goodsTpey:{},
|
|
-
|
|
|
|
|
|
+ leftShow:true,
|
|
id:''
|
|
id:''
|
|
|
|
|
|
}
|
|
}
|
|
@@ -111,15 +118,20 @@
|
|
created() {
|
|
created() {
|
|
this.id=this.$route.query.id;
|
|
this.id=this.$route.query.id;
|
|
|
|
|
|
- },
|
|
|
|
|
|
+ if(this.$route.query.exchange) {
|
|
|
|
+ this.leftShow=false
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
getDetail(){
|
|
getDetail(){
|
|
- API_Pay.orderDetail({id:this.id}).then(res=>{
|
|
|
|
- this.detail=res.orderInfo;
|
|
|
|
- this.info=res.goodsTpey;
|
|
|
|
- this.goodsTpey=res.goodsTpey;
|
|
|
|
|
|
+ this.isLoading = true;
|
|
|
|
|
|
- this.list=JSON.parse(res.orderInfo.detail);
|
|
|
|
|
|
+ API_Pay.orderDetail({id:this.id}).then(res=>{
|
|
|
|
+ this.isLoading = false;
|
|
|
|
+
|
|
|
|
+ this.detail=res;
|
|
|
|
+ this.list=res.list;
|
|
}).catch(error => {
|
|
}).catch(error => {
|
|
|
|
|
|
})
|
|
})
|
|
@@ -162,7 +174,9 @@
|
|
submit() {
|
|
submit() {
|
|
this.isLoading=true;
|
|
this.isLoading=true;
|
|
if(this.paytypeindex=="1"){
|
|
if(this.paytypeindex=="1"){
|
|
- API_Pay.wxJsapiPay(this.detail.id,'').then(data=>{
|
|
|
|
|
|
+ API_Pay.wxJsapiPay(this.detail.orderInfo.id,'').then(data=>{
|
|
|
|
+
|
|
|
|
+ data.url=window.location.href.split("#")[0]+"/#/master/mine/bill/info?id="+this.id+"&exc=1";
|
|
|
|
|
|
this.isLoading=false;
|
|
this.isLoading=false;
|
|
wxPayJs(data)
|
|
wxPayJs(data)
|
|
@@ -172,7 +186,7 @@
|
|
})
|
|
})
|
|
|
|
|
|
}else if(this.paytypeindex=="2"){
|
|
}else if(this.paytypeindex=="2"){
|
|
- API_Pay.tradePrecreatePay(this.detail.id,'').then(url=>{
|
|
|
|
|
|
+ API_Pay.tradePrecreatePay(this.detail.orderInfo.id,'').then(url=>{
|
|
this.isLoading = false;
|
|
this.isLoading = false;
|
|
let qrcode = new QRCode('qrcode', {
|
|
let qrcode = new QRCode('qrcode', {
|
|
width: 200,
|
|
width: 200,
|
|
@@ -203,10 +217,17 @@
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- },asynCallBack(){},
|
|
|
|
|
|
+ },asynCallBack(){
|
|
|
|
+ if(this.$route.query.exchange){
|
|
|
|
+ this.getDetail();
|
|
|
|
+ }
|
|
|
|
+ },
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
- this.getDetail();
|
|
|
|
|
|
+ if(!this.$route.query.exchange){
|
|
|
|
+ this.getDetail();
|
|
|
|
+ }
|
|
|
|
+
|
|
},
|
|
},
|
|
destroyed() {
|
|
destroyed() {
|
|
|
|
|