weiximei 6 anni fa
parent
commit
599f744f3d
22 ha cambiato i file con 860 aggiunte e 0 eliminazioni
  1. 20
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/BillController.java
  2. 20
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/BillInvoiceController.java
  3. 20
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/BillStatementController.java
  4. 25
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/BillInvoiceMapper.java
  5. 18
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/BillMapper.java
  6. 18
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/BillStatementMapper.java
  7. 90
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/model/Bill.java
  8. 98
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/model/BillInvoice.java
  9. 68
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/model/BillStatement.java
  10. 26
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/service/IBillInvoiceService.java
  11. 18
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/service/IBillService.java
  12. 16
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/service/IBillStatementService.java
  13. 92
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/BillInvoiceServiceImpl.java
  14. 37
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/BillServiceImpl.java
  15. 20
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/BillStatementServiceImpl.java
  16. 44
    0
      CODE/smart-community/property-api/src/main/resources/mapper/BillInvoiceMapper.xml
  17. 5
    0
      CODE/smart-community/property-api/src/main/resources/mapper/BillMapper.xml
  18. 5
    0
      CODE/smart-community/property-api/src/main/resources/mapper/BillStatementMapper.xml
  19. 1
    0
      VUECODE/smart-property-manage/src/permission.js
  20. 23
    0
      VUECODE/smart-property-manage/src/router/index.js
  21. 21
    0
      VUECODE/smart-property-manage/src/views/bill/index.vue
  22. 175
    0
      VUECODE/smart-property-manage/src/views/bill/info/index.vue

+ 20
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/BillController.java Vedi File

@@ -0,0 +1,20 @@
1
+package com.community.huiju.controller;
2
+
3
+
4
+import com.community.huiju.common.base.BaseController;
5
+import org.springframework.web.bind.annotation.RequestMapping;
6
+import org.springframework.web.bind.annotation.RestController;
7
+
8
+/**
9
+ * <p>
10
+ * 缴费项表 前端控制器
11
+ * </p>
12
+ *
13
+ * @author weiximei
14
+ * @since 2019-02-13
15
+ */
16
+@RestController
17
+@RequestMapping("/tp/bill")
18
+public class BillController extends BaseController {
19
+
20
+}

+ 20
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/BillInvoiceController.java Vedi File

@@ -0,0 +1,20 @@
1
+package com.community.huiju.controller;
2
+
3
+
4
+import com.community.huiju.common.base.BaseController;
5
+import org.springframework.web.bind.annotation.RequestMapping;
6
+import org.springframework.web.bind.annotation.RestController;
7
+
8
+/**
9
+ * <p>
10
+ * 缴费单 前端控制器
11
+ * </p>
12
+ *
13
+ * @author weiximei
14
+ * @since 2019-02-13
15
+ */
16
+@RestController
17
+@RequestMapping("/tp/bill-invoice")
18
+public class BillInvoiceController extends BaseController {
19
+
20
+}

+ 20
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/BillStatementController.java Vedi File

@@ -0,0 +1,20 @@
1
+package com.community.huiju.controller;
2
+
3
+
4
+import com.community.huiju.common.base.BaseController;
5
+import org.springframework.web.bind.annotation.RequestMapping;
6
+import org.springframework.web.bind.annotation.RestController;
7
+
8
+/**
9
+ * <p>
10
+ * 账单流水表 前端控制器
11
+ * </p>
12
+ *
13
+ * @author weiximei
14
+ * @since 2019-02-13
15
+ */
16
+@RestController
17
+@RequestMapping("/tp/bill-statement")
18
+public class BillStatementController extends BaseController {
19
+
20
+}

+ 25
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/BillInvoiceMapper.java Vedi File

