lamphua vor 1 Jahr
Ursprung
Commit
3dee8b5d25
39 geänderte Dateien mit 4660 neuen und 425 gelöschten Zeilen
  1. 104
    0
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcBudgetController.java
  2. 2
    1
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java
  3. 2
    2
      oa-back/ruoyi-generator/src/main/resources/generator.yml
  4. 207
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBudget.java
  5. 136
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBudgetCar.java
  6. 94
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBudgetDevice.java
  7. 108
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBudgetSettle.java
  8. 122
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBudgetStaff.java
  9. 61
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcBudgetCarMapper.java
  10. 61
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcBudgetDeviceMapper.java
  11. 61
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcBudgetMapper.java
  12. 61
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcBudgetSettleMapper.java
  13. 61
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcBudgetStaffMapper.java
  14. 61
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcBudgetCarService.java
  15. 61
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcBudgetDeviceService.java
  16. 61
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcBudgetService.java
  17. 61
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcBudgetSettleService.java
  18. 61
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcBudgetStaffService.java
  19. 93
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcBudgetCarServiceImpl.java
  20. 93
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcBudgetDeviceServiceImpl.java
  21. 93
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcBudgetServiceImpl.java
  22. 93
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcBudgetSettleServiceImpl.java
  23. 93
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcBudgetStaffServiceImpl.java
  24. 88
    0
      oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcBudgetCarMapper.xml
  25. 73
    0
      oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcBudgetDeviceMapper.xml
  26. 117
    0
      oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcBudgetMapper.xml
  27. 78
    0
      oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcBudgetSettleMapper.xml
  28. 83
    0
      oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcBudgetStaffMapper.xml
  29. 519
    422
      oa-back/sql/sql.sql
  30. 44
    0
      oa-ui/src/api/oa/budget/budget.js
  31. 44
    0
      oa-ui/src/api/oa/budget/budgetCar.js
  32. 44
    0
      oa-ui/src/api/oa/budget/budgetDevice.js
  33. 44
    0
      oa-ui/src/api/oa/budget/budgetSettle.js
  34. 44
    0
      oa-ui/src/api/oa/budget/budgetStaff.js
  35. 329
    0
      oa-ui/src/views/oa/budget/car.vue
  36. 287
    0
      oa-ui/src/views/oa/budget/device.vue
  37. 400
    0
      oa-ui/src/views/oa/budget/index.vue
  38. 301
    0
      oa-ui/src/views/oa/budget/settle.vue
  39. 315
    0
      oa-ui/src/views/oa/budget/staff.vue

+ 104
- 0
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcBudgetController.java Datei anzeigen

@@ -0,0 +1,104 @@
1
+package com.ruoyi.web.controller.oa;
2
+
3
+import java.util.List;
4
+import javax.servlet.http.HttpServletResponse;
5
+import org.springframework.security.access.prepost.PreAuthorize;
6
+import org.springframework.beans.factory.annotation.Autowired;
7
+import org.springframework.web.bind.annotation.GetMapping;
8
+import org.springframework.web.bind.annotation.PostMapping;
9
+import org.springframework.web.bind.annotation.PutMapping;
10
+import org.springframework.web.bind.annotation.DeleteMapping;
11
+import org.springframework.web.bind.annotation.PathVariable;
12
+import org.springframework.web.bind.annotation.RequestBody;
13
+import org.springframework.web.bind.annotation.RequestMapping;
14
+import org.springframework.web.bind.annotation.RestController;
15
+import com.ruoyi.common.annotation.Log;
16
+import com.ruoyi.common.core.controller.BaseController;
17
+import com.ruoyi.common.core.domain.AjaxResult;
18
+import com.ruoyi.common.enums.BusinessType;
19
+import com.ruoyi.oa.domain.CmcBudget;
20
+import com.ruoyi.oa.service.ICmcBudgetService;
21
+import com.ruoyi.common.utils.poi.ExcelUtil;
22
+import com.ruoyi.common.core.page.TableDataInfo;
23
+
24
+/**
25
+ * cmc预算管理Controller
26
+ * 
27
+ * @author cmc
28
+ * @date 2024-03-22
29
+ */
30
+@RestController
31
+@RequestMapping("/oa/budget")
32
+public class CmcBudgetController extends BaseController
33
+{
34
+    @Autowired
35
+    private ICmcBudgetService cmcBudgetService;
36
+
37
+    /**
38
+     * 查询cmc预算管理列表
39
+     */
40
+    @PreAuthorize("@ss.hasPermi('oa:budget:list')")
41
+    @GetMapping("/list")
42
+    public TableDataInfo list(CmcBudget cmcBudget)
43
+    {
44
+        startPage();
45
+        List<CmcBudget> list = cmcBudgetService.selectCmcBudgetList(cmcBudget);
46
+        return getDataTable(list);
47
+    }
48
+
49
+    /**
50
+     * 导出cmc预算管理列表
51
+     */
52
+    @PreAuthorize("@ss.hasPermi('oa:budget:export')")
53
+    @Log(title = "cmc预算管理", businessType = BusinessType.EXPORT)
54
+    @PostMapping("/export")
55
+    public void export(HttpServletResponse response, CmcBudget cmcBudget)
56
+    {
57
+        List<CmcBudget> list = cmcBudgetService.selectCmcBudgetList(cmcBudget);
58
+        ExcelUtil<CmcBudget> util = new ExcelUtil<CmcBudget>(CmcBudget.class);
59
+        util.exportExcel(response, list, "cmc预算管理数据");
60
+    }
61
+
62
+    /**
63
+     * 获取cmc预算管理详细信息
64
+     */
65
+    @PreAuthorize("@ss.hasPermi('oa:budget:query')")
66
+    @GetMapping(value = "/{budgetId}")
67
+    public AjaxResult getInfo(@PathVariable("budgetId") String budgetId)
68
+    {
69
+        return success(cmcBudgetService.selectCmcBudgetByBudgetId(budgetId));
70
+    }
71
+
72
+    /**
73
+     * 新增cmc预算管理
74
+     */
75
+    @PreAuthorize("@ss.hasPermi('oa:budget:add')")
76
+    @Log(title = "cmc预算管理", businessType = BusinessType.INSERT)
77
+    @PostMapping
78
+    public AjaxResult add(@RequestBody CmcBudget cmcBudget)
79
+    {
80
+        return toAjax(cmcBudgetService.insertCmcBudget(cmcBudget));
81
+    }
82
+
83
+    /**
84
+     * 修改cmc预算管理
85
+     */
86
+    @PreAuthorize("@ss.hasPermi('oa:budget:edit')")
87
+    @Log(title = "cmc预算管理", businessType = BusinessType.UPDATE)
88
+    @PutMapping
89
+    public AjaxResult edit(@RequestBody CmcBudget cmcBudget)
90
+    {
91
+        return toAjax(cmcBudgetService.updateCmcBudget(cmcBudget));
92
+    }
93
+
94
+    /**
95
+     * 删除cmc预算管理
96
+     */
97
+    @PreAuthorize("@ss.hasPermi('oa:budget:remove')")
98
+    @Log(title = "cmc预算管理", businessType = BusinessType.DELETE)
99
+	@DeleteMapping("/{budgetIds}")
100
+    public AjaxResult remove(@PathVariable String[] budgetIds)
101
+    {
102
+        return toAjax(cmcBudgetService.deleteCmcBudgetByBudgetIds(budgetIds));
103
+    }
104
+}

+ 2
- 1
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java Datei anzeigen

@@ -145,7 +145,8 @@ public class SysUserController extends BaseController
145 145
         }
146 146
         user.setCreateBy(getUsername());
147 147
         user.setPassword(SecurityUtils.encryptPassword(user.getPassword()));
148
-        user.setAge(DateUtils.getAgeByBirth(user.getBirthday()));
148
+        if (user.getBirthday() != null)
149
+            user.setAge(DateUtils.getAgeByBirth(user.getBirthday()));
149 150
         return toAjax(userService.insertUser(user));
150 151
     }
151 152
 

+ 2
- 2
oa-back/ruoyi-generator/src/main/resources/generator.yml Datei anzeigen

@@ -1,9 +1,9 @@
1 1
 # 代码生成
2 2
 gen:
3 3
   # 作者
4
-  author: ruoyi
4
+  author: cmc
5 5
   # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool
6
-  packageName: com.ruoyi.system
6
+  packageName: com.ruoyi.oa
7 7
   # 自动去除表前缀,默认是false
8 8
   autoRemovePre: false
9 9
   # 表前缀(生成类名不会包含表前缀,多个用逗号分隔)

+ 207
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBudget.java Datei anzeigen

@@ -0,0 +1,207 @@
1
+package com.ruoyi.oa.domain;
2
+
3
+import java.math.BigDecimal;
4
+import org.apache.commons.lang3.builder.ToStringBuilder;
5
+import org.apache.commons.lang3.builder.ToStringStyle;
6
+import com.ruoyi.common.annotation.Excel;
7
+import com.ruoyi.common.core.domain.BaseEntity;
8
+
9
+/**
10
+ * cmc预算管理对象 cmc_budget
11
+ * 
12
+ * @author cmc
13
+ * @date 2024-03-22
14
+ */
15
+public class CmcBudget extends BaseEntity
16
+{
17
+    private static final long serialVersionUID = 1L;
18
+
19
+    /** 预算id */
20
+    private String budgetId;
21
+
22
+    /** 项目id */
23
+    @Excel(name = "项目id")
24
+    private String projectId;
25
+
26
+    /** 人员成本 */
27
+    @Excel(name = "人员成本")
28
+    private BigDecimal staffCost;
29
+
30
+    /** 车辆成本 */
31
+    @Excel(name = "车辆成本")
32
+    private BigDecimal carCost;
33
+
34
+    /** 设备成本 */
35
+    @Excel(name = "设备成本")
36
+    private BigDecimal deviceCost;
37
+
38
+    /** 预结算额 */
39
+    @Excel(name = "预结算额")
40
+    private BigDecimal budgetSettle;
41
+
42
+    /** 外协费用 */
43
+    @Excel(name = "外协费用")
44
+    private BigDecimal outExpense;
45
+
46
+    /** 商务费用 */
47
+    @Excel(name = "商务费用")
48
+    private BigDecimal businessExpense;
49
+
50
+    /** 车船租赁 */
51
+    @Excel(name = "车船租赁")
52
+    private BigDecimal rentExpense;
53
+
54
+    /** 其他费用 */
55
+    @Excel(name = "其他费用")
56
+    private BigDecimal otherExpense;
57
+
58
+    /** 预算总额 */
59
+    @Excel(name = "预算总额")
60
+    private BigDecimal totalExpense;
61
+
62
+    /** 编制人 */
63
+    @Excel(name = "编制人")
64
+    private Long compiler;
65
+
66
+    /** 审核人 */
67
+    @Excel(name = "审核人")
68
+    private Long auditor;
69
+
70
+    public void setBudgetId(String budgetId) 
71
+    {
72
+        this.budgetId = budgetId;
73
+    }
74
+
75
+    public String getBudgetId() 
76
+    {
77
+        return budgetId;
78
+    }
79
+    public void setProjectId(String projectId) 
80
+    {
81
+        this.projectId = projectId;
82
+    }
83
+
84
+    public String getProjectId() 
85
+    {
86
+        return projectId;
87
+    }
88
+    public void setStaffCost(BigDecimal staffCost) 
89
+    {
90
+        this.staffCost = staffCost;
91
+    }
92
+
93
+    public BigDecimal getStaffCost() 
94
+    {
95
+        return staffCost;
96
+    }
97
+    public void setCarCost(BigDecimal carCost) 
98
+    {
99
+        this.carCost = carCost;
100
+    }
101
+
102
+    public BigDecimal getCarCost() 
103
+    {
104
+        return carCost;
105
+    }
106
+    public void setDeviceCost(BigDecimal deviceCost) 
107
+    {
108
+        this.deviceCost = deviceCost;
109
+    }
110
+
111
+    public BigDecimal getDeviceCost() 
112
+    {
113
+        return deviceCost;
114
+    }
115
+    public void setBudgetSettle(BigDecimal budgetSettle) 
116
+    {
117
+        this.budgetSettle = budgetSettle;
118
+    }
119
+
120
+    public BigDecimal getBudgetSettle() 
121
+    {
122
+        return budgetSettle;
123
+    }
124
+    public void setOutExpense(BigDecimal outExpense) 
125
+    {
126
+        this.outExpense = outExpense;
127
+    }
128
+
129
+    public BigDecimal getOutExpense() 
130
+    {
131
+        return outExpense;
132
+    }
133
+    public void setBusinessExpense(BigDecimal businessExpense) 
134
+    {
135
+        this.businessExpense = businessExpense;
136
+    }
137
+
138
+    public BigDecimal getBusinessExpense() 
139
+    {
140
+        return businessExpense;
141
+    }
142
+    public void setRentExpense(BigDecimal rentExpense) 
143
+    {
144
+        this.rentExpense = rentExpense;
145
+    }
146
+
147
+    public BigDecimal getRentExpense() 
148
+    {
149
+        return rentExpense;
150
+    }
151
+    public void setOtherExpense(BigDecimal otherExpense) 
152
+    {
153
+        this.otherExpense = otherExpense;
154
+    }
155
+
156
+    public BigDecimal getOtherExpense() 
157
+    {
158
+        return otherExpense;
159
+    }
160
+    public void setTotalExpense(BigDecimal totalExpense) 
161
+    {
162
+        this.totalExpense = totalExpense;
163
+    }
164
+
165
+    public BigDecimal getTotalExpense() 
166
+    {
167
+        return totalExpense;
168
+    }
169
+    public void setCompiler(Long compiler) 
170
+    {
171
+        this.compiler = compiler;
172
+    }
173
+
174
+    public Long getCompiler() 
175
+    {
176
+        return compiler;
177
+    }
178
+    public void setAuditor(Long auditor) 
179
+    {
180
+        this.auditor = auditor;
181
+    }
182
+
183
+    public Long getAuditor() 
184
+    {
185
+        return auditor;
186
+    }
187
+
188
+    @Override
189
+    public String toString() {
190
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
191
+            .append("budgetId", getBudgetId())
192
+            .append("projectId", getProjectId())
193
+            .append("staffCost", getStaffCost())
194
+            .append("carCost", getCarCost())
195
+            .append("deviceCost", getDeviceCost())
196
+            .append("budgetSettle", getBudgetSettle())
197
+            .append("outExpense", getOutExpense())
198
+            .append("businessExpense", getBusinessExpense())
199
+            .append("rentExpense", getRentExpense())
200
+            .append("otherExpense", getOtherExpense())
201
+            .append("totalExpense", getTotalExpense())
202
+            .append("compiler", getCompiler())
203
+            .append("auditor", getAuditor())
204
+            .append("createTime", getCreateTime())
205
+            .toString();
206
+    }
207
+}

+ 136
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBudgetCar.java Datei anzeigen

@@ -0,0 +1,136 @@
1
+package com.ruoyi.oa.domain;
2
+
3
+import java.math.BigDecimal;
4
+import org.apache.commons.lang3.builder.ToStringBuilder;
5
+import org.apache.commons.lang3.builder.ToStringStyle;
6
+import com.ruoyi.common.annotation.Excel;
7
+import com.ruoyi.common.core.domain.BaseEntity;
8
+
9
+/**
10
+ * cmc车辆预算对象 cmc_budget_car
11
+ * 
12
+ * @author cmc
13
+ * @date 2024-03-22
14
+ */
15
+public class CmcBudgetCar extends BaseEntity
16
+{
17
+    private static final long serialVersionUID = 1L;
18
+
19
+    /** 车辆预算id */
20
+    private String budgetCarId;
21
+
22
+    /** 预算id */
23
+    @Excel(name = "预算id")
24
+    private String budgetId;
25
+
26
+    /** 车辆id */
27
+    @Excel(name = "车辆id")
28
+    private Integer carId;
29
+
30
+    /** 天数 */
31
+    @Excel(name = "天数")
32
+    private Integer days;
33
+
34
+    /** 折旧成本 */
35
+    @Excel(name = "折旧成本")
36
+    private BigDecimal depreciation;
37
+
38
+    /** 距离 */
39
+    @Excel(name = "距离")
40
+    private Long distance;
41
+
42
+    /** 油耗 */
43
+    @Excel(name = "油耗")
44
+    private BigDecimal mileage;
45
+
46
+    /** 使用成本 */
47
+    @Excel(name = "使用成本")
48
+    private BigDecimal expense;
49
+
50
+    public void setBudgetCarId(String budgetCarId) 
51
+    {
52
+        this.budgetCarId = budgetCarId;
53
+    }
54
+
55
+    public String getBudgetCarId() 
56
+    {
57
+        return budgetCarId;
58
+    }
59
+    public void setBudgetId(String budgetId) 
60
+    {
61
+        this.budgetId = budgetId;
62
+    }
63
+
64
+    public String getBudgetId() 
65
+    {
66
+        return budgetId;
67
+    }
68
+    public void setCarId(Integer carId) 
69
+    {
70
+        this.carId = carId;
71
+    }
72
+
73
+    public Integer getCarId() 
74
+    {
75
+        return carId;
76
+    }
77
+    public void setDays(Integer days) 
78
+    {
79
+        this.days = days;
80
+    }
81
+
82
+    public Integer getDays() 
83
+    {
84
+        return days;
85
+    }
86
+    public void setDepreciation(BigDecimal depreciation) 
87
+    {
88
+        this.depreciation = depreciation;
89
+    }
90
+
91
+    public BigDecimal getDepreciation() 
92
+    {
93
+        return depreciation;
94
+    }
95
+    public void setDistance(Long distance) 
96
+    {
97
+        this.distance = distance;
98
+    }
99
+
100
+    public Long getDistance() 
101
+    {
102
+        return distance;
103
+    }
104
+    public void setMileage(BigDecimal mileage) 
105
+    {
106
+        this.mileage = mileage;
107
+    }
108
+
109
+    public BigDecimal getMileage() 
110
+    {
111
+        return mileage;
112
+    }
113
+    public void setExpense(BigDecimal expense) 
114
+    {
115
+        this.expense = expense;
116
+    }
117
+
118
+    public BigDecimal getExpense() 
119
+    {
120
+        return expense;
121
+    }
122
+
123
+    @Override
124
+    public String toString() {
125
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
126
+            .append("budgetCarId", getBudgetCarId())
127
+            .append("budgetId", getBudgetId())
128
+            .append("carId", getCarId())
129
+            .append("days", getDays())
130
+            .append("depreciation", getDepreciation())
131
+            .append("distance", getDistance())
132
+            .append("mileage", getMileage())
133
+            .append("expense", getExpense())
134
+            .toString();
135
+    }
136
+}

+ 94
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBudgetDevice.java Datei anzeigen

