yuansh 11 달 전
부모
커밋
0a905d93d4
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      src/views/production/materialprocurement/materialProcurementList.vue

+ 5 - 1
src/views/production/materialprocurement/materialProcurementList.vue

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