Browse Source

生产总订单/安全库存-增加导出条件

jingbb 9 months ago
parent
commit
d748618259

+ 6 - 1
src/views/production/productionTotalOrder/productionTotalOrderList.vue

@@ -536,7 +536,12 @@
                   content: '是否导出数据?',
                   onOk:  ()=> {
                     alertModal.loading("执行中,请稍后!")
-                    downFile('/productionOrder/madeProductionOrders/exportXls', this.queryParam).then(data => {
+                    let param = this.queryParam;
+                    param['selections'] = ''
+                    if(this.selectedRowKeys && this.selectedRowKeys.length>0){
+                      param['selections'] = this.selectedRowKeys.join(",")
+                    }
+                    downFile('/productionOrder/madeProductionOrders/exportXls', param).then(data => {
                       alertModal.closeLoading();
                       if (!data) {
                         this.$message.warning('文件下载失败')

+ 6 - 1
src/views/production/safetyStock/safetyStockList.vue

@@ -245,7 +245,12 @@
                   content: '是否导出数据?',
                   onOk:  ()=> {
                     alertModal.loading("执行中,请稍后!")
-                    downFile('/production/safetyStock/exportXls', this.queryParam).then(data => {
+                    let param = this.queryParam;
+                    param['selections'] = ''
+                    if(this.selectedRowKeys && this.selectedRowKeys.length>0){
+                      param['selections'] = this.selectedRowKeys.join(",")
+                    }
+                    downFile('/production/safetyStock/exportXls', param).then(data => {
                       alertModal.closeLoading();
                       if (!data) {
                         this.$message.warning('文件下载失败')