@@ -0,0 +1,94 @@
1
+package com.ruoyi.oa.domain;
2
+
3
+import java.math.BigDecimal;
4
+import org.apache.commons.lang3.builder.ToStringBuilder;
5
+import org.apache.commons.lang3.builder.ToStringStyle;
6
+import com.ruoyi.common.annotation.Excel;
7
+import com.ruoyi.common.core.domain.BaseEntity;
8
+
9
+/**
10
+ * cmc设备预算对象 cmc_budget_device
11
+ * 
12
+ * @author cmc
13
+ * @date 2024-03-22
14
+ */
15
+public class CmcBudgetDevice extends BaseEntity
16
+{
17
+    private static final long serialVersionUID = 1L;
18
+
19
+    /** 设备预算id */
20
+    private String budgetDeviceId;
21
+
22
+    /** 预算id */
23
+    @Excel(name = "预算id")
24
+    private String budgetId;
25
+
26
+    /** 设备id */
27
+    @Excel(name = "设备id")
28
+    private Integer deviceId;
29
+
30
+    /** 天数 */
31
+    @Excel(name = "天数")
32
+    private Integer days;
33
+
34
+    /** 折旧成本 */
35
+    @Excel(name = "折旧成本")
36
+    private BigDecimal depreciation;
37
+
38
+    public void setBudgetDeviceId(String budgetDeviceId) 
39
+    {
40
+        this.budgetDeviceId = budgetDeviceId;
41
+    }
42
+
43
+    public String getBudgetDeviceId() 
44
+    {
45
+        return budgetDeviceId;
46
+    }
47
+    public void setBudgetId(String budgetId) 
48
+    {
49
+        this.budgetId = budgetId;
50
+    }
51
+
52
+    public String getBudgetId() 
53
+    {
54
+        return budgetId;
55
+    }
56
+    public void setDeviceId(Integer deviceId) 
57
+    {
58
+        this.deviceId = deviceId;
59
+    }
60
+
61
+    public Integer getDeviceId() 
62
+    {
63
+        return deviceId;
64
+    }
65
+    public void setDays(Integer days) 
66
+    {
67
+        this.days = days;
68
+    }
69
+
70
+    public Integer getDays() 
71
+    {
72
+        return days;
73
+    }
74
+    public void setDepreciation(BigDecimal depreciation) 
75
+    {
76
+        this.depreciation = depreciation;
77
+    }
78
+
79
+    public BigDecimal getDepreciation() 
80
+    {
81
+        return depreciation;
82
+    }
83
+
84
+    @Override
85
+    public String toString() {
86
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
87
+            .append("budgetDeviceId", getBudgetDeviceId())
88
+            .append("budgetId", getBudgetId())
89
+            .append("deviceId", getDeviceId())
90
+            .append("days", getDays())
91
+            .append("depreciation", getDepreciation())
92
+            .toString();
93
+    }
94
+}

+ 108
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBudgetSettle.java Datei anzeigen

@@ -0,0 +1,108 @@
1
+package com.ruoyi.oa.domain;
2
+
3
+import java.math.BigDecimal;
4
+import org.apache.commons.lang3.builder.ToStringBuilder;
5
+import org.apache.commons.lang3.builder.ToStringStyle;
6
+import com.ruoyi.common.annotation.Excel;
7
+import com.ruoyi.common.core.domain.BaseEntity;
8
+
9
+/**
10
+ * cmc预结算对象 cmc_budget_settle
11
+ * 
12
+ * @author cmc
13
+ * @date 2024-03-22
14
+ */
15
+public class CmcBudgetSettle extends BaseEntity
16
+{
17
+    private static final long serialVersionUID = 1L;
18
+
19
+    /** 预结算id */
20
+    private String budgetSettleId;
21
+
22
+    /** 预算id */
23
+    @Excel(name = "预算id")
24
+    private String budgetId;
25
+
26
+    /** 结算单价id */
27
+    @Excel(name = "结算单价id")
28
+    private Integer priceId;
29
+
30
+    /** 工作量 */
31
+    @Excel(name = "工作量")
32
+    private Long workload;
33
+
34
+    /** 系数 */
35
+    @Excel(name = "系数")
36
+    private Long coefficient;
37
+
38
+    /** 结算金额 */
39
+    @Excel(name = "结算金额")
40
+    private BigDecimal settle;
41
+
42
+    public void setBudgetSettleId(String budgetSettleId) 
43
+    {
44
+        this.budgetSettleId = budgetSettleId;
45
+    }
46
+
47
+    public String getBudgetSettleId() 
48
+    {
49
+        return budgetSettleId;
50
+    }
51
+    public void setBudgetId(String budgetId) 
52
+    {
53
+        this.budgetId = budgetId;
54
+    }
55
+
56
+    public String getBudgetId() 
57
+    {
58
+        return budgetId;
59
+    }
60
+    public void setPriceId(Integer priceId) 
61
+    {
62
+        this.priceId = priceId;
63
+    }
64
+
65
+    public Integer getPriceId() 
66
+    {
67
+        return priceId;
68
+    }
69
+    public void setWorkload(Long workload) 
70
+    {
71
+        this.workload = workload;
72
+    }
73
+
74
+    public Long getWorkload() 
75
+    {
76
+        return workload;
77
+    }
78
+    public void setCoefficient(Long coefficient) 
79
+    {
80
+        this.coefficient = coefficient;
81
+    }
82
+
83
+    public Long getCoefficient() 
84
+    {
85
+        return coefficient;
86
+    }
87
+    public void setSettle(BigDecimal settle) 
88
+    {
89
+        this.settle = settle;
90
+    }
91
+
92
+    public BigDecimal getSettle() 
93
+    {
94
+        return settle;
95
+    }
96
+
97
+    @Override
98
+    public String toString() {
99
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
100
+            .append("budgetSettleId", getBudgetSettleId())
101
+            .append("budgetId", getBudgetId())
102
+            .append("priceId", getPriceId())
103
+            .append("workload", getWorkload())
104
+            .append("coefficient", getCoefficient())
105
+            .append("settle", getSettle())
106
+            .toString();
107
+    }
108
+}

+ 122
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBudgetStaff.java Datei anzeigen

@@ -0,0 +1,122 @@
1
+package com.ruoyi.oa.domain;
2
+
3
+import java.math.BigDecimal;
4
+import org.apache.commons.lang3.builder.ToStringBuilder;
5
+import org.apache.commons.lang3.builder.ToStringStyle;
6
+import com.ruoyi.common.annotation.Excel;
7
+import com.ruoyi.common.core.domain.BaseEntity;
8
+
9
+/**
10
+ * cmc人员预算对象 cmc_budget_staff
11
+ * 
12
+ * @author cmc
13
+ * @date 2024-03-22
14
+ */
15
+public class CmcBudgetStaff extends BaseEntity
16
+{
17
+    private static final long serialVersionUID = 1L;
18
+
19
+    /** 人员预算id */
20
+    private String budgetStaffId;
21
+
22
+    /** 预算id */
23
+    @Excel(name = "预算id")
24
+    private String budgetId;
25
+
26
+    /** 人员id */
27
+    @Excel(name = "人员id")
28
+    private Long userId;
29
+
30
+    /** 天数 */
31
+    @Excel(name = "天数")
32
+    private Integer days;
33
+
34
+    /** 固定成本 */
35
+    @Excel(name = "固定成本")
36
+    private BigDecimal fixCost;
37
+
38
+    /** 进出场单价 */
39
+    @Excel(name = "进出场单价")
40
+    private BigDecimal inOutPrice;
41
+
42
+    /** 进出场费用 */
43
+    @Excel(name = "进出场费用")
44
+    private BigDecimal inOutExpense;
45
+
46
+    public void setBudgetStaffId(String budgetStaffId) 
47
+    {
48
+        this.budgetStaffId = budgetStaffId;
49
+    }
50
+
51
+    public String getBudgetStaffId() 
52
+    {
53
+        return budgetStaffId;
54
+    }
55
+    public void setBudgetId(String budgetId) 
56
+    {
57
+        this.budgetId = budgetId;
58
+    }
59
+
60
+    public String getBudgetId() 
61
+    {
62
+        return budgetId;
63
+    }
64
+    public void setUserId(Long userId) 
65
+    {
66
+        this.userId = userId;
67
+    }
68
+
69
+    public Long getUserId() 
70
+    {
71
+        return userId;
72
+    }
73
+    public void setDays(Integer days) 
74
+    {
75
+        this.days = days;
76
+    }
77
+
78
+    public Integer getDays() 
79
+    {
80
+        return days;
81
+    }
82
+    public void setFixCost(BigDecimal fixCost) 
83
+    {
84
+        this.fixCost = fixCost;
85
+    }
86
+
87
+    public BigDecimal getFixCost() 
88
+    {
89
+        return fixCost;
90
+    }
91
+    public void setInOutPrice(BigDecimal inOutPrice) 
92
+    {
93
+        this.inOutPrice = inOutPrice;
94
+    }
95
+
96
+    public BigDecimal getInOutPrice() 
97
+    {
98
+        return inOutPrice;
99
+    }
100
+    public void setInOutExpense(BigDecimal inOutExpense) 
101
+    {
102
+        this.inOutExpense = inOutExpense;
103
+    }
104
+
105
+    public BigDecimal getInOutExpense() 
106
+    {
107
+        return inOutExpense;
108
+    }
109
+
110
+    @Override
111
+    public String toString() {
112
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
113
+            .append("budgetStaffId", getBudgetStaffId())
114
+            .append("budgetId", getBudgetId())
115
+            .append("userId", getUserId())
116
+            .append("days", getDays())
117
+            .append("fixCost", getFixCost())
118
+            .append("inOutPrice", getInOutPrice())
119
+            .append("inOutExpense", getInOutExpense())
120
+            .toString();
121
+    }
122
+}

+ 61
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcBudgetCarMapper.java Datei anzeigen

@@ -0,0 +1,61 @@
1
+package com.ruoyi.oa.mapper;
2
+
3
+import java.util.List;
4
+import com.ruoyi.oa.domain.CmcBudgetCar;
5
+
6
+/**
7
+ * cmc车辆预算Mapper接口
8
+ * 
9
+ * @author cmc
10
+ * @date 2024-03-22
11
+ */
12
+public interface CmcBudgetCarMapper 
13
+{
14
+    /**
15
+     * 查询cmc车辆预算
16
+     * 
17
+     * @param budgetCarId cmc车辆预算主键
18
+     * @return cmc车辆预算
19
+     */
20
+    public CmcBudgetCar selectCmcBudgetCarByBudgetCarId(String budgetCarId);
21
+
22
+    /**
23
+     * 查询cmc车辆预算列表
24
+     * 
25
+     * @param cmcBudgetCar cmc车辆预算
26
+     * @return cmc车辆预算集合
27
+     */
28
+    public List<CmcBudgetCar> selectCmcBudgetCarList(CmcBudgetCar cmcBudgetCar);
29
+
30
+    /**
31
+     * 新增cmc车辆预算
32
+     * 
33
+     * @param cmcBudgetCar cmc车辆预算
34
+     * @return 结果
35
+     */
36
+    public int insertCmcBudgetCar(CmcBudgetCar cmcBudgetCar);
37
+
38
+    /**
39
+     * 修改cmc车辆预算
40
+     * 
41
+     * @param cmcBudgetCar cmc车辆预算
42
+     * @return 结果
43
+     */
44
+    public int updateCmcBudgetCar(CmcBudgetCar cmcBudgetCar);
45
+
46
+    /**
47
+     * 删除cmc车辆预算
48
+     * 
49
+     * @param budgetCarId cmc车辆预算主键
50
+     * @return 结果
51
+     */
52
+    public int deleteCmcBudgetCarByBudgetCarId(String budgetCarId);
53
+
54
+    /**
55
+     * 批量删除cmc车辆预算
56
+     * 
57
+     * @param budgetCarIds 需要删除的数据主键集合
58
+     * @return 结果
59
+     */
60
+    public int deleteCmcBudgetCarByBudgetCarIds(String[] budgetCarIds);
61
+}

+ 61
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcBudgetDeviceMapper.java Datei anzeigen

@@ -0,0 +1,61 @@
1
+package com.ruoyi.oa.mapper;
2
+
3
+import java.util.List;
4
+import com.ruoyi.oa.domain.CmcBudgetDevice;
5
+
6
+/**
7
+ * cmc设备预算Mapper接口
8
+ * 
9
+ * @author cmc
10
+ * @date 2024-03-22
11
+ */
12
+public interface CmcBudgetDeviceMapper 
13
+{
14
+    /**
15
+     * 查询cmc设备预算
16
+     * 
17
+     * @param budgetDeviceId cmc设备预算主键
18
+     * @return cmc设备预算
19
+     */
20
+    public CmcBudgetDevice selectCmcBudgetDeviceByBudgetDeviceId(String budgetDeviceId);
21
+
22
+    /**
23
+     * 查询cmc设备预算列表
24
+     * 
25
+     * @param cmcBudgetDevice cmc设备预算
26
+     * @return cmc设备预算集合
27
+     */
28
+    public List<CmcBudgetDevice> selectCmcBudgetDeviceList(CmcBudgetDevice cmcBudgetDevice);
29
+
30
+    /**
31
+     * 新增cmc设备预算
32
+     * 
33
+     * @param cmcBudgetDevice cmc设备预算
34
+     * @return 结果
35
+     */
36
+    public int insertCmcBudgetDevice(CmcBudgetDevice cmcBudgetDevice);
37
+
38
+    /**
39
+     * 修改cmc设备预算
40
+     * 
41
+     * @param cmcBudgetDevice cmc设备预算
42
+     * @return 结果
43
+     */
44
+    public int updateCmcBudgetDevice(CmcBudgetDevice cmcBudgetDevice);
45
+
46
+    /**
47
+     * 删除cmc设备预算
48
+     * 
49
+     * @param budgetDeviceId cmc设备预算主键
50
+     * @return 结果
51
+     */
52
+    public int deleteCmcBudgetDeviceByBudgetDeviceId(String budgetDeviceId);
53
+
54
+    /**
55
+     * 批量删除cmc设备预算
56
+     * 
57
+     * @param budgetDeviceIds 需要删除的数据主键集合
58
+     * @return 结果
59
+     */
60
+    public int deleteCmcBudgetDeviceByBudgetDeviceIds(String[] budgetDeviceIds);
61
+}

+ 61
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcBudgetMapper.java Datei anzeigen

@@ -0,0 +1,61 @@
1
+package com.ruoyi.oa.mapper;
2
+
3
+import java.util.List;
4
+import com.ruoyi.oa.domain.CmcBudget;
5
+
6
+/**
7
+ * cmc预算管理Mapper接口
8
+ * 
9
+ * @author cmc
10
+ * @date 2024-03-22
11
+ */
12
+public interface CmcBudgetMapper 
13
+{
14
+    /**
15
+     * 查询cmc预算管理
16
+     * 
17
+     * @param budgetId cmc预算管理主键
18
+     * @return cmc预算管理
19
+     */
20
+    public CmcBudget selectCmcBudgetByBudgetId(String budgetId);
21
+
22
+    /**
23
+     * 查询cmc预算管理列表
24
+     * 
25
+     * @param cmcBudget cmc预算管理
26
+     * @return cmc预算管理集合
27
+     */
28
+    public List<CmcBudget> selectCmcBudgetList(CmcBudget cmcBudget);
29
+
30
+    /**
31
+     * 新增cmc预算管理
32
+     * 
33
+     * @param cmcBudget cmc预算管理
34
+     * @return 结果
35
+     */
36
+    public int insertCmcBudget(CmcBudget cmcBudget);
37
+
38
+    /**
39
+     * 修改cmc预算管理
40
+     * 
41
+     * @param cmcBudget cmc预算管理
42
+     * @return 结果
43
+     */
44
+    public int updateCmcBudget(CmcBudget cmcBudget);
45
+
46
+    /**
47
+     * 删除cmc预算管理
48
+     * 
49
+     * @param budgetId cmc预算管理主键
50
+     * @return 结果
51
+     */
52
+    public int deleteCmcBudgetByBudgetId(String budgetId);
53
+
54
+    /**
55
+     * 批量删除cmc预算管理
56
+     * 
57
+     * @param budgetIds 需要删除的数据主键集合
58
+     * @return 结果
59
+     */
60
+    public int deleteCmcBudgetByBudgetIds(String[] budgetIds);
61
+}

+ 61
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcBudgetSettleMapper.java Datei anzeigen

@@ -0,0 +1,61 @@
1
+package com.ruoyi.oa.mapper;
2
+
3
+import java.util.List;
4
+import com.ruoyi.oa.domain.CmcBudgetSettle;
5
+
6
+/**
7
+ * cmc预结算Mapper接口
8
+ * 
9
+ * @author cmc
10
+ * @date 2024-03-22
11
+ */
12
+public interface CmcBudgetSettleMapper 
13
+{
14
+    /**
15
+     * 查询cmc预结算
16
+     * 
17
+     * @param budgetSettleId cmc预结算主键
18
+     * @return cmc预结算
19
+     */
20
+    public CmcBudgetSettle selectCmcBudgetSettleByBudgetSettleId(String budgetSettleId);
21
+
22
+    /**
23
+     * 查询cmc预结算列表
24
+     * 
25
+     * @param cmcBudgetSettle cmc预结算
26
+     * @return cmc预结算集合
27
+     */
28
+    public List<CmcBudgetSettle> selectCmcBudgetSettleList(CmcBudgetSettle cmcBudgetSettle);
29
+
30
+    /**
31
+     * 新增cmc预结算
32
+     * 
33
+     * @param cmcBudgetSettle cmc预结算
34
+     * @return 结果
35
+     */
36
+    public int insertCmcBudgetSettle(CmcBudgetSettle cmcBudgetSettle);
37
+
38
+    /**
39
+     * 修改cmc预结算
40
+     * 
41
+     * @param cmcBudgetSettle cmc预结算
42
+     * @return 结果
43
+     */
44
+    public int updateCmcBudgetSettle(CmcBudgetSettle cmcBudgetSettle);
45
+
46
+    /**
47
+     * 删除cmc预结算
48
+     * 
49
+     * @param budgetSettleId cmc预结算主键
50
+     * @return 结果
51
+     */
52
+    public int deleteCmcBudgetSettleByBudgetSettleId(String budgetSettleId);
53
+
54
+    /**
55
+     * 批量删除cmc预结算
56
+     * 
57
+     * @param budgetSettleIds 需要删除的数据主键集合
58
+     * @return 结果
59
+     */
60
+    public int deleteCmcBudgetSettleByBudgetSettleIds(String[] budgetSettleIds);
61
+}

+ 61
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcBudgetStaffMapper.java Datei anzeigen

@@ -0,0 +1,61 @@
1
+package com.ruoyi.oa.mapper;
2
+
3
+import java.util.List;
4
+import com.ruoyi.oa.domain.CmcBudgetStaff;
5
+
6
+/**
7
+ * cmc人员预算Mapper接口
8
+ * 
9
+ * @author cmc
10
+ * @date 2024-03-22
11
+ */
12
+public interface CmcBudgetStaffMapper 
13
+{
14
+    /**
15
+     * 查询cmc人员预算
16
+     * 
17
+     * @param budgetStaffId cmc人员预算主键
18
+     * @return cmc人员预算
19
+     */
20
+    public CmcBudgetStaff selectCmcBudgetStaffByBudgetStaffId(String budgetStaffId);
21
+
22
+    /**
23
+     * 查询cmc人员预算列表
24
+     * 
25
+     * @param cmcBudgetStaff cmc人员预算
26
+     * @return cmc人员预算集合
27
+     */
28
+    public List<CmcBudgetStaff> selectCmcBudgetStaffList(CmcBudgetStaff cmcBudgetStaff);
29
+
30
+    /**
31
+     * 新增cmc人员预算
32
+     * 
33
+     * @param cmcBudgetStaff cmc人员预算
34
+     * @return 结果
35
+     */
36
+    public int insertCmcBudgetStaff(CmcBudgetStaff cmcBudgetStaff);
37
+
38
+    /**
39
+     * 修改cmc人员预算
40
+     * 
41
+     * @param cmcBudgetStaff cmc人员预算
42
+     * @return 结果
43
+     */
44
+    public int updateCmcBudgetStaff(CmcBudgetStaff cmcBudgetStaff);
45
+
46
+    /**
47
+     * 删除cmc人员预算
48
+     * 
49
+     * @param budgetStaffId cmc人员预算主键
50
+     * @return 结果
51
+     */
52
+    public int deleteCmcBudgetStaffByBudgetStaffId(String budgetStaffId);
53
+
54
+    /**
55
+     * 批量删除cmc人员预算
56
+     * 
57
+     * @param budgetStaffIds 需要删除的数据主键集合
58
+     * @return 结果
59
+     */
60
+    public int deleteCmcBudgetStaffByBudgetStaffIds(String[] budgetStaffIds);
61
+}

