Commit 6bd5815a by wangql

发货单管理添加导出功能

1 parent 7308eff5
......@@ -56,6 +56,9 @@ export const PAGEDISPATCHORDER = params => {
})
}
//发货单管理-导出列表
export const EXPORTSPGOODSORDER = BASEURL + '/JXCSPOrder/exportDispatchOrder';
// 发货单管理-出货明细
export const GETDEVICEDETAILS = params => {
return axios({
......
......@@ -52,6 +52,9 @@
<el-form-item>
<el-button type="primary" icon="el-icon-search" :loading="tableLoading" @click="getList()">搜索</el-button>
</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-button type="primary" icon="el-icon-plus" :loading="tableLoading" @click="editOrder">新建发货单</el-button>
</el-form-item> -->
......@@ -146,11 +149,13 @@ import {
LISTDEVICETYPE,
CANCELORDER,
LISTWAREHOUSEINFOS,
FINDSENDMERCHANTNO
FINDSENDMERCHANTNO,
EXPORTSPGOODSORDER
} from '@/http/interface'
import GlsxDialog from '@/components/dialog/index'
import addOrder from './add'
import alreadyShippedDetail from './detail'
import {exportExcel} from '@/common/common'
export default {
name: 'fimsTable8',
components: {
......@@ -164,6 +169,7 @@ export default {
tableData: [],
dialogVisible: false,
tableLoading: false,
exportLoading: false,
pageTotal: 0,
userInfo: {},
currentPage: 1,
......@@ -359,6 +365,22 @@ export default {
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!