Bladeren bron

查询勘察项目列表

lamphua 7 maanden geleden
bovenliggende
commit
9624e8bbe2

+ 15
- 0
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcProjectController.java Bestand weergeven

@@ -71,6 +71,21 @@ public class CmcProjectController extends BaseController
71 71
         return getDataTable(list);
72 72
     }
73 73
 
74
+    /**
75
+     * 查询cmc项目列表
76
+     */
77
+    @GetMapping("/listInvest")
78
+    public TableDataInfo listInvest(CmcProject cmcProject)
79
+    {
80
+        startPage();
81
+        List<CmcProject> list = cmcProjectService.selectCmcInvestProjectList(cmcProject);
82
+        for (CmcProject project : list) {
83
+            project.setUndertakingDeptName(deptIdToName(project));
84
+            project.setQualityInspectorName(inspectorIdToName(project));
85
+        }
86
+        return getDataTable(list);
87
+    }
88
+
74 89
     /**
75 90
      * 导出cmc项目列表
76 91
      */

+ 8
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcProjectMapper.java Bestand weergeven

@@ -35,6 +35,14 @@ public interface CmcProjectMapper
35 35
      */
36 36
     public List<CmcProject> selectCmcProjectList(CmcProject cmcProject);
37 37
 
38
+    /**
39
+     * 查询cmc勘察项目列表
40
+     *
41
+     * @param cmcProject cmc项目
42
+     * @return cmc项目集合
43
+     */
44
+    public List<CmcProject> selectCmcInvestProjectList(CmcProject cmcProject);
45
+
38 46
     /**
39 47
      * 新增cmc项目
40 48
      * 

+ 8
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcProjectService.java Bestand weergeven

@@ -36,6 +36,14 @@ public interface ICmcProjectService
36 36
      */
37 37
     public List<CmcProject> selectCmcProjectList(CmcProject cmcProject);
38 38
 