+ 61
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcBudgetCarService.java Datei anzeigen

@@ -0,0 +1,61 @@
1
+package com.ruoyi.oa.service;
2
+
3
+import java.util.List;
4
+import com.ruoyi.oa.domain.CmcBudgetCar;
5
+
6
+/**
7
+ * cmc车辆预算Service接口
8
+ * 
9
+ * @author cmc
10
+ * @date 2024-03-22
11
+ */
12
+public interface ICmcBudgetCarService 
13
+{
14
+    /**
15
+     * 查询cmc车辆预算
16
+     * 
17
+     * @param budgetCarId cmc车辆预算主键
18
+     * @return cmc车辆预算
19
+     */
20
+    public CmcBudgetCar selectCmcBudgetCarByBudgetCarId(String budgetCarId);
21
+
22
+    /**
23
+     * 查询cmc车辆预算列表
24
+     * 
25
+     * @param cmcBudgetCar cmc车辆预算
26
+     * @return cmc车辆预算集合
27
+     */
28
+    public List<CmcBudgetCar> selectCmcBudgetCarList(CmcBudgetCar cmcBudgetCar);
29
+
30
+    /**
31
+     * 新增cmc车辆预算
32
+     * 
33
+     * @param cmcBudgetCar cmc车辆预算
34
+     * @return 结果
35
+     */
36
+    public int insertCmcBudgetCar(CmcBudgetCar cmcBudgetCar);
37
+
38
+    /**
39
+     * 修改cmc车辆预算
40
+     * 
41
+     * @param cmcBudgetCar cmc车辆预算
42
+     * @return 结果
43
+     */
44
+    public int updateCmcBudgetCar(CmcBudgetCar cmcBudgetCar);
45
+
46
+    /**
47
+     * 批量删除cmc车辆预算
48
+     * 
49
+     * @param budgetCarIds 需要删除的cmc车辆预算主键集合
50
+     * @return 结果
51
+     */
52
+    public int deleteCmcBudgetCarByBudgetCarIds(String[] budgetCarIds);
53
+
54
+    /**
55
+     * 删除cmc车辆预算信息
56
+     * 
57
+     * @param budgetCarId cmc车辆预算主键
58
+     * @return 结果
59
+     */
60
+    public int deleteCmcBudgetCarByBudgetCarId(String budgetCarId);
61
+}

+ 61
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcBudgetDeviceService.java Datei anzeigen

@@ -0,0 +1,61 @@
1
+package com.ruoyi.oa.service;
2
+
3
+import java.util.List;
4
+import com.ruoyi.oa.domain.CmcBudgetDevice;
5
+
6
+/**
7
+ * cmc设备预算Service接口
8
+ * 
9
+ * @author cmc
10
+ * @date 2024-03-22
11
+ */
12
+public interface ICmcBudgetDeviceService 
13
+{
14
+    /**
15
+     * 查询cmc设备预算
16
+     * 
17
+     * @param budgetDeviceId cmc设备预算主键
18
+     * @return cmc设备预算
19
+     */
20
+    public CmcBudgetDevice selectCmcBudgetDeviceByBudgetDeviceId(String budgetDeviceId);
21
+
22
+    /**
23
+     * 查询cmc设备预算列表
24
+     * 
25
+     * @param cmcBudgetDevice cmc设备预算
26
+     * @return cmc设备预算集合
27
+     */
28
+    public List<CmcBudgetDevice> selectCmcBudgetDeviceList(CmcBudgetDevice cmcBudgetDevice);
29
+
30
+    /**
31
+     * 新增cmc设备预算
32
+     * 
33
+     * @param cmcBudgetDevice cmc设备预算
34
+     * @return 结果
35
+     */
36
+    public int insertCmcBudgetDevice(CmcBudgetDevice cmcBudgetDevice);
37
+
38
+    /**
39
+     * 修改cmc设备预算
40
+     * 
41
+     * @param cmcBudgetDevice cmc设备预算
42
+     * @return 结果
43
+     */
44
+    public int updateCmcBudgetDevice(CmcBudgetDevice cmcBudgetDevice);
45
+
46
+    /**
47
+     * 批量删除cmc设备预算
48
+     * 
49
+     * @param budgetDeviceIds 需要删除的cmc设备预算主键集合
50
+     * @return 结果
51
+     */
52
+    public int deleteCmcBudgetDeviceByBudgetDeviceIds(String[] budgetDeviceIds);
53
+
54
+    /**
55
+     * 删除cmc设备预算信息
56
+     * 
57
+     * @param budgetDeviceId cmc设备预算主键
58
+     * @return 结果
59
+     */
60
+    public int deleteCmcBudgetDeviceByBudgetDeviceId(String budgetDeviceId);
61
+}

+ 61
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcBudgetService.java Datei anzeigen

@@ -0,0 +1,61 @@
1
+package com.ruoyi.oa.service;
2
+
3
+import java.util.List;
4
+import com.ruoyi.oa.domain.CmcBudget;
5
+
6
+/**
7
+ * cmc预算管理Service接口
8
+ * 
9
+ * @author cmc
10
+ * @date 2024-03-22
11
+ */
12
+public interface ICmcBudgetService 
13
+{
14
+    /**
15
+     * 查询cmc预算管理
16
+     * 
17
+     * @param budgetId cmc预算管理主键
18
+     * @return cmc预算管理
19
+     */
20
+    public CmcBudget selectCmcBudgetByBudgetId(String budgetId);
21
+
22
+    /**
23
+     * 查询cmc预算管理列表
24
+     * 
25
+     * @param cmcBudget cmc预算管理
26
+     * @return cmc预算管理集合
27
+     */
28
+    public List<CmcBudget> selectCmcBudgetList(CmcBudget cmcBudget);
29
+
30
+    /**
31
+     * 新增cmc预算管理
32
+     * 
33
+     * @param cmcBudget cmc预算管理
34
+     * @return 结果
35
+     */
36
+    public int insertCmcBudget(CmcBudget cmcBudget);
37
+
38
+    /**
39
+     * 修改cmc预算管理
40
+     * 
41
+     * @param cmcBudget cmc预算管理
42
+     * @return 结果
43
+     */
44
+    public int updateCmcBudget(CmcBudget cmcBudget);
45
+
46
+    /**
47
+     * 批量删除cmc预算管理
48
+     * 
49
+     * @param budgetIds 需要删除的cmc预算管理主键集合
50
+     * @return 结果
51
+     */
52
+    public int deleteCmcBudgetByBudgetIds(String[] budgetIds);
53
+
54
+    /**
55
+     * 删除cmc预算管理信息
56
+     * 
57
+     * @param budgetId cmc预算管理主键
58
+     * @return 结果
59
+     */
60
+    public int deleteCmcBudgetByBudgetId(String budgetId);
61
+}

+ 61
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcBudgetSettleService.java Datei anzeigen

@@ -0,0 +1,61 @@
1
+package com.ruoyi.oa.service;
2
+
3
+import java.util.List;
4
+import com.ruoyi.oa.domain.CmcBudgetSettle;
5
+
6
+/**
7
+ * cmc预结算Service接口
8
+ * 
9
+ * @author cmc
10
+ * @date 2024-03-22
11
+ */
12
+public interface ICmcBudgetSettleService 
13
+{
14
+    /**
15
+     * 查询cmc预结算
16
+     * 
17
+     * @param budgetSettleId cmc预结算主键
18
+     * @return cmc预结算
19
+     */
20
+    public CmcBudgetSettle selectCmcBudgetSettleByBudgetSettleId(String budgetSettleId);
21
+
22
+    /**
23
+     * 查询cmc预结算列表
24
+     * 
25
+     * @param cmcBudgetSettle cmc预结算
26
+     * @return cmc预结算集合
27
+     */
28
+    public List<CmcBudgetSettle> selectCmcBudgetSettleList(CmcBudgetSettle cmcBudgetSettle);
29
+
30
+    /**
31
+     * 新增cmc预结算
32
+     * 
33
+     * @param cmcBudgetSettle cmc预结算
34
+     * @return 结果
35
+     */
36
+    public int insertCmcBudgetSettle(CmcBudgetSettle cmcBudgetSettle);
37
+
38
+    /**
39
+     * 修改cmc预结算
40
+     * 
41
+     * @param cmcBudgetSettle cmc预结算
42
+     * @return 结果
43
+     */
44
+    public int updateCmcBudgetSettle(CmcBudgetSettle cmcBudgetSettle);
45
+
46
+    /**
47
+     * 批量删除cmc预结算
48
+     * 
49
+     * @param budgetSettleIds 需要删除的cmc预结算主键集合
50
+     * @return 结果
51
+     */
52
+    public int deleteCmcBudgetSettleByBudgetSettleIds(String[] budgetSettleIds);
53
+
54
+    /**
55
+     * 删除cmc预结算信息
56
+     * 
57
+     * @param budgetSettleId cmc预结算主键
58
+     * @return 结果
59
+     */
60
+    public int deleteCmcBudgetSettleByBudgetSettleId(String budgetSettleId);
61
+}

+ 61
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcBudgetStaffService.java Datei anzeigen

@@ -0,0 +1,61 @@
1
+package com.ruoyi.oa.service;
2
+
3
+import java.util.List;
4
+import com.ruoyi.oa.domain.CmcBudgetStaff;
5
+
6
+/**
7
+ * cmc人员预算Service接口
8
+ * 
9
+ * @author cmc
10
+ * @date 2024-03-22
11
+ */
12
+public interface ICmcBudgetStaffService 
13
+{
14
+    /**
15
+     * 查询cmc人员预算
16
+     * 
17
+     * @param budgetStaffId cmc人员预算主键
18
+     * @return cmc人员预算
19
+     */
20
+    public CmcBudgetStaff selectCmcBudgetStaffByBudgetStaffId(String budgetStaffId);
21
+
22
+    /**
23
+     * 查询cmc人员预算列表
24
+     * 
25
+     * @param cmcBudgetStaff cmc人员预算
26
+     * @return cmc人员预算集合
27
+     */
28
+    public List<CmcBudgetStaff> selectCmcBudgetStaffList(CmcBudgetStaff cmcBudgetStaff);
29
+
30
+    /**
31
+     * 新增cmc人员预算
32
+     * 
33
+     * @param cmcBudgetStaff cmc人员预算
34
+     * @return 结果
35
+     */
36
+    public int insertCmcBudgetStaff(CmcBudgetStaff cmcBudgetStaff);
37
+
38
+    /**
39
+     * 修改cmc人员预算
40
+     * 
41
+     * @param cmcBudgetStaff cmc人员预算
42
+     * @return 结果
43
+     */
44
+    public int updateCmcBudgetStaff(CmcBudgetStaff cmcBudgetStaff);
45
+
46
+    /**
47
+     * 批量删除cmc人员预算
48
+     * 
49
+     * @param budgetStaffIds 需要删除的cmc人员预算主键集合
50
+     * @return 结果
51
+     */
52
+    public int deleteCmcBudgetStaffByBudgetStaffIds(String[] budgetStaffIds);
53
+
54
+    /**
55
+     * 删除cmc人员预算信息
56
+     * 
57
+     * @param budgetStaffId cmc人员预算主键
58
+     * @return 结果
59
+     */
60
+    public int deleteCmcBudgetStaffByBudgetStaffId(String budgetStaffId);
61
+}

+ 93
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcBudgetCarServiceImpl.java Datei anzeigen

@@ -0,0 +1,93 @@
1
+package com.ruoyi.oa.service.impl;
2
+
3
+import java.util.List;
4
+import org.springframework.beans.factory.annotation.Autowired;
5
+import org.springframework.stereotype.Service;
6
+import com.ruoyi.oa.mapper.CmcBudgetCarMapper;
7
+import com.ruoyi.oa.domain.CmcBudgetCar;
8
+import com.ruoyi.oa.service.ICmcBudgetCarService;
9
+
10
+/**
11
+ * cmc车辆预算Service业务层处理
12
+ * 
13
+ * @author cmc
14
+ * @date 2024-03-22
15
+ */
16
+@Service
17
+public class CmcBudgetCarServiceImpl implements ICmcBudgetCarService 
18
+{
19
+    @Autowired
20
+    private CmcBudgetCarMapper cmcBudgetCarMapper;
21
+
22
+    /**
23
+     * 查询cmc车辆预算
24
+     * 
25
+     * @param budgetCarId cmc车辆预算主键
26
+     * @return cmc车辆预算
27
+     */
28
+    @Override
29
+    public CmcBudgetCar selectCmcBudgetCarByBudgetCarId(String budgetCarId)
30
+    {
31
+        return cmcBudgetCarMapper.selectCmcBudgetCarByBudgetCarId(budgetCarId);
32
+    }
33
+
34
+    /**
35
+     * 查询cmc车辆预算列表
36
+     * 
37
+     * @param cmcBudgetCar cmc车辆预算
38
+     * @return cmc车辆预算
39
+     */
40
+    @Override
41
+    public List<CmcBudgetCar> selectCmcBudgetCarList(CmcBudgetCar cmcBudgetCar)
42
+    {
43
+        return cmcBudgetCarMapper.selectCmcBudgetCarList(cmcBudgetCar);
44
+    }
45
+
46
+    /**
47
+     * 新增cmc车辆预算
48
+     * 
49
+     * @param cmcBudgetCar cmc车辆预算
50
+     * @return 结果
51
+     */
52
+    @Override
53
+    public int insertCmcBudgetCar(CmcBudgetCar cmcBudgetCar)
54
+    {
55
+        return cmcBudgetCarMapper.insertCmcBudgetCar(cmcBudgetCar);
56
+    }
57
+
58
+    /**
59
+     * 修改cmc车辆预算
60
+     * 
61
+     * @param cmcBudgetCar cmc车辆预算
62
+     * @return 结果
63
+     */
64
+    @Override
65
+    public int updateCmcBudgetCar(CmcBudgetCar cmcBudgetCar)
66
+    {
67
+        return cmcBudgetCarMapper.updateCmcBudgetCar(cmcBudgetCar);
68
+    }
69
+
70
+    /**
71
+     * 批量删除cmc车辆预算
72
+     * 
73
+     * @param budgetCarIds 需要删除的cmc车辆预算主键
74
+     * @return 结果
75
+     */
76
+    @Override
77
+    public int deleteCmcBudgetCarByBudgetCarIds(String[] budgetCarIds)
78
+    {
79
+        return cmcBudgetCarMapper.deleteCmcBudgetCarByBudgetCarIds(budgetCarIds);
80
+    }
81
+
82
+    /**
83
+     * 删除cmc车辆预算信息
84
+     * 
85
+     * @param budgetCarId cmc车辆预算主键
86
+     * @return 结果
87
+     */
88
+    @Override
89
+    public int deleteCmcBudgetCarByBudgetCarId(String budgetCarId)
90
+    {
91
+        return cmcBudgetCarMapper.deleteCmcBudgetCarByBudgetCarId(budgetCarId);
92
+    }
93
+}

+ 93
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcBudgetDeviceServiceImpl.java Datei anzeigen

@@ -0,0 +1,93 @@
1
+package com.ruoyi.oa.service.impl;
2
+
3
+import java.util.List;
4
+import org.springframework.beans.factory.annotation.Autowired;
5
+import org.springframework.stereotype.Service;
6
+import com.ruoyi.oa.mapper.CmcBudgetDeviceMapper;
7
+import com.ruoyi.oa.domain.CmcBudgetDevice;
8
+import com.ruoyi.oa.service.ICmcBudgetDeviceService;
9
+
10
+/**
11
+ * cmc设备预算Service业务层处理
12
+ * 
13
+ * @author cmc
14
+ * @date 2024-03-22
15
+ */
16
+@Service
17
+public class CmcBudgetDeviceServiceImpl implements ICmcBudgetDeviceService 
18
+{
19
+    @Autowired
20
+    private CmcBudgetDeviceMapper cmcBudgetDeviceMapper;
21
+
22
+    /**
23
+     * 查询cmc设备预算
24
+     * 
25
+     * @param budgetDeviceId cmc设备预算主键
26
+     * @return cmc设备预算
27
+     */
28
+    @Override
29
+    public CmcBudgetDevice selectCmcBudgetDeviceByBudgetDeviceId(String budgetDeviceId)
30
+    {
31
+        return cmcBudgetDeviceMapper.selectCmcBudgetDeviceByBudgetDeviceId(budgetDeviceId);
32
+    }
33
+
34
+    /**
35
+     * 查询cmc设备预算列表
36
+     * 
37
+     * @param cmcBudgetDevice cmc设备预算
38
+     * @return cmc设备预算
39
+     */
40
+    @Override
41
+    public List<CmcBudgetDevice> selectCmcBudgetDeviceList(CmcBudgetDevice cmcBudgetDevice)
42
+    {
43
+        return cmcBudgetDeviceMapper.selectCmcBudgetDeviceList(cmcBudgetDevice);
44
+    }
45
+
46
+    /**
47
+     * 新增cmc设备预算
48
+     * 
49
+     * @param cmcBudgetDevice cmc设备预算
50
+     * @return 结果
51
+     */
52
+    @Override
53
+    public int insertCmcBudgetDevice(CmcBudgetDevice cmcBudgetDevice)
54
+    {
55
+        return cmcBudgetDeviceMapper.insertCmcBudgetDevice(cmcBudgetDevice);
56
+    }
57
+
58
+    /**
59
+     * 修改cmc设备预算
60
+     * 
61
+     * @param cmcBudgetDevice cmc设备预算
62
+     * @return 结果
63
+     */
64
+    @Override
65
+    public int updateCmcBudgetDevice(CmcBudgetDevice cmcBudgetDevice)
66
+    {
67
+        return cmcBudgetDeviceMapper.updateCmcBudgetDevice(cmcBudgetDevice);
68
+    }
69
+
70
+    /**
71
+     * 批量删除cmc设备预算
72
+     * 
73
+     * @param budgetDeviceIds 需要删除的cmc设备预算主键
74
+     * @return 结果
75
+     */
76
+    @Override
77
+    public int deleteCmcBudgetDeviceByBudgetDeviceIds(String[] budgetDeviceIds)
78
+    {
79
+        return cmcBudgetDeviceMapper.deleteCmcBudgetDeviceByBudgetDeviceIds(budgetDeviceIds);
80
+    }
81
+
82
+    /**
83
+     * 删除cmc设备预算信息
84
+     * 
85
+     * @param budgetDeviceId cmc设备预算主键
86
+     * @return 结果
87
+     */
88
+    @Override
89
+    public int deleteCmcBudgetDeviceByBudgetDeviceId(String budgetDeviceId)
90
+    {
91
+        return cmcBudgetDeviceMapper.deleteCmcBudgetDeviceByBudgetDeviceId(budgetDeviceId);
92
+    }
93
+}

+ 93
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcBudgetServiceImpl.java Datei anzeigen

