|
|
|
|
@ -32,14 +32,16 @@
|
|
|
|
|
size="small" :options="productTypes" :props="{checkStrictly:true,label:'name',value:'id'}"
|
|
|
|
|
@change="productTypeChange"></el-cascader>
|
|
|
|
|
</div>
|
|
|
|
|
<el-checkbox style="margin-left: 10px;" v-model="select.order_paid">待支付</el-checkbox>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<div class="select-content-item">
|
|
|
|
|
<div class="select-content-item-label">订单状态</div>
|
|
|
|
|
<div>
|
|
|
|
|
<template v-for="(value,key) of orderStates">
|
|
|
|
|
<el-tag size="small" :effect="select.orderStates.key === key ? 'dark' : 'plain'"
|
|
|
|
|
<template v-for="(value,key) of orderItemStates">
|
|
|
|
|
<el-tag size="small" v-if="key!='unpaid'"
|
|
|
|
|
:effect="select.orderStates.key === key ? 'dark' : 'plain'"
|
|
|
|
|
@click="select.orderStates = {key,value}" style="margin-right: 6px;">{{value}}</el-tag>
|
|
|
|
|
</template>
|
|
|
|
|
</div>
|
|
|
|
|
@ -114,7 +116,7 @@
|
|
|
|
|
</lx-header>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<xy-table :list="list" :table-item="table" :total="total" @pageSizeChange="e => select.pageSize = e"
|
|
|
|
|
<xy-table :list="list" :table-item="table" :total="total" @pageSizeChange="e => {select.pageSize = e;searchOrder()}"
|
|
|
|
|
@pageIndexChange="pageChange">
|
|
|
|
|
<template v-slot:btns>
|
|
|
|
|
<el-table-column fixed="right" label="操作" width="400" header-align="center">
|
|
|
|
|
@ -173,13 +175,14 @@
|
|
|
|
|
is_merchant: false,
|
|
|
|
|
createdDate: [],
|
|
|
|
|
payDate: [],
|
|
|
|
|
updateDate:[],
|
|
|
|
|
updateDate: [],
|
|
|
|
|
start_created: "",
|
|
|
|
|
end_created: "",
|
|
|
|
|
start_paid: "",
|
|
|
|
|
end_paid: "",
|
|
|
|
|
start_updated: "",
|
|
|
|
|
end_updated: "",
|
|
|
|
|
order_paid: false,
|
|
|
|
|
},
|
|
|
|
|
pickerOptions: {
|
|
|
|
|
shortcuts: [{
|
|
|
|
|
@ -268,17 +271,19 @@
|
|
|
|
|
{
|
|
|
|
|
label: "客户服务地址",
|
|
|
|
|
width: 220,
|
|
|
|
|
align:"left",
|
|
|
|
|
align: "left",
|
|
|
|
|
customFn: (row) => {
|
|
|
|
|
return ( <div style = {
|
|
|
|
|
return ( < div style = {
|
|
|
|
|
{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
alignItems: 'center',
|
|
|
|
|
justifyContent: 'center',
|
|
|
|
|
cursor:'pointer',
|
|
|
|
|
color:"blue"
|
|
|
|
|
cursor: 'pointer',
|
|
|
|
|
color: "blue"
|
|
|
|
|
}
|
|
|
|
|
} > {row.order.member_address?row.order.member_address:"修改服务地址"}</div > )
|
|
|
|
|
} > {
|
|
|
|
|
row.order.member_address ? row.order.member_address : "修改服务地址"
|
|
|
|
|
} < /div > )
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
@ -356,7 +361,7 @@
|
|
|
|
|
{
|
|
|
|
|
prop: "state_name",
|
|
|
|
|
label: "状态",
|
|
|
|
|
width: 80
|
|
|
|
|
width: 120
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
@ -369,26 +374,26 @@
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
resetsearch(){
|
|
|
|
|
resetsearch() {
|
|
|
|
|
this.select.page = 1;
|
|
|
|
|
this.select.merchant= '';
|
|
|
|
|
this.select. keyword= '';
|
|
|
|
|
this.select.productType= '';
|
|
|
|
|
this.select.orderStates= '';
|
|
|
|
|
this.select.productTypeName= '';
|
|
|
|
|
this.select.is_merchant= false;
|
|
|
|
|
this.select.createdDate= [];
|
|
|
|
|
this.select.payDate= [];
|
|
|
|
|
this.select.updateDate=[];
|
|
|
|
|
this.select.start_created= "";
|
|
|
|
|
this.select.end_created= '';
|
|
|
|
|
this.select.start_paid= '';
|
|
|
|
|
this.select.end_paid= '';
|
|
|
|
|
this.select.start_updated= '';
|
|
|
|
|
this.select.end_updated= '';
|
|
|
|
|
this.select.merchant = '';
|
|
|
|
|
this.select.keyword = '';
|
|
|
|
|
this.select.productType = '';
|
|
|
|
|
this.select.orderStates = '';
|
|
|
|
|
this.select.productTypeName = '';
|
|
|
|
|
this.select.is_merchant = false;
|
|
|
|
|
this.select.createdDate = [];
|
|
|
|
|
this.select.payDate = [];
|
|
|
|
|
this.select.updateDate = [];
|
|
|
|
|
this.select.start_created = "";
|
|
|
|
|
this.select.end_created = '';
|
|
|
|
|
this.select.start_paid = '';
|
|
|
|
|
this.select.end_paid = '';
|
|
|
|
|
this.select.start_updated = '';
|
|
|
|
|
this.select.end_updated = '';
|
|
|
|
|
this.getOrders();
|
|
|
|
|
},
|
|
|
|
|
changeUpdateDate(e){
|
|
|
|
|
changeUpdateDate(e) {
|
|
|
|
|
this.select.start_updated = e[0];
|
|
|
|
|
this.select.end_updated = e[1];
|
|
|
|
|
},
|
|
|
|
|
@ -404,7 +409,7 @@
|
|
|
|
|
this.select.productType = this.$refs['cascader'].getCheckedNodes()[0].data.id;
|
|
|
|
|
this.select.productTypeName = this.$refs['cascader'].getCheckedNodes()[0].data.name;
|
|
|
|
|
},
|
|
|
|
|
searchOrder(){
|
|
|
|
|
searchOrder() {
|
|
|
|
|
|
|
|
|
|
this.select.page = 1
|
|
|
|
|
this.getOrders()
|
|
|
|
|
@ -424,8 +429,11 @@
|
|
|
|
|
|
|
|
|
|
async getOrders() {
|
|
|
|
|
let is_merchant = this.select.is_merchant
|
|
|
|
|
this.select.is_merchant = is_merchant ? 1 : 0;
|
|
|
|
|
|
|
|
|
|
let order_paid = this.select.order_paid
|
|
|
|
|
this.select.order_paid = order_paid ? 1 : '';
|
|
|
|
|
|
|
|
|
|
this.select.is_merchant= is_merchant ? 1 : 0;
|
|
|
|
|
const res = await getList({
|
|
|
|
|
page_size: this.select.pageSize,
|
|
|
|
|
product_type_id: this.select.productType,
|
|
|
|
|
@ -433,7 +441,8 @@
|
|
|
|
|
order_state: this.select.orderStates.key,
|
|
|
|
|
...this.select
|
|
|
|
|
})
|
|
|
|
|
this.select.is_merchant=is_merchant;
|
|
|
|
|
this.select.is_merchant = is_merchant;
|
|
|
|
|
this.select.order_paid = order_paid;
|
|
|
|
|
this.total = res.total
|
|
|
|
|
this.list = res.rows
|
|
|
|
|
},
|
|
|
|
|
@ -444,9 +453,13 @@
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
downloadExel() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let is_merchant = this.select.is_merchant
|
|
|
|
|
this.select.is_merchant = is_merchant ? 1 : 0;
|
|
|
|
|
|
|
|
|
|
this.select.is_merchant= is_merchant ? 1 : 0;
|
|
|
|
|
let order_paid = this.select.order_paid
|
|
|
|
|
this.select.order_paid = order_paid ? 1 : '';
|
|
|
|
|
download(
|
|
|
|
|
'/api/admin/order/get-list',
|
|
|
|
|
'get', {
|
|
|
|
|
@ -458,6 +471,10 @@
|
|
|
|
|
...this.select
|
|
|
|
|
},
|
|
|
|
|
'订单列表.xlsx')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.select.is_merchant = is_merchant;
|
|
|
|
|
this.select.order_paid = order_paid;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
|