@@ -0,0 +1,25 @@
1
+package com.community.huiju.dao;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.community.huiju.model.BillInvoice;
7
+import org.apache.ibatis.annotations.Mapper;
8
+import org.apache.ibatis.annotations.Param;
9
+
10
+import java.util.Map;
11
+
12
+/**
13
+ * <p>
14
+ * 缴费单 Mapper 接口
15
+ * </p>
16
+ *
17
+ * @author weiximei
18
+ * @since 2019-02-13
19
+ */
20
+@Mapper
21
+public interface BillInvoiceMapper extends BaseMapper<BillInvoice> {
22
+
23
+    IPage<BillInvoice> selectBillInvoice(Page page, @Param("map") Map<String, Object> map);
24
+
25
+}

+ 18
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/BillMapper.java Vedi File

@@ -0,0 +1,18 @@
1
+package com.community.huiju.dao;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import com.community.huiju.model.Bill;
5
+import org.apache.ibatis.annotations.Mapper;
6
+
7
+/**
8
+ * <p>
9
+ * 缴费项表 Mapper 接口
10
+ * </p>
11
+ *
12
+ * @author weiximei
13
+ * @since 2019-02-13
14
+ */
15
+@Mapper
16
+public interface BillMapper extends BaseMapper<Bill> {
17
+
18
+}

+ 18
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/BillStatementMapper.java Vedi File

@@ -0,0 +1,18 @@
1
+package com.community.huiju.dao;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import com.community.huiju.model.BillStatement;
5
+import org.apache.ibatis.annotations.Mapper;
6
+
7
+/**
8
+ * <p>
9
+ * 账单流水表 Mapper 接口
10
+ * </p>
11
+ *
12
+ * @author weiximei
13
+ * @since 2019-02-13
14
+ */
15
+@Mapper
16
+public interface BillStatementMapper extends BaseMapper<BillStatement> {
17
+
18
+}

+ 90
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/model/Bill.java Vedi File

@@ -0,0 +1,90 @@
1
+package com.community.huiju.model;
2
+
3
+import com.baomidou.mybatisplus.annotation.TableName;
4
+import lombok.Data;
5
+import lombok.EqualsAndHashCode;
6
+import lombok.experimental.Accessors;
7
+
8
+import java.io.Serializable;
9
+import java.time.LocalDateTime;
10
+
11
+/**
12
+ * <p>
13
+ * 缴费项表
14
+ * </p>
15
+ *
16
+ * @author weiximei
17
+ * @since 2019-02-13
18
+ */
19
+@Data
20
+@EqualsAndHashCode(callSuper = false)
21
+@Accessors(chain = true)
22
+@TableName("tp_bill")
23
+public class Bill implements Serializable {
24
+
25
+    private static final long serialVersionUID = 1L;
26
+
27
+    /**
28
+     * 小区id
29
+     */
30
+    private Integer communityId;
31
+
32
+    /**
33
+     * 收费项名称
34
+     */
35
+    private String billName;
36
+
37
+    /**
38
+     * 缴费项说明
39
+     */
40
+    private String billExplain;
41
+
42
+    private String payPrice;
43
+
44
+    /**
45
+     * 应缴户数
46
+     */
47
+    private Integer payTotalNum;
48
+
49
+    /**
50
+     * 已缴户数
51
+     */
52
+    private Integer payedNum;
53
+
54
+    /**
55
+     * 未缴户数
56
+     */
57
+    private Integer unpayedNum;
58
+
59
+    /**
60
+     * 项目状态 0:正在收费  1:收费完成  2: 草稿 3:正在收费
61
+     */
62
+    private String billStatus;
63
+
64
+    /**
65
+     * 截止时间
66
+     */
67
+    private LocalDateTime endDate;
68
+
69
+    /**
70
+     * 创建人
71
+     */
72
+    private Integer createUser;
73
+
74
+    /**
75
+     * 创建时间
76
+     */
77
+    private LocalDateTime createDate;
78
+
79
+    /**
80
+     * 更新人
81
+     */
82
+    private Integer updateUser;
83
+
84
+    /**
85
+     * 更新时间
86
+     */
87
+    private LocalDateTime updateDate;
88
+
89
+
90
+}

