add:粉料计划添加3个导出功能
This commit is contained in:
@@ -35,6 +35,15 @@
|
||||
<slot name="left" />
|
||||
<el-button slot="left" type="success" @click="MyQuery2">查询</el-button>
|
||||
<el-button slot="left" type="info" @click="dialogVisible = false">关闭</el-button>
|
||||
<el-button
|
||||
slot="right"
|
||||
class="filter-item"
|
||||
type="success"
|
||||
size="mini"
|
||||
@click="downExcel"
|
||||
>
|
||||
导出Excel
|
||||
</el-button>
|
||||
</span>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@@ -64,12 +73,14 @@
|
||||
|
||||
<script>
|
||||
|
||||
import { header } from '@crud/crud'
|
||||
import report from '@/api/wms/statistics/report'
|
||||
import { presenter, header, crud } from '@crud/crud'
|
||||
import { download } from '@/api/data'
|
||||
import { downloadFile } from '@/utils'
|
||||
|
||||
export default {
|
||||
name: 'StructIvt4',
|
||||
mixins: [header()],
|
||||
mixins: [presenter(), header(), crud()],
|
||||
props: {
|
||||
dialogShow: {
|
||||
type: Boolean,
|
||||
@@ -81,6 +92,7 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
currentRow: {},
|
||||
dialogVisible: false,
|
||||
tableDtl: [],
|
||||
cxjList: [],
|
||||
@@ -104,6 +116,17 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
downExcel() {
|
||||
if (this.currentRow !== null) {
|
||||
crud.downloadLoading = true
|
||||
download('/api/statistical/download2/2', this.queryrow).then(result => {
|
||||
downloadFile(result, '待检入库量', 'xlsx')
|
||||
crud.downloadLoading = false
|
||||
}).catch(() => {
|
||||
crud.downloadLoading = false
|
||||
})
|
||||
}
|
||||
},
|
||||
open() {
|
||||
report.query4().then(res => {
|
||||
this.XLList = res
|
||||
|
||||
@@ -35,6 +35,15 @@
|
||||
<slot name="left" />
|
||||
<el-button slot="left" type="success" @click="MyQuery2">查询</el-button>
|
||||
<el-button slot="left" type="info" @click="dialogVisible = false">关闭</el-button>
|
||||
<el-button
|
||||
slot="right"
|
||||
class="filter-item"
|
||||
type="success"
|
||||
size="mini"
|
||||
@click="downExcel"
|
||||
>
|
||||
导出Excel
|
||||
</el-button>
|
||||
</span>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@@ -65,12 +74,14 @@
|
||||
|
||||
<script>
|
||||
|
||||
import { header } from '@crud/crud'
|
||||
import report from '@/api/wms/statistics/report'
|
||||
import { presenter, header, crud } from '@crud/crud'
|
||||
import { download } from '@/api/data'
|
||||
import { downloadFile } from '@/utils'
|
||||
|
||||
export default {
|
||||
name: 'StructIvt3',
|
||||
mixins: [header()],
|
||||
mixins: [presenter(), header(), crud()],
|
||||
props: {
|
||||
dialogShow: {
|
||||
type: Boolean,
|
||||
@@ -82,6 +93,7 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
currentRow: {},
|
||||
dialogVisible: false,
|
||||
tableDtl: [],
|
||||
cxjList: [],
|
||||
@@ -105,6 +117,17 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
downExcel() {
|
||||
if (this.currentRow !== null) {
|
||||
crud.downloadLoading = true
|
||||
download('/api/statistical/download2/3', this.queryrow).then(result => {
|
||||
downloadFile(result, '合同在途', 'xlsx')
|
||||
crud.downloadLoading = false
|
||||
}).catch(() => {
|
||||
crud.downloadLoading = false
|
||||
})
|
||||
}
|
||||
},
|
||||
open() {
|
||||
report.query4().then(res => {
|
||||
this.XLList = res
|
||||
|
||||
@@ -35,6 +35,15 @@
|
||||
<slot name="left" />
|
||||
<el-button slot="left" type="success" @click="MyQuery2">查询</el-button>
|
||||
<el-button slot="left" type="info" @click="dialogVisible = false">关闭</el-button>
|
||||
<el-button
|
||||
slot="right"
|
||||
class="filter-item"
|
||||
type="success"
|
||||
size="mini"
|
||||
@click="downExcel"
|
||||
>
|
||||
导出Excel
|
||||
</el-button>
|
||||
</span>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@@ -61,12 +70,14 @@
|
||||
|
||||
<script>
|
||||
|
||||
import { header } from '@crud/crud'
|
||||
import report from '@/api/wms/statistics/report'
|
||||
import { presenter, header, crud } from '@crud/crud'
|
||||
import { download } from '@/api/data'
|
||||
import { downloadFile } from '@/utils'
|
||||
|
||||
export default {
|
||||
name: 'StructIvt4',
|
||||
mixins: [header()],
|
||||
mixins: [presenter(), header(), crud()],
|
||||
props: {
|
||||
dialogShow: {
|
||||
type: Boolean,
|
||||
@@ -78,6 +89,7 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
currentRow: {},
|
||||
dialogVisible: false,
|
||||
tableDtl: [],
|
||||
XLList: [],
|
||||
@@ -99,6 +111,17 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
downExcel() {
|
||||
if (this.currentRow !== null) {
|
||||
crud.downloadLoading = true
|
||||
download('/api/statistical/download2/1', this.queryrow).then(result => {
|
||||
downloadFile(result, '库存现存量', 'xlsx')
|
||||
crud.downloadLoading = false
|
||||
}).catch(() => {
|
||||
crud.downloadLoading = false
|
||||
})
|
||||
}
|
||||
},
|
||||
open() {
|
||||
report.query4().then(res => {
|
||||
this.XLList = res
|
||||
|
||||
Reference in New Issue
Block a user