刘翔宇-旅管家 2 years ago
parent 13c6f7972d
commit c5de55bb7b

@ -4,4 +4,4 @@ ENV = 'development'
# base api
VUE_APP_BASE_API = 'https://leyitest.ali251.langye.net'
#VUE_APP_BASE_API = 'https://leyiyuyue.szgmbwg.org.cn'
#VUE_APP_BASE_API = 'https://leyiyuyue.szgmbwg.org.cn'

@ -17,3 +17,15 @@ export function get(id) {
}
})
}
export function appointment(id) {
return request({
url: '/api/admin/carpark/appointment',
method: 'get',
params: {
id
}
})
}

@ -42,6 +42,9 @@
<div v-if="column.type=='opt'">
<Button ghost size="small" @click="show(scope.row)" type="primary"
style="margin-left: 10px;">查看</Button>
<Button v-if="scope.row['orderno']==null" ghost size="small" @click="appointmentOrder(scope.row)" type="info"
style="margin-left: 10px;">第三方下单</Button>
</div>
<div v-else-if="column.type=='type'">
<div v-if="scope.row[column.field]==1"></div>
@ -58,6 +61,11 @@
{{parameters.status_list[scope.row[column.field]]}}
</el-tag>
</div>
<div v-if="column.field=='orderno'">
<el-tag :type="(scope.row[column.field]==null?'warning':'success')">
{{(scope.row[column.field]==null?'失败':'成功')}}
</el-tag>
</div>
</div>
<div v-else>
{{scope.row[column.field]}}
@ -128,7 +136,8 @@
import LxHeader from "@/components/LxHeader/index.vue";
import {
listparkorder,
get
get,
appointment
} from "../../api/order/parkorder.js";
export default {
components: {
@ -238,6 +247,14 @@
{
field: "teamunit",
title: "团队名称",
width: 320,
},
{
field: "orderno",
title: "第三方状态",
type: "format",
width: 120,
align: "center"
},
{
field: "status",
@ -271,6 +288,16 @@
var topHeight = 50; //
let tableHeight = clientHeight - lxHeader_height - topHeight - paginationHeight - 20;
that.tableHeight = tableHeight;
},
appointmentOrder(row){
appointment(row.id).then(res => {
console.log(res)
this.$Message.success('请求成功');
this.load();
}).catch(error => {
console.log(error)
//reject(error)
})
},
load() {
var that = this;

Loading…
Cancel
Save