39
+    /**
40
+     * 查询cmc勘察项目列表
41
+     *
42
+     * @param cmcProject cmc项目
43
+     * @return cmc项目集合
44
+     */
45
+    public List<CmcProject> selectCmcInvestProjectList(CmcProject cmcProject);
46
+
39 47
     /**
40 48
      * 新增cmc项目
41 49
      * 

+ 12
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcProjectServiceImpl.java Bestand weergeven

@@ -58,6 +58,18 @@ public class CmcProjectServiceImpl implements ICmcProjectService
58 58
         return cmcProjectMapper.selectCmcProjectList(cmcProject);
59 59
     }
60 60
 
61
+    /**
62
+     * 查询cmc勘察项目列表
63
+     *
64
+     * @param cmcProject cmc项目
65
+     * @return cmc项目
66
+     */
67
+    @Override
68
+    public List<CmcProject> selectCmcInvestProjectList(CmcProject cmcProject)
69
+    {
70
+        return cmcProjectMapper.selectCmcInvestProjectList(cmcProject);
71
+    }
72
+
61 73
     /**
62 74
      * 新增cmc项目
63 75
      * 

+ 31
- 0
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcProjectMapper.xml Bestand weergeven

@@ -116,6 +116,10 @@
116 116
         <include refid="selectCmcProjectVo"/>
117 117
         <where>
118 118
             (p.project_number REGEXP '^[0-9]+W[0-9]' or p.project_number REGEXP '^[0-9]+C[0-9]') AND NOT (p.project_number REGEXP '[/\\*-]')
119
+            and (case when p.undertaking_dept not like concat('%', '113', '%') then p.undertaking_dept not like concat('%', '113', '%')
120
+            when p.undertaking_dept is null then p.undertaking_dept is null
121
+            when p.undertaking_dept like concat('%', '113', '%') then p.undertaking_dept like concat('%', ',', '%')
122
+            end)
119 123
             <if test="projectId != null  and projectId != ''"> and p.project_id = #{projectId}</if>
120 124
             <if test="projectNumber != null  and projectNumber != ''"> and p.project_number like concat('%', #{projectNumber}, '%')</if>
121 125
             <if test="projectName != null  and projectName != ''"> and p.project_name like concat('%', #{projectName}, '%')</if>
@@ -139,6 +143,33 @@
139 143
         order by p.register_time desc, p.project_number desc
140 144
     </select>
141 145
 
146
+    <select id="selectCmcInvestProjectList" parameterType="CmcProject" resultMap="CmcProjectResult">
147
+        <include refid="selectCmcProjectVo"/>
148
+        <where>
149
+            (p.project_number REGEXP '^[0-9]+W[0-9]' or p.project_number REGEXP '^[0-9]+C[0-9]') AND NOT (p.project_number REGEXP '[/\\*-]')
150
+            AND p.undertaking_dept like concat('%', 113, '%')
151
+            <if test="projectId != null  and projectId != ''"> and p.project_id = #{projectId}</if>
152
+            <if test="projectNumber != null  and projectNumber != ''"> and p.project_number like concat('%', #{projectNumber}, '%')</if>
153
+            <if test="projectName != null  and projectName != ''"> and p.project_name like concat('%', #{projectName}, '%')</if>
154
+            <if test="projectLeader != null "> and p.project_leader = #{projectLeader}</if>
155
+            <if test="isFinished != null  and isFinished != ''"> and p.is_finished = #{isFinished}</if>
156
+            <if test="projectSource != null  and projectSource != ''"> and p.project_source = #{projectSource}</if>
157
+            <if test="partyAId != null  and partyAId != ''"> and p.party_a_id = #{partyAId}</if>
158
+            <if test="contactPerson != null  and contactPerson != ''"> and p.contact_person = #{contactPerson}</if>
159
+            <if test="telephone != null  and telephone != ''"> and p.telephone = #{telephone}</if>
160
+            <if test="projectType != null  and projectType != ''"> and p.project_type = #{projectType}</if>
161
+            <if test="projectLevel != null  and projectLevel != ''"> and p.project_level = #{projectLevel}</if>
162
+            <if test="projectRegistrant != null "> and p.project_registrant = #{projectRegistrant}</if>
163
+            <if test="projectPlanner != null "> and p.project_planner = #{projectPlanner}</if>
164
+            <if test="siteLeader != null "> and p.site_leader = #{siteLeader}</if>
165
+            <if test="planTime != null "> and p.plan_time = #{planTime}</if>
166
+            <if test="entryTime != null "> and p.entry_time = #{entryTime}</if>
167
+            <if test="exitTime != null "> and p.exit_time = #{exitTime}</if>
168
+            <if test="participates != null  and participates != ''"> and find_in_set(#{participates}, p.participates)</if>
169
+        </where>
170
+        order by p.register_time desc, p.project_number desc
171
+    </select>
172
+
142 173
     <select id="selectCmcProjectByProjectId" parameterType="String" resultMap="CmcProjectResult">
143 174
         <include refid="selectCmcProjectVo"/>
144 175
         where p.project_id = #{projectId}

+ 10
- 1
oa-ui/src/api/oa/project/project.js Bestand weergeven

@@ -2,7 +2,7 @@
2 2
  * @Author: wrh
3 3
  * @Date: 2024-01-30 16:37:46
4 4
  * @LastEditors: wrh
5
- * @LastEditTime: 2024-09-06 09:45:24
5
+ * @LastEditTime: 2024-09-20 16:36:46
6 6
  */
7 7
 import request from '@/utils/request'
8 8
 
@@ -15,6 +15,15 @@ export function listProject(query) {
15 15
   })
16 16
 }
17 17
 
18
+// 查询cmc勘察项目列表
19
+export function listInvestProject(query) {
20
+  return request({
21
+    url: '/oa/project/listInvest',
22
+    method: 'get',
23
+    params: query
24
+  })
25
+}
26
+
18 27
 // 查询cmc项目详细
