Quellcode durchsuchen

点位问题和费用类型

Shannon_mu vor 3 Jahren
Ursprung
Commit
09052bd770

+ 8 - 0
operationSupport/src/components/common/treeHouse.vue

@@ -285,6 +285,14 @@ export default {
                 }
                 }
             });
             });
         },
         },
+        CheckChinese(val, name) {
+            var reg = new RegExp('[\\u4E00-\\u9FFF]+', 'g');
+            let newVal = val;
+            if (!reg.test(val)) {
+                newVal = val + name;
+            }
+            return newVal;
+        },
         getOrgTreeList() {
         getOrgTreeList() {
             this.$http
             this.$http
                 .get('/sc-community/assets/tree/community/find', { buildingType: this.buildingType })
                 .get('/sc-community/assets/tree/community/find', { buildingType: this.buildingType })

+ 8 - 0
operationSupport/src/views/deviceManagement/popups/poptreeSelect.vue

@@ -62,6 +62,14 @@ export default {
                     }
                     }
                 }
                 }
             });
             });
+        },
+        CheckChinese(val, name) {
+            var reg = new RegExp('[\\u4E00-\\u9FFF]+', 'g');
+            let newVal = val;
+            if (!reg.test(val)) {
+                newVal = val + name;
+            }
+            return newVal;
         }
         }
     },
     },
     created() {
     created() {

+ 8 - 0
operationSupport/src/views/ownerManagement/stepPage/add.vue

@@ -673,6 +673,14 @@ export default {
                     }
                     }
                 }
                 }
             });
             });
+        },
+        CheckChinese(val, name) {
+            var reg = new RegExp('[\\u4E00-\\u9FFF]+', 'g');
+            let newVal = val;
+            if (!reg.test(val)) {
+                newVal = val + name;
+            }
+            return newVal;
         }
         }
     }
     }
 };
 };

+ 0 - 10
operationSupport/src/views/ownerManagement/stepPage/poptreeSelect.vue

@@ -75,16 +75,6 @@ export default {
                     item.disabled = false;
                     item.disabled = false;
                 }
                 }
             });
             });
