Commit 0a9955c8 by cwq0219

订单管理-导出

1 parent c99139b7
......@@ -32,4 +32,14 @@ const getOrderDetailApi = params => {
})
}
export default { getListApi, getCountApi, getOrderDetailApi }
\ 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
......@@ -20,6 +20,7 @@
<span slot="footer" class="footer-btns">
<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="handleExport">导出</el-button>
</span>
</glsx-combi-form>
</div>
......@@ -315,10 +316,6 @@ export default {
this.secondConfirm('删除', '此功能只删除小程序对应分类区,不会删除分类下的商品,确定删除此分类?', 'classifyList', 'deleteClassifyApi', { id: row.id })
},
handleTop(row) {
this.secondConfirm('置顶', '确定置顶此分类?', 'classifyList', 'topClassifyApi', { id: row.id })
},
handleSearch() {
this.$refs.allOrderRef.refreshTable()
},
......@@ -328,6 +325,13 @@ export default {
this.getCount()
},
handleExport(row) {
var params = this.getParams()
this.$apis.orderManage.orderExportApi(params).then(res => {
window.open(res)
})
},
handleReset() {
this.searchForm = {
orderCode: '',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!