@@ -0,0 +1,93 @@
1
+package com.ruoyi.oa.service.impl;
2
+
3
+import java.util.List;
4
+import org.springframework.beans.factory.annotation.Autowired;
5
+import org.springframework.stereotype.Service;
6
+import com.ruoyi.oa.mapper.CmcBudgetMapper;
7
+import com.ruoyi.oa.domain.CmcBudget;
8
+import com.ruoyi.oa.service.ICmcBudgetService;
9
+
10
+/**
11
+ * cmc预算管理Service业务层处理
12
+ * 
13
+ * @author cmc
14
+ * @date 2024-03-22
15
+ */
16
+@Service
17
+public class CmcBudgetServiceImpl implements ICmcBudgetService 
18
+{
19
+    @Autowired
20
+    private CmcBudgetMapper cmcBudgetMapper;
21
+
22
+    /**
23
+     * 查询cmc预算管理
24
+     * 
25
+     * @param budgetId cmc预算管理主键
26
+     * @return cmc预算管理
27
+     */
28
+    @Override
29
+    public CmcBudget selectCmcBudgetByBudgetId(String budgetId)
30
+    {
31
+        return cmcBudgetMapper.selectCmcBudgetByBudgetId(budgetId);
32
+    }
33
+
34
+    /**
35
+     * 查询cmc预算管理列表
36
+     * 
37
+     * @param cmcBudget cmc预算管理
38
+     * @return cmc预算管理
39
+     */
40
+    @Override
41
+    public List<CmcBudget> selectCmcBudgetList(CmcBudget cmcBudget)
42
+    {
43
+        return cmcBudgetMapper.selectCmcBudgetList(cmcBudget);
44
+    }
45
+
46
+    /**
47
+     * 新增cmc预算管理
48
+     * 
49
+     * @param cmcBudget cmc预算管理
50
+     * @return 结果
51
+     */
52
+    @Override
53
+    public int insertCmcBudget(CmcBudget cmcBudget)
54
+    {
55
+        return cmcBudgetMapper.insertCmcBudget(cmcBudget);
56
+    }
57
+
58
+    /**
59
+     * 修改cmc预算管理
60
+     * 
61
+     * @param cmcBudget cmc预算管理
62
+     * @return 结果
63
+     */
64
+    @Override
65
+    public int updateCmcBudget(CmcBudget cmcBudget)
66
+    {
67
+        return cmcBudgetMapper.updateCmcBudget(cmcBudget);
68
+    }
69
+
70
+    /**
71
+     * 批量删除cmc预算管理
72
+     * 
73
+     * @param budgetIds 需要删除的cmc预算管理主键
74
+     * @return 结果
75
+     */
76
+    @Override
77
+    public int deleteCmcBudgetByBudgetIds(String[] budgetIds)
78
+    {
79
+        return cmcBudgetMapper.deleteCmcBudgetByBudgetIds(budgetIds);
80
+    }
81
+
82
+    /**
83
+     * 删除cmc预算管理信息
84
+     * 
85
+     * @param budgetId cmc预算管理主键
86
+     * @return 结果
87
+     */
88
+    @Override
89
+    public int deleteCmcBudgetByBudgetId(String budgetId)
90
+    {
91
+        return cmcBudgetMapper.deleteCmcBudgetByBudgetId(budgetId);
92
+    }
93
+}

+ 93
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcBudgetSettleServiceImpl.java Datei anzeigen

@@ -0,0 +1,93 @@
1
+package com.ruoyi.oa.service.impl;
2
+
3
+import java.util.List;
4
+import org.springframework.beans.factory.annotation.Autowired;
5
+import org.springframework.stereotype.Service;
6
+import com.ruoyi.oa.mapper.CmcBudgetSettleMapper;
7
+import com.ruoyi.oa.domain.CmcBudgetSettle;
8
+import com.ruoyi.oa.service.ICmcBudgetSettleService;
9
+
10
+/**
11
+ * cmc预结算Service业务层处理
12
+ * 
13
+ * @author cmc
14
+ * @date 2024-03-22
15
+ */
16
+@Service
17
+public class CmcBudgetSettleServiceImpl implements ICmcBudgetSettleService 
18
+{
19
+    @Autowired
20
+    private CmcBudgetSettleMapper cmcBudgetSettleMapper;
21
+
22
+    /**
23
+     * 查询cmc预结算
24
+     * 
25
+     * @param budgetSettleId cmc预结算主键
26
+     * @return cmc预结算
27
+     */
28
+    @Override
29
+    public CmcBudgetSettle selectCmcBudgetSettleByBudgetSettleId(String budgetSettleId)
30
+    {
31
+        return cmcBudgetSettleMapper.selectCmcBudgetSettleByBudgetSettleId(budgetSettleId);
32
+    }
33
+
34
+    /**
35
+     * 查询cmc预结算列表
36
+     * 
37
+     * @param cmcBudgetSettle cmc预结算
38
+     * @return cmc预结算
39
+     */
40
+    @Override
41
+    public List<CmcBudgetSettle> selectCmcBudgetSettleList(CmcBudgetSettle cmcBudgetSettle)
42
+    {
43
+        return cmcBudgetSettleMapper.selectCmcBudgetSettleList(cmcBudgetSettle);
44
+    }
45
+
46
+    /**
47
+     * 新增cmc预结算
48
+     * 
49
+     * @param cmcBudgetSettle cmc预结算
50
+     * @return 结果
51
+     */
52
+    @Override
53
+    public int insertCmcBudgetSettle(CmcBudgetSettle cmcBudgetSettle)
54
+    {
55
+        return cmcBudgetSettleMapper.insertCmcBudgetSettle(cmcBudgetSettle);
56
+    }
57
+
58
+    /**
59
+     * 修改cmc预结算
60
+     * 
61
+     * @param cmcBudgetSettle cmc预结算
62
+     * @return 结果
63
+     */
64
+    @Override
65
+    public int updateCmcBudgetSettle(CmcBudgetSettle cmcBudgetSettle)
66
+    {
67
+        return cmcBudgetSettleMapper.updateCmcBudgetSettle(cmcBudgetSettle);
68
+    }
69
+
70
+    /**
71
+     * 批量删除cmc预结算
72
+     * 
73
+     * @param budgetSettleIds 需要删除的cmc预结算主键
74
+     * @return 结果
75
+     */
76
+    @Override
77
+    public int deleteCmcBudgetSettleByBudgetSettleIds(String[] budgetSettleIds)
78
+    {
79
+        return cmcBudgetSettleMapper.deleteCmcBudgetSettleByBudgetSettleIds(budgetSettleIds);
80
+    }
81
+
82
+    /**
83
+     * 删除cmc预结算信息
84
+     * 
85
+     * @param budgetSettleId cmc预结算主键
86
+     * @return 结果
87
+     */
88
+    @Override
89
+    public int deleteCmcBudgetSettleByBudgetSettleId(String budgetSettleId)
90
+    {
91
+        return cmcBudgetSettleMapper.deleteCmcBudgetSettleByBudgetSettleId(budgetSettleId);
92
+    }
93
+}

+ 93
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcBudgetStaffServiceImpl.java Datei anzeigen

@@ -0,0 +1,93 @@
1
+package com.ruoyi.oa.service.impl;
2
+
3
+import java.util.List;
4
+import org.springframework.beans.factory.annotation.Autowired;
5
+import org.springframework.stereotype.Service;
6
+import com.ruoyi.oa.mapper.CmcBudgetStaffMapper;
7
+import com.ruoyi.oa.domain.CmcBudgetStaff;
8
+import com.ruoyi.oa.service.ICmcBudgetStaffService;
9
+
10
+/**
11
+ * cmc人员预算Service业务层处理
12
+ * 
13
+ * @author cmc
14
+ * @date 2024-03-22
15
+ */
16
+@Service
17
+public class CmcBudgetStaffServiceImpl implements ICmcBudgetStaffService 
18
+{
19
+    @Autowired
20
+    private CmcBudgetStaffMapper cmcBudgetStaffMapper;
21
+
22
+    /**
23
+     * 查询cmc人员预算
24
+     * 
25
+     * @param budgetStaffId cmc人员预算主键
26
+     * @return cmc人员预算
27
+     */
28
+    @Override
29
+    public CmcBudgetStaff selectCmcBudgetStaffByBudgetStaffId(String budgetStaffId)
30
+    {
31
+        return cmcBudgetStaffMapper.selectCmcBudgetStaffByBudgetStaffId(budgetStaffId);
32
+    }
33
+
34
+    /**
35
+     * 查询cmc人员预算列表
36
+     * 
37
+     * @param cmcBudgetStaff cmc人员预算
38
+     * @return cmc人员预算
39
+     */
40
+    @Override
41
+    public List<CmcBudgetStaff> selectCmcBudgetStaffList(CmcBudgetStaff cmcBudgetStaff)
42
+    {
43
+        return cmcBudgetStaffMapper.selectCmcBudgetStaffList(cmcBudgetStaff);
44
+    }
45
+
46
+    /**
47
+     * 新增cmc人员预算
48
+     * 
49
+     * @param cmcBudgetStaff cmc人员预算
50
+     * @return 结果
51
+     */
52
+    @Override
53
+    public int insertCmcBudgetStaff(CmcBudgetStaff cmcBudgetStaff)
54
+    {
55
+        return cmcBudgetStaffMapper.insertCmcBudgetStaff(cmcBudgetStaff);
56
+    }
57
+
58
+    /**
59
+     * 修改cmc人员预算
60
+     * 
61
+     * @param cmcBudgetStaff cmc人员预算
62
+     * @return 结果
63
+     */
64
+    @Override
65
+    public int updateCmcBudgetStaff(CmcBudgetStaff cmcBudgetStaff)
66
+    {
67
+        return cmcBudgetStaffMapper.updateCmcBudgetStaff(cmcBudgetStaff);
68
+    }
69
+
70
+    /**
71
+     * 批量删除cmc人员预算
72
+     * 
73
+     * @param budgetStaffIds 需要删除的cmc人员预算主键
74
+     * @return 结果
75
+     */
76
+    @Override
77
+    public int deleteCmcBudgetStaffByBudgetStaffIds(String[] budgetStaffIds)
78
+    {
79
+        return cmcBudgetStaffMapper.deleteCmcBudgetStaffByBudgetStaffIds(budgetStaffIds);
80
+    }
81
+
82
+    /**
83
+     * 删除cmc人员预算信息
84
+     * 
85
+     * @param budgetStaffId cmc人员预算主键
86
+     * @return 结果
87
+     */
88
+    @Override
89
+    public int deleteCmcBudgetStaffByBudgetStaffId(String budgetStaffId)
90
+    {
91
+        return cmcBudgetStaffMapper.deleteCmcBudgetStaffByBudgetStaffId(budgetStaffId);
92
+    }
93
+}

+ 88
- 0
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcBudgetCarMapper.xml Datei anzeigen

@@ -0,0 +1,88 @@
1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper
3
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
+<mapper namespace="com.ruoyi.oa.mapper.CmcBudgetCarMapper">
6
+    
7
+    <resultMap type="CmcBudgetCar" id="CmcBudgetCarResult">
8
+        <result property="budgetCarId"    column="budget_car_id"    />
9
+        <result property="budgetId"    column="budget_id"    />
10
+        <result property="carId"    column="car_id"    />
11
+        <result property="days"    column="days"    />
12
+        <result property="depreciation"    column="depreciation"    />
13
+        <result property="distance"    column="distance"    />
14
+        <result property="mileage"    column="mileage"    />
15
+        <result property="expense"    column="expense"    />
16
+    </resultMap>
17
+
18
+    <sql id="selectCmcBudgetCarVo">
19
+        select budget_car_id, budget_id, car_id, days, depreciation, distance, mileage, expense from cmc_budget_car
20
+    </sql>
21
+
22
+    <select id="selectCmcBudgetCarList" parameterType="CmcBudgetCar" resultMap="CmcBudgetCarResult">
23
+        <include refid="selectCmcBudgetCarVo"/>
24
+        <where>  
25
+            <if test="budgetId != null  and budgetId != ''"> and budget_id = #{budgetId}</if>
26
+            <if test="carId != null "> and car_id = #{carId}</if>
27
+            <if test="days != null "> and days = #{days}</if>
28
+            <if test="depreciation != null "> and depreciation = #{depreciation}</if>
29
+            <if test="distance != null "> and distance = #{distance}</if>
30
+            <if test="mileage != null "> and mileage = #{mileage}</if>
31
+            <if test="expense != null "> and expense = #{expense}</if>
32
+        </where>
33
+    </select>
34
+    
35
+    <select id="selectCmcBudgetCarByBudgetCarId" parameterType="String" resultMap="CmcBudgetCarResult">
36
+        <include refid="selectCmcBudgetCarVo"/>
37
+        where budget_car_id = #{budgetCarId}
38
+    </select>
39
+        
40
+    <insert id="insertCmcBudgetCar" parameterType="CmcBudgetCar">
41
+        insert into cmc_budget_car
42
+        <trim prefix="(" suffix=")" suffixOverrides=",">
43
+            <if test="budgetCarId != null">budget_car_id,</if>
44
+            <if test="budgetId != null">budget_id,</if>
45
+            <if test="carId != null">car_id,</if>
46
+            <if test="days != null">days,</if>
47
+            <if test="depreciation != null">depreciation,</if>
48
+            <if test="distance != null">distance,</if>
49
+            <if test="mileage != null">mileage,</if>
50
+            <if test="expense != null">expense,</if>
51
+         </trim>
52
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
53
+            <if test="budgetCarId != null">#{budgetCarId},</if>
54
+            <if test="budgetId != null">#{budgetId},</if>
55
+            <if test="carId != null">#{carId},</if>
56
+            <if test="days != null">#{days},</if>
57
+            <if test="depreciation != null">#{depreciation},</if>
58
+            <if test="distance != null">#{distance},</if>
59
+            <if test="mileage != null">#{mileage},</if>
60
+            <if test="expense != null">#{expense},</if>
61
+         </trim>
62
+    </insert>
63
+
64
+    <update id="updateCmcBudgetCar" parameterType="CmcBudgetCar">
65
+        update cmc_budget_car
66
+        <trim prefix="SET" suffixOverrides=",">
67
+            <if test="budgetId != null">budget_id = #{budgetId},</if>
68
+            <if test="carId != null">car_id = #{carId},</if>
69
+            <if test="days != null">days = #{days},</if>
70
+            <if test="depreciation != null">depreciation = #{depreciation},</if>
71
+            <if test="distance != null">distance = #{distance},</if>
72
+            <if test="mileage != null">mileage = #{mileage},</if>
73
+            <if test="expense != null">expense = #{expense},</if>
74
+        </trim>
75
+        where budget_car_id = #{budgetCarId}
76
+    </update>
77
+
78
+    <delete id="deleteCmcBudgetCarByBudgetCarId" parameterType="String">
79
+        delete from cmc_budget_car where budget_car_id = #{budgetCarId}
80
+    </delete>
81
+
82
+    <delete id="deleteCmcBudgetCarByBudgetCarIds" parameterType="String">
83
+        delete from cmc_budget_car where budget_car_id in 
84
+        <foreach item="budgetCarId" collection="array" open="(" separator="," close=")">
85
+            #{budgetCarId}
86
+        </foreach>
87
+    </delete>
88
+</mapper>

+ 73
- 0
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcBudgetDeviceMapper.xml Datei anzeigen

@@ -0,0 +1,73 @@
1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper
3
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
+<mapper namespace="com.ruoyi.oa.mapper.CmcBudgetDeviceMapper">
6
+    
7
+    <resultMap type="CmcBudgetDevice" id="CmcBudgetDeviceResult">
8
+        <result property="budgetDeviceId"    column="budget_device_id"    />
9
+        <result property="budgetId"    column="budget_id"    />
10
+        <result property="deviceId"    column="device_id"    />
11
+        <result property="days"    column="days"    />
12
+        <result property="depreciation"    column="depreciation"    />
13
+    </resultMap>
14
+
15
+    <sql id="selectCmcBudgetDeviceVo">
16
+        select budget_device_id, budget_id, device_id, days, depreciation from cmc_budget_device
17
+    </sql>
18
+
19
+    <select id="selectCmcBudgetDeviceList" parameterType="CmcBudgetDevice" resultMap="CmcBudgetDeviceResult">
20
+        <include refid="selectCmcBudgetDeviceVo"/>
21
+        <where>  
22
+            <if test="budgetId != null  and budgetId != ''"> and budget_id = #{budgetId}</if>
23
+            <if test="deviceId != null "> and device_id = #{deviceId}</if>
24
+            <if test="days != null "> and days = #{days}</if>
25
+            <if test="depreciation != null "> and depreciation = #{depreciation}</if>
26
+        </where>
27
+    </select>
28
+    
29
+    <select id="selectCmcBudgetDeviceByBudgetDeviceId" parameterType="String" resultMap="CmcBudgetDeviceResult">
30
+        <include refid="selectCmcBudgetDeviceVo"/>
31
+        where budget_device_id = #{budgetDeviceId}
32
+    </select>
33
+        
34
+    <insert id="insertCmcBudgetDevice" parameterType="CmcBudgetDevice">
35
+        insert into cmc_budget_device
36
+        <trim prefix="(" suffix=")" suffixOverrides=",">
37
+            <if test="budgetDeviceId != null">budget_device_id,</if>
38
+            <if test="budgetId != null">budget_id,</if>
39
+            <if test="deviceId != null">device_id,</if>
40
+            <if test="days != null">days,</if>
41
+            <if test="depreciation != null">depreciation,</if>
42
+         </trim>
43
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
44
+            <if test="budgetDeviceId != null">#{budgetDeviceId},</if>
45
+            <if test="budgetId != null">#{budgetId},</if>
46
+            <if test="deviceId != null">#{deviceId},</if>
47
+            <if test="days != null">#{days},</if>
48
+            <if test="depreciation != null">#{depreciation},</if>
49
+         </trim>
50
+    </insert>
51
+
52
+    <update id="updateCmcBudgetDevice" parameterType="CmcBudgetDevice">
53
+        update cmc_budget_device
54
+        <trim prefix="SET" suffixOverrides=",">
55
+            <if test="budgetId != null">budget_id = #{budgetId},</if>
56
+            <if test="deviceId != null">device_id = #{deviceId},</if>
57
+            <if test="days != null">days = #{days},</if>
58
+            <if test="depreciation != null">depreciation = #{depreciation},</if>
59
+        </trim>
60
+        where budget_device_id = #{budgetDeviceId}
61
+    </update>
62
+
63
+    <delete id="deleteCmcBudgetDeviceByBudgetDeviceId" parameterType="String">
64
+        delete from cmc_budget_device where budget_device_id = #{budgetDeviceId}
65
+    </delete>
66
+
67
+    <delete id="deleteCmcBudgetDeviceByBudgetDeviceIds" parameterType="String">
68
+        delete from cmc_budget_device where budget_device_id in 
69
+        <foreach item="budgetDeviceId" collection="array" open="(" separator="," close=")">
70
+            #{budgetDeviceId}
71
+        </foreach>
72
+    </delete>
73
+</mapper>

+ 117
- 0
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcBudgetMapper.xml Datei anzeigen

