Kaynağa Gözat

【修改】bug

howie 3 yıl önce
ebeveyn
işleme
3559682ce9

+ 10 - 9
src/views/deposit_commerce/deposit_list.vue

@@ -635,15 +635,16 @@ export default {
       this.getList()
     },
     hanleDownloadFiles() {
-      if (this.selectData.length) {
-        const arr = []
-        for (let i = 0; i < this.selectData.length; i++) {
-          arr.push(this.selectData[i].depositManageId)
-        }
-        downloadFiles('/deposit-manage/export', { id: arr, orderType:'TRADE' })
-      } else {
-        this.$errorMsg('请选择押金项')
-      }
+      let isRefundDeposit = this.deduction === '已退押' ? true : ''
+      if (this.screenForm.isRefundDeposit == true || this.screenForm.isRefundDeposit == false ) {
+          isRefundDeposit =this.screenForm.isRefundDeposit
+    }
+    console.log(isRefundDeposit);
+      downloadFiles('/deposit-manage/export', {
+        ...this.screenForm,
+        isRefundDeposit,
+        orderType:'TRADE' })
+
     },
     // 导入
     async handleImport(param) {

+ 10 - 9
src/views/deposit_home/deposit_list.vue

@@ -664,15 +664,16 @@ export default {
       this.getList()
     },
     hanleDownloadFiles() {
-      if (this.selectData.length) {
-        const arr = []
-        for (let i = 0; i < this.selectData.length; i++) {
-          arr.push(this.selectData[i].depositManageId)
-        }
-        downloadFiles('/deposit-manage/export', {id: arr, orderType: 'HOME'})
-      } else {
-        this.$errorMsg('请选择押金项')
-      }
+      let isRefundDeposit = this.deduction === '已退押' ? true : ''
+      if (this.screenForm.isRefundDeposit == true || this.screenForm.isRefundDeposit == false ) {
+          isRefundDeposit =this.screenForm.isRefundDeposit
+    }
+      downloadFiles('/deposit-manage/export', {
+        ...this.screenForm,
+        isRefundDeposit,
+        orderType:'HOME' })
+
+
     },
     // 导入
     async handleImport(param) {