|
@@ -20,12 +20,12 @@
|
|
|
<rangeDate ref="outWareRangeDate" v-model="outWareTime" @change="outWareDateChange" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
+ <a-form-item label="连锁调出单号">
|
|
|
+ <a-input id="chainTransferOutList-allocationLinkageOutNo" v-model.trim="queryParam.allocationLinkageOutNo" allowClear placeholder="请输入连锁调出单号"/>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
<template v-if="advanced">
|
|
|
- <a-col :md="6" :sm="24">
|
|
|
- <a-form-item label="连锁调出单号">
|
|
|
- <a-input id="chainTransferOutList-allocationLinkageOutNo" v-model.trim="queryParam.allocationLinkageOutNo" allowClear placeholder="请输入连锁调出单号"/>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="调往对象">
|
|
|
<getTenantList id="chainTransferOutList-putTenantSn" type="out" placeholder="请选择调往对象" v-model="queryParam.putTenantSn"></getTenantList>
|
|
@@ -65,9 +65,16 @@
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
</template>
|
|
|
- <a-col :md="6" :sm="24" style="margin-bottom: 10px;">
|
|
|
+ <a-col :md="24" :sm="24" style="margin-bottom: 10px;text-align: center;">
|
|
|
<a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="chainTransferOutList-refresh">查询</a-button>
|
|
|
<a-button style="margin-left: 8px" @click="resetSearchForm" :disabled="disabled" id="chainTransferOutList-reset">重置</a-button>
|
|
|
+ <a-button
|
|
|
+ type="primary"
|
|
|
+ class="button-warning"
|
|
|
+ @click="handleExport"
|
|
|
+ :disabled="disabled"
|
|
|
+ :loading="exportLoading"
|
|
|
+ id="chainTransferOutList-export">导出</a-button>
|
|
|
<a @click="advanced=!advanced" style="margin-left: 8px">
|
|
|
{{ advanced ? '收起' : '展开' }}
|
|
|
<a-icon :type="advanced ? 'up' : 'down'"/>
|
|
@@ -166,7 +173,8 @@ import basicInfoModal from './basicInfoModal.vue'
|
|
|
import stateIcon from '@/views/common/stateIcon'
|
|
|
import getDate from '@/libs/getDate.js'
|
|
|
import getTenantList from '@/views/common/getTenantList.js'
|
|
|
-import { allocLinkageOutList, allocLinkageAudit, allocLinkageOutDel, allocLinkageOutStock, allocLinkageOutQueryCount } from '@/api/allocLinkageOut'
|
|
|
+import { downloadExcel } from '@/libs/JGPrint.js'
|
|
|
+import { allocLinkageOutList, allocLinkageAudit, allocLinkageOutDel, allocLinkageOutStock, allocLinkageOutQueryCount, allocLinkageOutExport } from '@/api/allocLinkageOut'
|
|
|
export default {
|
|
|
name: 'AllocLinkageOutList',
|
|
|
components: { STable, VSelect, basicInfoModal, rangeDate, stateIcon, getTenantList },
|
|
@@ -174,6 +182,7 @@ export default {
|
|
|
data () {
|
|
|
return {
|
|
|
spinning: false,
|
|
|
+ exportLoading: false,
|
|
|
tableHeight: 0,
|
|
|
advanced: true, // 高级搜索 展开/关闭
|
|
|
time: [
|
|
@@ -271,6 +280,30 @@ export default {
|
|
|
this.queryParam.outWarehouseBeginDate = date[0]
|
|
|
this.queryParam.outWarehouseEndDate = date[1]
|
|
|
},
|
|
|
+ // 导出
|
|
|
+ handleExport () {
|
|
|
+ const _this = this
|
|
|
+ const params = this.queryParam
|
|
|
+ _this.exportLoading = true
|
|
|
+ _this.spinning = true
|
|
|
+ allocLinkageOutExport(params).then(res => {
|
|
|
+ this.exportLoading = false
|
|
|
+ _this.spinning = false
|
|
|
+ if (res.type == 'application/json') {
|
|
|
+ var reader = new FileReader()
|
|
|
+ reader.addEventListener('loadend', function () {
|
|
|
+ const obj = JSON.parse(reader.result)
|
|
|
+ _this.$notification.error({
|
|
|
+ message: '提示',
|
|
|
+ description: obj.message
|
|
|
+ })
|
|
|
+ })
|
|
|
+ reader.readAsText(res)
|
|
|
+ } else {
|
|
|
+ downloadExcel(res, '连锁调出列表')
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
// 重置
|
|
|
resetSearchForm () {
|
|
|
this.resetData()
|