Commit b0d6600e authored by guoyou's avatar guoyou

会员订单管理

parent a71f356d
...@@ -146,3 +146,11 @@ export function orderMemberExcel(params) { ...@@ -146,3 +146,11 @@ export function orderMemberExcel(params) {
responseType: 'blob' responseType: 'blob'
}); });
} }
//用户信息
export function user_info(id) {
return fetch({
url: '/api/admin/appUsersManage/user_info/' + id,
method: 'get'
});
}
\ No newline at end of file
...@@ -177,17 +177,17 @@ ...@@ -177,17 +177,17 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column width="150" align="center" label="订单价格(元)"> <el-table-column width="110" align="center" label="订单价格(元)">
<template scope="scope"> <template scope="scope">
<span>{{scope.row.orderAmount}}</span> <span>{{scope.row.orderAmount}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column width="180" align="center" label="优惠金额(元)"> <el-table-column width="110" align="center" label="优惠金额(元)">
<template scope="scope"> <template scope="scope">
<span>{{scope.row.couponAmount}}</span> <span>{{scope.row.couponAmount}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column width="180" align="center" label="实付金额(元)"> <el-table-column width="120" align="center" label="实付金额(元)">
<template scope="scope"> <template scope="scope">
<span>{{scope.row.realAmount}}</span> <span>{{scope.row.realAmount}}</span>
</template> </template>
...@@ -370,7 +370,7 @@ ...@@ -370,7 +370,7 @@
</template> </template>
<script> <script>
import { pageList, orderMemberExcel } from 'api/order/rentVehicle' import { pageList, orderMemberExcel,user_info } from 'api/order/rentVehicle'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
import rsCode from '../../../utils/rsCode' import rsCode from '../../../utils/rsCode'
// import dataFormattor from '../../../utils/dataFormattor' // import dataFormattor from '../../../utils/dataFormattor'
...@@ -534,10 +534,34 @@ export default { ...@@ -534,10 +534,34 @@ export default {
}, },
excel() { excel() {
this.listQuery.isExport = true; this.listQuery.isExport = true;
orderMemberExcel(this.listQuery).then(res => { // if (!!this.createTime && !!this.createTime[0]) {
// this.listQuery.startOrderTime = formatDate(this.createTime[0], 'yyyy-MM-dd')+ ' 00:00:00'
// this.listQuery.endOrderTime = formatDate(this.createTime[1], 'yyyy-MM-dd')+ ' 23:59:59'
// }
// if (!!this.aplyTime && !!this.aplyTime[0]) {
// this.listQuery.startPayTime = this.aplyTime[0].getTime()
// this.listQuery.endPayTime = this.aplyTime[1].getTime()
// }
// let endOrderTime = this.listQuery.endOrderTime
// let endPayTime = this.listQuery.endPayTime
// let facilitatePhone = this.listQuery.facilitatePhone
// let isExport = 'true'
// let leaderPhone = this.listQuery.leaderPhone
// let level = this.listQuery.level
// let name = this.listQuery.name
// let orderNo = this.listQuery.orderNo
// let phone = this.listQuery.phone
// let startOrderTime = this.listQuery.startOrderTime
// let startPayTime = this.listQuery.startPayTime
// let state = this.listQuery.state
// let type = this.listQuery.type
// window.location.href=process.env.BASE_API+'/api/order/orderMember/app/unauth/export'+'?isExport='+isExport
orderMemberExcel(this.listQuery,{responseType: 'arraybuffer'}).then(res => {
this.listQuery.isExport = false; this.listQuery.isExport = false;
const content = res const content = res
const blob = new Blob([content]) const blob = new Blob([content], {type: "application/vnd.ms-excel"})
const fileName = this.timestamp(new Date())+'.xlsx' const fileName = this.timestamp(new Date())+'.xlsx'
if ('download' in document.createElement('a')) { if ('download' in document.createElement('a')) {
// 非IE下载 // 非IE下载
...@@ -556,7 +580,18 @@ export default { ...@@ -556,7 +580,18 @@ export default {
}) })
}, },
handleBuy(row) { handleBuy(row) {
console.log(row); this.detailsDialogFormVisible = true;
user_info(row.userId).then(data=>{
if (data.status == 200) {
this.userDetails = data.data
this.getBoolean(this.userDetails.certificationStatus)
}
})
},
getBoolean(bool) {
if (bool === '1') {
this.statusBoolean = true
}
}, },
handleFilter() { handleFilter() {
this.listQuery.page = 1 this.listQuery.page = 1
......
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