|
|
|
|
@ -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;
|
|
|
|
|
|