+ 98
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/model/BillInvoice.java Vedi File

@@ -0,0 +1,98 @@
1
+package com.community.huiju.model;
2
+
3
+import com.baomidou.mybatisplus.annotation.TableName;
4
+import lombok.Data;
5
+import lombok.EqualsAndHashCode;
6
+import lombok.experimental.Accessors;
7
+
8
+import java.io.Serializable;
9
+import java.time.LocalDateTime;
10
+
11
+/**
12
+ * <p>
13
+ * 缴费单
14
+ * </p>
15
+ *
16
+ * @author weiximei
17
+ * @since 2019-02-13
18
+ */
19
+@Data
20
+@EqualsAndHashCode(callSuper = false)
21
+@Accessors(chain = true)
22
+@TableName("tp_bill_invoice")
23
+public class BillInvoice implements Serializable {
24
+
25
+    private static final long serialVersionUID = 1L;
26
+
27
+    /**
28
+     * 小区id
29
+     */
30
+    private Integer communityId;
31
+
32
+    /**
33
+     * 收费项id
34
+     */
35
+    private Integer billId;
36
+
37
+    /**
38
+     * 楼栋业主资料信息id
39
+     */
40
+    private Integer buildingOwnerInfoId;
41
+
42
+    /**
43
+     * app用户id
44
+     */
45
+    private Integer taUserId;
46
+
47
+    /**
48
+     * 收费说明
49
+     */
50
+    private String billInvoiceExplain;
51
+
52
+    /**
53
+     * 收费金额
54
+     */
55
+    private Integer payPrice;
56
+
57
+    /**
58
+     * 账单流水id
59
+     */
60
+    private Integer billStatementId;
61
+
62
+    /**
63
+     * 缴费状态  0:未缴费  1:已线上缴费 2:已线下缴费
64
+     */
65
+    private String billStatus;
66
+
67
+    /**
68
+     * 缴费人
69
+     */
70
+    private String payName;
71
+
72
+    /**
73
+     * 缴费时间
74
+     */
75
+    private LocalDateTime payDate;
76
+
77
+    /**
78
+     * 创建人
79
+     */
80
+    private Integer createUser;
81
+
82
+    /**
83
+     * 创建时间
84
+     */
85
+    private LocalDateTime createDate;
86
+
87
+    /**
88
+     * 更新人
89
+     */
90
+    private Integer updateUser;
91
+
92
+    /**
93
+     * 更新时间
94
+     */
95
+    private LocalDateTime updateDate;
96
+
97
+
98
+}

+ 68
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/model/BillStatement.java Vedi File

@@ -0,0 +1,68 @@
1
+package com.community.huiju.model;
2
+
3
+import com.baomidou.mybatisplus.annotation.TableName;
4
+import lombok.Data;
5
+import lombok.EqualsAndHashCode;
6
+import lombok.experimental.Accessors;
7
+
8
+import java.io.Serializable;
9
+import java.time.LocalDateTime;
10
+
11
+/**
12
+ * <p>
13
+ * 账单流水表
14
+ * </p>
15
+ *
16
+ * @author weiximei
17
+ * @since 2019-02-13
18
+ */
19
+@Data
20
+@EqualsAndHashCode(callSuper = false)
21
+@Accessors(chain = true)
22
+@TableName("tp_bill_statement")
23
+public class BillStatement implements Serializable {
24
+
25
+    private static final long serialVersionUID = 1L;
26
+
27
+    /**
28
+     * 小区id
29
+     */
30
+    private Integer communityId;
31
+
32
+    /**
33
+     * 缴费单id
34
+     */
35
+    private Integer billInvoiceId;
36
+
37
+    /**
38
+     * app 用户id
39
+     */
40
+    private Integer taUserId;
41
+
42
+    /**
43
+     * 收费金额
44
+     */
45
+    private Integer payPrice;
46
+
47
+    /**
48
+     * 缴费人
49
+     */
50
+    private String payName;
51
+
52
+    /**
53
+     * 缴费备注
54
+     */
55
+    private String payRemark;
56
+
57
+    /**
58
+     * 缴费方式  0:微信支付  1:线下缴费
59
+     */
60
+    private String payType;
61
+
62
+    /**
63
+     * 生成流水时间
64
+     */
65
+    private LocalDateTime createTime;
66
+
67
+
68
+}

