|
@@ -0,0 +1,291 @@
|
|
1
|
+<template>
|
|
2
|
+ <div>
|
|
3
|
+ <div id="printContract">
|
|
4
|
+ <h2 class="text-center title">承接合同评审表</h2>
|
|
5
|
+ <table border="1">
|
|
6
|
+ <tr>
|
|
7
|
+ <td :colspan="1" class="fontbold">合同名称</td>
|
|
8
|
+ <td :colspan="8">{{ form.contractName }}</td>
|
|
9
|
+ </tr>
|
|
10
|
+ <tr>
|
|
11
|
+ <td :colspan="1" class="fontbold">甲方单位</td>
|
|
12
|
+ <td :colspan="8">{{ getPartyAName(form.partyAId) }}</td>
|
|
13
|
+ </tr>
|
|
14
|
+ <tr>
|
|
15
|
+ <td :colspan="1" class="fontbold">合同编码</td>
|
|
16
|
+ <td :colspan="4">{{ form.contractCode }}</td>
|
|
17
|
+ <td :colspan="1" class="fontbold">合同编号</td>
|
|
18
|
+ <td :colspan="3">{{ form.contractNumber }}</td>
|
|
19
|
+ </tr>
|
|
20
|
+ <tr>
|
|
21
|
+ <td :colspan="1" class="fontbold">合同金额</td>
|
|
22
|
+ <td :colspan="4">{{ form.amount }}元</td>
|
|
23
|
+ <td :colspan="1" class="fontbold">履约保证金</td>
|
|
24
|
+ <td :colspan="3">{{ form.deposit }}元</td>
|
|
25
|
+ </tr>
|
|
26
|
+ <tr>
|
|
27
|
+ <td :colspan="1" class="fontbold">合同文件</td>
|
|
28
|
+ <td :colspan="8">{{ getFileName(form.contractDocument) }}</td>
|
|
29
|
+ </tr>
|
|
30
|
+ <tr>
|
|
31
|
+ <td :colspan="1" class="fontbold">关联项目</td>
|
|
32
|
+ <td :colspan="8">
|
|
33
|
+ <div v-for="(project, index) in chooseProjectList" :key="index">
|
|
34
|
+ {{ index + 1 }}. {{ project.projectName }} ({{ project.projectNumber }})
|
|
35
|
+ </div>
|
|
36
|
+ </td>
|
|
37
|
+ </tr>
|
|
38
|
+ <tr>
|
|
39
|
+ <td :colspan="1" class="fontbold">合同计划工作量</td>
|
|
40
|
+ <td :colspan="8">
|
|
41
|
+ <table border="1" style="width:100%;">
|
|
42
|
+ <tr>
|
|
43
|
+ <td style="width:50px;">序号</td>
|
|
44
|
+ <td style="min-width:100px;">工作内容</td>
|
|
45
|
+ <td style="min-width:120px;">等级或比例尺</td>
|
|
46
|
+ <td style="min-width:80px;">单位</td>
|
|
47
|
+ <td style="min-width:80px;">工作量</td>
|
|
48
|
+ <td style="min-width:120px;">要求完成时间</td>
|
|
49
|
+ <td style="min-width:150px;">备注</td>
|
|
50
|
+ </tr>
|
|
51
|
+ <tr v-for="(work, idx) in workList" :key="idx">
|
|
52
|
+ <td>{{ idx + 1 }}</td>
|
|
53
|
+ <td>{{ work.content }}</td>
|
|
54
|
+ <td>{{ work.scale }}</td>
|
|
55
|
+ <td>{{ work.unit }}</td>
|
|
56
|
+ <td>{{ work.workload }}</td>
|
|
57
|
+ <td>{{ work.deadline }}</td>
|
|
58
|
+ <td>{{ work.remark }}</td>
|
|
59
|
+ </tr>
|
|
60
|
+ <tr v-if="!workList || workList.length === 0">
|
|
61
|
+ <td colspan="7">无</td>
|
|
62
|
+ </tr>
|
|
63
|
+ </table>
|
|
64
|
+ </td>
|
|
65
|
+ </tr>
|
|
66
|
+ <tr>
|
|
67
|
+ <td :colspan="1" class="fontbold">合同回款计划</td>
|
|
68
|
+ <td :colspan="8">
|
|
69
|
+ <table border="1" style="width:100%;">
|
|
70
|
+ <tr>
|
|
71
|
+ <td style="width:50px;">序号</td>
|
|
72
|
+ <td style="min-width:100px;">回款条件</td>
|
|
73
|
+ <td style="min-width:100px;">回款比例(%)</td>
|
|
74
|
+ <td style="min-width:100px;">回款金额(元)</td>
|
|
75
|
+ <td style="min-width:100px;">预计时间</td>
|
|
76
|
+ <td style="min-width:100px;">备注</td>
|
|
77
|
+ </tr>
|
|
78
|
+ <tr v-for="(payment, idx) in paymentList" :key="idx">
|
|
79
|
+ <td>{{ idx + 1 }}</td>
|
|
80
|
+ <td>{{ payment.paymentCondition }}</td>
|
|
81
|
+ <td>{{ payment.paymentPercentage }}</td>
|
|
82
|
+ <td>{{ payment.paymentAmount }}</td>
|
|
83
|
+ <td>{{ payment.paymentTime }}</td>
|
|
84
|
+ <td>{{ payment.remark }}</td>
|
|
85
|
+ </tr>
|
|
86
|
+ <tr v-if="!paymentList || paymentList.length === 0">
|
|
87
|
+ <td colspan="6">无</td>
|
|
88
|
+ </tr>
|
|
89
|
+ </table>
|
|
90
|
+ </td>
|
|
91
|
+ </tr>
|
|
92
|
+ <tr>
|
|
93
|
+ <td :colspan="1" class="fontbold">合同备注</td>
|
|
94
|
+ <td :colspan="8" style="white-space: pre-wrap;">{{ form.remark }}</td>
|
|
95
|
+ </tr>
|
|
96
|
+ <tr>
|
|
97
|
+ <td :colspan="1" class="fontbold">拟稿人</td>
|
|
98
|
+ <td :colspan="4">{{ form.draftUser ? form.draftUser.nickName : '' }}</td>
|
|
99
|
+ <td :colspan="1" class="fontbold">日期</td>
|
|
100
|
+ <td :colspan="3">{{ form.draftTime }}</td>
|
|
101
|
+ </tr>
|
|
102
|
+ <tr v-if="form.commentType === '1'">
|
|
103
|
+ <td :colspan="1" class="fontbold">会议评审</td>
|
|
104
|
+ <td :colspan="8">
|
|
105
|
+ <div>评审时间:{{ meetingForm.meetingTime }}</div>
|
|
106
|
+ <div>评审地点:{{ getPlaceName(meetingForm.place) }}</div>
|
|
107
|
+ <div>评审主持人:{{ meetingForm.hostUser ? meetingForm.hostUser.nickName : '' }}</div>
|
|
108
|
+ <div>评审结论:{{ meetingForm.conclusion }}</div>
|
|
109
|
+ <div>主持人签名:{{ meetingForm.hostUser ? meetingForm.hostUser.nickName : '' }}</div>
|
|
110
|
+ <div>日期:{{ meetingForm.commentTime }}</div>
|
|
111
|
+ </td>
|
|
112
|
+ </tr>
|
|
113
|
+ <tr v-if="form.commentType === '2'">
|
|
114
|
+ <td :colspan="1" class="fontbold">线上会审</td>
|
|
115
|
+ <td :colspan="8">
|
|
116
|
+ <table border="1" style="width:100%;margin:0;">
|
|
117
|
+ <tr>
|
|
118
|
+ <td style="width:50px;">序号</td>
|
|
119
|
+ <td>会审部门</td>
|
|
120
|
+ <td>会审人</td>
|
|
121
|
+ <td>会审意见</td>
|
|
122
|
+ <td style="min-width:50px;">签名</td>
|
|
123
|
+ <td style="min-width:90px;">日期</td>
|
|
124
|
+ </tr>
|
|
125
|
+ <tr v-for="(comment, index) in commentList" :key="index">
|
|
126
|
+ <td>{{ index + 1 }}</td>
|
|
127
|
+ <td>{{ getDeptName(comment.deptId) }}</td>
|
|
128
|
+ <td>{{ comment.commentUser ? comment.commentUser.nickName : '' }}</td>
|
|
129
|
+ <td style="white-space: pre-wrap;">{{ comment.comment }}</td>
|
|
130
|
+ <td><span class="auditor">{{ comment.commentUser ? comment.commentUser.nickName : '' }}</span></td>
|
|
131
|
+ <td>{{ comment.commentTime }}</td>
|
|
132
|
+ </tr>
|
|
133
|
+ </table>
|
|
134
|
+ </td>
|
|
135
|
+ </tr>
|
|
136
|
+ <tr>
|
|
137
|
+ <td :colspan="1" class="fontbold">分管审批意见</td>
|
|
138
|
+ <td :colspan="4">{{ form.managerComment }}</td>
|
|
139
|
+ <td :colspan="1" class="fontbold">签名</td>
|
|
140
|
+ <td :colspan="2"><span class="auditor">{{ form.managerUser ? form.managerUser.nickName : '' }}</span></td>
|
|
141
|
+ <td :colspan="1" style="min-width:90px;">{{ form.managerTime }}</td>
|
|
142
|
+ </tr>
|
|
143
|
+ <tr>
|
|
144
|
+ <td :colspan="1" class="fontbold">总经理审批意见</td>
|
|
145
|
+ <td :colspan="4">{{ form.gmComment }}</td>
|
|
146
|
+ <td :colspan="1" class="fontbold">签名</td>
|
|
147
|
+ <td :colspan="2"><span class="auditor">{{ form.gmUser ? form.gmUser.nickName : '' }}</span></td>
|
|
148
|
+ <td :colspan="1" style="min-width:90px;">{{ form.gmTime }}</td>
|
|
149
|
+ </tr>
|
|
150
|
+ <tr>
|
|
151
|
+ <td :colspan="1" class="fontbold">签订备注</td>
|
|
152
|
+ <td :colspan="4">{{ form.signRemark }}</td>
|
|
153
|
+ <td :colspan="1" class="fontbold">签订日期</td>
|
|
154
|
+ <td :colspan="3" style="min-width:90px;">{{ form.signDate }}</td>
|
|
155
|
+ </tr>
|
|
156
|
+ </table>
|
|
157
|
+ </div>
|
|
158
|
+ <div class="text-center mt20">
|
|
159
|
+ <el-button type="primary" v-print="print">确认打印</el-button>
|
|
160
|
+ <el-button @click="$emit('cancel')">取消</el-button>
|
|
161
|
+ </div>
|
|
162
|
+ </div>
|
|
163
|
+</template>
|
|
164
|
+
|
|
165
|
+<script>
|
|
166
|
+export default {
|
|
167
|
+ name: 'ContractPrint',
|
|
168
|
+ props: {
|
|
169
|
+ form: {
|
|
170
|
+ type: Object,
|
|
171
|
+ required: true
|
|
172
|
+ },
|
|
173
|
+ chooseTender: {
|
|
174
|
+ type: Object,
|
|
175
|
+ default: () => ({})
|
|
176
|
+ },
|
|
177
|
+ chooseProjectList: {
|
|
178
|
+ type: Array,
|
|
179
|
+ default: () => []
|
|
180
|
+ },
|
|
181
|
+ connectSubContractList: {
|
|
182
|
+ type: Array,
|
|
183
|
+ default: () => []
|
|
184
|
+ },
|
|
185
|
+ meetingForm: {
|
|
186
|
+ type: Object,
|
|
187
|
+ default: () => ({})
|
|
188
|
+ },
|
|
189
|
+ commentList: {
|
|
190
|
+ type: Array,
|
|
191
|
+ default: () => []
|
|
192
|
+ },
|
|
193
|
+ partyAList: {
|
|
194
|
+ type: Array,
|
|
195
|
+ default: () => []
|
|
196
|
+ },
|
|
197
|
+ deptList: {
|
|
198
|
+ type: Array,
|
|
199
|
+ default: () => []
|
|
200
|
+ },
|
|
201
|
+ placeList: {
|
|
202
|
+ type: Array,
|
|
203
|
+ default: () => []
|
|
204
|
+ },
|
|
205
|
+ workList: {
|
|
206
|
+ type: Array,
|
|
207
|
+ default: () => []
|
|
208
|
+ },
|
|
209
|
+ paymentList: {
|
|
210
|
+ type: Array,
|
|
211
|
+ default: () => []
|
|
212
|
+ }
|
|
213
|
+ },
|
|
214
|
+ data() {
|
|
215
|
+ return {
|
|
216
|
+ print: {
|
|
217
|
+ id: 'printContract',
|
|
218
|
+ popTitle: '承接合同打印', // 打印配置页上方标题
|
|
219
|
+ extraHead: '', //最上方的头部文字,附加在head标签上的额外标签,使用逗号分隔
|
|
220
|
+ preview: false, // 是否启动预览模式,默认是false(开启预览模式,可以先预览后打印)
|
|
221
|
+ previewTitle: '', // 打印预览的标题(开启预览模式后出现),
|
|
222
|
+ previewPrintBtnLabel: '', // 打印预览的标题的下方按钮文本,点击可进入打印(开启预览模式后出现)
|
|
223
|
+ zIndex: '', // 预览的窗口的z-index,默认是 20002(此值要高一些,这涉及到预览模式是否显示在最上面)
|
|
224
|
+ previewBeforeOpenCallback() { }, //预览窗口打开之前的callback(开启预览模式调用)
|
|
225
|
+ previewOpenCallback() { }, // 预览窗口打开之后的callback(开启预览模式调用)
|
|
226
|
+ beforeOpenCallback() { }, // 开启打印前的回调事件
|
|
227
|
+ openCallback() { }, // 调用打印之后的回调事件
|
|
228
|
+ closeCallback() { }, //关闭打印的回调事件(无法确定点击的是确认还是取消)
|
|
229
|
+ url: '',
|
|
230
|
+ standard: '',
|
|
231
|
+ extraCss: ''
|
|
232
|
+ }
|
|
233
|
+ }
|
|
234
|
+ },
|
|
235
|
+ methods: {
|
|
236
|
+ getPartyAName(partyAId) {
|
|
237
|
+ const partyA = this.partyAList.find(item => item.partyAId === partyAId)
|
|
238
|
+ return partyA ? partyA.partyAName : ''
|
|
239
|
+ },
|
|
240
|
+ getPlaceName(placeId) {
|
|
241
|
+ const place = this.placeList.find(item => item.id === placeId)
|
|
242
|
+ return place ? place.name : ''
|
|
243
|
+ },
|
|
244
|
+ getFileName(name) {
|
|
245
|
+ if (name) {
|
|
246
|
+ let arr = name.split('/')
|
|
247
|
+ return arr[arr.length - 1]
|
|
248
|
+ }
|
|
249
|
+ return ''
|
|
250
|
+ }
|
|
251
|
+ }
|
|
252
|
+}
|
|
253
|
+</script>
|
|
254
|
+
|
|
255
|
+<style lang="scss" scoped>
|
|
256
|
+table {
|
|
257
|
+ width: 90%;
|
|
258
|
+ text-align: left;
|
|
259
|
+ border-collapse: collapse;
|
|
260
|
+ margin: 0 auto;
|
|
261
|
+ border: 1px solid #a5abb0;
|
|
262
|
+
|
|
263
|
+ td {
|
|
264
|
+ padding: 15px;
|
|
265
|
+ }
|
|
266
|
+}
|
|
267
|
+
|
|
268
|
+.title {
|
|
269
|
+ font-family: '黑体';
|
|
270
|
+ font-size: 20px;
|
|
271
|
+ font-weight: bold;
|
|
272
|
+ line-height: 30px;
|
|
273
|
+}
|
|
274
|
+
|
|
275
|
+.fontbold {
|
|
276
|
+ font-weight: bold;
|
|
277
|
+ min-width: 100px;
|
|
278
|
+ text-align: center;
|
|
279
|
+}
|
|
280
|
+
|
|
281
|
+@page {
|
|
282
|
+ size: auto;
|
|
283
|
+ margin-bottom: 0;
|
|
284
|
+}
|
|
285
|
+
|
|
286
|
+@media print {
|
|
287
|
+ #printContract table {
|
|
288
|
+ width: 100%;
|
|
289
|
+ }
|
|
290
|
+}
|
|
291
|
+</style>
|