Browse Source

提示报错

Shannon_mu 3 years ago
parent
commit
e22a4f07cf

+ 47 - 0
operationSupport/src/router/index.js

@@ -74,6 +74,53 @@ const zRoute = [
         component: () => import(/* webpackChunkName: "404" */ '@views/ownerManagement/details.vue'),
         meta: { title: '住户详情' }
     },
+
+    {
+        path: '/billingRules/index',
+        component: () => import(/* webpackChunkName: "404" */ '@views/payService/billingRules/index.vue'),
+        meta: { title: '计费规则' }
+    },
+    {
+        path: '/call/index',
+        component: () => import(/* webpackChunkName: "404" */ '@views/payService/call/index.vue'),
+        meta: { title: '催缴' }
+    },
+    {
+        path: '/chargeSetting/index',
+        component: () => import(/* webpackChunkName: "404" */ '@views/payService/chargeSetting/index.vue'),
+        meta: { title: '收费设置' }
+    },
+    // {
+    //     path: '/collection/index',
+    //     component: () => import(/* webpackChunkName: "404" */ '@views/payService/collection/index.vue'),
+    //     meta: { title: '收款账号' }
+    // },
+    {
+        path: '/electricManagement/index',
+        component: () => import(/* webpackChunkName: "404" */ '@views/payService/electricManagement/index.vue'),
+        meta: { title: '电费管理' }
+    },
+    {
+        path: '/waterManagement/index',
+        component: () => import(/* webpackChunkName: "404" */ '@views/payService/waterManagement/index.vue'),
+        meta: { title: '水费管理' }
+    },
+    {
+        path: '/expenseReport/index',
+        component: () => import(/* webpackChunkName: "404" */ '@views/payService/expenseReport/index.vue'),
+        meta: { title: '费用报表' }
+    },
+    // {
+    //     path: '/invoiceManagement/index',
+    //     component: () => import(/* webpackChunkName: "404" */ '@views/payService/invoiceManagement/index.vue'),
+    //     meta: { title: '发票管理' }
+    // },
+    {
+        path: '/propertyFee/index',
+        component: () => import(/* webpackChunkName: "404" */ '@views/payService/propertyFee/index.vue'),
+        meta: { title: '物业费账单' }
+    },
+
 ]
 
 const quietRoute = [

+ 7 - 21
operationSupport/src/utils/http.js

@@ -106,9 +106,7 @@ export default {
         return new Promise((resolve, reject) => {
             http.post(url, data)
                 .then((res) => {
-                    if (res.status !== 0) {
-                        ELEMENT.Message.error(res.msg);
-                    } this.callback(resolve, res);
+                    this.callback(resolve, res);
                 })
                 .catch((err) => {
                     this.reject(reject, err);
@@ -119,9 +117,7 @@ export default {
         return new Promise((resolve, reject) => {
             http.post(url, qs.stringify(data))
                 .then((res) => {
-                    if (res.status !== 0) {
-                        ELEMENT.Message.error(res.msg);
-                    } this.callback(resolve, res);
+                    this.callback(resolve, res);
                 })
                 .catch((err) => {
                     this.reject(reject, err);
@@ -139,9 +135,7 @@ export default {
                 params: data
             })
                 .then((res) => {
-                    if (res.status !== 0) {
-                        ELEMENT.Message.error(res.msg);
-                    } this.callback(resolve, res);
+                    this.callback(resolve, res);
                 })
                 .catch((err) => {
                     this.reject(reject, err);
@@ -154,9 +148,7 @@ export default {
                 params: data
             })
                 .then((res) => {
-                    if (res.status !== 0) {
-                        ELEMENT.Message.error(res.msg);
-                    } this.callback(resolve, res);
+                    this.callback(resolve, res);
                 })
                 .catch((err) => {
                     this.reject(reject, err);
@@ -169,9 +161,7 @@ export default {
                 data: data
             })
                 .then((res) => {
-                    if (res.status !== 0) {
-                        ELEMENT.Message.error(res.msg);
-                    } this.callback(resolve, res);
+                    this.callback(resolve, res);
                 })
                 .catch((err) => {
                     this.reject(reject, err);
@@ -182,9 +172,7 @@ export default {
         return new Promise((resolve, reject) => {
             http.put(url, qs.stringify(data))
                 .then((res) => {
-                    if (res.status !== 0) {
-                        ELEMENT.Message.error(res.msg);
-                    } this.callback(resolve, res);
+                    this.callback(resolve, res);
                 })
                 .catch((err) => {
                     this.reject(reject, err);
@@ -195,9 +183,7 @@ export default {
         return new Promise((resolve, reject) => {
             http.put(url, data)
                 .then((res) => {
-                    if (res.status !== 0) {
-                        ELEMENT.Message.error(res.msg);
-                    } this.callback(resolve, res);
+                    this.callback(resolve, res);
                 })
                 .catch((err) => {
                     this.reject(reject, err);

+ 219 - 0
operationSupport/src/views/payService/billingRules/index.vue

@@ -0,0 +1,219 @@
+<template>
+    <div class="main">
+        <div class="search">
+            <el-input placeholder="订单编号/业主/房间号" class="search-input" clearable v-model="mixins_query.name"></el-input>
+            <el-select v-model="mixins_query.communityId">
+                <el-option v-for="(item, index) in communityArr" :key="index" :label="item.communityName" :value="item.id"></el-option>
+            </el-select>
+            <el-input placeholder="欠费天数(大于)" class="search-input" clearable v-model="mixins_query.arrearageDays"></el-input>
+            <el-button type="primary" placeholder="状态" class="search-btn" @click="mixins_search" icon="el-icon-search">查询 </el-button>
+            <div class="search-icon">
+                <i class="iconfont" @click="deluserbyidFn()" v-txt-tip data-txt="删除">&#xe63b;</i>
+                <i class="iconfont" @click="addOrEdit('add')" v-left-txt-tip data-txt="新增">&#xe641;</i>
+            </div>
+        </div>
+        <div class="roles-wrap">
+            <zz-table
+                :cols="cols"
+                :settings="{ showCheckbox: true, showIndex: true, stripe: true }"
+                :loading="mixins_onQuery"
+                :data="mixins_list"
+                :pageset="mixins_pageset"
+                @page-change="pageChange"
+                @selection-change="selectionChange"
+            >
+                <template slot-scope="scope" slot="opt">
+                    <div class="opt">
+                        <el-tooltip effect="light" placement="bottom" content="编辑">
+                            <i class="zoniot_font zoniot-icon-bianji" @click="addOrEdit('edit', scope.row)"></i>
+                        </el-tooltip>
+                        <el-tooltip effect="light" placement="bottom" content="删除">
+                            <i class="zoniot_font zoniot-icon-shanchu redText" @click="deluserbyidFn(scope.row.id)"></i>
+                        </el-tooltip>
+                        <el-tooltip effect="light" placement="bottom" :content="scope.row.deviceStatus === 5 ? '已报废' : '报废'">
+                            <i v-if="scope.row.deviceStatus === 5" class="zoniot_font zoniot-icon-baofei ashText"></i>
+                            <i v-else class="zoniot_font zoniot-icon-baofei redText" @click="Scrap(scope.row.id)"></i>
+                        </el-tooltip>
+                        <el-tooltip effect="light" placement="bottom" content="下载二维码">
+                            <i class="zoniot_font zoniot-icon-erweimaxiazai" @click="lookImg(scope.row)"></i>
+                        </el-tooltip>
+                    </div>
+                </template>
+            </zz-table>
+        </div>
+    </div>
+</template>
+
+<script>
+import list from '@utils/list.js';
+export default {
+    mixins: [list],
+    data() {
+        let _this = this;
+        return {
+            selectRow: [],
+            cols: [
+                {
+                    label: '所属小区',
+                    prop: 'communityId',
+                    format(val) {
+                        let va = '';
+                        _this.$store.getters['getAreaSelect'].forEach((element) => {
+                            if (element.id === val) {
+                                va = element.communityName;
+                            }
+                        });
+                        return va;
+                    }
+                },
+                {
+                    label: '设备类型',
+                    prop: 'deviceTypeName'
+                },
+                {
+                    label: '设备编号',
+                    prop: 'deviceNo'
+                },
+                {
+                    label: '设备名称',
+                    prop: 'deviceName'
+                },
+                {
+                    label: '设备地址',
+                    prop: 'address'
+                },
+                {
+                    label: '添加日期',
+                    prop: 'createDate'
+                },
+                {
+                    label: '设备状态',
+                    prop: 'deviceStatus',
+                    format(val) {
+                        if (val == '1') {
+                            return '正常';
+                        } else if (val == '2') {
+                            return '告警';
+                        } else if (val == '3') {
+                            return '离线';
+                        } else if (val == '4') {
+                            return '未启用';
+                        } else if (val == '5') {
+                            return '报废';
+                        }
+                    }
+                },
+                {
+                    label: '二维码',
+                    prop: 'deviceQrcode',
+                },
+                {
+                    label: '操作',
+                    prop: 'id',
+                    slot: 'opt'
+                }
+            ],
+            mixins_post: 'post',
+            productOptions: [],
+            communityArr: [],
+        };
+    },
+    created() {
+        this.getorgTree();
+        this.mixins_dataUrl = '/device/page';
+        this.mixins_query = {};
+        this.mixins_search();
+    },
+    mounted() {
+        this.getProductOptions();
+    },
+    methods: {
+        getorgTree() {
+            this.$http
+                .get('/sc-community/assets/community/list')
+                .then((data) => {
+                    this.communityArr = data.data;
+                    this.$store.commit('setAreaSelect', data.data);
+                })
+
+                .catch(function () {});
+        },
+        deluserbyidFn(id) {
+            let ids = [];
+            if (!!id) {
+                ids = [id];
+            } else {
+                if (!this.selectRow.length) {
+                    this.$message.error('您尚未选择要删除的记录,请选择后再操作批量删除');
+                    return;
+                }
+                this.selectRow.forEach((v) => {
+                    ids.push(v.id);
+                });
+            }
+
+            const h = this.$createElement;
+            this.$msgBox(`删除`, '删除后将无法恢复,请问是否继续?')
+                .then(() => {
+                    this.$http.post('/device/delete', ids).then(({ status, data, msg }) => {
+                        if (0 === status) {
+                            this.$message({
+                                type: 'success',
+                                message: '删除成功!'
+                            });
+                            this.mixins_search();
+                        }
+                    });
+                })
+                .catch(() => {});
+        },
+        Scrap(id) {
+            this.$msgBox(`确认提示`, '设备报废后将无法正常接收数据,请问是否继续?')
+                .then(() => {
+                    this.$http.post('/device/deviceScrapInterface', { id: id, deviceStatus: 5 }).then(({ status, data, msg }) => {
+                        if (0 === status) {
+                            this.$message({
+                                type: 'success',
+                                message: '报废成功!'
+                            });
+                            this.mixins_search();
+                        }
+                    });
+                })
+                .catch(() => {});
+        },
+        addOrEdit(todo, data = {}) {
+            new Promise((resolve) => {
+                let title = '添加设备';
+                if (todo == 'add') {
+                    // title = this.mixins_query.alarmCategory == '2' ? '添加离线规则' : '添加告警';
+                } else {
+                    title = '修改设备';
+                }
+                this.$store.dispatch('addPopup', {
+                    url: '/deviceManagement/popups/addDeviceManagement.vue',
+                    width: '500px',
+                    height: '400px',
+                    props: {
+                        data,
+                        todo,
+                        productOptions: this.productOptions,
+                        callback: resolve
+                    },
+                    title: title
+                });
+            }).then(() => {
+                this.mixins_search();
+            });
+        },
+        selectionChange(val) {
+            this.selectRow = val;
+        },
+        getProductOptions() {
+            this.$http.postForm('/devicetype/selectList', { name: '' }).then((data) => {
+                this.productOptions = data;
+            });
+        },
+    }
+};
+</script>

+ 175 - 0
operationSupport/src/views/payService/call/index.vue

@@ -0,0 +1,175 @@
+<template>
+    <div class="main">
+        <div class="search">
+            <el-input placeholder="订单编号/业主/房间号" class="search-input" clearable v-model="mixins_query.name"></el-input>
+            <el-select v-model="mixins_query.communityId" placeholder="所属社区">
+                <el-option v-for="(item, index) in communityArr" :key="index" :label="item.communityName" :value="item.id"></el-option>
+            </el-select>
+            <el-input placeholder="欠费天数(大于)" class="search-input" clearable v-model="mixins_query.arrearageDays"></el-input>
+            <el-button type="primary" class="search-btn" @click="mixins_search" icon="el-icon-search">查询 </el-button>
+            <div class="search-icon">
+                <el-tooltip effect="light" placement="bottom" content="催缴设置">
+                    <i class="zoniot_font zoniot-icon-cuijiaoshezhi" @click="toPageSet"></i>
+                </el-tooltip>
+                <el-tooltip effect="light" placement="bottom" content="全部通知">
+                    <i class="zoniot_font zoniot-icon-quanbucuijiao"></i>
+                </el-tooltip>
+                <el-tooltip effect="light" placement="bottom" content="批量通知">
+                    <i class="zoniot_font zoniot-icon-piliangcuijiao"></i>
+                </el-tooltip>
+                <el-tooltip effect="light" placement="bottom" content="催缴记录">
+                    <i class="zoniot_font zoniot-icon-cuijiaojilu"></i>
+                </el-tooltip>
+            </div>
+        </div>
+        <div class="roles-wrap">
+            <zz-table
+                :cols="cols"
+                :settings="{ showCheckbox: true, stripe: true }"
+                :loading="mixins_onQuery"
+                :data="mixins_list"
+                :pageset="mixins_pageset"
+                @page-change="pageChange"
+                @selection-change="selectionChange"
+            >
+            </zz-table>
+        </div>
+    </div>
+</template>
+
+<script>
+import list from '@utils/list.js';
+export default {
+    mixins: [list],
+    data() {
+        let _this = this;
+        return {
+            selectRow: [],
+            cols: [
+                {
+                    label: '订单号',
+                    prop: 'deviceTypeName'
+                },
+                {
+                    label: '社区',
+                    prop: 'communityId',
+                    format(val) {
+                        let va = '';
+                        _this.communityArr.forEach((element) => {
+                            if (element.id === val) {
+                                va = element.communityName;
+                            }
+                        });
+                        return va;
+                    }
+                },
+                {
+                    label: '房间',
+                    prop: 'deviceTypeName'
+                },
+                {
+                    label: '业主',
+                    prop: 'deviceNo'
+                },
+                {
+                    label: '业主手机',
+                    prop: 'deviceName'
+                },
+                {
+                    label: '费用名称',
+                    prop: 'address'
+                },
+                {
+                    label: '账期',
+                    prop: 'createDate'
+                },
+                {
+                    label: '费用金额(元)',
+                    prop: 'createDate'
+                },
+                {
+                    label: '滞纳金(元)',
+                    prop: 'createDate'
+                },
+                {
+                    label: '应收金额(元)',
+                    prop: 'createDate'
+                },
+                {
+                    label: '应收时间',
+                    prop: 'deviceQrcode'
+                },
+                {
+                    label: '欠费天数',
+                    prop: 'createDate'
+                },
+                {
+                    label: '最新下发通知时间',
+                    prop: 'createDate'
+                }
+            ],
+            mixins_post: 'post',
+            communityArr: []
+        };
+    },
+    created() {
+        this.getorgTree();
+        this.mixins_dataUrl = '/device/page';
+        this.mixins_query = {};
+        this.mixins_search();
+    },
+    mounted() {
+     
+    },
+    methods: {
+        getorgTree() {
+            this.$http
+                .get('/sc-community/assets/community/list')
+                .then((data) => {
+                    this.communityArr = data.data;
+                    this.$store.commit('setAreaSelect', data.data);
+                })
+
+                .catch(function () {});
+        },
+        toPageSet(){
+
+        },
+        toPageRecord(){
+
+        },
+        deluserbyidFn(id) {
+            let ids = [];
+            if (!!id) {
+                ids = [id];
+            } else {
+                if (!this.selectRow.length) {
+                    this.$message.error('您尚未选择要删除的记录,请选择后再操作批量删除');
+                    return;
+                }
+                this.selectRow.forEach((v) => {
+                    ids.push(v.id);
+                });
+            }
+
+            const h = this.$createElement;
+            this.$msgBox(`删除`, '删除后将无法恢复,请问是否继续?')
+                .then(() => {
+                    this.$http.post('/device/delete', ids).then(({ status, data, msg }) => {
+                        if (0 === status) {
+                            this.$message({
+                                type: 'success',
+                                message: '删除成功!'
+                            });
+                            this.mixins_search();
+                        }
+                    });
+                })
+                .catch(() => {});
+        },
+        selectionChange(val) {
+            this.selectRow = val;
+        }
+    }
+};
+</script>

+ 89 - 0
operationSupport/src/views/payService/call/record.vue

@@ -0,0 +1,89 @@
+<template>
+    <div class="main">
+        <div class="search">
+            <el-input placeholder="输入业主/房间号" class="search-input" clearable v-model="mixins_query.name"></el-input>
+            <el-select v-model="mixins_query.communityId" placeholder="所属社区">
+                <el-option v-for="(item, index) in communityArr" :key="index" :label="item.communityName" :value="item.id"></el-option>
+            </el-select>
+            <el-button type="primary" class="search-btn" @click="mixins_search" icon="el-icon-search">查询 </el-button>
+            <div class="search-icon">
+                <el-button>返回</el-button>
+            </div>
+        </div>
+        <div class="roles-wrap">
+            <zz-table
+                :cols="cols"
+                :settings="{ showIndex: true, stripe: true }"
+                :loading="mixins_onQuery"
+                :data="mixins_list"
+                :pageset="mixins_pageset"
+                @page-change="pageChange"
+            >
+            </zz-table>
+        </div>
+    </div>
+</template>
+
+<script>
+import list from '@utils/list.js';
+export default {
+    mixins: [list],
+    data() {
+        return {
+            cols: [
+                {
+                    label: '社区',
+                    prop: 'communityName',
+                },
+                {
+                    label: '房间',
+                    prop: 'assets'
+                },
+                {
+                    label: '业主',
+                    prop: 'residentName'
+                },
+                {
+                    label: '业主手机',
+                    prop: 'phone'
+                },
+
+                {
+                    label: '发送内容',
+                    prop: 'sendContent'
+                },
+                {
+                    label: '发送结果',
+                    prop: 'sendResult'
+                },
+                {
+                    label: '发送时间',
+                    prop: 'sendTime'
+                }
+            ],
+            mixins_post: 'post',
+            communityArr: []
+        };
+    },
+    created() {
+        this.getorgTree();
+        this.mixins_dataUrl = '/sc-charge/scChargeCallPaymentRecord/page';
+        this.mixins_query = {};
+        this.mixins_search();
+    },
+    mounted() {
+    },
+    methods: {
+        getorgTree() {
+            this.$http
+                .get('/sc-community/assets/community/list')
+                .then((data) => {
+                    this.communityArr = data.data;
+                    this.$store.commit('setAreaSelect', data.data);
+                })
+
+                .catch(function () {});
+        }
+    }
+};
+</script>

+ 5 - 0
operationSupport/src/views/payService/chargeSetting/index.vue

@@ -0,0 +1,5 @@
+<template>
+    <div>收费设置</div>
+</template>
+<script>
+</script>

+ 5 - 0
operationSupport/src/views/payService/collection/index.vue

@@ -0,0 +1,5 @@
+<template>
+    <div>收款账号</div>
+</template>
+<script>
+</script>

+ 5 - 0
operationSupport/src/views/payService/electricManagement/index.vue

@@ -0,0 +1,5 @@
+<template>
+    <div>电费设置</div>
+</template>
+<script>
+</script>

+ 5 - 0
operationSupport/src/views/payService/expenseReport/index.vue

@@ -0,0 +1,5 @@
+<template>
+    <div>费用报表</div>
+</template>
+<script>
+</script>

+ 5 - 0
operationSupport/src/views/payService/invoiceManagement/index.vue

@@ -0,0 +1,5 @@
+<template>
+    <div>发票管理</div>
+</template>
+<script>
+</script>

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

@@ -0,0 +1,5 @@
+<template>
+    <div>物业费账单</div>
+</template>
+<script>
+</script>

+ 5 - 0
operationSupport/src/views/payService/waterManagement/index.vue

@@ -0,0 +1,5 @@
+<template>
+    <div>水费设置</div>
+</template>
+<script>
+</script>