+ 26
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/IBillInvoiceService.java Vedi File

@@ -0,0 +1,26 @@
1
+package com.community.huiju.service;
2
+
3
+import com.baomidou.mybatisplus.extension.service.IService;
4
+import com.community.commom.mode.ResponseBean;
5
+import com.community.huiju.model.BillInvoice;
6
+
7
+/**
8
+ * <p>
9
+ * 缴费单 服务类
10
+ * </p>
11
+ *
12
+ * @author weiximei
13
+ * @since 2019-02-13
14
+ */
15
+public interface IBillInvoiceService extends IService<BillInvoice> {
16
+
17
+
18
+    /**
19
+     * 根据条件查询 缴费项目
20
+     * @param parameter
21
+     * @return
22
+     */
23
+    ResponseBean getBillList(String parameter);
24
+
25
+
26
+}

+ 18
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/IBillService.java Vedi File

@@ -0,0 +1,18 @@
1
+package com.community.huiju.service;
2
+
3
+import com.baomidou.mybatisplus.extension.service.IService;
4
+import com.community.commom.mode.ResponseBean;
5
+import com.community.huiju.model.Bill;
6
+
7
+/**
8
+ * <p>
9
+ * 缴费项表 服务类
10
+ * </p>
11
+ *
12
+ * @author weiximei
13
+ * @since 2019-02-13
14
+ */
15
+public interface IBillService extends IService<Bill> {
16
+
17
+
18
+}

+ 16
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/IBillStatementService.java Vedi File

@@ -0,0 +1,16 @@
1
+package com.community.huiju.service;
2
+
3
+import com.baomidou.mybatisplus.extension.service.IService;
4
+import com.community.huiju.model.BillStatement;
5
+
6
+/**
7
+ * <p>
8
+ * 账单流水表 服务类
9
+ * </p>
10
+ *
11
+ * @author weiximei
12
+ * @since 2019-02-13
13
+ */
14
+public interface IBillStatementService extends IService<BillStatement> {
15
+
16
+}

+ 92
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/BillInvoiceServiceImpl.java Vedi File