@@ -0,0 +1,117 @@
1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper
3
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
+<mapper namespace="com.ruoyi.oa.mapper.CmcBudgetMapper">
6
+    
7
+    <resultMap type="CmcBudget" id="CmcBudgetResult">
8
+        <result property="budgetId"    column="budget_id"    />
9
+        <result property="projectId"    column="project_id"    />
10
+        <result property="staffCost"    column="staff_cost"    />
11
+        <result property="carCost"    column="car_cost"    />
12
+        <result property="deviceCost"    column="device_cost"    />
13
+        <result property="budgetSettle"    column="budget_settle"    />
14
+        <result property="outExpense"    column="out_expense"    />
15
+        <result property="businessExpense"    column="business_expense"    />
16
+        <result property="rentExpense"    column="rent_expense"    />
17
+        <result property="otherExpense"    column="other_expense"    />
18
+        <result property="totalExpense"    column="total_expense"    />
19
+        <result property="compiler"    column="compiler"    />
20
+        <result property="auditor"    column="auditor"    />
21
+        <result property="createTime"    column="create_time"    />
22
+    </resultMap>
23
+
24
+    <sql id="selectCmcBudgetVo">
25
+        select budget_id, project_id, staff_cost, car_cost, device_cost, budget_settle, out_expense, business_expense, rent_expense, other_expense, total_expense, compiler, auditor, create_time from cmc_budget
26
+    </sql>
27
+
28
+    <select id="selectCmcBudgetList" parameterType="CmcBudget" resultMap="CmcBudgetResult">
29
+        <include refid="selectCmcBudgetVo"/>
30
+        <where>  
31
+            <if test="projectId != null  and projectId != ''"> and project_id = #{projectId}</if>
32
+            <if test="staffCost != null "> and staff_cost = #{staffCost}</if>
33
+            <if test="carCost != null "> and car_cost = #{carCost}</if>
34
+            <if test="deviceCost != null "> and device_cost = #{deviceCost}</if>
35
+            <if test="budgetSettle != null "> and budget_settle = #{budgetSettle}</if>
36
+            <if test="outExpense != null "> and out_expense = #{outExpense}</if>
37
+            <if test="businessExpense != null "> and business_expense = #{businessExpense}</if>
38
+            <if test="rentExpense != null "> and rent_expense = #{rentExpense}</if>
39
+            <if test="otherExpense != null "> and other_expense = #{otherExpense}</if>
40
+            <if test="totalExpense != null "> and total_expense = #{totalExpense}</if>
41
+            <if test="compiler != null "> and compiler = #{compiler}</if>
42
+            <if test="auditor != null "> and auditor = #{auditor}</if>
43
+        </where>
44
+    </select>
45
+    
46
+    <select id="selectCmcBudgetByBudgetId" parameterType="String" resultMap="CmcBudgetResult">
47
+        <include refid="selectCmcBudgetVo"/>
48
+        where budget_id = #{budgetId}
49
+    </select>
50
+        
51
+    <insert id="insertCmcBudget" parameterType="CmcBudget">
52
+        insert into cmc_budget
53
+        <trim prefix="(" suffix=")" suffixOverrides=",">
54
+            <if test="budgetId != null">budget_id,</if>
55
+            <if test="projectId != null">project_id,</if>
56
+            <if test="staffCost != null">staff_cost,</if>
57
+            <if test="carCost != null">car_cost,</if>
58
+            <if test="deviceCost != null">device_cost,</if>
59
+            <if test="budgetSettle != null">budget_settle,</if>
60
+            <if test="outExpense != null">out_expense,</if>
61
+            <if test="businessExpense != null">business_expense,</if>
62
+            <if test="rentExpense != null">rent_expense,</if>
63
+            <if test="otherExpense != null">other_expense,</if>
64
+            <if test="totalExpense != null">total_expense,</if>
65
+            <if test="compiler != null">compiler,</if>
66
+            <if test="auditor != null">auditor,</if>
67
+            <if test="createTime != null">create_time,</if>
68
+         </trim>
69
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
70
+            <if test="budgetId != null">#{budgetId},</if>
71
+            <if test="projectId != null">#{projectId},</if>
72
+            <if test="staffCost != null">#{staffCost},</if>
73
+            <if test="carCost != null">#{carCost},</if>
74
+            <if test="deviceCost != null">#{deviceCost},</if>
75
+            <if test="budgetSettle != null">#{budgetSettle},</if>
76
+            <if test="outExpense != null">#{outExpense},</if>
77
+            <if test="businessExpense != null">#{businessExpense},</if>
78
+            <if test="rentExpense != null">#{rentExpense},</if>
79
+            <if test="otherExpense != null">#{otherExpense},</if>
80
+            <if test="totalExpense != null">#{totalExpense},</if>
81
+            <if test="compiler != null">#{compiler},</if>
82
+            <if test="auditor != null">#{auditor},</if>
83
+            <if test="createTime != null">#{createTime},</if>
84
+         </trim>
85
+    </insert>
86
+
87
+    <update id="updateCmcBudget" parameterType="CmcBudget">
88
+        update cmc_budget
89
+        <trim prefix="SET" suffixOverrides=",">
90
+            <if test="projectId != null">project_id = #{projectId},</if>
91
+            <if test="staffCost != null">staff_cost = #{staffCost},</if>
92
+            <if test="carCost != null">car_cost = #{carCost},</if>
93
+            <if test="deviceCost != null">device_cost = #{deviceCost},</if>
94
+            <if test="budgetSettle != null">budget_settle = #{budgetSettle},</if>
95
+            <if test="outExpense != null">out_expense = #{outExpense},</if>
96
+            <if test="businessExpense != null">business_expense = #{businessExpense},</if>
97
+            <if test="rentExpense != null">rent_expense = #{rentExpense},</if>
98
+            <if test="otherExpense != null">other_expense = #{otherExpense},</if>
99
+            <if test="totalExpense != null">total_expense = #{totalExpense},</if>
100
+            <if test="compiler != null">compiler = #{compiler},</if>
101
+            <if test="auditor != null">auditor = #{auditor},</if>
102
+            <if test="createTime != null">create_time = #{createTime},</if>
103
+        </trim>
104
+        where budget_id = #{budgetId}
105
+    </update>
106
+
107
+    <delete id="deleteCmcBudgetByBudgetId" parameterType="String">
108
+        delete from cmc_budget where budget_id = #{budgetId}
109
+    </delete>
110
+
111
+    <delete id="deleteCmcBudgetByBudgetIds" parameterType="String">
112
+        delete from cmc_budget where budget_id in 
113
+        <foreach item="budgetId" collection="array" open="(" separator="," close=")">
114
+            #{budgetId}
115
+        </foreach>
116
+    </delete>
117
+</mapper>

+ 78
- 0
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcBudgetSettleMapper.xml Datei anzeigen

@@ -0,0 +1,78 @@
1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper
3
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
+<mapper namespace="com.ruoyi.oa.mapper.CmcBudgetSettleMapper">
6
+    
7
+    <resultMap type="CmcBudgetSettle" id="CmcBudgetSettleResult">
8
+        <result property="budgetSettleId"    column="budget_settle_id"    />
9
+        <result property="budgetId"    column="budget_id"    />
10
+        <result property="priceId"    column="price_id"    />
11
+        <result property="workload"    column="workload"    />
12
+        <result property="coefficient"    column="coefficient"    />
13
+        <result property="settle"    column="settle"    />
14
+    </resultMap>
15
+
16
+    <sql id="selectCmcBudgetSettleVo">
17
+        select budget_settle_id, budget_id, price_id, workload, coefficient, settle from cmc_budget_settle
18
+    </sql>
19
+
20
+    <select id="selectCmcBudgetSettleList" parameterType="CmcBudgetSettle" resultMap="CmcBudgetSettleResult">
21
+        <include refid="selectCmcBudgetSettleVo"/>
22
+        <where>  
23
+            <if test="budgetId != null  and budgetId != ''"> and budget_id = #{budgetId}</if>
24
+            <if test="priceId != null "> and price_id = #{priceId}</if>
25
+            <if test="workload != null "> and workload = #{workload}</if>
26
+            <if test="coefficient != null "> and coefficient = #{coefficient}</if>
27
+            <if test="settle != null "> and settle = #{settle}</if>
28
+        </where>
29
+    </select>
30
+    
31
+    <select id="selectCmcBudgetSettleByBudgetSettleId" parameterType="String" resultMap="CmcBudgetSettleResult">
32
+        <include refid="selectCmcBudgetSettleVo"/>
33
+        where budget_settle_id = #{budgetSettleId}
34
+    </select>
35
+        
36
+    <insert id="insertCmcBudgetSettle" parameterType="CmcBudgetSettle">
37
+        insert into cmc_budget_settle
38
+        <trim prefix="(" suffix=")" suffixOverrides=",">
39
+            <if test="budgetSettleId != null">budget_settle_id,</if>
40
+            <if test="budgetId != null">budget_id,</if>
41
+            <if test="priceId != null">price_id,</if>
42
+            <if test="workload != null">workload,</if>
43
+            <if test="coefficient != null">coefficient,</if>
44
+            <if test="settle != null">settle,</if>
45
+         </trim>
46
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
47
+            <if test="budgetSettleId != null">#{budgetSettleId},</if>
48
+            <if test="budgetId != null">#{budgetId},</if>
49
+            <if test="priceId != null">#{priceId},</if>
50
+            <if test="workload != null">#{workload},</if>
51
+            <if test="coefficient != null">#{coefficient},</if>
52
+            <if test="settle != null">#{settle},</if>
53
+         </trim>
54
+    </insert>
55
+
56
+    <update id="updateCmcBudgetSettle" parameterType="CmcBudgetSettle">
57
+        update cmc_budget_settle
58
+        <trim prefix="SET" suffixOverrides=",">
59
+            <if test="budgetId != null">budget_id = #{budgetId},</if>
60
+            <if test="priceId != null">price_id = #{priceId},</if>
61
+            <if test="workload != null">workload = #{workload},</if>
62
+            <if test="coefficient != null">coefficient = #{coefficient},</if>
63
+            <if test="settle != null">settle = #{settle},</if>
64
+        </trim>
65
+        where budget_settle_id = #{budgetSettleId}
66
+    </update>
67
+
68
+    <delete id="deleteCmcBudgetSettleByBudgetSettleId" parameterType="String">
69
+        delete from cmc_budget_settle where budget_settle_id = #{budgetSettleId}
70
+    </delete>
71
+
72
+    <delete id="deleteCmcBudgetSettleByBudgetSettleIds" parameterType="String">
73
+        delete from cmc_budget_settle where budget_settle_id in 
74
+        <foreach item="budgetSettleId" collection="array" open="(" separator="," close=")">
75
+            #{budgetSettleId}
76
+        </foreach>
77
+    </delete>
78
+</mapper>

+ 83
- 0
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcBudgetStaffMapper.xml Datei anzeigen

@@ -0,0 +1,83 @@
1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper
3
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
+<mapper namespace="com.ruoyi.oa.mapper.CmcBudgetStaffMapper">
6
+    
7
+    <resultMap type="CmcBudgetStaff" id="CmcBudgetStaffResult">
8
+        <result property="budgetStaffId"    column="budget_staff_id"    />
9
+        <result property="budgetId"    column="budget_id"    />
10
+        <result property="userId"    column="user_id"    />
11
+        <result property="days"    column="days"    />
12
+        <result property="fixCost"    column="fix_cost"    />
13
+        <result property="inOutPrice"    column="in_out_price"    />
14
+        <result property="inOutExpense"    column="in_out_expense"    />
15
+    </resultMap>
16
+
17
+    <sql id="selectCmcBudgetStaffVo">
18
+        select budget_staff_id, budget_id, user_id, days, fix_cost, in_out_price, in_out_expense from cmc_budget_staff
19
+    </sql>
20
+
21
+    <select id="selectCmcBudgetStaffList" parameterType="CmcBudgetStaff" resultMap="CmcBudgetStaffResult">
22
+        <include refid="selectCmcBudgetStaffVo"/>
23
+        <where>  
24
+            <if test="budgetId != null  and budgetId != ''"> and budget_id = #{budgetId}</if>
25
+            <if test="userId != null "> and user_id = #{userId}</if>
26
+            <if test="days != null "> and days = #{days}</if>
27
+            <if test="fixCost != null "> and fix_cost = #{fixCost}</if>
28
+            <if test="inOutPrice != null "> and in_out_price = #{inOutPrice}</if>
29
+            <if test="inOutExpense != null "> and in_out_expense = #{inOutExpense}</if>
30
+        </where>
31
+    </select>
32
+    
33
+    <select id="selectCmcBudgetStaffByBudgetStaffId" parameterType="String" resultMap="CmcBudgetStaffResult">
34
+        <include refid="selectCmcBudgetStaffVo"/>
35
+        where budget_staff_id = #{budgetStaffId}
36
+    </select>
37
+        
38
+    <insert id="insertCmcBudgetStaff" parameterType="CmcBudgetStaff">
39
+        insert into cmc_budget_staff
40
+        <trim prefix="(" suffix=")" suffixOverrides=",">
41
+            <if test="budgetStaffId != null">budget_staff_id,</if>
42
+            <if test="budgetId != null">budget_id,</if>
43
+            <if test="userId != null">user_id,</if>
44
+            <if test="days != null">days,</if>
45
+            <if test="fixCost != null">fix_cost,</if>
46
+            <if test="inOutPrice != null">in_out_price,</if>
47
+            <if test="inOutExpense != null">in_out_expense,</if>
48
+         </trim>
49
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
50
+            <if test="budgetStaffId != null">#{budgetStaffId},</if>
51
+            <if test="budgetId != null">#{budgetId},</if>
52
+            <if test="userId != null">#{userId},</if>
53
+            <if test="days != null">#{days},</if>
54
+            <if test="fixCost != null">#{fixCost},</if>
55
+            <if test="inOutPrice != null">#{inOutPrice},</if>
56
+            <if test="inOutExpense != null">#{inOutExpense},</if>
57
+         </trim>
58
+    </insert>
59
+
60
+    <update id="updateCmcBudgetStaff" parameterType="CmcBudgetStaff">
61
+        update cmc_budget_staff
62
+        <trim prefix="SET" suffixOverrides=",">
63
+            <if test="budgetId != null">budget_id = #{budgetId},</if>
64
+            <if test="userId != null">user_id = #{userId},</if>
65
+            <if test="days != null">days = #{days},</if>
66
+            <if test="fixCost != null">fix_cost = #{fixCost},</if>
67
+            <if test="inOutPrice != null">in_out_price = #{inOutPrice},</if>
68
+            <if test="inOutExpense != null">in_out_expense = #{inOutExpense},</if>
69
+        </trim>
70
+        where budget_staff_id = #{budgetStaffId}
71
+    </update>
72
+
73
+    <delete id="deleteCmcBudgetStaffByBudgetStaffId" parameterType="String">
74
+        delete from cmc_budget_staff where budget_staff_id = #{budgetStaffId}
75
+    </delete>
76
+
77
+    <delete id="deleteCmcBudgetStaffByBudgetStaffIds" parameterType="String">
78
+        delete from cmc_budget_staff where budget_staff_id in 
79
+        <foreach item="budgetStaffId" collection="array" open="(" separator="," close=")">
80
+            #{budgetStaffId}
81
+        </foreach>
82
+    </delete>
83
+</mapper>

+ 519
- 422
oa-back/sql/sql.sql
Datei-Diff unterdrückt, da er zu groß ist
Datei anzeigen


+ 44
- 0
oa-ui/src/api/oa/budget/budget.js Datei anzeigen

@@ -0,0 +1,44 @@
1
+import request from '@/utils/request'
2
+
3
+// 查询cmc预算管理列表
4
+export function listBudget(query) {
5
+  return request({
6
+    url: '/oa/budget/list',
7
+    method: 'get',
8
+    params: query
9
+  })
10
+}
11
+
12
+// 查询cmc预算管理详细
13
+export function getBudget(budgetId) {
14
+  return request({
15
+    url: '/oa/budget/' + budgetId,
16
+    method: 'get'
17
+  })
18
+}
19
+
20
+// 新增cmc预算管理
21
+export function addBudget(data) {
22
+  return request({
23
+    url: '/oa/budget',
24
+    method: 'post',
25
+    data: data
26
+  })
27
+}
28
+
29
+// 修改cmc预算管理
30
+export function updateBudget(data) {
31
+  return request({
32
+    url: '/oa/budget',
33
+    method: 'put',
34
+    data: data
35
+  })
36
+}
37
+
38
+// 删除cmc预算管理
39
+export function delBudget(budgetId) {
40
+  return request({
41
+    url: '/oa/budget/' + budgetId,
42
+    method: 'delete'
43
+  })
44
+}

+ 44
- 0
oa-ui/src/api/oa/budget/budgetCar.js Datei anzeigen

@@ -0,0 +1,44 @@
1
+import request from '@/utils/request'
2
+
3
+// 查询cmc车辆预算列表
4
+export function listBudgetCar(query) {
5
+  return request({
6
+    url: '/oa/budgetCar/list',
7
+    method: 'get',
8
+    params: query
9
+  })
10
+}
11
+
12
+// 查询cmc车辆预算详细
13
+export function getBudgetCar(budgetCarId) {
14
+  return request({
15
+    url: '/oa/budgetCar/' + budgetCarId,
16
+    method: 'get'
17
+  })
18
+}
19
+
20
+// 新增cmc车辆预算
21
+export function addBudgetCar(data) {
22
+  return request({
23
+    url: '/oa/budgetCar',
24
+    method: 'post',
25
+    data: data
26
+  })
27
+}
28
+
29
+// 修改cmc车辆预算
30
+export function updateBudgetCar(data) {
31
+  return request({
32
+    url: '/oa/budgetCar',
33
+    method: 'put',
34
+    data: data
35
+  })
36
+}
37
+
38
+// 删除cmc车辆预算
39
+export function delBudgetCar(budgetCarId) {
40
+  return request({
41
+    url: '/oa/budgetCar/' + budgetCarId,
42
+    method: 'delete'
43
+  })
44
+}

+ 44
- 0
oa-ui/src/api/oa/budget/budgetDevice.js Datei anzeigen

@@ -0,0 +1,44 @@
1
+import request from '@/utils/request'
2
+
3
+// 查询cmc设备预算列表
4
+export function listBudgetDevice(query) {
5
+  return request({
6
+    url: '/oa/budgetDevice/list',
7
+    method: 'get',
8
+    params: query
9
+  })
10
+}
11
+
12
+// 查询cmc设备预算详细
13
+export function getBudgetDevice(budgetDeviceId) {
14
+  return request({
15
+    url: '/oa/budgetDevice/' + budgetDeviceId,
16
+    method: 'get'
17
+  })
18
+}
19
+
20
+// 新增cmc设备预算
21
+export function addBudgetDevice(data) {
22
+  return request({
23
+    url: '/oa/budgetDevice',
24
+    method: 'post',
25
+    data: data
26
+  })
27
+}
28
+
29
+// 修改cmc设备预算
30
+export function updateBudgetDevice(data) {
31
+  return request({
32
+    url: '/oa/budgetDevice',
33
+    method: 'put',
34
+    data: data
35
+  })
36
+}
37
+
38
+// 删除cmc设备预算
39
+export function delBudgetDevice(budgetDeviceId) {
40
+  return request({
41
+    url: '/oa/budgetDevice/' + budgetDeviceId,
42
+    method: 'delete'
43
+  })
44
+}

+ 44
- 0
oa-ui/src/api/oa/budget/budgetSettle.js Datei anzeigen

@@ -0,0 +1,44 @@
1
+import request from '@/utils/request'
2
+
3
+// 查询cmc预结算列表
4
+export function listBudgetSettle(query) {
5
+  return request({
6
+    url: '/oa/budgetSettle/list',
7
+    method: 'get',
8
+    params: query
9
+  })
10
+}
11
+
12
+// 查询cmc预结算详细
13
+export function getBudgetSettle(budgetSettleId) {
14
+  return request({
15
+    url: '/oa/budgetSettle/' + budgetSettleId,
16
+    method: 'get'
17
+  })
18
+}
19
+
20
+// 新增cmc预结算
21
+export function addBudgetSettle(data) {
22
+  return request({
23
+    url: '/oa/budgetSettle',
24
+    method: 'post',
25
+    data: data
26
+  })
27
+}
28
+
29
+// 修改cmc预结算
30
+export function updateBudgetSettle(data) {
31
+  return request({
32
+    url: '/oa/budgetSettle',
33
+    method: 'put',
34
+    data: data
35
+  })
36
+}
37
+
38
+// 删除cmc预结算
39
+export function delBudgetSettle(budgetSettleId) {
40
+  return request({
41
+    url: '/oa/budgetSettle/' + budgetSettleId,
42
+    method: 'delete'
43
+  })
44
+}

+ 44
- 0
oa-ui/src/api/oa/budget/budgetStaff.js Datei anzeigen

