|
@@ -64,13 +64,14 @@
|
|
|
<span class="table-page-search-submitButtons" style="margin-top: 3px;">
|
|
|
<a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="bulkWarehousingOrderList-refresh">查询</a-button>
|
|
|
<a-button style="margin-left: 8px" @click="resetSearchForm()" :disabled="disabled" id="bulkWarehousingOrderList-reset">重置</a-button>
|
|
|
- <!-- <a-button
|
|
|
+ <a-button
|
|
|
style="margin-left: 8px"
|
|
|
- type="danger"
|
|
|
+ type="primary"
|
|
|
+ class="button-warning"
|
|
|
@click="handleExport"
|
|
|
:disabled="disabled"
|
|
|
:loading="exportLoading"
|
|
|
- id="bulkWarehousingOrderList-export">导出</a-button> -->
|
|
|
+ id="bulkWarehousingOrderList-export">导出</a-button>
|
|
|
<a @click="advanced=!advanced" style="margin-left: 8px">
|
|
|
{{ advanced ? '收起' : '展开' }}
|
|
|
<a-icon :type="advanced ? 'up' : 'down'"/>
|
|
@@ -141,7 +142,7 @@
|
|
|
import moment from 'moment'
|
|
|
import { STable, VSelect } from '@/components'
|
|
|
import basicInfoModal from './basicInfoModal.vue'
|
|
|
-import { sparePartsPurList, sparePartsPurCount, sparePartsPurDel, sparePartsPurPut } from '@/api/sparePartsPur'
|
|
|
+import { sparePartsPurList, sparePartsPurCount, sparePartsPurDel, sparePartsPurPut, sparePartsPurExport } from '@/api/sparePartsPur'
|
|
|
import { supplierAllList } from '@/api/supplier'
|
|
|
export default {
|
|
|
components: { STable, VSelect, basicInfoModal },
|
|
@@ -294,11 +295,18 @@ export default {
|
|
|
// 导出
|
|
|
handleExport () {
|
|
|
const params = this.queryParam
|
|
|
+ if (this.createDate && this.createDate.length) {
|
|
|
+ params.beginDate = moment(this.createDate[0]).format('YYYY-MM-DD')
|
|
|
+ params.endDate = moment(this.createDate[1]).format('YYYY-MM-DD')
|
|
|
+ } else {
|
|
|
+ params.beginDate = ''
|
|
|
+ params.endDate = ''
|
|
|
+ }
|
|
|
this.exportLoading = true
|
|
|
- // customerBundleExportDelay(params).then(res => {
|
|
|
- // this.exportLoading = false
|
|
|
- // this.download(res)
|
|
|
- // })
|
|
|
+ sparePartsPurExport(params).then(res => {
|
|
|
+ this.exportLoading = false
|
|
|
+ this.download(res)
|
|
|
+ })
|
|
|
},
|
|
|
download (data) {
|
|
|
if (!data) { return }
|