@@ -0,0 +1,92 @@
1
+package com.community.huiju.service.impl;
2
+
3
+import com.alibaba.fastjson.JSONObject;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
7
+import com.community.commom.mode.ResponseBean;
8
+import com.community.huiju.dao.BillMapper;
9
+import com.community.huiju.dao.BillStatementMapper;
10
+import com.community.huiju.model.BillInvoice;
11
+import com.community.huiju.dao.BillInvoiceMapper;
12
+import com.community.huiju.service.IBillInvoiceService;
13
+import com.google.common.collect.Maps;
14
+import org.springframework.beans.factory.annotation.Autowired;
15
+import org.springframework.stereotype.Service;
16
+
17
+import java.util.Map;
18
+
19
+/**
20
+ * <p>
21
+ * 缴费单 服务实现类
22
+ * </p>
23
+ *
24
+ * @author weiximei
25
+ * @since 2019-02-13
26
+ */
27
+@Service
28
+public class BillInvoiceServiceImpl extends ServiceImpl<BillInvoiceMapper, BillInvoice> implements IBillInvoiceService {
29
+
30
+    /** 缴费项表 **/
31
+    @Autowired
32
+    private BillMapper billMapper;
33
+
34
+    /** 缴费单 **/
35
+    @Autowired
36
+    private BillInvoiceMapper billInvoiceMapper;
37
+
38
+    /** 账单流水表 **/
39
+    @Autowired
40
+    private BillStatementMapper billStatementMapper;
41
+
42
+    @Override
43
+    public ResponseBean getBillList(String parameter) {
44
+        ResponseBean responseBean = new ResponseBean();
45
+        JSONObject jsonObject = JSONObject.parseObject(parameter);
46
+
47
+        Integer pageNum = jsonObject.getInteger("pageNum");
48
+        Integer pageSize = jsonObject.getInteger("pageSize");
49
+        // 缴费项ID
50
+        Integer billId = jsonObject.getInteger("billId");
51
+        // 期
52
+        String phase = jsonObject.getString("phase");
53
+        // 栋
54
+        String building = jsonObject.getString("building");
55
+        // 单元
56
+        String unit = jsonObject.getString("unit");
57
+        // 户号
58
+        String roomNo = jsonObject.getString("roomNo");
59
+        // 业主姓名
60
+        String ownerName = jsonObject.getString("ownerName");
61
+        // 缴费状态
62
+        Integer billStatus = jsonObject.getInteger("billStatus");
63
+        // 缴费人姓名
64
+        String payName = jsonObject.getString("payName");
65
+
66
+        Map<String, Object> map = Maps.newHashMap();
67
+        map.put("billId", billId);
68
+        map.put("phase", phase);
69
+        map.put("building", building);
70
+        map.put("unit", unit);
71
+        map.put("roomNo", roomNo);
72
+        map.put("ownerName", ownerName);
73
+        map.put("billStatus", billStatus);
74
+        map.put("payName", payName);
75
+
76
+
77
+        Page<BillInvoice> page = new Page<>();
78
+        page.setCurrent(pageNum);
79
+        page.setSize(pageSize);
80
+        IPage<BillInvoice> invoiceIPage = billInvoiceMapper.selectBillInvoice(page, map);
81
+
82
+        Map<String, Object> respMap = Maps.newHashMap();
83
+        respMap.put("pageNum", invoiceIPage.getCurrent());
84
+        respMap.put("pageSize", invoiceIPage.getSize());
85
+        respMap.put("total", invoiceIPage.getTotal());
86
+        respMap.put("list", invoiceIPage.getRecords());
87
+
88
+        responseBean.addSuccess(respMap);
89
+
90
+        return responseBean;
91
+    }
92
+}

+ 37
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/BillServiceImpl.java Vedi File

@@ -0,0 +1,37 @@
1
+package com.community.huiju.service.impl;
2
+
3
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
4
+import com.community.commom.mode.ResponseBean;
5
+import com.community.huiju.dao.BillInvoiceMapper;
6
+import com.community.huiju.dao.BillStatementMapper;
7
+import com.community.huiju.model.Bill;
8
+import com.community.huiju.dao.BillMapper;
9
+import com.community.huiju.service.IBillService;
10
+import org.springframework.beans.factory.annotation.Autowired;
11
+import org.springframework.stereotype.Service;
12
+
13
+/**
14
+ * <p>
15
+ * 缴费项表 服务实现类
16
+ * </p>
17
+ *
18
+ * @author weiximei
19
+ * @since 2019-02-13
20
+ */
21
+@Service
22
+public class BillServiceImpl extends ServiceImpl<BillMapper, Bill> implements IBillService {
23
+
24
+    /** 缴费项表 **/
25
+    @Autowired
26
+    private BillMapper billMapper;
27
+
28
+    /** 缴费单 **/
29
+    @Autowired
30
+    private BillInvoiceMapper billInvoiceMapper;
31
+
32
+    /** 账单流水表 **/
33
+    @Autowired
34
+    private BillStatementMapper billStatementMapper;
35
+
36
+
37
+}

