|
@@ -163,7 +163,7 @@
|
|
|
<script>
|
|
|
import { commonMixin } from '@/utils/mixin'
|
|
|
import { STable, VSelect } from '@/components'
|
|
|
-import { stockWarnList, stockWarnSaveBatch } from '@/api/stockWarn'
|
|
|
+import { stockWarnList, stockWarnSaveBatch, stockWarnExport } from '@/api/stockWarn'
|
|
|
import { downloadExcel } from '@/libs/JGPrint.js'
|
|
|
import ProductType from '../../common/productType.js'
|
|
|
import ProductBrand from '../../common/productBrand.js'
|
|
@@ -254,20 +254,10 @@ export default {
|
|
|
// 导出
|
|
|
handleExport () {
|
|
|
const _this = this
|
|
|
- this.$refs.ruleForm.validate(valid => {
|
|
|
- if (valid) {
|
|
|
- const params = _this.queryParam
|
|
|
- _this.exportLoading = true
|
|
|
- _this.spinning = true
|
|
|
- reportSparePartsReturnExport(params).then(res => {
|
|
|
- downloadExcel(res, '库存预警')
|
|
|
- _this.exportLoading = false
|
|
|
- _this.spinning = false
|
|
|
- })
|
|
|
- } else {
|
|
|
- console.log('error submit!!')
|
|
|
- return false
|
|
|
- }
|
|
|
+ _this.exportLoading = true
|
|
|
+ stockWarnExport(_this.queryParam).then(res => {
|
|
|
+ downloadExcel(res, '库存预警')
|
|
|
+ _this.exportLoading = false
|
|
|
})
|
|
|
},
|
|
|
// 保存
|