Merge branch 'master' of gitee.com:beijing_hongye_huicheng/lilishop-ui

master
Yer 2023-07-06 11:44:17 +08:00
commit 5470253626
3 changed files with 166 additions and 45 deletions

View File

@ -27,23 +27,6 @@
style="width: 200px" style="width: 200px"
/> />
</Form-item> </Form-item>
<Form-item label="售后状态">
<Select
v-model="searchForm.serviceStatus"
placeholder="全部"
clearable
style="width: 200px"
>
<Option value="APPLY">申请售后</Option>
<Option value="PASS">通过售后</Option>
<Option value="REFUSE">拒绝售后</Option>
<Option value="BUYER_RETURN">买家退货待卖家收货</Option>
<Option value="SELLER_CONFIRM">卖家确认收货</Option>
<Option value="SELLER_TERMINATION">卖家终止售后</Option>
<Option value="BUYER_CANCEL">买家取消售后</Option>
<Option value="COMPLETE">完成售后</Option>
</Select>
</Form-item>
<Form-item label="申请时间"> <Form-item label="申请时间">
<DatePicker <DatePicker
v-model="selectDate" v-model="selectDate"
@ -93,6 +76,13 @@
> >
</Form> </Form>
</Row> </Row>
<div class="order-tab">
<div v-for="(item,index) in serviceStatus" :key="index" :class="{'current': currentStatus === item.value}" @click="serviceStatusClick(item)">
{{item.title}}
</div>
</div>
<Table <Table
:loading="loading" :loading="loading"
border border
@ -305,6 +295,18 @@ export default {
], ],
data: [], // data: [], //
total: 0, // total: 0, //
serviceStatus: [
{title: '全部', value: ''},
{title: '申请售后', value: 'APPLY'},
{title: '通过售后', value: 'PASS'},
{title: '拒绝售后', value: 'REFUSE'},
{title: '待收货', value: 'BUYER_RETURN'},
{title: '确认收货', value: 'SELLER_CONFIRM'},
{title: '完成售后', value: 'COMPLETE'},
{title: '卖家终止售后', value: 'SELLER_TERMINATION'},
{title: '买家取消售后', value: 'BUYER_CANCEL'}
],
currentStatus: ''
}; };
}, },
methods: { methods: {
@ -349,7 +351,7 @@ export default {
this.total = this.data.length; this.total = this.data.length;
this.loading = false; this.loading = false;
}, },
// //
detail(v) { detail(v) {
let sn = v.sn; let sn = v.sn;
this.$router.push({ this.$router.push({
@ -357,9 +359,39 @@ export default {
query: { sn: sn }, query: { sn: sn },
}); });
}, },
//
serviceStatusClick(item) {
this.currentStatus = item.value;
this.searchForm.serviceStatus = item.value;
this.getDataList();
},
}, },
mounted() { mounted() {
this.init(); this.init();
}, },
}; };
</script> </script>
<style lang="scss" scoped>
.order-tab {
width: 950px;
height: 36px;
display: flex;
align-items: center;
justify-content: space-between;
background-color: #f0f0f0;
padding: 0 10px;
margin: 10px 20px 10px 0;
div {
text-align: center;
padding: 4px 12px;
border-radius: 4px;
cursor: pointer;
}
.current {
background-color: #ffffff;
}
}
</style>

View File

@ -9,16 +9,16 @@
<Form-item label="会员名称" prop="buyerName"> <Form-item label="会员名称" prop="buyerName">
<Input type="text" v-model="searchForm.buyerName" placeholder="请输入会员名称" clearable style="width: 200px" /> <Input type="text" v-model="searchForm.buyerName" placeholder="请输入会员名称" clearable style="width: 200px" />
</Form-item> </Form-item>
<Form-item label="订单状态" prop="orderStatus"> <!-- <Form-item label="订单状态" prop="orderStatus">-->
<Select v-model="searchForm.orderStatus" placeholder="请选择" clearable style="width: 200px"> <!-- <Select v-model="searchForm.orderStatus" placeholder="请选择" clearable style="width: 200px">-->
<Option value="NEW">新订单</Option> <!-- <Option value="NEW">新订单</Option>-->
<Option value="CONFIRM">已确认</Option> <!-- <Option value="CONFIRM">已确认</Option>-->
<Option value="TAKE">待核验</Option> <!-- <Option value="TAKE">待核验</Option>-->
<Option value="COMPLETE">已完成</Option> <!-- <Option value="COMPLETE">已完成</Option>-->
<Option value="WAIT_PINTUAN">待成团</Option> <!-- <Option value="WAIT_PINTUAN">待成团</Option>-->
<Option value="CANCELLED">已取消</Option> <!-- <Option value="CANCELLED">已取消</Option>-->
</Select> <!-- </Select>-->
</Form-item> <!-- </Form-item>-->
<Form-item label="下单时间"> <Form-item label="下单时间">
<DatePicker v-model="selectDate" type="datetimerange" format="yyyy-MM-dd" clearable <DatePicker v-model="selectDate" type="datetimerange" format="yyyy-MM-dd" clearable
@on-change="selectDateRange" placeholder="选择起始时间" style="width: 200px"></DatePicker> @on-change="selectDateRange" placeholder="选择起始时间" style="width: 200px"></DatePicker>
@ -27,6 +27,13 @@
</Form> </Form>
</Row> </Row>
<div class="order-tab">
<div v-for="(item,index) in orderStatus" :key="index" :class="{'current': currentStatus === item.value}" @click="orderStatusClick(item)">
{{item.title}}
</div>
</div>
<Table :loading="loading" border :columns="columns" :data="data" ref="table" class="mt_10" sortable="custom" <Table :loading="loading" border :columns="columns" :data="data" ref="table" class="mt_10" sortable="custom"
@on-sort-change="changeSort"></Table> @on-sort-change="changeSort"></Table>
<Row type="flex" justify="end" class="mt_10"> <Row type="flex" justify="end" class="mt_10">
@ -178,6 +185,15 @@ export default {
], ],
data: [], // data: [], //
total: 0, // total: 0, //
orderStatus: [
{title: '全部', value: ''},
{title: '未付款', value: 'UNPAID'},
{title: '已付款', value: 'PAID'},
{title: '待核验', value: 'TAKE'},
{title: '已完成', value: 'COMPLETED'},
{title: '已取消', value: 'CANCELLED'},
],
currentStatus: ''
}; };
}, },
methods: { methods: {
@ -259,9 +275,38 @@ export default {
}); });
}, },
//
orderStatusClick(item) {
this.currentStatus = item.value;
this.searchForm.orderStatus = item.value;
this.getDataList();
},
}, },
mounted () { mounted () {
this.init(); this.init();
}, },
}; };
</script> </script>
<style lang="scss" scoped>
.order-tab {
margin: 10px 20px 10px 0;
width: 950px;
height: 36px;
display: flex;
align-items: center;
justify-content: space-between;
background-color: #f0f0f0;
padding: 0 10px;
div {
text-align: center;
padding: 4px 12px;
border-radius: 4px;
cursor: pointer;
}
.current {
background-color: #ffffff;
}
}
</style>