+ 20
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/BillStatementServiceImpl.java Vedi File

@@ -0,0 +1,20 @@
1
+package com.community.huiju.service.impl;
2
+
3
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
4
+import com.community.huiju.model.BillStatement;
5
+import com.community.huiju.dao.BillStatementMapper;
6
+import com.community.huiju.service.IBillStatementService;
7
+import org.springframework.stereotype.Service;
8
+
9
+/**
10
+ * <p>
11
+ * 账单流水表 服务实现类
12
+ * </p>
13
+ *
14
+ * @author weiximei
15
+ * @since 2019-02-13
16
+ */
17
+@Service
18
+public class BillStatementServiceImpl extends ServiceImpl<BillStatementMapper, BillStatement> implements IBillStatementService {
19
+
20
+}

+ 44
- 0
CODE/smart-community/property-api/src/main/resources/mapper/BillInvoiceMapper.xml Vedi File

@@ -0,0 +1,44 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+<mapper namespace="com.community.huiju.dao.BillInvoiceMapper">
4
+
5
+    <select id="selectBillInvoice" resultType="com.community.huiju.model.BillInvoice">
6
+
7
+        SELECT
8
+            tpi.*, tboi.owner_name,
9
+            tboi.phase,
10
+            tboi.building,
11
+            tboi.unit,
12
+            tboi.room_no
13
+        FROM
14
+            tp_bill_invoice tpi
15
+        LEFT JOIN tp_building_owner_info tboi ON tpi.building_owner_info_id = tboi.id
16
+        <where>
17
+            <trim prefixOverrides="and | or">
18
+                <if test="map.phase != null and map.phase != ''">
19
+                    AND tboi.phase = #{map.phase}
20
+                </if>
21
+                <if test="map.building != null and map.building != ''">
22
+                    AND tboi.building = #{map.building}
23
+                </if>
24
+                <if test="map.unit != null and map.unit != ''">
25
+                    AND tboi.unit = #{map.unit}
26
+                </if>
27
+                <if test="map.roomNo != null and map.roomNo != ''">
28
+                    AND tboi.room_no = #{map.roomNo}
29
+                </if>
30
+                <if test="map.ownerName != null and map.ownerName != ''">
31
+                    AND tboi.owner_name = #{map.ownerName}
32
+                </if>
33
+                <if test="map.billStatus != null and map.billStatu != ''">
34
+                    AND tpi.bill_status = #{map.billStatus}
35
+                </if>
36
+                <if test="map.payName != null and map.payName != ''">
37
+                    AND tpi.pay_name = #{map.payName}
38
+                </if>
39
+            </trim>
40
+        </where>
41
+
42
+    </select>
43
+
44
+</mapper>

+ 5
- 0
CODE/smart-community/property-api/src/main/resources/mapper/BillMapper.xml Vedi File

@@ -0,0 +1,5 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+<mapper namespace="com.community.huiju.dao.BillMapper">
4
+
5
+</mapper>

+ 5
- 0
CODE/smart-community/property-api/src/main/resources/mapper/BillStatementMapper.xml Vedi File

@@ -0,0 +1,5 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+<mapper namespace="com.community.huiju.dao.BillStatementMapper">
4
+
5
+</mapper>

+ 1
- 0
VUECODE/smart-property-manage/src/permission.js Vedi File

