소스 검색

账单需求

Shannon_mu 2 년 전
부모
커밋
ea9b5d1850

+ 21 - 0
operationSupport/src/views/payService/leaseBill/index.vue

@@ -73,6 +73,9 @@
                         <el-tooltip v-show="chargeStatus == 1" class="item" effect="light" placement="bottom" content="收款">
                             <i class="zoniot_font zoniot-icon-shoukuan" @click="collections('single', scope.row)"></i>
                         </el-tooltip>
+                        <el-tooltip v-show="chargeStatus == 1" class="item" effect="light" placement="bottom" content="删除">
+                            <i class="zoniot_font zoniot-icon-shanchu redText" @click="deluserbyidFn(scope.row.id)"></i>
+                        </el-tooltip>
                         <el-tooltip v-show="chargeStatus == 2" class="item" effect="light" placement="bottom" content="详情">
                             <i class="zoniot_font zoniot-icon-xiangqing" @click="lookDetails(scope.row)"></i>
                         </el-tooltip>
@@ -277,6 +280,24 @@ export default {
                 this.mixins_search();
             });
         },
+        deluserbyidFn(id) {
+            const h = this.$createElement;
+            this.$msgBox(`删除账单`, '删除后将无法恢复,请问是否继续?')
+                .then(() => {
+                    this.$http.get('/sc-charge/charge/bill/delete', { billId: id }).then(({ status, data, msg }) => {
+                        if (0 === status) {
+                            this.$message({
+                                type: 'success',
+                                message: '删除成功!'
+                            });
+                            this.mixins_search();
+                        } else {
+                            this.$message.error(msg);
+                        }
+                    });
+                })
+                .catch(() => {});
+        },
         selectionChange(val) {
             this.selectRow = val;
         },

+ 21 - 0
operationSupport/src/views/payService/propertyFee/index.vue

@@ -94,6 +94,9 @@
                         <el-tooltip v-show="chargeStatus == 1" class="item" effect="light" placement="bottom" content="修改金额">
                             <i class="zoniot_font zoniot-icon-koufeijilu" @click="editAmount(scope.row)"></i>
                         </el-tooltip>
+                        <el-tooltip v-show="chargeStatus == 1" class="item" effect="light" placement="bottom" content="删除">
+                            <i class="zoniot_font zoniot-icon-shanchu redText" @click="deluserbyidFn(scope.row.id)"></i>
+                        </el-tooltip>
                         <el-tooltip v-show="chargeStatus == 2" class="item" effect="light" placement="bottom" content="详情">
                             <i class="zoniot_font zoniot-icon-xiangqing" @click="lookDetails(scope.row)"></i>
                         </el-tooltip>
@@ -342,6 +345,24 @@ export default {
                 this.mixins_search();
             });
         },
+        deluserbyidFn(id) {
+            const h = this.$createElement;
+            this.$msgBox(`删除账单`, '删除后将无法恢复,请问是否继续?')
+                .then(() => {
+                    this.$http.get('/sc-charge/charge/bill/delete', { billId: id }).then(({ status, data, msg }) => {
+                        if (0 === status) {
+                            this.$message({
+                                type: 'success',
+                                message: '删除成功!'
+                            });
+                            this.mixins_search();
+                        } else {
+                            this.$message.error(msg);
+                        }
+                    });
+                })
+                .catch(() => {});
+        },
         selectionChange(val) {
             this.selectRow = val;
         },

+ 16 - 8
operationSupport/src/views/payService/statisticalReport/paymentDetails.vue

@@ -32,6 +32,10 @@ export default {
                     label: '房间',
                     prop: 'assets'
                 },
+                {
+                    label: '业主',
+                    prop: 'residentName'
+                },
                 {
                     label: '费用名称',
                     prop: 'chargeName'
@@ -44,14 +48,14 @@ export default {
                     width: '150'
                 },
 
-                {
-                    label: '费用金额(元)',
-                    prop: 'amount'
-                },
-                {
-                    label: '滞纳金',
-                    prop: 'lateFee'
-                },
+                // {
+                //     label: '费用金额(元)',
+                //     prop: 'amount'
+                // },
+                // {
+                //     label: '滞纳金',
+                //     prop: 'lateFee'
+                // },
                 {
                     label: '应收金额(元)',
                     prop: 'receivableAmount'
@@ -71,6 +75,10 @@ export default {
                         }
                     }
                 },
+                {
+                    label: '缴费时间',
+                    prop: 'chargeDate'
+                },
                 {
                     label: '收款方式',
                     prop: 'payTypeDict'