|
@@ -67,6 +67,13 @@
|
|
|
<span class="table-page-search-submitButtons">
|
|
|
<a-button type="primary" @click="$refs.table.refresh(true)" :disabled="disabled" id="shelfSet-refresh">查询</a-button>
|
|
|
<a-button style="margin-left: 5px" @click="resetSearchForm()" :disabled="disabled" id="shelfSet-reset">重置</a-button>
|
|
|
+ <a-button
|
|
|
+ type="primary"
|
|
|
+ class="button-warning"
|
|
|
+ @click="handleExport"
|
|
|
+ :disabled="disabled"
|
|
|
+ :loading="exportLoading"
|
|
|
+ >导出</a-button>
|
|
|
</span>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
@@ -170,6 +177,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { commonMixin } from '@/utils/mixin'
|
|
|
+import { downloadExcel } from '@/libs/JGPrint.js'
|
|
|
import { STable, VSelect } from '@/components'
|
|
|
import commonModal from '@/views/common/commonModal.vue'
|
|
|
import addHwModal from './addHwModal.vue'
|
|
@@ -177,7 +185,7 @@ import bindProductModal from './bindProductModal.vue'
|
|
|
import ImportGuideModal from './importGuideModal.vue'
|
|
|
import basicInfoModal from './basicInfoModal.vue'
|
|
|
import importHuoweiModal from './importHuoweiModal.vue'
|
|
|
-import { shelfDetail, shelfProductList, shelfProductBatchInsert, delShelfPlaceSn, shelfProductEnable, getShelfPriceShow } from '@/api/shelf'
|
|
|
+import { shelfDetail, shelfProductList, shelfProductBatchInsert, delShelfPlaceSn, shelfProductEnable, getShelfPriceShow, shelfProductExport } from '@/api/shelf'
|
|
|
export default {
|
|
|
name: 'ShelfMonitoringWarehousing',
|
|
|
components: { STable, VSelect, commonModal, bindProductModal, addHwModal, ImportGuideModal, basicInfoModal, importHuoweiModal },
|
|
@@ -187,6 +195,7 @@ export default {
|
|
|
spinning: false,
|
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
|
tableHeight: 400,
|
|
|
+ exportLoading: false,
|
|
|
queryParam: {
|
|
|
shelfProductApiEntity: {
|
|
|
productCode: '',
|
|
@@ -269,6 +278,14 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ // 导出产品
|
|
|
+ handleExport () {
|
|
|
+ this.exportLoading = true
|
|
|
+ shelfProductExport({shelfSn: this.$route.params.sn}).then(res => {
|
|
|
+ downloadExcel(res, (this.basicInfoData?this.basicInfoData.shelfName:'')+"的产品")
|
|
|
+ this.exportLoading = false
|
|
|
+ })
|
|
|
+ },
|
|
|
// 导入或新增货位
|
|
|
addHW (type) {
|
|
|
// 导入货位
|