订单管理模块(订单导出)

master
wws 1 year ago
parent 1cb34b55af
commit 0127393749

@ -63,6 +63,16 @@
>
</el-date-picker>
</el-form-item>
<el-form-item label="订单类型" prop="status">
<el-select v-model="queryParams.orderType" placeholder="请选择订单类型" clearable>
<el-option
v-for="dict in dict.type.product_type"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"></el-button>
@ -156,6 +166,16 @@
<dict-tag :options="dict.type.product_type" :value="scope.row.prodType"/>
</template>
</el-table-column>
<el-table-column width="120" label="创建时间" align="center" prop="createTime">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.planComplete, '{y}-{m}-{d}') }}</span>
</template>
</el-table-column>
<el-table-column width="120" label="更新时间" align="center" prop="updateTime">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.planComplete, '{y}-{m}-{d}') }}</span>
</template>
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width " fixed="right">
<template slot-scope="scope">
<el-button
@ -494,6 +514,12 @@ export default {
})
},
methods: {
/** 导出按钮操作 */
handleExport() {
this.download('/plan/order/export', {
...this.queryParams
}, `user_${new Date().getTime()}.xlsx`)
},
/** 拆分按钮操作 */
splitBtn(row) {
//

Loading…
Cancel
Save