|
@@ -49,7 +49,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { STable } from '@/components'
|
|
|
-import { salesStockoutDetail } from '@/api/salesDetail'
|
|
|
+import { salesStockoutDetail, exportStockout, exportGroupStockout } from '@/api/salesDetail'
|
|
|
import { hdExportExcel } from '@/libs/exportExcel'
|
|
|
export default {
|
|
|
name: 'StockOutDetail',
|
|
@@ -117,20 +117,21 @@ export default {
|
|
|
_this.exportLoading = true
|
|
|
_this.disabled = true
|
|
|
_this.spinning = true
|
|
|
- hdExportExcel('api', '', '销售单缺货产品导出', function () {
|
|
|
+ hdExportExcel(exportStockout, { salesBillSn: _this.salesBillSn }, '销售单缺货产品导出', function () {
|
|
|
_this.exportLoading = false
|
|
|
_this.spinning = false
|
|
|
_this.disabled = false
|
|
|
})
|
|
|
},
|
|
|
handleClassifyExport () {
|
|
|
- this.exportClassifyLoading = true
|
|
|
- this.disabled = true
|
|
|
- this.spinning = true
|
|
|
- hdExportExcel('api', '', '销售单缺货产品分类导出', function () {
|
|
|
- this.exportClassifyLoading = false
|
|
|
- this.spinning = false
|
|
|
- this.disabled = false
|
|
|
+ const _this = this
|
|
|
+ _this.exportClassifyLoading = true
|
|
|
+ _this.disabled = true
|
|
|
+ _this.spinning = true
|
|
|
+ hdExportExcel(exportGroupStockout, { isOos: 1, salesBillSn: _this.salesBillSn }, '销售单缺货产品分类导出', function () {
|
|
|
+ _this.exportClassifyLoading = false
|
|
|
+ _this.spinning = false
|
|
|
+ _this.disabled = false
|
|
|
})
|
|
|
}
|
|
|
},
|
|
@@ -147,9 +148,6 @@ export default {
|
|
|
this.$refs.table.refresh()
|
|
|
})
|
|
|
}
|
|
|
- },
|
|
|
- itemSn (nVal, oVal) {
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
}
|