LAPTOP-FO2T5SIU\35838 7 miesięcy temu
rodzic
commit
709de1a987

+ 8 - 2
src/views/customerManagement/intentionalDeposit/addIntentionalDeposit.vue

@@ -92,7 +92,7 @@
                 </el-form-item>
               </el-col>
               <el-col :span="6" class="col-input">
-                <el-button type="text" style="float: right">意向金收据下载</el-button>
+                <el-button v-if="isView" type="text" style="float: right" @click="downLoad()">意向金收据下载</el-button>
               </el-col>
             </el-row>
             <el-row>
@@ -119,6 +119,7 @@
 import Base from '@/views/base/base'
 import BaseData from '@/views/base/baseData'
 import { upload } from '@/static/utils/channel'
+import constant from '@/static/utils/constant'
 
 export default {
     name: 'AddIntentionalDepositVue',
@@ -141,7 +142,8 @@ export default {
             fileList: [],
             customerManagementId: '',
             dateStr: '',
-            username: ''
+            username: '',
+            isView: false
         }
     },
     mounted() {
@@ -246,6 +248,10 @@ export default {
                 this.fileList.push(res)
             })
         },
+        downLoad() {
+            const url = constant.BASE_URI + '/IntentionalDepositController/downLoadReceipt?id=' + this.form.id
+            window.open(url, '_blank')
+        },
         baseRequest(opUrl, postData) {
             return this.$channel.globeRequest('IntentionalDepositController', opUrl, postData, 'project')
         },

+ 0 - 1
src/views/customerManagement/numberManagement/index.vue

@@ -421,7 +421,6 @@ export default {
             })
         },
         downLoad() {
-            console.log('this.multipleSelection', this.multipleSelection)
             this.multipleSelection.forEach(item => {
                 const url = constant.BASE_URI + '/CustomerManagementController/download?id=' + item.id
                 window.open(url, '_blank')

+ 4 - 2
src/views/customerManagement/subscribe/subscribeIndex.vue

@@ -88,6 +88,7 @@
 import Base from '@/views/base/base.vue'
 import BaseData from '@/views/base/baseData.vue'
 import AddSubscribe from '@/views/customerManagement/subscribe/addSubscribe.vue'
+import constant from '@/static/utils/constant'
 
 export default {
     name: 'AddHouse',
@@ -190,8 +191,9 @@ export default {
         addSubscribeCancel() {
             this.dialogAddVisible = false
         },
-        downLoad() {
-
+        downLoad(row) {
+            const url = constant.BASE_URI + '/RoomSelectionInfoController/downLoadReceipt?id=' + row.id
+            window.open(url, '_blank')
         },
         baseRequest(opUrl, postData) {
             return this.$channel.globeRequest('RoomSelectionInfoController', opUrl, postData, 'project')

+ 4 - 2
src/views/receiveRefundsManagement/depositManagement/index.vue

@@ -93,6 +93,7 @@ import Base from '@/views/base/base'
 import BaseData from '@/views/base/baseData'
 import ToDeposit from '@/views/receiveRefundsManagement/intentionalDepositManagement/toDeposit.vue'
 import AddSubscribe from '@/views/customerManagement/subscribe/addSubscribe.vue'
+import constant from '@/static/utils/constant'
 
 export default {
     name: 'Index',
@@ -175,8 +176,9 @@ export default {
                 this.$refs.addSubscribe.initData(val)
             })
         },
-        downLoad(val) {
-
+        downLoad(row) {
+            const url = constant.BASE_URI + '/RoomSelectionInfoController/downLoadReceipt?id=' + row.id
+            window.open(url, '_blank')
         },
         cancel: function() {
             this.dialogVisible = false

+ 4 - 2
src/views/receiveRefundsManagement/intentionalDepositManagement/index.vue

@@ -96,6 +96,7 @@ import Base from '@/views/base/base'
 import BaseData from '@/views/base/baseData'
 import ToDeposit from '@/views/receiveRefundsManagement/intentionalDepositManagement/toDeposit.vue'
 import RefundIntentionalDeposit from '@/views/receiveRefundsManagement/intentionalDepositManagement/refundIntentionalDeposit.vue'
+import constant from '@/static/utils/constant'
 
 export default {
     name: 'Index',
@@ -176,8 +177,9 @@ export default {
                 this.$refs.toDeposit.initData(val)
             })
         },
-        downLoad(val) {
-
+        downLoad(row) {
+            const url = constant.BASE_URI + '/IntentionalDepositController/downLoadReceipt?id=' + row.id
+            window.open(url, '_blank')
         },
         handleRefund(val) {
             this.dialogRefundVisible = true

+ 6 - 1
src/views/receiveRefundsManagement/intentionalDepositManagement/toDeposit.vue

@@ -79,7 +79,7 @@
                 </el-form-item>
               </el-col>
               <el-col :span="6" class="col-input">
-                <el-button type="text" style="float: right">意向金收据下载</el-button>
+                <el-button type="text" style="float: right" @click="downLoad()">意向金收据下载</el-button>
               </el-col>
             </el-row>
             <el-row>
@@ -123,6 +123,7 @@ import Base from '@/views/base/base'
 import BaseData from '@/views/base/baseData'
 import { upload } from '@/static/utils/channel'
 import AddHouse from '@/views/customerManagement/roomChose/addHouse.vue'
+import constant from '@/static/utils/constant'
 
 export default {
     name: 'ToDeposit',
@@ -249,6 +250,10 @@ export default {
                 this.$refs.addHouse.initData(data)
             })
         },
+        downLoad() {
+            const url = constant.BASE_URI + '/IntentionalDepositController/downLoadReceipt?id=' + this.form.id
+            window.open(url, '_blank')
+        },
         baseRequest(opUrl, postData) {
             return this.$channel.globeRequest('IntentionalDepositController', opUrl, postData, 'project')
         }

+ 4 - 2
src/views/receiveRefundsManagement/paymentManagement/paymentRegistration.vue

@@ -130,6 +130,7 @@
 import Base from '@/views/base/base'
 import BaseData from '@/views/base/baseData'
 import AddPayment from '@/views/receiveRefundsManagement/paymentManagement/addPayment.vue'
+import constant from '@/static/utils/constant'
 
 export default {
     name: 'PaymentRegistration',
@@ -219,8 +220,9 @@ export default {
         addPaymentCancel() {
             this.dialogVisible = false
         },
-        downLoad() {
-
+        downLoad(row) {
+            const url = constant.BASE_URI + '/PayLogController/downLoadReceipt?id=' + row.id
+            window.open(url, '_blank')
         },
         handleAdd() {
             this.dialogVisible = true