LAPTOP-FO2T5SIU\35838 5 ay önce
ebeveyn
işleme
b55ae29844

+ 0 - 4
src/views/receiveRefundsManagement/maintenanceFundsManagement/addFunds.vue

@@ -43,8 +43,6 @@
                 <el-form-item>
                   <el-select
                     v-model="bankObject"
-                    :popper-append-to-body="false"
-                    popper-class="statistic_base"
                     placeholder=""
                     filterable
                     clearable
@@ -53,8 +51,6 @@
                     <el-option
                       v-for="item in bankOptions"
                       :key="item.value"
-                      popper-class="statistic_base"
-                      :popper-append-to-body="false"
                       :label="item.bankName + (item.bankBranchName?item.bankBranchName:'') + item.bankNumber"
                       :value="item.id"
                     />

+ 39 - 4
src/views/transactionRecord/collectionRecordIndex.vue

@@ -118,6 +118,7 @@
           :header-cell-style="{background:'#f2f2f2'}"
           @selection-change="handleSelectionChange"
         >
+          <el-table-column type="selection" width="55" />
           <el-table-column type="index" width="60" />
           <el-table-column label="收款日期" prop="payTime" width="150" />
           <el-table-column label="房屋" prop="houseName" width="250" />
@@ -258,11 +259,45 @@ export default {
         },
         /* ncc提交*/
         handleAdd: function(val) {
-            this.dialogTitle = 'NCC提交'
-            this.dialogVisible = true
-            this.$nextTick(() => {
-                this.$refs.nccSubmit.initData('收款')
+            const _this = this
+            if (!_this.multipleSelection.length) {
+                _this.$message.warning('请先勾选要推送的数据')
+                return
+            }
+            const ids = this.multipleSelection.map((obj, index) => {
+                return obj.id
+            }).join(',')
+            _this.loading = true
+            const postData = {
+                ids: ids
+            }
+            this.baseRequest('collectionRecordSubmit', postData).then(res => {
+                if (res.data.code === 200) {
+                    _this.$message({
+                        message: '提交成功',
+                        type: 'success'
+                    })
+                    _this.handleClose()
+                } else {
+                    _this.$message({
+                        message: res.msg,
+                        type: 'warning'
+                    })
+                }
+                _this.loading = false
+            }).catch(err => {
+                _this.$message({
+                    message: err,
+                    type: 'warning'
+                })
+                _this.loading = false
             })
+
+            // this.dialogTitle = 'NCC提交'
+            // this.dialogVisible = true
+            // this.$nextTick(() => {
+            //     this.$refs.nccSubmit.initData('收款')
+            // })
         },
         handleClose(refresh) {
             this.dialogVisible = false

+ 38 - 4
src/views/transactionRecord/convertRecordIndex.vue

@@ -89,6 +89,7 @@
           :header-cell-style="{background:'#f2f2f2'}"
           @selection-change="handleSelectionChange"
         >
+          <el-table-column type="selection" width="55" />
           <el-table-column type="index" width="60" />
           <el-table-column label="房屋" prop="houseName" width="250" />
           <el-table-column label="流水号" prop="serialNumber" width="250" />
@@ -228,11 +229,44 @@ export default {
         },
         /* ncc提交*/
         handleAdd: function(val) {
-            this.dialogTitle = 'NCC提交'
-            this.dialogVisible = true
-            this.$nextTick(() => {
-                this.$refs.nccSubmit.initData('转换')
+            const _this = this
+            if (!_this.multipleSelection.length) {
+                _this.$message.warning('请先勾选要推送的数据')
+                return
+            }
+            const ids = this.multipleSelection.map((obj, index) => {
+                return obj.id
+            }).join(',')
+            _this.loading = true
+            const postData = {
+                ids: ids
+            }
+            this.baseRequest('convertRecordSubmit', postData).then(res => {
+                if (res.data.code === 200) {
+                    _this.$message({
+                        message: '提交成功',
+                        type: 'success'
+                    })
+                    _this.handleClose()
+                } else {
+                    _this.$message({
+                        message: res.msg,
+                        type: 'warning'
+                    })
+                }
+                _this.loading = false
+            }).catch(err => {
+                _this.$message({
+                    message: err,
+                    type: 'warning'
+                })
+                _this.loading = false
             })
+            // this.dialogTitle = 'NCC提交'
+            // this.dialogVisible = true
+            // this.$nextTick(() => {
+            //     this.$refs.nccSubmit.initData('转换')
+            // })
         },
         handleClose(refresh) {
             this.dialogVisible = false

+ 38 - 4
src/views/transactionRecord/refundRecordIndex.vue

@@ -89,6 +89,7 @@
           :header-cell-style="{background:'#f2f2f2'}"
           @selection-change="handleSelectionChange"
         >
+          <el-table-column type="selection" width="55" />
           <el-table-column type="index" width="60" />
           <el-table-column label="退款日期" prop="createdAt" width="150" />
           <el-table-column label="房屋" prop="houseName" width="250" />
@@ -229,11 +230,44 @@ export default {
         },
         /* ncc提交*/
         handleAdd: function(val) {
-            this.dialogTitle = 'NCC提交'
-            this.dialogVisible = true
-            this.$nextTick(() => {
-                this.$refs.nccSubmit.initData('退款')
+            const _this = this
+            if (!_this.multipleSelection.length) {
+                _this.$message.warning('请先勾选要推送的数据')
+                return
+            }
+            const ids = this.multipleSelection.map((obj, index) => {
+                return obj.id
+            }).join(',')
+            _this.loading = true
+            const postData = {
+                ids: ids
+            }
+            this.baseRequest('refundRecordSubmit', postData).then(res => {
+                if (res.data.code === 200) {
+                    _this.$message({
+                        message: '提交成功',
+                        type: 'success'
+                    })
+                    _this.handleClose()
+                } else {
+                    _this.$message({
+                        message: res.msg,
+                        type: 'warning'
+                    })
+                }
+                _this.loading = false
+            }).catch(err => {
+                _this.$message({
+                    message: err,
+                    type: 'warning'
+                })
+                _this.loading = false
             })
+            // this.dialogTitle = 'NCC提交'
+            // this.dialogVisible = true
+            // this.$nextTick(() => {
+            //     this.$refs.nccSubmit.initData('退款')
+            // })
         },
         handleClose(refresh) {
             this.dialogVisible = false