@@ -0,0 +1,44 @@
1
+import request from '@/utils/request'
2
+
3
+// 查询cmc人员预算列表
4
+export function listBudgetStaff(query) {
5
+  return request({
6
+    url: '/oa/budgetStaff/list',
7
+    method: 'get',
8
+    params: query
9
+  })
10
+}
11
+
12
+// 查询cmc人员预算详细
13
+export function getBudgetStaff(budgetStaffId) {
14
+  return request({
15
+    url: '/oa/budgetStaff/' + budgetStaffId,
16
+    method: 'get'
17
+  })
18
+}
19
+
20
+// 新增cmc人员预算
21
+export function addBudgetStaff(data) {
22
+  return request({
23
+    url: '/oa/budgetStaff',
24
+    method: 'post',
25
+    data: data
26
+  })
27
+}
28
+
29
+// 修改cmc人员预算
30
+export function updateBudgetStaff(data) {
31
+  return request({
32
+    url: '/oa/budgetStaff',
33
+    method: 'put',
34
+    data: data
35
+  })
36
+}
37
+
38
+// 删除cmc人员预算
39
+export function delBudgetStaff(budgetStaffId) {
40
+  return request({
41
+    url: '/oa/budgetStaff/' + budgetStaffId,
42
+    method: 'delete'
43
+  })
44
+}

+ 329
- 0
oa-ui/src/views/oa/budget/car.vue Datei anzeigen

@@ -0,0 +1,329 @@
1
+<template>
2
+  <div class="app-container">
3
+    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
4
+      <el-form-item label="预算id" prop="budgetId">
5
+        <el-input
6
+          v-model="queryParams.budgetId"
7
+          placeholder="请输入预算id"
8
+          clearable
9
+          @keyup.enter.native="handleQuery"
10
+        />
11
+      </el-form-item>
12
+      <el-form-item label="车辆id" prop="carId">
13
+        <el-input
14
+          v-model="queryParams.carId"
15
+          placeholder="请输入车辆id"
16
+          clearable
17
+          @keyup.enter.native="handleQuery"
18
+        />
19
+      </el-form-item>
20
+      <el-form-item label="天数" prop="days">
21
+        <el-input
22
+          v-model="queryParams.days"
23
+          placeholder="请输入天数"
24
+          clearable
25
+          @keyup.enter.native="handleQuery"
26
+        />
27
+      </el-form-item>
28
+      <el-form-item label="折旧成本" prop="depreciation">
29
+        <el-input
30
+          v-model="queryParams.depreciation"
31
+          placeholder="请输入折旧成本"
32
+          clearable
33
+          @keyup.enter.native="handleQuery"
34
+        />
35
+      </el-form-item>
36
+      <el-form-item label="距离" prop="distance">
37
+        <el-input
38
+          v-model="queryParams.distance"
39
+          placeholder="请输入距离"
40
+          clearable
41
+          @keyup.enter.native="handleQuery"
42
+        />
43
+      </el-form-item>
44
+      <el-form-item label="油耗" prop="mileage">
45
+        <el-input
46
+          v-model="queryParams.mileage"
47
+          placeholder="请输入油耗"
48
+          clearable
49
+          @keyup.enter.native="handleQuery"
50
+        />
51
+      </el-form-item>
52
+      <el-form-item label="使用成本" prop="expense">
53
+        <el-input
54
+          v-model="queryParams.expense"
55
+          placeholder="请输入使用成本"
56
+          clearable
57
+          @keyup.enter.native="handleQuery"
58
+        />
59
+      </el-form-item>
60
+      <el-form-item>
61
+        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
62
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
63
+      </el-form-item>
64
+    </el-form>
65
+
66
+    <el-row :gutter="10" class="mb8">
67
+      <el-col :span="1.5">
68
+        <el-button
69
+          type="primary"
70
+          plain
71
+          icon="el-icon-plus"
72
+          size="mini"
73
+          @click="handleAdd"
74
+          v-hasPermi="['oa:budgetCar:add']"
75
+        >新增</el-button>
76
+      </el-col>
77
+      <el-col :span="1.5">
78
+        <el-button
79
+          type="success"
80
+          plain
81
+          icon="el-icon-edit"
82
+          size="mini"
83
+          :disabled="single"
84
+          @click="handleUpdate"
85
+          v-hasPermi="['oa:budgetCar:edit']"
86
+        >修改</el-button>
87
+      </el-col>
88
+      <el-col :span="1.5">
89
+        <el-button
90
+          type="danger"
91
+          plain
92
+          icon="el-icon-delete"
93
+          size="mini"
94
+          :disabled="multiple"
95
+          @click="handleDelete"
96
+          v-hasPermi="['oa:budgetCar:remove']"
97
+        >删除</el-button>
98
+      </el-col>
99
+      <el-col :span="1.5">
100
+        <el-button
101
+          type="warning"
102
+          plain
103
+          icon="el-icon-download"
104
+          size="mini"
105
+          @click="handleExport"
106
+          v-hasPermi="['oa:budgetCar:export']"
107
+        >导出</el-button>
108
+      </el-col>
109
+      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
110
+    </el-row>
111
+
112
+    <el-table v-loading="loading" :data="budgetCarList" @selection-change="handleSelectionChange">
113
+      <el-table-column type="selection" width="55" align="center" />
114
+      <el-table-column label="车辆预算id" align="center" prop="budgetCarId" />
115
+      <el-table-column label="预算id" align="center" prop="budgetId" />
116
+      <el-table-column label="车辆id" align="center" prop="carId" />
117
+      <el-table-column label="天数" align="center" prop="days" />
118
+      <el-table-column label="折旧成本" align="center" prop="depreciation" />
119
+      <el-table-column label="距离" align="center" prop="distance" />
120
+      <el-table-column label="油耗" align="center" prop="mileage" />
121
+      <el-table-column label="使用成本" align="center" prop="expense" />
122
+      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
123
+        <template slot-scope="scope">
124
+          <el-button
125
+            size="mini"
126
+            type="text"
127
+            icon="el-icon-edit"
128
+            @click="handleUpdate(scope.row)"
129
+            v-hasPermi="['oa:budgetCar:edit']"
130
+          >修改</el-button>
131
+          <el-button
132
+            size="mini"
133
+            type="text"
134
+            icon="el-icon-delete"
135
+            @click="handleDelete(scope.row)"
136
+            v-hasPermi="['oa:budgetCar:remove']"
137
+          >删除</el-button>
138
+        </template>
139
+      </el-table-column>
140
+    </el-table>
141
+    
142
+    <pagination
143
+      v-show="total>0"
144
+      :total="total"
145
+      :page.sync="queryParams.pageNum"
146
+      :limit.sync="queryParams.pageSize"
147
+      @pagination="getList"
148
+    />
149
+
150
+    <!-- 添加或修改cmc车辆预算对话框 -->
151
+    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
152
+      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
153
+        <el-form-item label="预算id" prop="budgetId">
154
+          <el-input v-model="form.budgetId" placeholder="请输入预算id" />
155
+        </el-form-item>
156
+        <el-form-item label="车辆id" prop="carId">
157
+          <el-input v-model="form.carId" placeholder="请输入车辆id" />
158
+        </el-form-item>
159
+        <el-form-item label="天数" prop="days">
160
+          <el-input v-model="form.days" placeholder="请输入天数" />
161
+        </el-form-item>
162
+        <el-form-item label="折旧成本" prop="depreciation">
163
+          <el-input v-model="form.depreciation" placeholder="请输入折旧成本" />
164
+        </el-form-item>
165
+        <el-form-item label="距离" prop="distance">
166
+          <el-input v-model="form.distance" placeholder="请输入距离" />
167
+        </el-form-item>
168
+        <el-form-item label="油耗" prop="mileage">
169
+          <el-input v-model="form.mileage" placeholder="请输入油耗" />
170
+        </el-form-item>
171
+        <el-form-item label="使用成本" prop="expense">
172
+          <el-input v-model="form.expense" placeholder="请输入使用成本" />
173
+        </el-form-item>
174
+      </el-form>
175
+      <div slot="footer" class="dialog-footer">
176
+        <el-button type="primary" @click="submitForm">确 定</el-button>
177
+        <el-button @click="cancel">取 消</el-button>
178
+      </div>
179
+    </el-dialog>
180
+  </div>
181
+</template>
182
+
183
+<script>
184
+import { listBudgetCar, getBudgetCar, delBudgetCar, addBudgetCar, updateBudgetCar } from "@/api/oa/budget/budgetCar";
185
+
186
+export default {
187
+  name: "BudgetCar",
188
+  data() {
189
+    return {
190
+      // 遮罩层
191
+      loading: true,
192
+      // 选中数组
193
+      ids: [],
194
+      // 非单个禁用
195
+      single: true,
196
+      // 非多个禁用
197
+      multiple: true,
198
+      // 显示搜索条件
199
+      showSearch: true,
200
+      // 总条数
201
+      total: 0,
202
+      // cmc车辆预算表格数据
203
+      budgetCarList: [],
204
+      // 弹出层标题
205
+      title: "",
206
+      // 是否显示弹出层
207
+      open: false,
208
+      // 查询参数
209
+      queryParams: {
210
+        pageNum: 1,
211
+        pageSize: 10,
212
+        budgetId: null,
213
+        carId: null,
214
+        days: null,
215
+        depreciation: null,
216
+        distance: null,
217
+        mileage: null,
218
+        expense: null
219
+      },
220
+      // 表单参数
221
+      form: {},
222
+      // 表单校验
223
+      rules: {
224
+      }
225
+    };
226
+  },
227
+  created() {
228
+    this.getList();
229
+  },
230
+  methods: {
231
+    /** 查询cmc车辆预算列表 */
232
+    getList() {
233
+      this.loading = true;
234
+      listBudgetCar(this.queryParams).then(response => {
235
+        this.budgetCarList = response.rows;
236
+        this.total = response.total;
237
+        this.loading = false;
238
+      });
239
+    },
240
+    // 取消按钮
241
+    cancel() {
242
+      this.open = false;
243
+      this.reset();
244
+    },
245
+    // 表单重置
246
+    reset() {
247
+      this.form = {
248
+        budgetCarId: null,
249
+        budgetId: null,
250
+        carId: null,
251
+        days: null,
252
+        depreciation: null,
253
+        distance: null,
254
+        mileage: null,
255
+        expense: null
256
+      };
257
+      this.resetForm("form");
258
+    },
259
+    /** 搜索按钮操作 */
260
+    handleQuery() {
261
+      this.queryParams.pageNum = 1;
262
+      this.getList();
263
+    },
264
+    /** 重置按钮操作 */
265
+    resetQuery() {
266
+      this.resetForm("queryForm");
267
+      this.handleQuery();
268
+    },
269
+    // 多选框选中数据
270
+    handleSelectionChange(selection) {
271
+      this.ids = selection.map(item => item.budgetCarId)
272
+      this.single = selection.length!==1
273
+      this.multiple = !selection.length
274
+    },
275
+    /** 新增按钮操作 */
276
+    handleAdd() {
277
+      this.reset();
278
+      this.open = true;
279
+      this.title = "添加cmc车辆预算";
280
+    },
281
+    /** 修改按钮操作 */
282
+    handleUpdate(row) {
283
+      this.reset();
284
+      const budgetCarId = row.budgetCarId || this.ids
285
+      getBudgetCar(budgetCarId).then(response => {
286
+        this.form = response.data;
287
+        this.open = true;
288
+        this.title = "修改cmc车辆预算";
289
+      });
290
+    },
291
+    /** 提交按钮 */
292
+    submitForm() {
293
+      this.$refs["form"].validate(valid => {
294
+        if (valid) {
295
+          if (this.form.budgetCarId != null) {
296
+            updateBudgetCar(this.form).then(response => {
297
+              this.$modal.msgSuccess("修改成功");
298
+              this.open = false;
299
+              this.getList();
300
+            });
301
+          } else {
302
+            addBudgetCar(this.form).then(response => {
303
+              this.$modal.msgSuccess("新增成功");
304
+              this.open = false;
305
+              this.getList();
306
+            });
307
+          }
308
+        }
309
+      });
310
+    },
311
+    /** 删除按钮操作 */
312
+    handleDelete(row) {
313
+      const budgetCarIds = row.budgetCarId || this.ids;
314
+      this.$modal.confirm('是否确认删除cmc车辆预算编号为"' + budgetCarIds + '"的数据项?').then(function() {
315
+        return delBudgetCar(budgetCarIds);
316
+      }).then(() => {
317
+        this.getList();
318
+        this.$modal.msgSuccess("删除成功");
319
+      }).catch(() => {});
320
+    },
321
+    /** 导出按钮操作 */
322
+    handleExport() {
323
+      this.download('oa/budgetCar/export', {
324
+        ...this.queryParams
325
+      }, `budgetCar_${new Date().getTime()}.xlsx`)
326
+    }
327
+  }
328
+};
329
+</script>

+ 287
- 0
oa-ui/src/views/oa/budget/device.vue Datei anzeigen

@@ -0,0 +1,287 @@
1
+<template>
2
+  <div class="app-container">
3
+    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
4
+      <el-form-item label="预算id" prop="budgetId">
5
+        <el-input
6
+          v-model="queryParams.budgetId"
7
+          placeholder="请输入预算id"
8
+          clearable
9
+          @keyup.enter.native="handleQuery"
10
+        />
11
+      </el-form-item>
12
+      <el-form-item label="设备id" prop="deviceId">
13
+        <el-input
14
+          v-model="queryParams.deviceId"
15
+          placeholder="请输入设备id"
16
+          clearable
17
+          @keyup.enter.native="handleQuery"
18
+        />
19
+      </el-form-item>
20
+      <el-form-item label="天数" prop="days">
21
+        <el-input
22
+          v-model="queryParams.days"
23
+          placeholder="请输入天数"
24
+          clearable
25
+          @keyup.enter.native="handleQuery"
26
+        />
27
+      </el-form-item>
28
+      <el-form-item label="折旧成本" prop="depreciation">
29
+        <el-input
30
+          v-model="queryParams.depreciation"
31
+          placeholder="请输入折旧成本"
32
+          clearable
33
+          @keyup.enter.native="handleQuery"
34
+        />
35
+      </el-form-item>
36
+      <el-form-item>
37
+        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
38
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
39
+      </el-form-item>
40
+    </el-form>
41
+
42
+    <el-row :gutter="10" class="mb8">
43
+      <el-col :span="1.5">
44
+        <el-button
45
+          type="primary"
46
+          plain
47
+          icon="el-icon-plus"
48
+          size="mini"
49
+          @click="handleAdd"
50
+          v-hasPermi="['oa:budgetDevice:add']"
51
+        >新增</el-button>
52
+      </el-col>
53
+      <el-col :span="1.5">
54
+        <el-button
55
+          type="success"
56
+          plain
57
+          icon="el-icon-edit"
58
+          size="mini"
59
+          :disabled="single"
60
+          @click="handleUpdate"
61
+          v-hasPermi="['oa:budgetDevice:edit']"
62
+        >修改</el-button>
63
+      </el-col>
64
+      <el-col :span="1.5">
65
+        <el-button
66
+          type="danger"
67
+          plain
68
+          icon="el-icon-delete"
69
+          size="mini"
70
+          :disabled="multiple"
71
+          @click="handleDelete"
72
+          v-hasPermi="['oa:budgetDevice:remove']"
73
+        >删除</el-button>
74
+      </el-col>
75
+      <el-col :span="1.5">
76
+        <el-button
77
+          type="warning"
78
+          plain
79
+          icon="el-icon-download"
80
+          size="mini"
81
+          @click="handleExport"
82
+          v-hasPermi="['oa:budgetDevice:export']"
83
+        >导出</el-button>
84
+      </el-col>
85
+      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
86
+    </el-row>
87
+
88
+    <el-table v-loading="loading" :data="budgetDeviceList" @selection-change="handleSelectionChange">
89
+      <el-table-column type="selection" width="55" align="center" />
90
+      <el-table-column label="设备预算id" align="center" prop="budgetDeviceId" />
91
+      <el-table-column label="预算id" align="center" prop="budgetId" />
92
+      <el-table-column label="设备id" align="center" prop="deviceId" />
93
+      <el-table-column label="天数" align="center" prop="days" />
94
+      <el-table-column label="折旧成本" align="center" prop="depreciation" />
95
+      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
96
+        <template slot-scope="scope">
97
+          <el-button
98
+            size="mini"
99
+            type="text"
100
+            icon="el-icon-edit"
101
+            @click="handleUpdate(scope.row)"
102
+            v-hasPermi="['oa:budgetDevice:edit']"
103
+          >修改</el-button>
104
+          <el-button
105
+            size="mini"
106
+            type="text"
107
+            icon="el-icon-delete"
108
+            @click="handleDelete(scope.row)"
109
+            v-hasPermi="['oa:budgetDevice:remove']"
110
+          >删除</el-button>
111
+        </template>
112
+      </el-table-column>
113
+    </el-table>
114
+    
115
+    <pagination
116
+      v-show="total>0"
117
+      :total="total"
118
+      :page.sync="queryParams.pageNum"
119
+      :limit.sync="queryParams.pageSize"
120
+      @pagination="getList"
121
+    />
122
+
123
+    <!-- 添加或修改cmc设备预算对话框 -->
124
+    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
125
+      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
126
+        <el-form-item label="预算id" prop="budgetId">
127
+          <el-input v-model="form.budgetId" placeholder="请输入预算id" />
128
+        </el-form-item>
129
+        <el-form-item label="设备id" prop="deviceId">
130
+          <el-input v-model="form.deviceId" placeholder="请输入设备id" />
131
+        </el-form-item>
132
+        <el-form-item label="天数" prop="days">
133
+          <el-input v-model="form.days" placeholder="请输入天数" />
134
+        </el-form-item>
135
+        <el-form-item label="折旧成本" prop="depreciation">
136
+          <el-input v-model="form.depreciation" placeholder="请输入折旧成本" />
137
+        </el-form-item>
138
+      </el-form>
139
+      <div slot="footer" class="dialog-footer">
140
+        <el-button type="primary" @click="submitForm">确 定</el-button>
141
+        <el-button @click="cancel">取 消</el-button>
142
+      </div>
143
+    </el-dialog>
144
+  </div>
145
+</template>
146
+
147
+<script>
148
+import { listBudgetDevice, getBudgetDevice, delBudgetDevice, addBudgetDevice, updateBudgetDevice } from "@/api/oa/budget/budgetDevice";
149
+
150
+export default {
151
+  name: "BudgetDevice",
152
+  data() {
153
+    return {
154
+      // 遮罩层
155
+      loading: true,
156
+      // 选中数组
157
+      ids: [],
158
+      // 非单个禁用
159
+      single: true,
160
+      // 非多个禁用
161
+      multiple: true,
162
+      // 显示搜索条件
163
+      showSearch: true,
164
+      // 总条数
165
+      total: 0,
166
+      // cmc设备预算表格数据
167
+      budgetDeviceList: [],
168
+      // 弹出层标题
169
+      title: "",
170
+      // 是否显示弹出层
171
+      open: false,
172
+      // 查询参数
173
+      queryParams: {
174
+        pageNum: 1,
175
+        pageSize: 10,
176
+        budgetId: null,
177
+        deviceId: null,
178
+        days: null,
179
+        depreciation: null
180
+      },
181
+      // 表单参数
182
+      form: {},
183
+      // 表单校验
184
+      rules: {
185
+      }
186
+    };
187
+  },
188
+  created() {
189
+    this.getList();
190
+  },
191
+  methods: {
192
+    /** 查询cmc设备预算列表 */
193
+    getList() {
194
+      this.loading = true;
195
+      listBudgetDevice(this.queryParams).then(response => {
196
+        this.budgetDeviceList = response.rows;
197
+        this.total = response.total;
198
+        this.loading = false;
199
+      });
200
+    },
201
+    // 取消按钮
202
+    cancel() {
203
+      this.open = false;
204
+      this.reset();
205
+    },
206
+    // 表单重置
207
+    reset() {
208
+      this.form = {
209
+        budgetDeviceId: null,
210
+        budgetId: null,
211
+        deviceId: null,
212
+        days: null,
213
+        depreciation: null
214
+      };
215
+      this.resetForm("form");
216
+    },
217
+    /** 搜索按钮操作 */
218
+    handleQuery() {
219
+      this.queryParams.pageNum = 1;
220
+      this.getList();
221
+    },
222
+    /** 重置按钮操作 */
223
+    resetQuery() {
224
+      this.resetForm("queryForm");
225
+      this.handleQuery();
226
+    },
227
+    // 多选框选中数据
228
+    handleSelectionChange(selection) {
229
+      this.ids = selection.map(item => item.budgetDeviceId)
230
+      this.single = selection.length!==1
231
+      this.multiple = !selection.length
232
+    },
233
+    /** 新增按钮操作 */
234
+    handleAdd() {
235
+      this.reset();
236
+      this.open = true;
237
+      this.title = "添加cmc设备预算";
238
+    },
239
+    /** 修改按钮操作 */
240
+    handleUpdate(row) {
241
+      this.reset();
242
+      const budgetDeviceId = row.budgetDeviceId || this.ids
243
+      getBudgetDevice(budgetDeviceId).then(response => {
244
+        this.form = response.data;
245
+        this.open = true;
246
+        this.title = "修改cmc设备预算";
247
+      });
248
+    },
249
+    /** 提交按钮 */
250
+    submitForm() {
251
+      this.$refs["form"].validate(valid => {
252
+        if (valid) {
253
+          if (this.form.budgetDeviceId != null) {
254
+            updateBudgetDevice(this.form).then(response => {
255
+              this.$modal.msgSuccess("修改成功");
256
+              this.open = false;
257
+              this.getList();
258
+            });
259
+          } else {
260
+            addBudgetDevice(this.form).then(response => {
261
+              this.$modal.msgSuccess("新增成功");
262
+              this.open = false;
263
+              this.getList();
264
+            });
265
+          }
266
+        }
267
+      });
268
+    },
269
+    /** 删除按钮操作 */
270
+    handleDelete(row) {
271
+      const budgetDeviceIds = row.budgetDeviceId || this.ids;
272
+      this.$modal.confirm('是否确认删除cmc设备预算编号为"' + budgetDeviceIds + '"的数据项?').then(function() {
273
+        return delBudgetDevice(budgetDeviceIds);
274
+      }).then(() => {
275
+        this.getList();
276
+        this.$modal.msgSuccess("删除成功");
277
+      }).catch(() => {});
278
+    },
279
+    /** 导出按钮操作 */
280
+    handleExport() {
281
+      this.download('oa/budgetDevice/export', {
282
+        ...this.queryParams
283
+      }, `budgetDevice_${new Date().getTime()}.xlsx`)
284
+    }
285
+  }
286
+};
287
+</script>