@@ -18,6 +18,7 @@ router.beforeEach((to, from, next) => {
18 18
         store.dispatch('GetInfo').then(res => { // 拉取用户信息
19 19
           const rounterMap = []
20 20
           const permissionMap = res.data.permissionList
21
+          console.log(permissionMap)
21 22
           // 构造父路由
22 23
           constantRouterMap.forEach(router => {
23 24
             permissionMap.forEach(permission => {

+ 23
- 0
VUECODE/smart-property-manage/src/router/index.js Vedi File

@@ -205,6 +205,29 @@ export const constantRouterMap = [
205 205
         meta: { title: '编辑成员', icon: 'table' }
206 206
       }
207 207
     ]
208
+  },
209
+  {
210
+    path: '/bill',
211
+    component: Layout,
212
+    redirect: '/bill/index',
213
+    name: 'bill',
214
+    alwaysShow: true,
215
+    meta: { title: '收费', icon: 'zip' },
216
+    children: [
217
+      {
218
+        path: '/bill/management',
219
+        component: () => import('@/views/bill/index'),
220
+        name: 'bill-index',
221
+        meta: { title: '收费组管理', icon: 'table' }
222
+      },
223
+      {
224
+        path: '/bill/management/info',
225
+        component: () => import('@/views/bill/info/index'),
226
+        name: 'bill-info',
227
+        hidden: true,
228
+        meta: { title: '收费组详情', icon: 'table' }
229
+      }
230
+    ]
208 231
   }
209 232
 ]
210 233
 

+ 21
- 0
VUECODE/smart-property-manage/src/views/bill/index.vue Vedi File

@@ -0,0 +1,21 @@
1
+<template>
2
+  <div>
3
+    收费组详情
4
+    <el-button type="primary" @click="getInfo">查看详情</el-button>
5
+  </div>
6
+</template>
7
+
8
+<script>
9
+export default {
10
+  name: 'Index',
11
+  methods: {
12
+    getInfo() {
13
+      this.$router.push({ name: 'bill-info' })
14
+    }
15
+  }
16
+}
17
+</script>
18
+
19
+<style scoped>
20
+
21
+</style>

+ 175
- 0
VUECODE/smart-property-manage/src/views/bill/info/index.vue Vedi File

@@ -0,0 +1,175 @@
1
+<template>
2
+  <div id="root">
3
+    <div class="bill-info-title">
4
+      <div class="title-info">收费组名称: {{ billName }}</div>
5
+      <div class="title-info">收费组说明: {{ billExplain }}</div>
6
+      <div class="title-info">截止时间: {{ endDate }}</div>
7
+      <el-button type="info">修改</el-button>
8
+    </div>
9
+    <div class="bill-info-search">
10
+      <span style="font-weight: bold;">收费情况</span>
11
+      <el-form :model="formInline" inline="true" class="form-inline">
12
+        <el-form-item label="选择房子">
13
+          <el-select v-model="formInline.phase" placeholder="请选择期">
14
+            <el-option
15
+              v-for="item in options"
16
+              :key="item.value"
17
+              :label="item.label"
18
+              :value="item.value"/>
19
+          </el-select>
20
+          <el-select v-model="formInline.building" placeholder="请选择栋">
21
+            <el-option
22
+              v-for="item in options"
23
+              :key="item.value"
24
+              :label="item.label"
25
+              :value="item.value"/>
26
+          </el-select>
27
+          <el-select v-model="formInline.unit" placeholder="请选择单元">
28
+            <el-option
29
+              v-for="item in options"
30
+              :key="item.value"
31
+              :label="item.label"
32
+              :value="item.value"/>
33
+          </el-select>
34
+          <el-select v-model="formInline.roomNo" placeholder="请选择户">
35
+            <el-option
36
+              v-for="item in options"
37
+              :key="item.value"
38
+              :label="item.label"
39
+              :value="item.value"/>
40
+          </el-select>
41
+        </el-form-item>
42
+        <br>
43
+        <el-form-item label="业主姓名">
44
+          <el-input v-model="formInline.ownerName"/>
45
+        </el-form-item>
46
+        <el-form-item label="缴费状态">
47
+          <el-select v-model="formInline.billStatus" placeholder="活动区域">
48
+            <el-option label="请选择" value="shanghai"/>
49
+          </el-select>
50
+        </el-form-item>
51
+        <el-form-item label="缴费人姓名">
52
+          <el-input v-model="formInline.payName"/>
53
+        </el-form-item>
54
+        <el-form-item>
55
+          <el-button type="info">清空</el-button>
56
+          <el-button type="primary" @click="onSubmit">查询</el-button>
57
+        </el-form-item>
58
+      </el-form>
59
+    </div>
60
+    <div class="bill-info-operation">
61
+      <el-button type="primary">添加更多收费单</el-button>
62
+      <el-button type="danger">删除</el-button>
63
+      <el-button type="primary">设置为已线下缴费</el-button>
64
+      <el-button type="success">导出数据</el-button>
65
+      <div style="height: 40px; line-height: 40px; margin-left: 10px; color: #99a9bf;">未缴户主费用可以直接点击 收费金额数字 修改,已缴费业主无法修改,需要线下多退少补</div>
66
+    </div>
67
+    <el-table
68
+      ref="multipleTable"
69
+      :data="list"
70
+      style="width: 100%; margin-top: 20px;"
71
+      border="true"
72
+      @selection-change="handleSelectionChange">
73
+      <el-table-column
74
+        type="selection"
75
+        width="55"/>
76
+      <el-table-column
77
+        label="收费单号">
78
+        <template slot-scope="scope">{{ scope.row.date }}</template>
79
+      </el-table-column>
80
+      <el-table-column
81
+        prop="name"
82
+        label="房屋信息"/>
83
+      <el-table-column
84
+        prop="address"
85
+        label="业主姓名"
86
+        show-overflow-tooltip/>
87
+      <el-table-column
88
+        prop="name"
89
+        label="收费单说明"/>
90
+      <el-table-column
91
+        prop="name"
92
+        label="金额(元)"/>
93
+      <el-table-column
94
+        prop="name"
95
+        label="流水"/>
96
+      <el-table-column
97
+        prop="name"
98
+        label="缴费状态"/>
99
+      <el-table-column
100
+        prop="name"
101
+        label="缴费人"/>
102
+      <el-table-column
103
+        prop="name"
104
+        label="缴费时间"/>
105
+      <el-table-column
106
+        prop="name"
107
+        label="新建时间"/>
108
+      <el-table-column
109
+        prop="name"
110
+        label="新建人"/>
111
+      <el-table-column
112
+        prop="name"
113
+        label="修改时间"/>
114
+      <el-table-column
115
+        prop="name"
116
+        label="修改时间"/>
117
+    </el-table>
118
+  </div>
119
+</template>
120
+
121
+<script>
122
+export default {
123
+  name: 'Index',
124
+  data() {
125
+    return {
126
+      formInline: {
127
+        billId: '', // 缴费项目id
128
+        phase: '',
129
+        building: '',
130
+        unit: '',
131
+        roomNo: '',
132
+        ownerName: '',
133
+        billStatus: '',
134
+        payName: ''
135
+      },
136
+      billName: 'xxx收费项目',
137
+      billExplain: 'xxx收费说明',
138
+      endDate: 'xxx收费项截止时间',
139
+      list: [] // 数据列表
140
+    }
141
+  },
142
+  methods: {
143
+    handleSelectionChange(val) {
144
+      console.log(val)
145
+    }
146
+  }
147
+}
148
+</script>
149
+
150
+<style scoped>
151
+.bill-info-title {
152
+  display: flex;
153
+  justify-content: space-between;
154
+  margin-left: 20px;
155
+  margin-right: 20px;
156
+  margin-top: 20px;
157
+}
158
+.title-info {
159
+  height: 40px;
160
+  line-height: 40px;
161
+}
162
+.bill-info-search {
163
+  margin-left: 20px;
164
+  margin-right: 20px;
165
+  margin-top: 20px;
166
+}
167
+.form-inline {
168
+  margin-top: 10px;
169
+}
170
+.bill-info-operation {
171
+  display: flex;
172
+  flex-wrap: wrap;
173
+  margin-left: 20px;
174
+}
175
+</style>