Commit 0a9955c8 by cwq0219

订单管理-导出

1 parent c99139b7
...@@ -32,4 +32,14 @@ const getOrderDetailApi = params => { ...@@ -32,4 +32,14 @@ const getOrderDetailApi = params => {
}) })
} }
export default { getListApi, getCountApi, getOrderDetailApi }
\ No newline at end of file \ No newline at end of file
const orderExportApi = params => {
params.method = `${defaultPath}order.export`
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
export default { getListApi, getCountApi, getOrderDetailApi, orderExportApi }
\ No newline at end of file \ No newline at end of file
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
<span slot="footer" class="footer-btns"> <span slot="footer" class="footer-btns">
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button> <el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
<el-button :size="size" type="primary" @click="handleReset">重置</el-button> <el-button :size="size" type="primary" @click="handleReset">重置</el-button>
<el-button :size="size" type="primary" @click="handleExport">导出</el-button>
</span> </span>
</glsx-combi-form> </glsx-combi-form>
</div> </div>
...@@ -315,10 +316,6 @@ export default { ...@@ -315,10 +316,6 @@ export default {
this.secondConfirm('删除', '此功能只删除小程序对应分类区,不会删除分类下的商品,确定删除此分类?', 'classifyList', 'deleteClassifyApi', { id: row.id }) this.secondConfirm('删除', '此功能只删除小程序对应分类区,不会删除分类下的商品,确定删除此分类?', 'classifyList', 'deleteClassifyApi', { id: row.id })
}, },
handleTop(row) {
this.secondConfirm('置顶', '确定置顶此分类?', 'classifyList', 'topClassifyApi', { id: row.id })
},
handleSearch() { handleSearch() {
this.$refs.allOrderRef.refreshTable() this.$refs.allOrderRef.refreshTable()
}, },
...@@ -328,6 +325,13 @@ export default { ...@@ -328,6 +325,13 @@ export default {
this.getCount() this.getCount()
}, },
handleExport(row) {
var params = this.getParams()
this.$apis.orderManage.orderExportApi(params).then(res => {
window.open(res)
})
},
handleReset() { handleReset() {
this.searchForm = { this.searchForm = {
orderCode: '', orderCode: '',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!