19 28
 export function getProject(projectId) {
20 29
   return request({

+ 8
- 3
oa-ui/src/views/flowable/form/budget/addBudget.vue Bestand weergeven

@@ -2,7 +2,7 @@
2 2
  * @Author: ysh
3 3
  * @Date: 2024-03-25 15:05:59
4 4
  * @LastEditors: wrh
5
- * @LastEditTime: 2024-09-19 17:06:19
5
+ * @LastEditTime: 2024-09-20 09:28:33
6 6
 -->
7 7
 <template>
8 8
   <div>
@@ -165,7 +165,7 @@
165 165
               <table border="1">
166 166
                 <tr>
167 167
                   <td style="width: 120px">车牌号</td>
168
-                  <td style="width: 100px">油耗</td>
168
+                  <td style="width: 100px">油耗(元/km)</td>
169 169
                   <td style="width: 100px">总里程</td>
170 170
                   <td style="width: 110px">折旧成本(天)</td>
171 171
                   <td style="width: 110px">预算天数</td>
@@ -674,7 +674,7 @@ export default {
674 674
     getChooseCar(val) {
675 675
       this.chooseCar = val;
676 676
       for (let car of this.chooseCar) {
677
-        car.mileage = 1.5
677
+        car.mileage = 1.0
678 678
       }
679 679
       this.openCar = false;
680 680
       this.recalculateCost(val,'expense','carCost');
@@ -771,6 +771,7 @@ export default {
771 771
         addBudgetStaff(user);
772 772
       }
773 773
       for (let car of form.chooseCar) {
774
+        console.log(form.budgetId);
774 775
         car.budgetId = form.budgetId;
775 776
         addBudgetCar(car);
776 777
       }
@@ -789,21 +790,25 @@ export default {
789 790
       updateBudget(form);
790 791
       delBudgetStaff(form.budgetId).then(res => {
791 792
         for (let user of form.chooseUser) {
793
+          user.budgetId = form.budgetId;
792 794
           addBudgetStaff(user);
793 795
         }
794 796
       });
795 797
       delBudgetCar(form.budgetId).then(res => {
796 798
         for (let car of form.chooseCar) {
799
+          car.budgetId = form.budgetId;
797 800
           addBudgetCar(car);
798 801
         }
799 802
       })
800 803
       delBudgetDevice(form.budgetId).then(res => {
801 804
         for (let device of form.chooseDevice) {
805
+          device.budgetId = form.budgetId;
802 806
           addBudgetDevice(device);
803 807
         }
804 808
       })
805 809
       delBudgetSettle(form.budgetId).then(res => {
806 810
         for (let work of form.contentList) {
811
+          work.budgetId = form.budgetId;
807 812
           addBudgetSettle(work)
808 813
         }
809 814
         this.$message.success('预算添加成功')

+ 10
- 4
oa-ui/src/views/flowable/form/budget/budgetInfo.vue Bestand weergeven

@@ -2,7 +2,7 @@
2 2
  * @Author: ysh
3 3
  * @Date: 2024-04-03 16:28:09
4 4
  * @LastEditors: wrh
5
- * @LastEditTime: 2024-08-27 14:34:34
5
+ * @LastEditTime: 2024-09-20 13:52:12
6 6
 -->
7 7
 <template>
8 8
   <div class="main">
@@ -114,6 +114,7 @@
114 114
               <td>岗位工资</td>
115 115
               <td>人员成本(天)</td>
116 116
               <td>预算天数</td>
117
+              <td></td>
117 118
               <td>金额</td>
118 119
               <td>备注</td>
119 120
             </tr>
@@ -129,17 +130,20 @@
129 130
               <td v-else>
130 131
                 {{ user.days }}
131 132
               </td>
133
+              <td></td>
132 134
               <td>{{ user.staffCost }}</td>
133 135
               <td></td>
134 136
             </tr>
135 137
             <tr v-if="carLen != 1" style="background-color:#f8f8f9">
136 138
               <td :rowspan="carLen">车辆</td>
137 139
               <td>车牌号</td>
138
-              <td>油耗</td>
140
+              <td>油耗(元/km)</td>
139 141
               <td>总里程</td>
140 142
               <td>折旧成本(天)</td>
141 143
               <td>预算天数</td>
144
+              <td>过路费</td>
142 145
               <td>金额</td>
146
+              <td>备注</td>
143 147
             </tr>
144 148
             <tr v-for="car in chooseCar" :key="'car' + car.carId">
145 149
               <td>{{ car.car ? car.car.licensePlate : '' }}</td>
@@ -159,8 +163,8 @@
159 163
               <td v-else>
160 164
                 {{ car.days }}
161 165
               </td>
166
+              <td> {{ car.toll }} </td>
162 167
               <td>{{ car.expense }}</td>
163
-              <td></td>
164 168
             </tr>
165 169
             <tr v-if="deviceLen != 1" style="background-color:#f8f8f9">
166 170
               <td :rowspan="deviceLen">设备</td>
@@ -169,6 +173,7 @@
169 173
               <td>品牌</td>
170 174
               <td>折旧成本(天)</td>
171 175
               <td>预算天数</td>
176
+              <td></td>
172 177
               <td>金额</td>
173 178
             </tr>
174 179
             <tr v-for="device in chooseDevice" :key="'device' + device.deviceId">
@@ -183,11 +188,12 @@
183 188
               <td v-else>
184 189
                 {{ device.days }}
185 190
               </td>
191
+              <td></td>
186 192
               <td>{{ device.depreciation }}</td>
187 193
               <td></td>
188 194
             </tr>
189 195
             <tr>
190
-              <td :colspan="6" class="head">间接成本合计</td>
196
+              <td :colspan="7" class="head">间接成本合计</td>
191 197
               <td :colspan="1" class="head">{{ budgetForm.fixCost }}</td>
192 198
               <td></td>
193 199
             </tr>

+ 5
- 3
oa-ui/src/views/flowable/form/budget/components/budgetForm.vue Bestand weergeven

@@ -2,7 +2,7 @@
2 2
  * @Author: ysh
3 3
  * @Date: 2024-04-03 16:28:09
4 4
  * @LastEditors: wrh
5
- * @LastEditTime: 2024-04-29 14:34:29
5
+ * @LastEditTime: 2024-09-19 17:58:29
6 6
 -->
7 7
 <template>
8 8
   <div>
@@ -34,10 +34,11 @@
34 34
       <tr>
35 35
         <td :rowspan="carLen" class="head">车辆</td>
36 36
         <td class="head">车牌号</td>
37
-        <td class="head">油耗</td>
37
+        <td class="head">油耗(元/km)</td>
38 38
         <td class="head">总里程</td>
39 39
         <td class="head">折旧成本(天)</td>
40 40
         <td class="head">预算天数</td>
41
+        <td class="head">过路费</td>
41 42
         <td class="head">金额</td>
42 43
       </tr>
43 44
       <tr v-for="car in chooseCar" :key="'car' + car.carId">
@@ -46,6 +47,7 @@
46 47
         <td>{{ car.distance }}</td>
47 48
         <td>{{ car.dayCost }}</td>
48 49
         <td>{{ car.days }}</td>
50
+        <td>{{ car.toll }}</td>
49 51
         <td>{{ car.expense }}</td>
50 52
       </tr>
51 53
       <tr>
@@ -66,7 +68,7 @@
66 68
         <td>{{ device.depreciation }}</td>
67 69
       </tr>
68 70
       <tr>
69
-        <td colspan="6" class="head">间接成本小计</td>
71
+        <td colspan="7" class="head">间接成本小计</td>
70 72
         <td>{{ budgetForm.fixCost }}</td>
71 73
       </tr>
72 74
       <tr>

+ 11
- 5
oa-ui/src/views/flowable/form/budget/components/budgetTable.vue Bestand weergeven

@@ -1,8 +1,8 @@
1 1
 <!--
2 2
  * @Author: ysh
3 3
  * @Date: 2024-05-10 15:50:41
4
- * @LastEditors: Please set LastEditors
5
- * @LastEditTime: 2024-08-02 15:01:28
4
+ * @LastEditors: wrh
5
+ * @LastEditTime: 2024-09-20 10:23:57
6 6
 -->
7 7
 <template>
8 8
   <div>
@@ -64,6 +64,7 @@
64 64
               <td>岗位工资</td>
65 65
               <td>人员成本(天)</td>
66 66
               <td>预算天数</td>
67
+              <td></td>
67 68
               <td>金额</td>
68 69
               <td>备注</td>
69 70
             </tr>
@@ -74,16 +75,18 @@
74 75
               <td>{{ parseFloat((user.salary.salary + 1780) / 21.75).toFixed(2) }}</td>
75 76
               <!-- <td>{{ user.inOutPrice }}</td> -->
76 77
               <td>{{ user.days }}</td>
78
+              <td></td>
77 79
               <td>{{ user.staffCost }}</td>
78 80
               <td></td>
79 81
             </tr>
80 82
             <tr v-if="carLen != 1" style="background-color:#f8f8f9">
81 83
               <td :rowspan="carLen" style="background-color:#f8f8f9">车辆</td>
82 84
               <td>车牌号</td>
83
-              <td>油耗</td>
85
+              <td>油耗(元/km)</td>
84 86
               <td>总里程</td>
85 87
               <td>折旧成本(天)</td>
86 88
               <td>预算天数</td>
89
+              <td>过路费</td>
87 90
               <td>金额</td>
88 91
               <td>备注</td>
89 92
             </tr>
@@ -93,8 +96,9 @@
93 96
               <td>{{ car.distance }}</td>
94 97
               <td>{{ car.dayCost }}</td>
95 98
               <td>{{ car.days }}</td>
99
+              <td>{{ car.toll }}</td>
96 100
               <td>{{ car.expense }}</td>
97
-              <td></td>
101
+              <td>{{ car.remark }}</td>
98 102
             </tr>
99 103
             <tr v-if="deviceLen != 1" style="background-color:#f8f8f9">
100 104
               <td :rowspan="deviceLen" style="background-color:#f8f8f9">设备</td>
@@ -103,6 +107,7 @@
103 107
               <td>品牌</td>
104 108
               <td>折旧成本(天)</td>
105 109
               <td>预算天数</td>
110
+              <td></td>
106 111
               <td>金额</td>
107 112
               <td>备注</td>
108 113
             </tr>
@@ -112,11 +117,12 @@
112 117
               <td>{{ device.brand }}</td>
113 118
               <td>{{ device.dayCost }}</td>
114 119
               <td>{{ device.days }}</td>
120
+              <td></td>
115 121
               <td>{{ device.depreciation }}</td>
116 122
               <td></td>
117 123
             </tr>
118 124
             <tr>
119
-              <td :colspan="6" class="head">间接成本合计</td>
125
+              <td :colspan="7" class="head">间接成本合计</td>
120 126
               <td :colspan="1" class="head">{{ budgetForm.fixCost }}</td>
121 127
               <td></td>
122 128
             </tr>

+ 8
- 7
oa-ui/src/views/oa/archive/index.vue Bestand weergeven

@@ -44,22 +44,23 @@
44 44
       <el-table-column type="index" label="序号" width="55" align="center" />
45 45
       <el-table-column label="项目编号" align="center" prop="project.projectNumber" />
46 46
       <el-table-column label="项目名称" align="center" prop="project.projectName" />
47
-      <el-table-column label="备注说明" align="center" prop="submitSituation" />
47
+      <el-table-column label="备注说明" align="center" :show-overflow-tooltip="true" width="150" prop="submitSituation" />
48 48
       <el-table-column label="项目负责人" align="center" prop="leaderUser.nickName" />
49
-      <el-table-column label="生产部门检查员" align="center" prop="produceUser.nickName" />
50
-      <el-table-column label="质量检查员" align="center" prop="qualityUser.nickName" />
51
-      <el-table-column label="技术质量与安全部负责人" align="center" prop="deptUser.nickName" />
52
-      <el-table-column label="归档人" align="center" prop="archiverUser.nickName" />
49
+      <!-- <el-table-column label="生产部门检查员" align="center" prop="produceUser.nickName" /> -->
50
+      <!-- <el-table-column label="质量检查员" align="center" prop="qualityUser.nickName" /> -->
51
+      <el-table-column label="技术质量与安全部意见" align="center" :show-overflow-tooltip="true" width="150" prop="deptComment" />
52
+      <el-table-column label="技术质量与安全部负责人" align="center" width="170" prop="deptUser.nickName" />
53
+      <el-table-column label="归档人" align="center" prop="archiveUser.nickName" />
53 54
       <el-table-column label="成果提交日期" align="center" prop="submitTime" width="180">
54 55
         <template slot-scope="scope">
55 56
           <span>{{ parseTime(scope.row.submitTime, '{y}-{m}-{d}') }}</span>
56 57
         </template>
57 58
       </el-table-column>
58
-      <el-table-column label="资料接收时间" align="center" prop="receiveTime" width="180">
59
+      <!-- <el-table-column label="资料接收时间" align="center" prop="receiveTime" width="180">
59 60
         <template slot-scope="scope">
60 61
           <span>{{ parseTime(scope.row.receiveTime, '{y}-{m}-{d}') }}</span>
61 62
         </template>
62
-      </el-table-column>
63
+      </el-table-column> -->
63 64
       <!-- <el-table-column label="质量检查时间" align="center" prop="qualityTime" width="180">
64 65
         <template slot-scope="scope">
65 66
           <span>{{ parseTime(scope.row.qualityTime, '{y}-{m}-{d}') }}</span>

+ 1
- 1
oa-ui/src/views/oa/safe/index.vue Bestand weergeven

@@ -34,7 +34,6 @@
34 34
       <el-table-column type="index" label="序号" width="55" align="center" />
35 35
       <el-table-column label="项目编号" align="center" prop="project.projectNumber" />
36 36
       <el-table-column label="项目名称" align="center" prop="project.projectName" />
37
-      <el-table-column label="接受交底人" align="center" prop="accepterUser.nickName" />
38 37
       <el-table-column label="安全交底人" align="center" prop="disclosurerUser.nickName" />
39 38
       <!-- <el-table-column label="环境要求" align="center" prop="environmentComment" />
40 39
       <el-table-column label="外业要求" align="center" prop="outsideComment" />
@@ -45,6 +44,7 @@
45 44
           <span>{{ parseTime(scope.row.disclosureTime, '{y}-{m}-{d}') }}</span>
46 45
         </template>
47 46
       </el-table-column>
47
+      <el-table-column label="接受交底人" align="center" prop="accepterUser.nickName" />
48 48
       <el-table-column label="接受交底时间" align="center" prop="acceptTime" width="180">
49 49
         <template slot-scope="scope">
50 50
           <span>{{ parseTime(scope.row.acceptTime, '{y}-{m}-{d}') }}</span>

+ 2
- 2
oa-ui/src/views/oa/technical/index.vue Bestand weergeven

@@ -34,14 +34,14 @@
34 34
       <el-table-column type="index" label="序号" width="55" align="center" />
35 35
       <el-table-column label="项目编号" align="center" prop="project.projectNumber" />
36 36
       <el-table-column label="项目名称" align="center" prop="project.projectName" />
37
-      <el-table-column label="接受交底人" align="center" prop="accepterUser.nickName" />
38
-      <el-table-column label="技术交底人" align="center" prop="disclosurerUser.nickName" />
37
+      <el-table-column label="技术交底人" align="center" prop="disclosureUser.nickName" />
39 38
       <el-table-column label="技术交底意见" align="center" prop="disclosureComment" width="180" show-overflow-tooltip />
40 39
       <el-table-column label="技术交底时间" align="center" prop="disclosureTime" width="180">
41 40
         <template slot-scope="scope">
42 41
           <span>{{ parseTime(scope.row.disclosureTime, '{y}-{m}-{d}') }}</span>
43 42
         </template>
44 43
       </el-table-column>
44
+      <el-table-column label="接受交底人" align="center" prop="acceptUser.nickName" />
45 45
       <el-table-column label="接受交底时间" align="center" prop="acceptTime" width="180">
46 46
         <template slot-scope="scope">
47 47
           <span>{{ parseTime(scope.row.acceptTime, '{y}-{m}-{d}') }}</span>

Laden…
Annuleren
Opslaan