Commit c99139b7 by cwq0219

订单-售后

1 parent 6e642c9b
......@@ -24,9 +24,14 @@
</glsx-combi-form>
</div>
<!-- 表格区域 开始 -->
<el-tabs v-model="activeName" @tab-click="handleTabClick">
<el-tab-pane label="全部订单" name="allOrder"></el-tab-pane>
<el-tab-pane label="售后订单" name="afterOrder"></el-tab-pane>
</el-tabs>
<!-- 表格区域 - 全部订单/售后订单 - 开始 -->
<GLTable
ref="classifyRef"
ref="allOrderRef"
:getListApi="getListApi"
:searchForm="tableSearchForm"
:tableParams="tableParams"
......@@ -41,7 +46,7 @@
<el-button v-if="scope.scope.orderStatus == 9" type="text" @click="handleDelete(scope.scope)">确认收货</el-button>
</div>
</GLTable>
<!-- 表格区域 end -->
<!-- 表格区域 - 全部订单/售后订单 - end -->
</div>
</div>
</template>
......@@ -54,6 +59,7 @@ export default {
data() {
return {
size: 'small',
activeName: 'allOrder',
oldVal: {
orderStatuses: []
},
......@@ -67,7 +73,10 @@ export default {
deliveryType: ''
},
tableSearchForm: {},
statisticsInfo: {},
statisticsInfo: {
orderCount: '',
payPriceTotal: ''
},
// 搜索
searchFormData: [
{
......@@ -226,6 +235,10 @@ export default {
params.createdStartDateStr = new Date(this.searchForm.createDate[0]).toLocaleDateString().replace(/\//g, '-') + ' 00:00:00'
params.createdEndDateStr = new Date(this.searchForm.createDate[1]).toLocaleDateString().replace(/\//g, '-') + ' 23:59:59'
}
// 售后订单
if (this.activeName == 'afterOrder') {
params.orderStatusPart = 1
}
delete params.createDate
return params
},
......@@ -290,7 +303,7 @@ export default {
var params = this.getParams()
delete params.createDate
this.$apis.orderManage.getCountApi(params).then(res => {
this.statisticsInfo = res || {}
this.statisticsInfo = res || { orderCount: '', payPriceTotal: ''}
})
},
......@@ -307,7 +320,12 @@ export default {
},
handleSearch() {
this.$refs.classifyRef.refreshTable()
this.$refs.allOrderRef.refreshTable()
},
handleTabClick() {
this.handleSearch()
this.getCount()
},
handleReset() {
......@@ -326,4 +344,12 @@ export default {
}
</script>
<style scoped></style>
<style>
.marketing .el-tabs__nav-wrap:after {
opacity: 0;
}
.marketing .el-tabs__item {
height: 20px !important;
line-height: 10px !important;
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!