-
-            // return trData.filter((item) => {
-            //     if (this.isNotEmpty(item.children)) {
-            //         item.disabled = false;
-            //         item.children = this.filterTreeData(item.children);
-            //         console.log(item.children);
-            //     } else {
-            //         item.disabled = true;
-            //     }
-            // });
         },
         },
         isNotEmpty(arr) {
         isNotEmpty(arr) {
             return arr && Array.isArray(arr) && arr.length > 0;
             return arr && Array.isArray(arr) && arr.length > 0;

+ 6 - 4
operationSupport/src/views/patrolManagement/popups/addPoint.vue

@@ -11,7 +11,7 @@
                 <el-option v-for="(item, index) in unitArr" :key="index" :label="item.label" :value="item.id"></el-option>
                 <el-option v-for="(item, index) in unitArr" :key="index" :label="item.label" :value="item.id"></el-option>
             </el-select>
             </el-select>
             <template slot="latitude">
             <template slot="latitude">
-                <el-input v-model="initDot" @change="initDotTggle" placeholder="请选择经纬坐标">
+                <el-input v-model="initDot" @change="initDotTggle" placeholder="请输入正确坐标或选择坐标">
                     <i slot="suffix" class="zoniot_font zoniot-icon-dizhi" @click="QueryClick"></i>
                     <i slot="suffix" class="zoniot_font zoniot-icon-dizhi" @click="QueryClick"></i>
                 </el-input>
                 </el-input>
             </template>
             </template>
@@ -46,8 +46,8 @@ export default {
                 latitude: this.$valid.custome({
                 latitude: this.$valid.custome({
                     validator(rule, value, cb) {
                     validator(rule, value, cb) {
                         const rl = rule;
                         const rl = rule;
-                        if (!value) {
-                            rl.message = '请输入或选择坐标';
+                        if (!value || !_this.formData.longitude) {
+                            rl.message = '请输入正确坐标或选择坐标';
                             cb(new Error());
                             cb(new Error());
                         } else if (_this.initDot.split(',').length > 2) {
                         } else if (_this.initDot.split(',').length > 2) {
                             rl.message = '一个巡更点只能有一个经纬度';
                             rl.message = '一个巡更点只能有一个经纬度';
@@ -191,7 +191,9 @@ export default {
             this.nestedLoop(this.buildingArr, 'unit', 'unitArr', e);
             this.nestedLoop(this.buildingArr, 'unit', 'unitArr', e);
         },
         },
         initDotTggle() {
         initDotTggle() {
-            // console.log(this.initDot.split(','))
+            let logPoint = this.initDot.split(',');
+            this.formData.latitude = logPoint[0];
+            this.formData.longitude = logPoint[1];
         }
         }
     },
     },
     created() {
     created() {

+ 8 - 5
operationSupport/src/views/payService/billingRules/index.vue

@@ -9,8 +9,9 @@
                 <el-option label="物业费" :value="1"></el-option>
                 <el-option label="物业费" :value="1"></el-option>
                 <el-option label="水费" :value="2"></el-option>
                 <el-option label="水费" :value="2"></el-option>
                 <el-option label="电费" :value="3"></el-option>
                 <el-option label="电费" :value="3"></el-option>
-                <!-- <el-option label="车位费" :value="4"></el-option>
-                <el-option label="二次供水费" :value="5"></el-option> -->
+                <el-option label="车位费" :value="4"></el-option>
+                <el-option label="卫生费" :value="6"></el-option>
+                <el-option label="其他费用" :value="7"></el-option>
             </el-select>
             </el-select>
             <el-button type="primary" class="search-btn" @click="mixins_search" icon="el-icon-search">查询 </el-button>
             <el-button type="primary" class="search-btn" @click="mixins_search" icon="el-icon-search">查询 </el-button>
             <div class="search-icon">
             <div class="search-icon">
@@ -107,8 +108,10 @@ export default {
                             return '电费';
                             return '电费';
                         } else if (val == '4') {
                         } else if (val == '4') {
                             return '车位费';
                             return '车位费';
-                        } else if (val == '5') {
-                            return '二次供水费';
+                        } else if (val == '6') {
+                            return '卫生费';
+                        } else if (val == '7') {
+                            return '其他费用';
                         }
                         }
                     }
                     }
                 },
                 },
@@ -214,7 +217,7 @@ export default {
                 }
                 }
                 this.$store.dispatch('addPopup', {
                 this.$store.dispatch('addPopup', {
                     // url: '/payService/billingRules/stepPage/add.vue',
                     // url: '/payService/billingRules/stepPage/add.vue',
-                    url: '/payService/billingRules/stepPage/newAdd.vue', 
+                    url: '/payService/billingRules/stepPage/newAdd.vue',
                     width: '524px',
                     width: '524px',
                     height: '600px',
                     height: '600px',
                     props: {
                     props: {

+ 4 - 2
operationSupport/src/views/payService/chargeSetting/index.vue

@@ -88,8 +88,10 @@ export default {
                             return '电费';
                             return '电费';
                         } else if (val == '4') {
                         } else if (val == '4') {
                             return '车位费';
                             return '车位费';
-                        } else if (val == '5') {
-                            return '二次供水费';
+                        } else if (val == '6') {
+                            return '卫生费';
+                        } else if (val == '7') {
+                            return '其他费用';
                         }
                         }
                     }
                     }
                 },
                 },

+ 53 - 3
operationSupport/src/views/payService/statisticalReport/chargeStatistics.vue

@@ -25,7 +25,7 @@
         </div>
         </div>
         <div class="table-top">
         <div class="table-top">
             <div class="table-top_block title">
             <div class="table-top_block title">
-                <div>{{ thisObjCommunit['communityName'] }}收费统计</div>
+                <div>{{ thisObjCommunit['communityName'] || '' }}收费统计</div>
                 <div>{{ timeFiterType() }}</div>
                 <div>{{ timeFiterType() }}</div>
             </div>
             </div>
             <div class="table-top_block blockColor" v-for="item in blockArr" :key="item">
             <div class="table-top_block blockColor" v-for="item in blockArr" :key="item">
@@ -103,12 +103,38 @@ export default {
     watch: {
     watch: {
         mixins_list(val) {
         mixins_list(val) {
             if (!!val) {
             if (!!val) {
+                this.cols = [
+                    {
+                        label: '社区名称',
+                        prop: 'communityName'
+                    },
+                    {
+                        label: '房间',
+                        prop: 'houseDetail'
+                    },
+                    {
+                        label: '业主',
+                        prop: 'residentName'
+                    },
+                    {
+                        label: '物业费标准(元/月)',
+                        prop: 'chargingStandard'
+                    },
+                    {
+                        label: '月数',
+                        prop: 'months'
+                    },
+                    {
+                        label: '合计',
+                        prop: 'totalAmount'
+                    }
+                ];
                 if (val.length) {
                 if (val.length) {
                     let arr = [{ label: '总收费', val: val[0].totalAmount }];
                     let arr = [{ label: '总收费', val: val[0].totalAmount }];
                     val[0].details.map((item, index) => {
                     val[0].details.map((item, index) => {
-                        arr.push({ label: item.chargeName, val: item.amount });
+                        arr.push({ label: this.typeName(item), val: item.amount });
                         this.cols.splice(4 + index, 0, {
                         this.cols.splice(4 + index, 0, {
-                            label: item.chargeName,
+                            label: this.typeName(item),
                             prop: 'type' + index,
                             prop: 'type' + index,
                             slot: 'type' + index
                             slot: 'type' + index
                         });
                         });
@@ -128,6 +154,30 @@ export default {
                 endTime: time
                 endTime: time
             };
             };
         },
         },
+        typeName(item) {
+            let name = '';
+            switch (item.chargeType) {
+                case 1:
+                    name = '物业费';
+                    break;
+                case 2:
+                    name = '水费';
+                    break;
+                case 3:
+                    name = '电费';
+                    break;
+                case 4:
+                    name = '车位费';
+                    break;
+                case 6:
+                    name = '卫生费';
+                    break;
+                case 7:
+                    name = item.chargeName;
+                    break;
+            }
+            return name
+        },
         exportExcel() {
         exportExcel() {
             this.__exportExcel('/sc-charge/charge/report/export/excel', this.mixins_query);
             this.__exportExcel('/sc-charge/charge/report/export/excel', this.mixins_query);
         },
         },

+ 17 - 8
operationSupport/src/views/payService/statisticalReport/electricityBillDetails.vue

@@ -15,7 +15,7 @@
                 @change="effectiveDateToggle"
                 @change="effectiveDateToggle"
             ></el-date-picker>
             ></el-date-picker>
 
 
-            <el-button type="primary" class="search-btn" @click="mixins_search" icon="el-icon-search">查询 </el-button>
+            <el-button type="primary" class="search-btn" @click="initPageData" icon="el-icon-search">查询 </el-button>
             <div class="search-icon">
             <div class="search-icon">
                 <el-tooltip class="item" effect="light" placement="bottom" content="导出">
                 <el-tooltip class="item" effect="light" placement="bottom" content="导出">
                     <i class="zoniot_font zoniot-icon-daochu2" @click="exportExcel"></i>
                     <i class="zoniot_font zoniot-icon-daochu2" @click="exportExcel"></i>
@@ -141,7 +141,7 @@ export default {
             activeIndex: 1,
             activeIndex: 1,
             mixins_post: 'post',
             mixins_post: 'post',
             times: [],
             times: [],
-            communityArr:[]
+            communityArr: []
         };
         };
     },
     },
     created() {
     created() {
@@ -150,9 +150,7 @@ export default {
             accountType: 3,
             accountType: 3,
             paymentType: 1
             paymentType: 1
         };
         };
-        this.getSun(1);
-        this.getSun(2);
-        this.mixins_search();
+        this.initPageData();
         this.getorgTree();
         this.getorgTree();
     },
     },
     mounted() {},
     mounted() {},
@@ -162,9 +160,20 @@ export default {
             this.mixins_query.paymentType = index;
             this.mixins_query.paymentType = index;
             this.mixins_search();
             this.mixins_search();
         },
         },
+        initPageData() {
+            this.getSun(1);
+            this.getSun(2);
+            this.mixins_search();
+        },
         getSun(type) {
         getSun(type) {
             this.$http
             this.$http
-                .post('/sc-charge/payment/record/sum/amount', { accountType: 3, paymentType: type })
+                .post('/sc-charge/payment/record/sum/amount', {
+                    accountType: 3,
+                    paymentType: type,
+                    communityId: this.mixins_query.communityId,
+                    endTime: this.mixins_query.endTime,
+                    startTime: this.mixins_query.startTime
+                })
                 .then(({ data, status, msg }) => {
                 .then(({ data, status, msg }) => {
                     if (status == 0) {
                     if (status == 0) {
                         if (type == 1) {
                         if (type == 1) {
@@ -186,8 +195,8 @@ export default {
             if (!arr) {
             if (!arr) {
                 arr = ['', ''];
                 arr = ['', ''];
             }
             }
-            this.mixins_query.startTime = arr[0] + ' 00:00:00';
-            this.mixins_query.endTime = arr[1] + ' 23:59:59';
+            this.mixins_query.startTime = !!arr[0] ? arr[0] + ' 00:00:00' : '';
+            this.mixins_query.endTime = !!arr[1] ? arr[1] + ' 23:59:59' : '';
         },
         },
         getorgTree() {
         getorgTree() {
             this.$http
             this.$http

+ 2 - 2
operationSupport/src/views/payService/statisticalReport/propertyFeeStatistics.vue

@@ -1,7 +1,7 @@
 <template>
 <template>
     <div class="main">
     <div class="main">
         <div class="search">
         <div class="search">
-            <el-select v-model="mixins_query.communityId" placeholder="选择社区"  @change="communityChange">
+            <el-select v-model="mixins_query.communityId" placeholder="选择社区" @change="communityChange">
                 <el-option v-for="(item, index) in communityArr" :key="index" :label="item.communityName" :value="item.id"></el-option>
                 <el-option v-for="(item, index) in communityArr" :key="index" :label="item.communityName" :value="item.id"></el-option>
             </el-select>
             </el-select>
             <el-button type="primary" class="search-btn" @click="mixins_search" icon="el-icon-search">查询 </el-button>
             <el-button type="primary" class="search-btn" @click="mixins_search" icon="el-icon-search">查询 </el-button>
@@ -12,7 +12,7 @@
             </div>
             </div>
         </div>
         </div>
         <div class="table-top">
         <div class="table-top">
-            {{ `${new Date().getFullYear()}年${thisObjCommunit['communityName']}缴纳物业管理费情况表` }}
+            {{ `${new Date().getFullYear()}年${thisObjCommunit['communityName'] || ''}缴纳物业管理费情况表` }}
         </div>
         </div>
         <zz-table
         <zz-table
             :cols="cols"
             :cols="cols"

+ 17 - 7
operationSupport/src/views/payService/statisticalReport/waterChargeDetails.vue

@@ -15,7 +15,7 @@
                 @change="effectiveDateToggle"
                 @change="effectiveDateToggle"
             ></el-date-picker>
             ></el-date-picker>
 
 
-            <el-button type="primary" class="search-btn" @click="mixins_search" icon="el-icon-search">查询 </el-button>
+            <el-button type="primary" class="search-btn" @click="initPageData" icon="el-icon-search">查询 </el-button>
             <div class="search-icon">
             <div class="search-icon">
                 <el-tooltip class="item" effect="light" placement="bottom" content="导出">
                 <el-tooltip class="item" effect="light" placement="bottom" content="导出">
                     <i class="zoniot_font zoniot-icon-daochu2" @click="exportExcel"></i>
                     <i class="zoniot_font zoniot-icon-daochu2" @click="exportExcel"></i>
@@ -150,9 +150,7 @@ export default {
             accountType: 2,
             accountType: 2,
             paymentType: 1
             paymentType: 1
         };
         };
-        this.getSun(1);
-        this.getSun(2);
-        this.mixins_search();
+        this.initPageData();
         this.getorgTree();
         this.getorgTree();
     },
     },
     mounted() {},
     mounted() {},
@@ -162,9 +160,21 @@ export default {
             this.mixins_query.paymentType = index;
             this.mixins_query.paymentType = index;
             this.mixins_search();
             this.mixins_search();
         },
         },
+        initPageData() {
+            this.getSun(1);
+            this.getSun(2);
+            this.mixins_search();
+        },
         getSun(type) {
         getSun(type) {
+            debugger;
             this.$http
             this.$http
-                .post('/sc-charge/payment/record/sum/amount', { accountType: 2, paymentType: type })
+                .post('/sc-charge/payment/record/sum/amount', {
+                    accountType: 2,
+                    paymentType: type,
+                    communityId: this.mixins_query.communityId,
+                    endTime: this.mixins_query.endTime,
+                    startTime: this.mixins_query.startTime
+                })
                 .then(({ data, status, msg }) => {
                 .then(({ data, status, msg }) => {
                     if (status == 0) {
                     if (status == 0) {
                         if (type == 1) {
                         if (type == 1) {
@@ -186,8 +196,8 @@ export default {
             if (!arr) {
             if (!arr) {
                 arr = ['', ''];
                 arr = ['', ''];
             }
             }
-            this.mixins_query.startTime = arr[0] + ' 00:00:00';
-            this.mixins_query.endTime = arr[1] + ' 23:59:59';
+            this.mixins_query.startTime = !!arr[0] ? arr[0] + ' 00:00:00' : '';
+            this.mixins_query.endTime = !!arr[1] ? arr[1] + ' 23:59:59' : '';
         },
         },
         getorgTree() {
         getorgTree() {
             this.$http
             this.$http