|
@@ -0,0 +1,251 @@
|
|
1
|
+<template>
|
|
2
|
+ <div>
|
|
3
|
+ <h2 class="text-center title">生产项目委托管理结算清单</h2>
|
|
4
|
+ <table border="1">
|
|
5
|
+ <tr>
|
|
6
|
+ <td :colspan="2" class="fontbold">项目名称</td>
|
|
7
|
+ <td :colspan="4">{{ chooseProject.projectName }}</td>
|
|
8
|
+ <td :colspan="2" class="fontbold">项目编号</td>
|
|
9
|
+ <td :colspan="2">{{ chooseProject.projectNumber }}</td>
|
|
10
|
+ </tr>
|
|
11
|
+ <tr>
|
|
12
|
+ <td :colspan="2" class="fontbold">承担部门</td>
|
|
13
|
+ <td :colspan="4">{{ undertakingDept.join(',') }}</td>
|
|
14
|
+ <td :colspan="2" class="fontbold">项目负责人</td>
|
|
15
|
+ <td :colspan="2">{{ chooseProject.projectLeaderName }}</td>
|
|
16
|
+ </tr>
|
|
17
|
+ <tr>
|
|
18
|
+ <td :colspan="10" class="header bg">测绘项目完成工作量及费用计算</td>
|
|
19
|
+ </tr>
|
|
20
|
+ <tr>
|
|
21
|
+ <td class="fontbold">序号</td>
|
|
22
|
+ <td class="fontbold">工作内容</td>
|
|
23
|
+ <td class="fontbold">比例尺或等级</td>
|
|
24
|
+ <td class="fontbold">单位</td>
|
|
25
|
+ <td class="fontbold">工作量</td>
|
|
26
|
+ <td class="fontbold">地类</td>
|
|
27
|
+ <td class="fontbold">单价(元)</td>
|
|
28
|
+ <td class="fontbold">系数</td>
|
|
29
|
+ <td class="fontbold">结算经费(元)</td>
|
|
30
|
+ <td class="fontbold">备注</td>
|
|
31
|
+ </tr>
|
|
32
|
+ <tr v-for="(work, index) in workList">
|
|
33
|
+ <td>{{ index + 1 }}</td>
|
|
34
|
+ <td>{{ work.content }}</td>
|
|
35
|
+ <td>{{ work.scale }}</td>
|
|
36
|
+ <td>{{ work.unit }}</td>
|
|
37
|
+ <td>{{ work.workload }}</td>
|
|
38
|
+ <td>{{ work.groundType == "0" ? "一般地类" : "复杂地类" }}</td>
|
|
39
|
+ <td>{{ work.price }}</td>
|
|
40
|
+ <td>{{ work.coefficient }}</td>
|
|
41
|
+ <td>{{ work.settle }}</td>
|
|
42
|
+ <td>{{ work.remark }}</td>
|
|
43
|
+ </tr>
|
|
44
|
+ <tr>
|
|
45
|
+ <td :colspan="4" class="header">结算费用合计</td>
|
|
46
|
+ <td :colspan="6">{{ settleSum.amount }}</td>
|
|
47
|
+ </tr>
|
|
48
|
+ <tr>
|
|
49
|
+ <td :colspan="10" class="header bg">扣除项小计</td>
|
|
50
|
+ </tr>
|
|
51
|
+ <tr>
|
|
52
|
+ <td class="fontbold">序号</td>
|
|
53
|
+ <td :colspan="3" class="fontbold">结算内容</td>
|
|
54
|
+ <td :colspan="3" class="fontbold">结算金额</td>
|
|
55
|
+ <td :colspan="3" class="fontbold">备注</td>
|
|
56
|
+ </tr>
|
|
57
|
+ <tr v-for="(ded, index) of deductionsList">
|
|
58
|
+ <td>{{ index + 1 }}</td>
|
|
59
|
+ <td :colspan="3">{{ ded.content }}</td>
|
|
60
|
+ <td :colspan="3">{{ ded.amount }}</td>
|
|
61
|
+ <td :colspan="3">{{ ded.remark }}</td>
|
|
62
|
+ </tr>
|
|
63
|
+ <tr>
|
|
64
|
+ <td :colspan="10" class="header bg">部门结算小计</td>
|
|
65
|
+ </tr>
|
|
66
|
+ <tr>
|
|
67
|
+ <td class="fontbold">序号</td>
|
|
68
|
+ <td :colspan="3" class="fontbold">部门名称</td>
|
|
69
|
+ <td :colspan="3" class="fontbold">结算金额</td>
|
|
70
|
+ <td :colspan="3" class="fontbold">备注</td>
|
|
71
|
+ </tr>
|
|
72
|
+ <tr v-for="(dept, index) of deptSettleList">
|
|
73
|
+ <td>{{ index + 1 }}</td>
|
|
74
|
+ <td :colspan="3">{{ dept.content }}</td>
|
|
75
|
+ <td :colspan="3">{{ dept.amount }}</td>
|
|
76
|
+ <td :colspan="3">{{ dept.remark }}</td>
|
|
77
|
+ </tr>
|
|
78
|
+ <tr>
|
|
79
|
+ <td :colspan="4" class="header">实际结算总金额</td>
|
|
80
|
+ <td :colspan="6">{{ actualSumSettle }}</td>
|
|
81
|
+ </tr>
|
|
82
|
+ <tr>
|
|
83
|
+ <td :colspan="4" class="header">结算说明</td>
|
|
84
|
+ <td :colspan="6">{{ form.settleComment }}</td>
|
|
85
|
+ </tr>
|
|
86
|
+ <tr>
|
|
87
|
+ <td :colspan="10" class="header bg">审核情况</td>
|
|
88
|
+ </tr>
|
|
89
|
+ <tr>
|
|
90
|
+ <td :colspan="2" class="fontbold">综合事务部(设备领用情况)</td>
|
|
91
|
+ <td :colspan="4" class="conment-width">{{ form.zhComment }}</td>
|
|
92
|
+ <td :colspan="2" style="text-align:left;">签名:<span class="auditor">{{ form.zhUserName }}</span></td>
|
|
93
|
+ <td :colspan="2" style="text-align:left;">日期:{{ form.zhTime }}</td>
|
|
94
|
+ </tr>
|
|
95
|
+ <tr>
|
|
96
|
+ <td :colspan="2" class="fontbold">技术质量部(质量及工作量)</td>
|
|
97
|
+ <td :colspan="4" class="conment-width">{{ form.jsComment }}</td>
|
|
98
|
+ <td :colspan="2" style="text-align:left;">签名:<span class="auditor">{{ form.jsUserName }}</span></td>
|
|
99
|
+ <td :colspan="2" style="text-align:left;">日期:{{ form.jsTime }}</td>
|
|
100
|
+ </tr>
|
|
101
|
+ <tr>
|
|
102
|
+ <td :colspan="2" class="fontbold">项目管理部(结算)</td>
|
|
103
|
+ <td :colspan="4" class="conment-width">{{ form.xmComment }}</td>
|
|
104
|
+ <td :colspan="2" style="text-align:left;">签名:<span class="auditor">{{ form.xmUserName }}</span></td>
|
|
105
|
+ <td :colspan="2" style="text-align:left;">日期:{{ form.xmTime }}</td>
|
|
106
|
+ </tr>
|
|
107
|
+ <tr>
|
|
108
|
+ <td :colspan="2" class="fontbold">项目承担部门(确认)</td>
|
|
109
|
+ <td :colspan="4" class="conment-width">{{ form.deptComment }}</td>
|
|
110
|
+ <td :colspan="2" style="text-align:left;">签名:<span class="auditor">{{ form.deptUserName }}</span></td>
|
|
111
|
+ <td :colspan="2" style="text-align:left;">日期:{{ form.deptTime }}</td>
|
|
112
|
+ </tr>
|
|
113
|
+ <tr>
|
|
114
|
+ <td :colspan="2" class="fontbold">经营发展部(校核)</td>
|
|
115
|
+ <td :colspan="4" class="conment-width">{{ form.jyComment }}</td>
|
|
116
|
+ <td :colspan="2" style="text-align:left;">签名:<span class="auditor">{{ form.jyUserName }}</span></td>
|
|
117
|
+ <td :colspan="2" style="text-align:left;">日期:{{ form.jyTime }}</td>
|
|
118
|
+ </tr>
|
|
119
|
+ <tr>
|
|
120
|
+ <td :colspan="2" class="fontbold">分管领导(审核)</td>
|
|
121
|
+ <td :colspan="4" class="conment-width">{{ form.managerComment }}</td>
|
|
122
|
+ <td :colspan="2" style="text-align:left;">签名:<span class="auditor">{{ form.managerUserName }}</span></td>
|
|
123
|
+ <td :colspan="2" style="text-align:left;">日期:{{ form.managerTime }}</td>
|
|
124
|
+ </tr>
|
|
125
|
+ <tr>
|
|
126
|
+ <td :colspan="2" class="fontbold">总经理(审批)</td>
|
|
127
|
+ <td :colspan="4" class="conment-width">{{ form.gmComment }}</td>
|
|
128
|
+ <td :colspan="2" style="text-align:left;">签名:<span class="auditor">{{ form.gmUserName }}</span></td>
|
|
129
|
+ <td :colspan="2" style="text-align:left;">日期:{{ form.gmTime }}</td>
|
|
130
|
+ </tr>
|
|
131
|
+ </table>
|
|
132
|
+ <div class="text-center mt20">
|
|
133
|
+ <el-button type="primary">确认打印</el-button>
|
|
134
|
+ <el-button>取消</el-button>
|
|
135
|
+ </div>
|
|
136
|
+ </div>
|
|
137
|
+</template>
|
|
138
|
+
|
|
139
|
+<script>
|
|
140
|
+import { getUser } from "@/api/system/user";
|
|
141
|
+import { getDept } from "@/api/system/dept"
|
|
142
|
+export default {
|
|
143
|
+ props: {
|
|
144
|
+ form: {
|
|
145
|
+ type: Object
|
|
146
|
+ },
|
|
147
|
+ chooseProject: {
|
|
148
|
+ type: Object
|
|
149
|
+ },
|
|
150
|
+ workList: {
|
|
151
|
+ type: Array
|
|
152
|
+ },
|
|
153
|
+ settleList: {
|
|
154
|
+ type: Array
|
|
155
|
+ }
|
|
156
|
+ },
|
|
157
|
+ data() {
|
|
158
|
+ return {
|
|
159
|
+ settleSum: {},
|
|
160
|
+ deptSettleList: [],
|
|
161
|
+ deductionsList: [],
|
|
162
|
+ actualSumSettle: '',
|
|
163
|
+ undertakingDept: []
|
|
164
|
+ }
|
|
165
|
+ },
|
|
166
|
+ mounted() {
|
|
167
|
+ this.initTable();
|
|
168
|
+ },
|
|
169
|
+ methods: {
|
|
170
|
+ initTable() {
|
|
171
|
+ for (let s of this.settleList) {
|
|
172
|
+ if (s.tableNumber == '0') {
|
|
173
|
+ this.deductionsList.push(s)
|
|
174
|
+ } else if (s.tableNumber == '1') {
|
|
175
|
+ this.deptSettleList.push(s)
|
|
176
|
+ } else {
|
|
177
|
+ this.settleSum = s
|
|
178
|
+ }
|
|
179
|
+ }
|
|
180
|
+ getUser(this.chooseProject.projectLeader).then(res => {
|
|
181
|
+ if (res.data) {
|
|
182
|
+ this.$set(this.chooseProject, 'projectLeaderName', res.data.nickName)
|
|
183
|
+ }
|
|
184
|
+ })
|
|
185
|
+ let deptArr = this.chooseProject.undertakingDept.split(',')
|
|
186
|
+ for (let dept of deptArr) {
|
|
187
|
+ getDept(dept).then(res => {
|
|
188
|
+ console.log(res);
|
|
189
|
+ if(res.data){
|
|
190
|
+ this.undertakingDept.push(res.data.deptName);
|
|
191
|
+ }
|
|
192
|
+ })
|
|
193
|
+ }
|
|
194
|
+
|
|
195
|
+ this.calculateActualSumSettle()
|
|
196
|
+ },
|
|
197
|
+ calculateActualSumSettle() {
|
|
198
|
+ let sum = 0;
|
|
199
|
+ let arr = this.deductionsList;
|
|
200
|
+ for (let a of arr) {
|
|
201
|
+ sum = sum + Number(a.amount);
|
|
202
|
+ }
|
|
203
|
+ this.actualSumSettle = Number(this.settleSum.amount) - sum;
|
|
204
|
+ },
|
|
205
|
+ }
|
|
206
|
+}
|
|
207
|
+</script>
|
|
208
|
+
|
|
209
|
+<style lang="scss" scoped>
|
|
210
|
+table {
|
|
211
|
+ /*边框*/
|
|
212
|
+ /* border: 1px solid black; */
|
|
213
|
+ width: 90%;
|
|
214
|
+ text-align: center;
|
|
215
|
+ border-collapse: collapse;
|
|
216
|
+ margin: 0 auto;
|
|
217
|
+
|
|
218
|
+ /*设置背景颜色*/
|
|
219
|
+ /* background-color: #bfa; */
|
|
220
|
+ td {
|
|
221
|
+ padding: 5px;
|
|
222
|
+ // line-height: 30px;
|
|
223
|
+ }
|
|
224
|
+}
|
|
225
|
+
|
|
226
|
+.header {
|
|
227
|
+ font-family: '黑体';
|
|
228
|
+ font-size: 16px;
|
|
229
|
+ font-weight: bold;
|
|
230
|
+ line-height: 30px;
|
|
231
|
+}
|
|
232
|
+
|
|
233
|
+.bg {
|
|
234
|
+ background-color: #eee;
|
|
235
|
+}
|
|
236
|
+
|
|
237
|
+.title {
|
|
238
|
+ font-family: '黑体';
|
|
239
|
+ font-size: 20px;
|
|
240
|
+ font-weight: bold;
|
|
241
|
+ line-height: 30px;
|
|
242
|
+}
|
|
243
|
+
|
|
244
|
+.fontbold {
|
|
245
|
+ font-weight: bold;
|
|
246
|
+}
|
|
247
|
+
|
|
248
|
+.conment-width {
|
|
249
|
+ max-width: 200px;
|
|
250
|
+}
|
|
251
|
+</style>
|