Quellcode durchsuchen

【修改】bug

howie vor 3 Jahren
Ursprung
Commit
3559682ce9
2 geänderte Dateien mit 20 neuen und 18 gelöschten Zeilen
  1. 10 9
      src/views/deposit_commerce/deposit_list.vue
  2. 10 9
      src/views/deposit_home/deposit_list.vue

+ 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) {