+ 400
- 0
oa-ui/src/views/oa/budget/index.vue Datei anzeigen

@@ -0,0 +1,400 @@
1
+<template>
2
+  <div class="app-container">
3
+    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
4
+      <el-form-item label="项目id" prop="projectId">
5
+        <el-input
6
+          v-model="queryParams.projectId"
7
+          placeholder="请输入项目id"
8
+          clearable
9
+          @keyup.enter.native="handleQuery"
10
+        />
11
+      </el-form-item>
12
+      <el-form-item label="人员成本" prop="staffCost">
13
+        <el-input
14
+          v-model="queryParams.staffCost"
15
+          placeholder="请输入人员成本"
16
+          clearable
17
+          @keyup.enter.native="handleQuery"
18
+        />
19
+      </el-form-item>
20
+      <el-form-item label="车辆成本" prop="carCost">
21
+        <el-input
22
+          v-model="queryParams.carCost"
23
+          placeholder="请输入车辆成本"
24
+          clearable
25
+          @keyup.enter.native="handleQuery"
26
+        />
27
+      </el-form-item>
28
+      <el-form-item label="设备成本" prop="deviceCost">
29
+        <el-input
30
+          v-model="queryParams.deviceCost"
31
+          placeholder="请输入设备成本"
32
+          clearable
33
+          @keyup.enter.native="handleQuery"
34
+        />
35
+      </el-form-item>
36
+      <el-form-item label="预结算额" prop="budgetSettle">
37
+        <el-input
38
+          v-model="queryParams.budgetSettle"
39
+          placeholder="请输入预结算额"
40
+          clearable
41
+          @keyup.enter.native="handleQuery"
42
+        />
43
+      </el-form-item>
44
+      <el-form-item label="外协费用" prop="outExpense">
45
+        <el-input
46
+          v-model="queryParams.outExpense"
47
+          placeholder="请输入外协费用"
48
+          clearable
49
+          @keyup.enter.native="handleQuery"
50
+        />
51
+      </el-form-item>
52
+      <el-form-item label="商务费用" prop="businessExpense">
53
+        <el-input
54
+          v-model="queryParams.businessExpense"
55
+          placeholder="请输入商务费用"
56
+          clearable
57
+          @keyup.enter.native="handleQuery"
58
+        />
59
+      </el-form-item>
60
+      <el-form-item label="车船租赁" prop="rentExpense">
61
+        <el-input
62
+          v-model="queryParams.rentExpense"
63
+          placeholder="请输入车船租赁"
64
+          clearable
65
+          @keyup.enter.native="handleQuery"
66
+        />
67
+      </el-form-item>
68
+      <el-form-item label="其他费用" prop="otherExpense">
69
+        <el-input
70
+          v-model="queryParams.otherExpense"
71
+          placeholder="请输入其他费用"
72
+          clearable
73
+          @keyup.enter.native="handleQuery"
74
+        />
75
+      </el-form-item>
76
+      <el-form-item label="预算总额" prop="totalExpense">
77
+        <el-input
78
+          v-model="queryParams.totalExpense"
79
+          placeholder="请输入预算总额"
80
+          clearable
81
+          @keyup.enter.native="handleQuery"
82
+        />
83
+      </el-form-item>
84
+      <el-form-item label="编制人" prop="compiler">
85
+        <el-input
86
+          v-model="queryParams.compiler"
87
+          placeholder="请输入编制人"
88
+          clearable
89
+          @keyup.enter.native="handleQuery"
90
+        />
91
+      </el-form-item>
92
+      <el-form-item label="审核人" prop="auditor">
93
+        <el-input
94
+          v-model="queryParams.auditor"
95
+          placeholder="请输入审核人"
96
+          clearable
97
+          @keyup.enter.native="handleQuery"
98
+        />
99
+      </el-form-item>
100
+      <el-form-item>
101
+        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
102
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
103
+      </el-form-item>
104
+    </el-form>
105
+
106
+    <el-row :gutter="10" class="mb8">
107
+      <el-col :span="1.5">
108
+        <el-button
109
+          type="primary"
110
+          plain
111
+          icon="el-icon-plus"
112
+          size="mini"
113
+          @click="handleAdd"
114
+          v-hasPermi="['oa:budget:add']"
115
+        >新增</el-button>
116
+      </el-col>
117
+      <el-col :span="1.5">
118
+        <el-button
119
+          type="success"
120
+          plain
121
+          icon="el-icon-edit"
122
+          size="mini"
123
+          :disabled="single"
124
+          @click="handleUpdate"
125
+          v-hasPermi="['oa:budget:edit']"
126
+        >修改</el-button>
127
+      </el-col>
128
+      <el-col :span="1.5">
129
+        <el-button
130
+          type="danger"
131
+          plain
132
+          icon="el-icon-delete"
133
+          size="mini"
134
+          :disabled="multiple"
135
+          @click="handleDelete"
136
+          v-hasPermi="['oa:budget:remove']"
137
+        >删除</el-button>
138
+      </el-col>
139
+      <el-col :span="1.5">
140
+        <el-button
141
+          type="warning"
142
+          plain
143
+          icon="el-icon-download"
144
+          size="mini"
145
+          @click="handleExport"
146
+          v-hasPermi="['oa:budget:export']"
147
+        >导出</el-button>
148
+      </el-col>
149
+      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
150
+    </el-row>
151
+
152
+    <el-table v-loading="loading" :data="budgetList" @selection-change="handleSelectionChange">
153
+      <el-table-column type="selection" width="55" align="center" />
154
+      <el-table-column label="预算id" align="center" prop="budgetId" />
155
+      <el-table-column label="项目id" align="center" prop="projectId" />
156
+      <el-table-column label="人员成本" align="center" prop="staffCost" />
157
+      <el-table-column label="车辆成本" align="center" prop="carCost" />
158
+      <el-table-column label="设备成本" align="center" prop="deviceCost" />
159
+      <el-table-column label="预结算额" align="center" prop="budgetSettle" />
160
+      <el-table-column label="外协费用" align="center" prop="outExpense" />
161
+      <el-table-column label="商务费用" align="center" prop="businessExpense" />
162
+      <el-table-column label="车船租赁" align="center" prop="rentExpense" />
163
+      <el-table-column label="其他费用" align="center" prop="otherExpense" />
164
+      <el-table-column label="预算总额" align="center" prop="totalExpense" />
165
+      <el-table-column label="编制人" align="center" prop="compiler" />
166
+      <el-table-column label="审核人" align="center" prop="auditor" />
167
+      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
168
+        <template slot-scope="scope">
169
+          <el-button
170
+            size="mini"
171
+            type="text"
172
+            icon="el-icon-edit"
173
+            @click="handleUpdate(scope.row)"
174
+            v-hasPermi="['oa:budget:edit']"
175
+          >修改</el-button>
176
+          <el-button
177
+            size="mini"
178
+            type="text"
179
+            icon="el-icon-delete"
180
+            @click="handleDelete(scope.row)"
181
+            v-hasPermi="['oa:budget:remove']"
182
+          >删除</el-button>
183
+        </template>
184
+      </el-table-column>
185
+    </el-table>
186
+    
187
+    <pagination
188
+      v-show="total>0"
189
+      :total="total"
190
+      :page.sync="queryParams.pageNum"
191
+      :limit.sync="queryParams.pageSize"
192
+      @pagination="getList"
193
+    />
194
+
195
+    <!-- 添加或修改cmc预算管理对话框 -->
196
+    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
197
+      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
198
+        <el-form-item label="项目id" prop="projectId">
199
+          <el-input v-model="form.projectId" placeholder="请输入项目id" />
200
+        </el-form-item>
201
+        <el-form-item label="人员成本" prop="staffCost">
202
+          <el-input v-model="form.staffCost" placeholder="请输入人员成本" />
203
+        </el-form-item>
204
+        <el-form-item label="车辆成本" prop="carCost">
205
+          <el-input v-model="form.carCost" placeholder="请输入车辆成本" />
206
+        </el-form-item>
207
+        <el-form-item label="设备成本" prop="deviceCost">
208
+          <el-input v-model="form.deviceCost" placeholder="请输入设备成本" />
209
+        </el-form-item>
210
+        <el-form-item label="预结算额" prop="budgetSettle">
211
+          <el-input v-model="form.budgetSettle" placeholder="请输入预结算额" />
212
+        </el-form-item>
213
+        <el-form-item label="外协费用" prop="outExpense">
214
+          <el-input v-model="form.outExpense" placeholder="请输入外协费用" />
215
+        </el-form-item>
216
+        <el-form-item label="商务费用" prop="businessExpense">
217
+          <el-input v-model="form.businessExpense" placeholder="请输入商务费用" />
218
+        </el-form-item>
219
+        <el-form-item label="车船租赁" prop="rentExpense">
220
+          <el-input v-model="form.rentExpense" placeholder="请输入车船租赁" />
221
+        </el-form-item>
222
+        <el-form-item label="其他费用" prop="otherExpense">
223
+          <el-input v-model="form.otherExpense" placeholder="请输入其他费用" />
224
+        </el-form-item>
225
+        <el-form-item label="预算总额" prop="totalExpense">
226
+          <el-input v-model="form.totalExpense" placeholder="请输入预算总额" />
227
+        </el-form-item>
228
+        <el-form-item label="编制人" prop="compiler">
229
+          <el-input v-model="form.compiler" placeholder="请输入编制人" />
230
+        </el-form-item>
231
+        <el-form-item label="审核人" prop="auditor">
232
+          <el-input v-model="form.auditor" placeholder="请输入审核人" />
233
+        </el-form-item>
234
+      </el-form>
235
+      <div slot="footer" class="dialog-footer">
236
+        <el-button type="primary" @click="submitForm">确 定</el-button>
237
+        <el-button @click="cancel">取 消</el-button>
238
+      </div>
239
+    </el-dialog>
240
+  </div>
241
+</template>
242
+
243
+<script>
244
+import { listBudget, getBudget, delBudget, addBudget, updateBudget } from "@/api/oa/budget/budget";
245
+
246
+export default {
247
+  name: "Budget",
248
+  data() {
249
+    return {
250
+      // 遮罩层
251
+      loading: true,
252
+      // 选中数组
253
+      ids: [],
254
+      // 非单个禁用
255
+      single: true,
256
+      // 非多个禁用
257
+      multiple: true,
258
+      // 显示搜索条件
259
+      showSearch: true,
260
+      // 总条数
261
+      total: 0,
262
+      // cmc预算管理表格数据
263
+      budgetList: [],
264
+      // 弹出层标题
265
+      title: "",
266
+      // 是否显示弹出层
267
+      open: false,
268
+      // 查询参数
269
+      queryParams: {
270
+        pageNum: 1,
271
+        pageSize: 10,
272
+        projectId: null,
273
+        staffCost: null,
274
+        carCost: null,
275
+        deviceCost: null,
276
+        budgetSettle: null,
277
+        outExpense: null,
278
+        businessExpense: null,
279
+        rentExpense: null,
280
+        otherExpense: null,
281
+        totalExpense: null,
282
+        compiler: null,
283
+        auditor: null,
284
+      },
285
+      // 表单参数
286
+      form: {},
287
+      // 表单校验
288
+      rules: {
289
+      }
290
+    };
291
+  },
292
+  created() {
293
+    this.getList();
294
+  },
295
+  methods: {
296
+    /** 查询cmc预算管理列表 */
297
+    getList() {
298
+      this.loading = true;
299
+      listBudget(this.queryParams).then(response => {
300
+        this.budgetList = response.rows;
301
+        this.total = response.total;
302
+        this.loading = false;
303
+      });
304
+    },
305
+    // 取消按钮
306
+    cancel() {
307
+      this.open = false;
308
+      this.reset();
309
+    },
310
+    // 表单重置
311
+    reset() {
312
+      this.form = {
313
+        budgetId: null,
314
+        projectId: null,
315
+        staffCost: null,
316
+        carCost: null,
317
+        deviceCost: null,
318
+        budgetSettle: null,
319
+        outExpense: null,
320
+        businessExpense: null,
321
+        rentExpense: null,
322
+        otherExpense: null,
323
+        totalExpense: null,
324
+        compiler: null,
325
+        auditor: null,
326
+        createTime: null
327
+      };
328
+      this.resetForm("form");
329
+    },
330
+    /** 搜索按钮操作 */
331
+    handleQuery() {
332
+      this.queryParams.pageNum = 1;
333
+      this.getList();
334
+    },
335
+    /** 重置按钮操作 */
336
+    resetQuery() {
337
+      this.resetForm("queryForm");
338
+      this.handleQuery();
339
+    },
340
+    // 多选框选中数据
341
+    handleSelectionChange(selection) {
342
+      this.ids = selection.map(item => item.budgetId)
343
+      this.single = selection.length!==1
344
+      this.multiple = !selection.length
345
+    },
346
+    /** 新增按钮操作 */
347
+    handleAdd() {
348
+      this.reset();
349
+      this.open = true;
350
+      this.title = "添加cmc预算管理";
351
+    },
352
+    /** 修改按钮操作 */
353
+    handleUpdate(row) {
354
+      this.reset();
355
+      const budgetId = row.budgetId || this.ids
356
+      getBudget(budgetId).then(response => {
357
+        this.form = response.data;
358
+        this.open = true;
359
+        this.title = "修改cmc预算管理";
360
+      });
361
+    },
362
+    /** 提交按钮 */
363
+    submitForm() {
364
+      this.$refs["form"].validate(valid => {
365
+        if (valid) {
366
+          if (this.form.budgetId != null) {
367
+            updateBudget(this.form).then(response => {
368
+              this.$modal.msgSuccess("修改成功");
369
+              this.open = false;
370
+              this.getList();
371
+            });
372
+          } else {
373
+            addBudget(this.form).then(response => {
374
+              this.$modal.msgSuccess("新增成功");
375
+              this.open = false;
376
+              this.getList();
377
+            });
378
+          }
379
+        }
380
+      });
381
+    },
382
+    /** 删除按钮操作 */
383
+    handleDelete(row) {
384
+      const budgetIds = row.budgetId || this.ids;
385
+      this.$modal.confirm('是否确认删除cmc预算管理编号为"' + budgetIds + '"的数据项?').then(function() {
386
+        return delBudget(budgetIds);
387
+      }).then(() => {
388
+        this.getList();
389
+        this.$modal.msgSuccess("删除成功");
390
+      }).catch(() => {});
391
+    },
392
+    /** 导出按钮操作 */
393
+    handleExport() {
394
+      this.download('oa/budget/export', {
395
+        ...this.queryParams
396
+      }, `budget_${new Date().getTime()}.xlsx`)
397
+    }
398
+  }
399
+};
400
+</script>

+ 301
- 0
oa-ui/src/views/oa/budget/settle.vue Datei anzeigen

