Commit 6bd5815a by wangql

发货单管理添加导出功能

1 parent 7308eff5
...@@ -56,6 +56,9 @@ export const PAGEDISPATCHORDER = params => { ...@@ -56,6 +56,9 @@ export const PAGEDISPATCHORDER = params => {
}) })
} }
//发货单管理-导出列表
export const EXPORTSPGOODSORDER = BASEURL + '/JXCSPOrder/exportDispatchOrder';
// 发货单管理-出货明细 // 发货单管理-出货明细
export const GETDEVICEDETAILS = params => { export const GETDEVICEDETAILS = params => {
return axios({ return axios({
......
...@@ -52,6 +52,9 @@ ...@@ -52,6 +52,9 @@
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" :loading="tableLoading" @click="getList()">搜索</el-button> <el-button type="primary" icon="el-icon-search" :loading="tableLoading" @click="getList()">搜索</el-button>
</el-form-item> </el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-download" :loading="exportLoading" @click="exportInfo()">导出</el-button>
</el-form-item>
<!-- <el-form-item> <!-- <el-form-item>
<el-button type="primary" icon="el-icon-plus" :loading="tableLoading" @click="editOrder">新建发货单</el-button> <el-button type="primary" icon="el-icon-plus" :loading="tableLoading" @click="editOrder">新建发货单</el-button>
</el-form-item> --> </el-form-item> -->
...@@ -146,11 +149,13 @@ import { ...@@ -146,11 +149,13 @@ import {
LISTDEVICETYPE, LISTDEVICETYPE,
CANCELORDER, CANCELORDER,
LISTWAREHOUSEINFOS, LISTWAREHOUSEINFOS,
FINDSENDMERCHANTNO FINDSENDMERCHANTNO,
EXPORTSPGOODSORDER
} from '@/http/interface' } from '@/http/interface'
import GlsxDialog from '@/components/dialog/index' import GlsxDialog from '@/components/dialog/index'
import addOrder from './add' import addOrder from './add'
import alreadyShippedDetail from './detail' import alreadyShippedDetail from './detail'
import {exportExcel} from '@/common/common'
export default { export default {
name: 'fimsTable8', name: 'fimsTable8',
components: { components: {
...@@ -164,6 +169,7 @@ export default { ...@@ -164,6 +169,7 @@ export default {
tableData: [], tableData: [],
dialogVisible: false, dialogVisible: false,
tableLoading: false, tableLoading: false,
exportLoading: false,
pageTotal: 0, pageTotal: 0,
userInfo: {}, userInfo: {},
currentPage: 1, currentPage: 1,
...@@ -359,6 +365,22 @@ export default { ...@@ -359,6 +365,22 @@ export default {
this.showDetailDialog = false this.showDetailDialog = false
}, },
/**
* 导出列表
*/
exportInfo: function(){
const _this = this
const _data = _this.getParams()
const params = {'fileName':'发货单列表'}
params.url = EXPORTSPGOODSORDER
params.method = 'post'
params.data = _data
params.success = function(){
_this.exportLoading = false
}
_this.exportLoading = true
exportExcel(params)
},
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!