|
@@ -71,6 +71,14 @@
|
|
|
<span class="table-page-search-submitButtons">
|
|
|
<a-button type="primary" :disabled="disabled" @click="$refs.table.refresh(true)">查询</a-button>
|
|
|
<a-button style="margin-left: 8px" :disabled="disabled" @click="resetSearchForm()">重置</a-button>
|
|
|
+ <a-button
|
|
|
+ style="margin-left: 10px"
|
|
|
+ type="primary"
|
|
|
+ class="button-warning"
|
|
|
+ @click="handleExport"
|
|
|
+ :disabled="disabled"
|
|
|
+ :loading="exportLoading"
|
|
|
+ id="sendOut-export">导出</a-button>
|
|
|
<a @click="advanced=!advanced" style="margin-left: 8px">
|
|
|
{{ advanced ? '收起' : '展开' }}
|
|
|
<a-icon :type="advanced ? 'up' : 'down'"/>
|
|
@@ -127,12 +135,13 @@
|
|
|
<script>
|
|
|
import { commonMixin } from '@/utils/mixin'
|
|
|
import rangeDate from '@/views/common/rangeDate.vue'
|
|
|
+import { hdExportExcel } from '@/libs/exportExcel'
|
|
|
import { STable, VSelect } from '@/components'
|
|
|
import detailModal from './detailModal.vue'
|
|
|
import sendGoodModal from '../outboundOrder/sendGoodModal.vue'
|
|
|
import Area from '@/views/common/area.js'
|
|
|
import subarea from '@/views/common/subarea.js'
|
|
|
-import { sendBillQueryPageList } from '@/api/sendBill'
|
|
|
+import { sendBillQueryPageList, sendBillExcel } from '@/api/sendBill'
|
|
|
export default {
|
|
|
name: 'SendOutOrderList',
|
|
|
mixins: [commonMixin],
|
|
@@ -140,6 +149,7 @@ export default {
|
|
|
data () {
|
|
|
return {
|
|
|
spinning: false,
|
|
|
+ exportLoading: false,
|
|
|
advanced: true, // 高级搜索 展开/关闭
|
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
|
tableHeight: 0,
|
|
@@ -193,12 +203,12 @@ export default {
|
|
|
{ title: '创建时间', dataIndex: 'createDate', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '发货单号', scopedSlots: { customRender: 'sendBillNo' }, width: '12%', align: 'center' },
|
|
|
{ title: '所在区域', dataIndex: 'subareaNameSet', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '地区', dataIndex: 'provinceName ', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '客户名称', dataIndex: 'customeName', width: '14%', align: 'left', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '地区', dataIndex: 'provinceName', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '客户名称', dataIndex: 'customeName', width: '10%', align: 'left', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '托运日期', dataIndex: 'sendDate', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '收货人', dataIndex: 'customerCacateName', width: '14%', align: 'left', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '物流电话', dataIndex: 'transportTele', width: '14%', align: 'left', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '物流单号', dataIndex: 'transportNo', width: '14%', align: 'left', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '收货人', dataIndex: 'customerCacateName', width: '10%', align: 'left', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '物流电话', dataIndex: 'transportTele', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '物流单号', dataIndex: 'transportNo', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '总件数', dataIndex: 'totalQty', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
{ title: '运费合计', dataIndex: 'totalSendAmount', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
{ title: '收货状态', dataIndex: 'receiveFlagDictValue', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
@@ -236,6 +246,16 @@ export default {
|
|
|
this.showTipModal = false
|
|
|
this.$refs.table.refresh()
|
|
|
},
|
|
|
+ // 导出
|
|
|
+ handleExport () {
|
|
|
+ const _this = this
|
|
|
+ _this.exportLoading = true
|
|
|
+ _this.spinning = true
|
|
|
+ hdExportExcel(sendBillExcel, _this.queryParam, '发货单列表', function () {
|
|
|
+ _this.exportLoading = false
|
|
|
+ _this.spinning = false
|
|
|
+ })
|
|
|
+ },
|
|
|
// 重置
|
|
|
resetSearchForm () {
|
|
|
this.time = []
|
|
@@ -251,6 +271,8 @@ export default {
|
|
|
this.queryParam.bizNos = ''
|
|
|
this.queryParam.transportState = undefined
|
|
|
this.queryParam.receiveFlag = undefined
|
|
|
+ this.queryParam.subareaSn = undefined
|
|
|
+ this.queryParam.provinceSn = undefined
|
|
|
this.$refs.table.refresh(true)
|
|
|
},
|
|
|
pageInit () {
|