View File

@ -53,23 +53,23 @@
style="width: 160px" style="width: 160px"
></DatePicker> ></DatePicker>
</Form-item> </Form-item>
<Form-item label="订单状态" prop="orderStatus"> <!-- <Form-item label="订单状态" prop="orderStatus">-->
<Select <!-- <Select-->
v-model="searchForm.orderStatus" <!-- v-model="searchForm.orderStatus"-->
placeholder="请选择" <!-- placeholder="请选择"-->
clearable <!-- clearable-->
style="width: 160px" <!-- style="width: 160px"-->
> <!-- >-->
<Option value="UNPAID">未付款</Option> <!-- <Option value="UNPAID">未付款</Option>-->
<Option value="PAID">已付款</Option> <!-- <Option value="PAID">已付款</Option>-->
<Option value="UNDELIVERED">待发货</Option> <!-- <Option value="UNDELIVERED">待发货</Option>-->
<Option value="DELIVERED">已发货</Option> <!-- <Option value="DELIVERED">已发货</Option>-->
<Option value="COMPLETED">已完成</Option> <!-- <Option value="COMPLETED">已完成</Option>-->
<Option value="TAKE">待核验</Option> <!-- <Option value="TAKE">待核验</Option>-->
<Option value="CANCELLED">已取消</Option> <!-- <Option value="CANCELLED">已取消</Option>-->
<Option value="STAY_PICKED_UP">待自提</Option> <!-- <Option value="STAY_PICKED_UP">待自提</Option>-->
</Select> <!-- </Select>-->
</Form-item> <!-- </Form-item>-->
<Button <Button
@click="handleSearch" @click="handleSearch"
type="primary" type="primary"
@ -90,6 +90,12 @@
</download-excel> </download-excel>
</div> </div>
<div class="order-tab">
<div v-for="(item,index) in orderStatus" :key="index" :class="{'current': currentStatus === item.value}" @click="orderStatusClick(item)">
{{item.title}}
</div>
</div>
<Table <Table
:loading="loading" :loading="loading"
border border
@ -317,6 +323,19 @@ export default {
], ],
data: [], // data: [], //
total: 0, // total: 0, //
orderStatus: [
{title: '全部', value: ''},
{title: '未付款', value: 'UNPAID'},
{title: '已付款', value: 'PAID'},
{title: '待发货', value: 'UNDELIVERED'},
{title: '已发货', value: 'DELIVERED'},
{title: '待核验', value: 'TAKE'},
{title: '待自提', value: 'STAY_PICKED_UP'},
{title: '已完成', value: 'COMPLETED'},
{title: '已取消', value: 'CANCELLED'},
],
currentStatus: ''
}; };
}, },
methods: { methods: {
@ -386,6 +405,12 @@ export default {
this.$Message.warning("导出订单失败,请重试"); this.$Message.warning("导出订单失败,请重试");
} }
}, },
//
orderStatusClick(item) {
this.currentStatus = item.value;
this.searchForm.orderStatus = item.value;
this.getDataList();
},
}, },
mounted() { mounted() {
this.init(); this.init();
@ -399,4 +424,23 @@ export default {
.export-excel-wrapper { .export-excel-wrapper {
display: inline; display: inline;
} }
.order-tab {
width: 950px;
height: 36px;
display: flex;
align-items: center;
justify-content: space-between;
background-color: #f0f0f0;
padding: 0 10px;
margin-bottom: 10px;
div {
text-align: center;
padding: 4px 12px;
border-radius: 4px;
cursor: pointer;
}
.current {
background-color: #ffffff;
}
}
</style> </style>