@@ -0,0 +1,301 @@
1
+<template>
2
+  <div class="app-container">
3
+    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
4
+      <el-form-item label="预算id" prop="budgetId">
5
+        <el-input
6
+          v-model="queryParams.budgetId"
7
+          placeholder="请输入预算id"
8
+          clearable
9
+          @keyup.enter.native="handleQuery"
10
+        />
11
+      </el-form-item>
12
+      <el-form-item label="结算单价id" prop="priceId">
13
+        <el-input
14
+          v-model="queryParams.priceId"
15
+          placeholder="请输入结算单价id"
16
+          clearable
17
+          @keyup.enter.native="handleQuery"
18
+        />
19
+      </el-form-item>
20
+      <el-form-item label="工作量" prop="workload">
21
+        <el-input
22
+          v-model="queryParams.workload"
23
+          placeholder="请输入工作量"
24
+          clearable
25
+          @keyup.enter.native="handleQuery"
26
+        />
27
+      </el-form-item>
28
+      <el-form-item label="系数" prop="coefficient">
29
+        <el-input
30
+          v-model="queryParams.coefficient"
31
+          placeholder="请输入系数"
32
+          clearable
33
+          @keyup.enter.native="handleQuery"
34
+        />
35
+      </el-form-item>
36
+      <el-form-item label="结算金额" prop="settle">
37
+        <el-input
38
+          v-model="queryParams.settle"
39
+          placeholder="请输入结算金额"
40
+          clearable
41
+          @keyup.enter.native="handleQuery"
42
+        />
43
+      </el-form-item>
44
+      <el-form-item>
45
+        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
46
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
47
+      </el-form-item>
48
+    </el-form>
49
+
50
+    <el-row :gutter="10" class="mb8">
51
+      <el-col :span="1.5">
52
+        <el-button
53
+          type="primary"
54
+          plain
55
+          icon="el-icon-plus"
56
+          size="mini"
57
+          @click="handleAdd"
58
+          v-hasPermi="['oa:budgetSettle:add']"
59
+        >新增</el-button>
60
+      </el-col>
61
+      <el-col :span="1.5">
62
+        <el-button
63
+          type="success"
64
+          plain
65
+          icon="el-icon-edit"
66
+          size="mini"
67
+          :disabled="single"
68
+          @click="handleUpdate"
69
+          v-hasPermi="['oa:budgetSettle:edit']"
70
+        >修改</el-button>
71
+      </el-col>
72
+      <el-col :span="1.5">
73
+        <el-button
74
+          type="danger"
75
+          plain
76
+          icon="el-icon-delete"
77
+          size="mini"
78
+          :disabled="multiple"
79
+          @click="handleDelete"
80
+          v-hasPermi="['oa:budgetSettle:remove']"
81
+        >删除</el-button>
82
+      </el-col>
83
+      <el-col :span="1.5">
84
+        <el-button
85
+          type="warning"
86
+          plain
87
+          icon="el-icon-download"
88
+          size="mini"
89
+          @click="handleExport"
90
+          v-hasPermi="['oa:budgetSettle:export']"
91
+        >导出</el-button>
92
+      </el-col>
93
+      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
94
+    </el-row>
95
+
96
+    <el-table v-loading="loading" :data="budgetSettleList" @selection-change="handleSelectionChange">
97
+      <el-table-column type="selection" width="55" align="center" />
98
+      <el-table-column label="预结算id" align="center" prop="budgetSettleId" />
99
+      <el-table-column label="预算id" align="center" prop="budgetId" />
100
+      <el-table-column label="结算单价id" align="center" prop="priceId" />
101
+      <el-table-column label="工作量" align="center" prop="workload" />
102
+      <el-table-column label="系数" align="center" prop="coefficient" />
103
+      <el-table-column label="结算金额" align="center" prop="settle" />
104
+      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
105
+        <template slot-scope="scope">
106
+          <el-button
107
+            size="mini"
108
+            type="text"
109
+            icon="el-icon-edit"
110
+            @click="handleUpdate(scope.row)"
111
+            v-hasPermi="['oa:budgetSettle:edit']"
112
+          >修改</el-button>
113
+          <el-button
114
+            size="mini"
115
+            type="text"
116
+            icon="el-icon-delete"
117
+            @click="handleDelete(scope.row)"
118
+            v-hasPermi="['oa:budgetSettle:remove']"
119
+          >删除</el-button>
120
+        </template>
121
+      </el-table-column>
122
+    </el-table>
123
+    
124
+    <pagination
125
+      v-show="total>0"
126
+      :total="total"
127
+      :page.sync="queryParams.pageNum"
128
+      :limit.sync="queryParams.pageSize"
129
+      @pagination="getList"
130
+    />
131
+
132
+    <!-- 添加或修改cmc预结算对话框 -->
133
+    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
134
+      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
135
+        <el-form-item label="预算id" prop="budgetId">
136
+          <el-input v-model="form.budgetId" placeholder="请输入预算id" />
137
+        </el-form-item>
138
+        <el-form-item label="结算单价id" prop="priceId">
139
+          <el-input v-model="form.priceId" placeholder="请输入结算单价id" />
140
+        </el-form-item>
141
+        <el-form-item label="工作量" prop="workload">
142
+          <el-input v-model="form.workload" placeholder="请输入工作量" />
143
+        </el-form-item>
144
+        <el-form-item label="系数" prop="coefficient">
145
+          <el-input v-model="form.coefficient" placeholder="请输入系数" />
146
+        </el-form-item>
147
+        <el-form-item label="结算金额" prop="settle">
148
+          <el-input v-model="form.settle" placeholder="请输入结算金额" />
149
+        </el-form-item>
150
+      </el-form>
151
+      <div slot="footer" class="dialog-footer">
152
+        <el-button type="primary" @click="submitForm">确 定</el-button>
153
+        <el-button @click="cancel">取 消</el-button>
154
+      </div>
155
+    </el-dialog>
156
+  </div>
157
+</template>
158
+
159
+<script>
160
+import { listBudgetSettle, getBudgetSettle, delBudgetSettle, addBudgetSettle, updateBudgetSettle } from "@/api/oa/budget/budgetSettle";
161
+
162
+export default {
163
+  name: "BudgetSettle",
164
+  data() {
165
+    return {
166
+      // 遮罩层
167
+      loading: true,
168
+      // 选中数组
169
+      ids: [],
170
+      // 非单个禁用
171
+      single: true,
172
+      // 非多个禁用
173
+      multiple: true,
174
+      // 显示搜索条件
175
+      showSearch: true,
176
+      // 总条数
177
+      total: 0,
178
+      // cmc预结算表格数据
179
+      budgetSettleList: [],
180
+      // 弹出层标题
181
+      title: "",
182
+      // 是否显示弹出层
183
+      open: false,
184
+      // 查询参数
185
+      queryParams: {
186
+        pageNum: 1,
187
+        pageSize: 10,
188
+        budgetId: null,
189
+        priceId: null,
190
+        workload: null,
191
+        coefficient: null,
192
+        settle: null
193
+      },
194
+      // 表单参数
195
+      form: {},
196
+      // 表单校验
197
+      rules: {
198
+      }
199
+    };
200
+  },
201
+  created() {
202
+    this.getList();
203
+  },
204
+  methods: {
205
+    /** 查询cmc预结算列表 */
206
+    getList() {
207
+      this.loading = true;
208
+      listBudgetSettle(this.queryParams).then(response => {
209
+        this.budgetSettleList = response.rows;
210
+        this.total = response.total;
211
+        this.loading = false;
212
+      });
213
+    },
214
+    // 取消按钮
215
+    cancel() {
216
+      this.open = false;
217
+      this.reset();
218
+    },
219
+    // 表单重置
220
+    reset() {
221
+      this.form = {
222
+        budgetSettleId: null,
223
+        budgetId: null,
224
+        priceId: null,
225
+        workload: null,
226
+        coefficient: null,
227
+        settle: null
228
+      };
229
+      this.resetForm("form");
230
+    },
231
+    /** 搜索按钮操作 */
232
+    handleQuery() {
233
+      this.queryParams.pageNum = 1;
234
+      this.getList();
235
+    },
236
+    /** 重置按钮操作 */
237
+    resetQuery() {
238
+      this.resetForm("queryForm");
239
+      this.handleQuery();
240
+    },
241
+    // 多选框选中数据
242
+    handleSelectionChange(selection) {
243
+      this.ids = selection.map(item => item.budgetSettleId)
244
+      this.single = selection.length!==1
245
+      this.multiple = !selection.length
246
+    },
247
+    /** 新增按钮操作 */
248
+    handleAdd() {
249
+      this.reset();
250
+      this.open = true;
251
+      this.title = "添加cmc预结算";
252
+    },
253
+    /** 修改按钮操作 */
254
+    handleUpdate(row) {
255
+      this.reset();
256
+      const budgetSettleId = row.budgetSettleId || this.ids
257
+      getBudgetSettle(budgetSettleId).then(response => {
258
+        this.form = response.data;
259
+        this.open = true;
260
+        this.title = "修改cmc预结算";
261
+      });
262
+    },
263
+    /** 提交按钮 */
264
+    submitForm() {
265
+      this.$refs["form"].validate(valid => {
266
+        if (valid) {
267
+          if (this.form.budgetSettleId != null) {
268
+            updateBudgetSettle(this.form).then(response => {
269
+              this.$modal.msgSuccess("修改成功");
270
+              this.open = false;
271
+              this.getList();
272
+            });
273
+          } else {
274
+            addBudgetSettle(this.form).then(response => {
275
+              this.$modal.msgSuccess("新增成功");
276
+              this.open = false;
277
+              this.getList();
278
+            });
279
+          }
280
+        }
281
+      });
282
+    },
283
+    /** 删除按钮操作 */
284
+    handleDelete(row) {
285
+      const budgetSettleIds = row.budgetSettleId || this.ids;
286
+      this.$modal.confirm('是否确认删除cmc预结算编号为"' + budgetSettleIds + '"的数据项?').then(function() {
287
+        return delBudgetSettle(budgetSettleIds);
288
+      }).then(() => {
289
+        this.getList();
290
+        this.$modal.msgSuccess("删除成功");
291
+      }).catch(() => {});
292
+    },
293
+    /** 导出按钮操作 */
294
+    handleExport() {
295
+      this.download('oa/budgetSettle/export', {
296
+        ...this.queryParams
297
+      }, `budgetSettle_${new Date().getTime()}.xlsx`)
298
+    }
299
+  }
300
+};
301
+</script>

+ 315
- 0
oa-ui/src/views/oa/budget/staff.vue Datei anzeigen

@@ -0,0 +1,315 @@
1
+<template>
2
+  <div class="app-container">
3
+    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
4
+      <el-form-item label="预算id" prop="budgetId">
5
+        <el-input
6
+          v-model="queryParams.budgetId"
7
+          placeholder="请输入预算id"
8
+          clearable
9
+          @keyup.enter.native="handleQuery"
10
+        />
11
+      </el-form-item>
12
+      <el-form-item label="人员id" prop="userId">
13
+        <el-input
14
+          v-model="queryParams.userId"
15
+          placeholder="请输入人员id"
16
+          clearable
17
+          @keyup.enter.native="handleQuery"
18
+        />
19
+      </el-form-item>
20
+      <el-form-item label="天数" prop="days">
21
+        <el-input
22
+          v-model="queryParams.days"
23
+          placeholder="请输入天数"
24
+          clearable
25
+          @keyup.enter.native="handleQuery"
26
+        />
27
+      </el-form-item>
28
+      <el-form-item label="固定成本" prop="fixCost">
29
+        <el-input
30
+          v-model="queryParams.fixCost"
31
+          placeholder="请输入固定成本"
32
+          clearable
33
+          @keyup.enter.native="handleQuery"
34
+        />
35
+      </el-form-item>
36
+      <el-form-item label="进出场单价" prop="inOutPrice">
37
+        <el-input
38
+          v-model="queryParams.inOutPrice"
39
+          placeholder="请输入进出场单价"
40
+          clearable
41
+          @keyup.enter.native="handleQuery"
42
+        />
43
+      </el-form-item>
44
+      <el-form-item label="进出场费用" prop="inOutExpense">
45
+        <el-input
46
+          v-model="queryParams.inOutExpense"
47
+          placeholder="请输入进出场费用"
48
+          clearable
49
+          @keyup.enter.native="handleQuery"
50
+        />
51
+      </el-form-item>
52
+      <el-form-item>
53
+        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
54
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
55
+      </el-form-item>
56
+    </el-form>
57
+
58
+    <el-row :gutter="10" class="mb8">
59
+      <el-col :span="1.5">
60
+        <el-button
61
+          type="primary"
62
+          plain
63
+          icon="el-icon-plus"
64
+          size="mini"
65
+          @click="handleAdd"
66
+          v-hasPermi="['oa:budgetStaff:add']"
67
+        >新增</el-button>
68
+      </el-col>
69
+      <el-col :span="1.5">
70
+        <el-button
71
+          type="success"
72
+          plain
73
+          icon="el-icon-edit"
74
+          size="mini"
75
+          :disabled="single"
76
+          @click="handleUpdate"
77
+          v-hasPermi="['oa:budgetStaff:edit']"
78
+        >修改</el-button>
79
+      </el-col>
80
+      <el-col :span="1.5">
81
+        <el-button
82
+          type="danger"
83
+          plain
84
+          icon="el-icon-delete"
85
+          size="mini"
86
+          :disabled="multiple"
87
+          @click="handleDelete"
88
+          v-hasPermi="['oa:budgetStaff:remove']"
89
+        >删除</el-button>
90
+      </el-col>
91
+      <el-col :span="1.5">
92
+        <el-button
93
+          type="warning"
94
+          plain
95
+          icon="el-icon-download"
96
+          size="mini"
97
+          @click="handleExport"
98
+          v-hasPermi="['oa:budgetStaff:export']"
99
+        >导出</el-button>
100
+      </el-col>
101
+      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
102
+    </el-row>
103
+
104
+    <el-table v-loading="loading" :data="budgetStaffList" @selection-change="handleSelectionChange">
105
+      <el-table-column type="selection" width="55" align="center" />
106
+      <el-table-column label="人员预算id" align="center" prop="budgetStaffId" />
107
+      <el-table-column label="预算id" align="center" prop="budgetId" />
108
+      <el-table-column label="人员id" align="center" prop="userId" />
109
+      <el-table-column label="天数" align="center" prop="days" />
110
+      <el-table-column label="固定成本" align="center" prop="fixCost" />
111
+      <el-table-column label="进出场单价" align="center" prop="inOutPrice" />
112
+      <el-table-column label="进出场费用" align="center" prop="inOutExpense" />
113
+      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
114
+        <template slot-scope="scope">
115
+          <el-button
116
+            size="mini"
117
+            type="text"
118
+            icon="el-icon-edit"
119
+            @click="handleUpdate(scope.row)"
120
+            v-hasPermi="['oa:budgetStaff:edit']"
121
+          >修改</el-button>
122
+          <el-button
123
+            size="mini"
124
+            type="text"
125
+            icon="el-icon-delete"
126
+            @click="handleDelete(scope.row)"
127
+            v-hasPermi="['oa:budgetStaff:remove']"
128
+          >删除</el-button>
129
+        </template>
130
+      </el-table-column>
131
+    </el-table>
132
+    
133
+    <pagination
134
+      v-show="total>0"
135
+      :total="total"
136
+      :page.sync="queryParams.pageNum"
137
+      :limit.sync="queryParams.pageSize"
138
+      @pagination="getList"
139
+    />
140
+
141
+    <!-- 添加或修改cmc人员预算对话框 -->
142
+    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
143
+      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
144
+        <el-form-item label="预算id" prop="budgetId">
145
+          <el-input v-model="form.budgetId" placeholder="请输入预算id" />
146
+        </el-form-item>
147
+        <el-form-item label="人员id" prop="userId">
148
+          <el-input v-model="form.userId" placeholder="请输入人员id" />
149
+        </el-form-item>
150
+        <el-form-item label="天数" prop="days">
151
+          <el-input v-model="form.days" placeholder="请输入天数" />
152
+        </el-form-item>
153
+        <el-form-item label="固定成本" prop="fixCost">
154
+          <el-input v-model="form.fixCost" placeholder="请输入固定成本" />
155
+        </el-form-item>
156
+        <el-form-item label="进出场单价" prop="inOutPrice">
157
+          <el-input v-model="form.inOutPrice" placeholder="请输入进出场单价" />
158
+        </el-form-item>
159
+        <el-form-item label="进出场费用" prop="inOutExpense">
160
+          <el-input v-model="form.inOutExpense" placeholder="请输入进出场费用" />
161
+        </el-form-item>
162
+      </el-form>
163
+      <div slot="footer" class="dialog-footer">
164
+        <el-button type="primary" @click="submitForm">确 定</el-button>
165
+        <el-button @click="cancel">取 消</el-button>
166
+      </div>
167
+    </el-dialog>
168
+  </div>
169
+</template>
170
+
171
+<script>
172
+import { listBudgetStaff, getBudgetStaff, delBudgetStaff, addBudgetStaff, updateBudgetStaff } from "@/api/oa/budget/budgetStaff";
173
+
174
+export default {
175
+  name: "BudgetStaff",
176
+  data() {
177
+    return {
178
+      // 遮罩层
179
+      loading: true,
180
+      // 选中数组
181
+      ids: [],
182
+      // 非单个禁用
183
+      single: true,
184
+      // 非多个禁用
185
+      multiple: true,
186
+      // 显示搜索条件
187
+      showSearch: true,
188
+      // 总条数
189
+      total: 0,
190
+      // cmc人员预算表格数据
191
+      budgetStaffList: [],
192
+      // 弹出层标题
193
+      title: "",
194
+      // 是否显示弹出层
195
+      open: false,
196
+      // 查询参数
197
+      queryParams: {
198
+        pageNum: 1,
199
+        pageSize: 10,
200
+        budgetId: null,
201
+        userId: null,
202
+        days: null,
203
+        fixCost: null,
204
+        inOutPrice: null,
205
+        inOutExpense: null
206
+      },
207
+      // 表单参数
208
+      form: {},
209
+      // 表单校验
210
+      rules: {
211
+      }
212
+    };
213
+  },
214
+  created() {
215
+    this.getList();
216
+  },
217
+  methods: {
218
+    /** 查询cmc人员预算列表 */
219
+    getList() {
220
+      this.loading = true;
221
+      listBudgetStaff(this.queryParams).then(response => {
222
+        this.budgetStaffList = response.rows;
223
+        this.total = response.total;
224
+        this.loading = false;
225
+      });
226
+    },
227
+    // 取消按钮
228
+    cancel() {
229
+      this.open = false;
230
+      this.reset();
231
+    },
232
+    // 表单重置
233
+    reset() {
234
+      this.form = {
235
+        budgetStaffId: null,
236
+        budgetId: null,
237
+        userId: null,
238
+        days: null,
239
+        fixCost: null,
240
+        inOutPrice: null,
241
+        inOutExpense: null
242
+      };
243
+      this.resetForm("form");
244
+    },
245
+    /** 搜索按钮操作 */
246
+    handleQuery() {
247
+      this.queryParams.pageNum = 1;
248
+      this.getList();
249
+    },
250
+    /** 重置按钮操作 */
251
+    resetQuery() {
252
+      this.resetForm("queryForm");
253
+      this.handleQuery();
254
+    },
255
+    // 多选框选中数据
256
+    handleSelectionChange(selection) {
257
+      this.ids = selection.map(item => item.budgetStaffId)
258
+      this.single = selection.length!==1
259
+      this.multiple = !selection.length
260
+    },
261
+    /** 新增按钮操作 */
262
+    handleAdd() {
263
+      this.reset();
264
+      this.open = true;
265
+      this.title = "添加cmc人员预算";
266
+    },
267
+    /** 修改按钮操作 */
268
+    handleUpdate(row) {
269
+      this.reset();
270
+      const budgetStaffId = row.budgetStaffId || this.ids
271
+      getBudgetStaff(budgetStaffId).then(response => {
272
+        this.form = response.data;
273
+        this.open = true;
274
+        this.title = "修改cmc人员预算";
275
+      });
276
+    },
277
+    /** 提交按钮 */
278
+    submitForm() {
279
+      this.$refs["form"].validate(valid => {
280
+        if (valid) {
281
+          if (this.form.budgetStaffId != null) {
282
+            updateBudgetStaff(this.form).then(response => {
283
+              this.$modal.msgSuccess("修改成功");
284
+              this.open = false;
285
+              this.getList();
286
+            });
287
+          } else {
288
+            addBudgetStaff(this.form).then(response => {
289
+              this.$modal.msgSuccess("新增成功");
290
+              this.open = false;
291
+              this.getList();
292
+            });
293
+          }
294
+        }
295
+      });
296
+    },
297
+    /** 删除按钮操作 */
298
+    handleDelete(row) {
299
+      const budgetStaffIds = row.budgetStaffId || this.ids;
300
+      this.$modal.confirm('是否确认删除cmc人员预算编号为"' + budgetStaffIds + '"的数据项?').then(function() {
301
+        return delBudgetStaff(budgetStaffIds);
302
+      }).then(() => {
303
+        this.getList();
304
+        this.$modal.msgSuccess("删除成功");
305
+      }).catch(() => {});
306
+    },
307
+    /** 导出按钮操作 */
308
+    handleExport() {
309
+      this.download('oa/budgetStaff/export', {
310
+        ...this.queryParams
311
+      }, `budgetStaff_${new Date().getTime()}.xlsx`)
312
+    }
313
+  }
314
+};
315
+</script>

Laden…
Abbrechen
Speichern