|
|
@@ -56,7 +56,7 @@
|
|
|
<el-table-column prop="loanInstalmentCount" label="分期次数"></el-table-column>
|
|
|
|
|
|
<el-table-column label="贷款状态" width="120">
|
|
|
- <template slot-scope="scope">{{loanState(scope.row.loanStatus)}}</template>
|
|
|
+ <template slot-scope="scope">{{loanState(scope.row)}}</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column label="首付状态" width="120">
|
|
|
@@ -151,7 +151,7 @@
|
|
|
<el-button v-show="scope.row.loanStatus == 4" type="primary" size="small"
|
|
|
@click="examine(scope.row,scope.$index)">审核
|
|
|
</el-button>
|
|
|
- <el-button v-show="scope.row.loanStatus == 5 && !scope.row.offlinePayments" type="warning"
|
|
|
+ <el-button v-show="scope.row.loanStatus == 5 && !scope.row.offlinePayments || (scope.row.status==2 &&scope.row.payType==1 &&!scope.row.offlinePayments) " type="warning"
|
|
|
size="small"
|
|
|
@click="payForBtn(scope.row,scope.$index)">支付
|
|
|
</el-button>
|
|
|
@@ -160,7 +160,8 @@
|
|
|
size="small"
|
|
|
@click="deliveryVehicles(scope.row,scope.$index)">交车
|
|
|
</el-button>
|
|
|
- <el-button size="small"
|
|
|
+ <el-button v-show="scope.row.status != '3'"
|
|
|
+ size="small"
|
|
|
@click="refundBtn(scope.row,scope.$index)">退款
|
|
|
</el-button>
|
|
|
</template>
|
|
|
@@ -698,7 +699,12 @@
|
|
|
this.matchingInfo = jsInfo;
|
|
|
},
|
|
|
// 单款状态
|
|
|
- loanState(val) {
|
|
|
+ loanState(data) {
|
|
|
+ var data = data;
|
|
|
+ var val = data.loanStatus;
|
|
|
+ if (data.payType==1){
|
|
|
+ val = 0;
|
|
|
+ }
|
|
|
let str = "";
|
|
|
switch (+val) {
|
|
|
case 0:
|
|
|
@@ -762,13 +768,14 @@
|
|
|
this.$put("/business/CarOrder/offlineReview", params)
|
|
|
.then(res => {
|
|
|
if (res.status === 200) {
|
|
|
+ console.log(res.data)
|
|
|
if (res.data.success) {
|
|
|
Message.success(res.data.data);
|
|
|
} else {
|
|
|
- console.log('审核失败返回结果失败...', res.data);
|
|
|
+ Message.error( res.data.error);
|
|
|
}
|
|
|
} else {
|
|
|
- console.log('审核失败返回结果失败...', res)
|
|
|
+ Message.error(res.data.error)
|
|
|
}
|
|
|
this.examineDialog = false;
|
|
|
this.loading = true;
|