Commit 64ae9a02 authored by guoyou's avatar guoyou

会员订单管理详情

parent 5bcd6160
...@@ -199,7 +199,7 @@ ...@@ -199,7 +199,7 @@
</el-table-column> </el-table-column>
<el-table-column align="center" label="操作" > <el-table-column align="center" label="操作" >
<template scope="scope"> <template scope="scope">
<el-button size="small" type="text" @click="handleBuy(scope.row)">订单详情</el-button> <el-button size="small" type="text" @click="handleBuy(scope.row)">用户详情</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -253,7 +253,7 @@ ...@@ -253,7 +253,7 @@
<el-row> <el-row>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="注册终端:"> <el-form-item label="注册终端:">
<span>{{userDetails.channel}}</span> <span>{{userDetails.channel == 1 ? 'app' : '小程序'}}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
...@@ -288,7 +288,7 @@ ...@@ -288,7 +288,7 @@
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="性别: "> <el-form-item label="性别: ">
<span>{{userDetails.sex}}</span> <span>{{userDetails.sex == 1 ? '女' : '男'}}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
...@@ -303,7 +303,7 @@ ...@@ -303,7 +303,7 @@
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="有效期:"> <el-form-item label="有效期:">
<span>{{userDetails.validTime}}</span> <span>{{userDetails.validTime == '0' ? '永久' : '无'}}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
...@@ -341,7 +341,7 @@ ...@@ -341,7 +341,7 @@
<el-row> <el-row>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="来源:"> <el-form-item label="来源:">
<span>{{userDetails.source}}</span> <span>{{userDetails.source == 0 ? '自来' : '用户邀请'}}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
...@@ -557,7 +557,6 @@ export default { ...@@ -557,7 +557,6 @@ export default {
// let type = this.listQuery.type // let type = this.listQuery.type
// window.location.href=process.env.BASE_API+'/api/order/orderMember/app/unauth/export'+'?isExport='+isExport // window.location.href=process.env.BASE_API+'/api/order/orderMember/app/unauth/export'+'?isExport='+isExport
orderMemberExcel(this.listQuery,{responseType: 'arraybuffer'}).then(res => { orderMemberExcel(this.listQuery,{responseType: 'arraybuffer'}).then(res => {
this.listQuery.isExport = false; this.listQuery.isExport = false;
const content = res const content = res
...@@ -584,6 +583,7 @@ export default { ...@@ -584,6 +583,7 @@ export default {
user_info(row.userId).then(data=>{ user_info(row.userId).then(data=>{
if (data.status == 200) { if (data.status == 200) {
this.userDetails = data.data this.userDetails = data.data
this.userDetails.recentRecharge = !!row.payTime ? this.timestamp(new Date(row.payTime)) : ''
this.getBoolean(this.userDetails.certificationStatus) this.getBoolean(this.userDetails.certificationStatus)
} }
}) })
......
...@@ -362,9 +362,12 @@ ...@@ -362,9 +362,12 @@
:src="orderReturnVehicleCrosstown.licenseImg" :src="orderReturnVehicleCrosstown.licenseImg"
style="width: 100px; height: 100px;margin-left:110px;" style="width: 100px; height: 100px;margin-left:110px;"
@click="lookPic(orderReturnVehicleCrosstown.licenseImg)" @click="lookPic(orderReturnVehicleCrosstown.licenseImg)"
/> --> />-->
<viewer> <viewer>
<img :src="orderReturnVehicleCrosstown.licenseImg" style="width: 100px; height: 100px;margin-left:110px;"> <img
:src="orderReturnVehicleCrosstown.licenseImg"
style="width: 100px; height: 100px;margin-left:110px;"
/>
</viewer> </viewer>
</div> </div>
...@@ -377,10 +380,15 @@ ...@@ -377,10 +380,15 @@
:key="index" :key="index"
style="width: 100px; height: 100px;margin-left:110px;" style="width: 100px; height: 100px;margin-left:110px;"
@click="lookPic(item)" @click="lookPic(item)"
/> --> />-->
<viewer :images="otherImg"> <viewer :images="otherImg">
<img v-for="src in otherImg" :src="src" :key="src" style="width: 100px; height: 100px;margin-left:110px;"> <img
v-for="src in otherImg"
:src="src"
:key="src"
style="width: 100px; height: 100px;margin-left:110px;"
/>
</viewer> </viewer>
<!-- <img src="../../../../dist/static/img/success.8304acb.png" style="width: 100px; height: 100px;margin-left:110px;"/> <!-- <img src="../../../../dist/static/img/success.8304acb.png" style="width: 100px; height: 100px;margin-left:110px;"/>
...@@ -396,11 +404,13 @@ ...@@ -396,11 +404,13 @@
:src="orderReturnVehicleCrosstown.mileageImg" :src="orderReturnVehicleCrosstown.mileageImg"
style="width: 100px; height: 100px;margin-left:110px;" style="width: 100px; height: 100px;margin-left:110px;"
@click="lookPic(orderReturnVehicleCrosstown.mileageImg)" @click="lookPic(orderReturnVehicleCrosstown.mileageImg)"
/> --> />-->
<viewer> <viewer>
<img :src="orderReturnVehicleCrosstown.mileageImg" style="width: 100px; height: 100px;margin-left:110px;"> <img
:src="orderReturnVehicleCrosstown.mileageImg"
style="width: 100px; height: 100px;margin-left:110px;"
/>
</viewer> </viewer>
</div> </div>
<div v-if="returnVehicle"> <div v-if="returnVehicle">
<span class="label-text">钥匙照片*:</span> <span class="label-text">钥匙照片*:</span>
...@@ -409,9 +419,12 @@ ...@@ -409,9 +419,12 @@
:src="orderReturnVehicleCrosstown.vehicleKey" :src="orderReturnVehicleCrosstown.vehicleKey"
style="width: 100px; height: 100px;margin-left:110px;" style="width: 100px; height: 100px;margin-left:110px;"
@click="lookPic(orderReturnVehicleCrosstown.vehicleKey)" @click="lookPic(orderReturnVehicleCrosstown.vehicleKey)"
/> --> />-->
<viewer> <viewer>
<img :src="orderReturnVehicleCrosstown.vehicleKey" style="width: 100px; height: 100px;margin-left:110px;"> <img
:src="orderReturnVehicleCrosstown.vehicleKey"
style="width: 100px; height: 100px;margin-left:110px;"
/>
</viewer> </viewer>
</div> </div>
<div v-if="returnVehicle"> <div v-if="returnVehicle">
...@@ -430,19 +443,23 @@ ...@@ -430,19 +443,23 @@
<el-dialog title="取消订单" :visible.sync="showDialog"> <el-dialog title="取消订单" :visible.sync="showDialog">
<el-form> <el-form>
<el-form-item label="违约金金额:" > <el-form-item label="违约金金额:">
<el-input v-model="violateAmount" type="number" @blur="checkViolateAmount()" auto-complete="off"></el-input> <el-input
v-model="violateAmount"
type="number"
@blur="checkViolateAmount()"
auto-complete="off"
></el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<span class="label-text">实际违约金是{{changeViolateAmount}}元</span> <span class="label-text">实际违约金是{{changeViolateAmount}}元</span>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click = "handleCancelDialog()">取 消</el-button> <el-button @click="handleCancelDialog()">取 消</el-button>
<el-button type="primary" @click = "handleConfirm()">确 定</el-button> <el-button type="primary" @click="handleConfirm()">确 定</el-button>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
...@@ -487,10 +504,10 @@ export default { ...@@ -487,10 +504,10 @@ export default {
depositRefundRecord: [], depositRefundRecord: [],
dedTotal: '', dedTotal: '',
Tel: '', Tel: '',
showDialog:false, showDialog: false,
changeViolateAmount:null, changeViolateAmount: null,
violateAmount: null, violateAmount: null,
row:null, row: null,
topAmount: null, topAmount: null,
form: { form: {
couponAmount: undefined, couponAmount: undefined,
...@@ -715,7 +732,7 @@ export default { ...@@ -715,7 +732,7 @@ export default {
methods: { methods: {
//取消订单 //取消订单
cancel(row, changeViolateAmount) { cancel(row, changeViolateAmount) {
let that = this; let that = this
if (changeViolateAmount == null || changeViolateAmount == 0) { if (changeViolateAmount == null || changeViolateAmount == 0) {
this.$confirm('此操作将取消该订单, 是否继续?', '提示', { this.$confirm('此操作将取消该订单, 是否继续?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
...@@ -768,12 +785,11 @@ export default { ...@@ -768,12 +785,11 @@ export default {
that.violateAmount = changeViolateAmount that.violateAmount = changeViolateAmount
that.row = row that.row = row
} }
}, },
checkViolateAmount() { checkViolateAmount() {
console.log(this.topAmount) console.log(this.topAmount)
console.log(this.violateAmount) console.log(this.violateAmount)
if(this.topAmount < this.violateAmount) { if (this.topAmount < this.violateAmount) {
this.$notify({ this.$notify({
title: '失败', title: '失败',
message: '违约金额不能大于最高限制金额' + this.topAmount, message: '违约金额不能大于最高限制金额' + this.topAmount,
...@@ -812,15 +828,15 @@ export default { ...@@ -812,15 +828,15 @@ export default {
this.showDialog = false this.showDialog = false
}, },
handleViolatePrice(row) { handleViolatePrice(row) {
let that = this; let that = this
let params = { let params = {
cancelReason: '后台取消', cancelReason: '后台取消',
appUserId: row.userId appUserId: row.userId
} }
getViolatePrice(row.no).then(data => { getViolatePrice(row.no).then(data => {
if (data.status == 200) { if (data.status == 200) {
that.topAmount = data.data.topAmount; that.topAmount = data.data.topAmount
that.cancel(row, data.data.cutAmount); that.cancel(row, data.data.cutAmount)
} else { } else {
this.$notify({ this.$notify({
title: '失败', title: '失败',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment