|
@@ -1,33 +1,39 @@
|
|
1
|
+<!--
|
|
2
|
+ * @Author: ysh
|
|
3
|
+ * @Date: 2024-06-21 18:51:51
|
|
4
|
+ * @LastEditors: Please set LastEditors
|
|
5
|
+ * @LastEditTime: 2024-09-18 16:56:44
|
|
6
|
+-->
|
1
|
7
|
<template>
|
2
|
8
|
<div class="app-container">
|
3
|
9
|
<el-row :gutter="20">
|
4
|
|
- <el-col :span="isFlow ? 18:24" :xs="24">
|
|
10
|
+ <el-col :span="isFlow ? 18 : 24" :xs="24">
|
5
|
11
|
<h2 class="text-center">成果归档记录表</h2>
|
6
|
12
|
<el-divider></el-divider>
|
7
|
13
|
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
8
|
14
|
<el-form-item label="项目信息" prop="projectId">
|
9
|
|
- <el-button type="primary" size="mini" @click="openProject = true" v-if="taskName == '成果上传'">选择项目</el-button>
|
|
15
|
+ <el-button type="primary" size="mini" @click="openProject = true" v-if="taskName == '归档发起'">选择项目</el-button>
|
10
|
16
|
<el-descriptions border v-if="isSelect" style="margin-top: 10px;" :column="2">
|
11
|
17
|
<el-descriptions-item label="项目名称" label-class-name="my-label">{{ chooseProject.projectName
|
12
|
|
- }}</el-descriptions-item>
|
|
18
|
+ }}</el-descriptions-item>
|
13
|
19
|
<el-descriptions-item label="项目编号" label-class-name="my-label">{{ chooseProject.projectNumber
|
14
|
|
- }}</el-descriptions-item>
|
|
20
|
+ }}</el-descriptions-item>
|
15
|
21
|
<el-descriptions-item label="甲方单位" label-class-name="my-label">{{ chooseProject.partyA.partyAName
|
16
|
|
- }}</el-descriptions-item>
|
|
22
|
+ }}</el-descriptions-item>
|
17
|
23
|
<el-descriptions-item label="合同编码" label-class-name="my-label">{{ contractCode
|
18
|
|
- }}</el-descriptions-item>
|
|
24
|
+ }}</el-descriptions-item>
|
19
|
25
|
<el-descriptions-item label="承担部门" label-class-name="my-label">{{
|
20
|
|
- chooseProject.undertakingDeptName
|
21
|
|
- }}</el-descriptions-item>
|
|
26
|
+ chooseProject.undertakingDeptName
|
|
27
|
+ }}</el-descriptions-item>
|
22
|
28
|
<el-descriptions-item label="项目负责人" label-class-name="my-label">{{ chooseProject.projectLeaderUser
|
23
|
|
- ? chooseProject.projectLeaderUser.nickName : ''
|
24
|
|
- }}</el-descriptions-item>
|
|
29
|
+ ? chooseProject.projectLeaderUser.nickName : ''
|
|
30
|
+ }}</el-descriptions-item>
|
25
|
31
|
<el-descriptions-item label="技术负责人" label-class-name="my-label">{{
|
26
|
|
- chooseProject.technicalDirectorUser ? chooseProject.technicalDirectorUser.nickName :
|
27
|
|
- '' }}</el-descriptions-item>
|
|
32
|
+ chooseProject.technicalDirectorUser ? chooseProject.technicalDirectorUser.nickName :
|
|
33
|
+ '' }}</el-descriptions-item>
|
28
|
34
|
<el-descriptions-item label="质检审核员" label-class-name="my-label">{{
|
29
|
|
- chooseProject.qualityInspectorName
|
30
|
|
- }}</el-descriptions-item>
|
|
35
|
+ chooseProject.qualityInspectorName
|
|
36
|
+ }}</el-descriptions-item>
|
31
|
37
|
<!-- <el-descriptions-item label="坐标经度" label-class-name="my-label">{{ chooseProject.kmlLng
|
32
|
38
|
}}</el-descriptions-item>
|
33
|
39
|
<el-descriptions-item label="坐标纬度" label-class-name="my-label">{{ chooseProject.kmlLat
|
|
@@ -39,27 +45,27 @@
|
39
|
45
|
</el-form-item>
|
40
|
46
|
<el-form-item label="成果提交日期" prop="submitTime">
|
41
|
47
|
<el-date-picker clearable v-model="form.submitTime" type="date" value-format="yyyy-MM-dd"
|
42
|
|
- placeholder="请选择成果提交日期" :disabled="taskName != '成果上传'">
|
|
48
|
+ placeholder="请选择成果提交日期" :disabled="taskName != '归档发起'">
|
43
|
49
|
</el-date-picker>
|
44
|
50
|
</el-form-item>
|
45
|
51
|
<el-form-item label="备注说明" prop="submitSituation">
|
46
|
|
- <el-input type="textarea" v-model="form.submitSituation" placeholder="请输入备注说明" :disabled="taskName != '成果上传'"
|
47
|
|
- :autosize="{ minRows: 4 }" />
|
|
52
|
+ <el-input type="textarea" v-model="form.submitSituation" placeholder="请输入备注说明"
|
|
53
|
+ :disabled="taskName != '归档发起'" :autosize="{ minRows: 4 }" />
|
48
|
54
|
</el-form-item>
|
49
|
|
- <el-divider></el-divider>
|
50
|
|
- <el-form-item label="部门检查员检查" prop="produceComment">
|
|
55
|
+ <!-- <el-divider></el-divider> -->
|
|
56
|
+ <!-- <el-form-item label="部门检查员检查" prop="produceComment">
|
51
|
57
|
<el-input type="textarea" v-model="form.produceComment" placeholder="请输入部门检查员检查意见"
|
52
|
58
|
:disabled="taskName != '部门检查'" :autosize="{ minRows: 4 }" />
|
53
|
59
|
</el-form-item>
|
54
|
60
|
<el-row>
|
55
|
61
|
<el-col :span="6" :xs="24" :offset="12">
|
56
|
|
- <el-form-item label="签名:" label-width="120px" v-if="taskName != '成果上传'">
|
|
62
|
+ <el-form-item label="签名:" label-width="120px" v-if="taskName != '归档发起'">
|
57
|
63
|
<span class="auditor"> {{ form.produceUser ? form.produceUser.nickName : produceUser }}
|
58
|
64
|
</span>
|
59
|
65
|
</el-form-item>
|
60
|
66
|
</el-col>
|
61
|
67
|
<el-col :span="6">
|
62
|
|
- <el-form-item label="日期:" label-width="120px" v-if="taskName != '成果上传'">
|
|
68
|
+ <el-form-item label="日期:" label-width="120px" v-if="taskName != '归档发起'">
|
63
|
69
|
<span> {{ form.produceTime ? form.produceTime : produceTime }} </span>
|
64
|
70
|
</el-form-item>
|
65
|
71
|
</el-col>
|
|
@@ -75,34 +81,23 @@
|
75
|
81
|
</el-form-item>
|
76
|
82
|
<el-row>
|
77
|
83
|
<el-col :span="6" :xs="24" :offset="12">
|
78
|
|
- <el-form-item label="签名:" label-width="120px" v-if="taskName != '成果上传' && taskName != '部门检查'">
|
|
84
|
+ <el-form-item label="签名:" label-width="120px" v-if="taskName != '归档发起' && taskName != '部门检查'">
|
79
|
85
|
<span class="auditor"> {{ form.qualityUser ? form.qualityUser.nickName : qualityUser }}
|
80
|
86
|
</span>
|
81
|
87
|
</el-form-item>
|
82
|
88
|
</el-col>
|
83
|
89
|
<el-col :span="6">
|
84
|
|
- <el-form-item label="日期:" label-width="120px" v-if="taskName != '成果上传' && taskName != '部门检查'">
|
|
90
|
+ <el-form-item label="日期:" label-width="120px" v-if="taskName != '归档发起' && taskName != '部门检查'">
|
85
|
91
|
<span> {{ form.qualityTime ? form.qualityTime : qualityTime }} </span>
|
86
|
92
|
</el-form-item>
|
87
|
93
|
</el-col>
|
88
|
|
- </el-row>
|
|
94
|
+ </el-row> -->
|
89
|
95
|
<el-form-item label="技术质量与安全部负责人审核" prop="deptComment">
|
90
|
96
|
<el-input type="textarea" v-model="form.deptComment" placeholder="请输入技术质量与安全部负责人审核意见"
|
91
|
|
- :disabled="taskName != '技术部审核'" :autosize="{ minRows: 4 }" />
|
|
97
|
+ :disabled="taskName != '技术质量部审核'" :autosize="{ minRows: 4 }" />
|
92
|
98
|
</el-form-item>
|
93
|
|
- <el-row>
|
94
|
|
- <el-col :span="6" :xs="24" :offset="12">
|
95
|
|
- <el-form-item label="签名:" label-width="120px" v-if="taskName == '技术部审核' || taskName == '成果归档' || taskName == ''">
|
96
|
|
- <span class="auditor"> {{ form.deptUser ? form.deptUser.nickName : deptUser }}
|
97
|
|
- </span>
|
98
|
|
- </el-form-item>
|
99
|
|
- </el-col>
|
100
|
|
- <el-col :span="6">
|
101
|
|
- <el-form-item label="日期:" label-width="120px" v-if="taskName == '技术部审核' || taskName == '成果归档' || taskName == ''">
|
102
|
|
- <span> {{ form.deptTime ? form.deptTime : deptTime }} </span>
|
103
|
|
- </el-form-item>
|
104
|
|
- </el-col>
|
105
|
|
- </el-row>
|
|
99
|
+ <auditor-row key="1" :isCurrent="taskName == '技术质量部审核'" :signature="form.deptLeader"
|
|
100
|
+ :signTime="form.deptTime"></auditor-row>
|
106
|
101
|
<el-form-item label="资料管理">
|
107
|
102
|
<el-button type="success" size="mini" @click="gotoFile" :disabled="taskName != '成果归档'">前往资料管理系统</el-button>
|
108
|
103
|
</el-form-item>
|
|
@@ -110,23 +105,11 @@
|
110
|
105
|
<el-input type="textarea" v-model="form.archiveComment" placeholder="请输入技术质量与安全部归档意见"
|
111
|
106
|
:disabled="taskName != '成果归档'" :autosize="{ minRows: 4 }" />
|
112
|
107
|
</el-form-item>
|
113
|
|
- <el-row>
|
114
|
|
- <el-col :span="6" :xs="24" :offset="12">
|
115
|
|
- <el-form-item label="签名:" label-width="120px" v-if="taskName == '成果归档' || taskName == ''">
|
116
|
|
- <span class="auditor"> {{ form.archiveUser ? form.archiveUser.nickName : archiveUser }}
|
117
|
|
- </span>
|
118
|
|
- </el-form-item>
|
119
|
|
- </el-col>
|
120
|
|
- <el-col :span="6">
|
121
|
|
- <el-form-item label="归档日期:" label-width="120px" v-if="taskName == '成果归档' || taskName == ''">
|
122
|
|
- <span> {{ form.archiveTime ? form.archiveTime : archiveTime }} </span>
|
123
|
|
- </el-form-item>
|
124
|
|
- </el-col>
|
125
|
|
- </el-row>
|
|
108
|
+ <auditor-row key="2" :isCurrent="taskName == '成果归档'" :signature="form.archiver" :signTime="form.archiveTime"></auditor-row>
|
126
|
109
|
</el-form>
|
127
|
110
|
<div style="text-align: center;" v-if="isFlow">
|
128
|
|
- <el-button type="primary" @click="submitForm" :disabled="taskName == '成果归档' && hasArchievement == false">提
|
129
|
|
- 交</el-button>
|
|
111
|
+ <el-button type="primary" @click="submitForm" :disabled="taskName == '成果归档' && hasArchievement == false">
|
|
112
|
+ 提交并结束流程</el-button>
|
130
|
113
|
</div>
|
131
|
114
|
</el-col>
|
132
|
115
|
<el-col :span="6" :xs="24" v-if="isFlow">
|
|
@@ -169,12 +152,14 @@ import { flowXmlAndNode } from "@/api/flowable/definition";
|
169
|
152
|
import { getUserByRole } from "@/api/system/role";
|
170
|
153
|
import projectChoose from '@/views/flowable/form/components/chooseProject.vue';
|
171
|
154
|
import { listAchievement } from "@/api/file/achievement";
|
|
155
|
+import auditorRow from './components/auditorRow.vue';
|
172
|
156
|
|
173
|
157
|
export default {
|
174
|
158
|
components: {
|
175
|
159
|
FlowUser,
|
176
|
160
|
projectChoose,
|
177
|
|
- flow
|
|
161
|
+ flow,
|
|
162
|
+ auditorRow
|
178
|
163
|
},
|
179
|
164
|
props: {
|
180
|
165
|
taskName: {
|
|
@@ -190,8 +175,8 @@ export default {
|
190
|
175
|
default: true
|
191
|
176
|
}
|
192
|
177
|
},
|
193
|
|
- watch:{
|
194
|
|
- 'taskForm.formId'(){
|
|
178
|
+ watch: {
|
|
179
|
+ 'taskForm.formId'() {
|
195
|
180
|
this.initForm()
|
196
|
181
|
}
|
197
|
182
|
},
|
|
@@ -222,31 +207,6 @@ export default {
|
222
|
207
|
archiveList: [],
|
223
|
208
|
// 弹出层标题
|
224
|
209
|
title: "",
|
225
|
|
- // 是否显示弹出层
|
226
|
|
- open: false,
|
227
|
|
- // 查询参数
|
228
|
|
- queryParams: {
|
229
|
|
- pageNum: 1,
|
230
|
|
- pageSize: 10,
|
231
|
|
- projectId: null,
|
232
|
|
- submitTime: null,
|
233
|
|
- submitSituation: null,
|
234
|
|
- locationLng: null,
|
235
|
|
- locationLat: null,
|
236
|
|
- produceInspector: null,
|
237
|
|
- qualityInspector: null,
|
238
|
|
- deptLeader: null,
|
239
|
|
- archiver: null,
|
240
|
|
- receiveTime: null,
|
241
|
|
- qualityTime: null,
|
242
|
|
- produceTime: null,
|
243
|
|
- deptTime: null,
|
244
|
|
- archiveTime: null,
|
245
|
|
- produceComment: null,
|
246
|
|
- qualityComment: null,
|
247
|
|
- deptComment: null,
|
248
|
|
- archiveComment: null
|
249
|
|
- },
|
250
|
210
|
// 表单参数
|
251
|
211
|
form: {
|
252
|
212
|
submitTime: undefined,
|
|
@@ -289,7 +249,7 @@ export default {
|
289
|
249
|
this.qualityUser = this.$store.getters.name;
|
290
|
250
|
this.qualityTime = parseTime(new Date(), '{y}-{m}-{d}')
|
291
|
251
|
}
|
292
|
|
- else if (this.taskName == '技术部审核') {
|
|
252
|
+ else if (this.taskName == '技术质量部审核') {
|
293
|
253
|
this.deptUser = this.$store.getters.name;
|
294
|
254
|
this.deptTime = parseTime(new Date(), '{y}-{m}-{d}')
|
295
|
255
|
}
|
|
@@ -298,7 +258,6 @@ export default {
|
298
|
258
|
this.archiveTime = parseTime(new Date(), '{y}-{m}-{d}')
|
299
|
259
|
}
|
300
|
260
|
this.getProjectList();
|
301
|
|
- this.getList();
|
302
|
261
|
if (this.isFlow) {
|
303
|
262
|
flowXmlAndNode({ procInsId: this.taskForm.procInsId, deployId: this.taskForm.deployId }).then(res => {
|
304
|
263
|
this.flowData = res.data;
|
|
@@ -335,7 +294,7 @@ export default {
|
335
|
294
|
})
|
336
|
295
|
},
|
337
|
296
|
initRules() {
|
338
|
|
- if (this.taskName == '成果上传') {
|
|
297
|
+ if (this.taskName == '归档发起') {
|
339
|
298
|
this.rules = {
|
340
|
299
|
submitTime: [
|
341
|
300
|
{ required: true, message: '请选择成果提交日期', trigger: 'change' }
|
|
@@ -356,7 +315,7 @@ export default {
|
356
|
315
|
{ required: true, message: '请填写审核意见', trigger: 'blur' }
|
357
|
316
|
]
|
358
|
317
|
}
|
359
|
|
- } else if (this.taskName == '技术部审核') {
|
|
318
|
+ } else if (this.taskName == '技术质量部审核') {
|
360
|
319
|
this.rules = {
|
361
|
320
|
deptComment: [
|
362
|
321
|
{ required: true, message: '请填写审核意见', trigger: 'blur' }
|
|
@@ -364,20 +323,6 @@ export default {
|
364
|
323
|
}
|
365
|
324
|
}
|
366
|
325
|
},
|
367
|
|
- /** 查询cmc成果归档列表 */
|
368
|
|
- getList() {
|
369
|
|
- this.loading = true;
|
370
|
|
- listArchive(this.queryParams).then(response => {
|
371
|
|
- this.archiveList = response.rows;
|
372
|
|
- this.total = response.total;
|
373
|
|
- this.loading = false;
|
374
|
|
- });
|
375
|
|
- },
|
376
|
|
- // 取消按钮
|
377
|
|
- cancel() {
|
378
|
|
- this.open = false;
|
379
|
|
- this.reset();
|
380
|
|
- },
|
381
|
326
|
// 查询项目列表
|
382
|
327
|
getProjectList() {
|
383
|
328
|
this.loading = true
|
|
@@ -416,63 +361,6 @@ export default {
|
416
|
361
|
});
|
417
|
362
|
}
|
418
|
363
|
},
|
419
|
|
- // 表单重置
|
420
|
|
- reset() {
|
421
|
|
- this.form = {
|
422
|
|
- archiveId: null,
|
423
|
|
- projectId: null,
|
424
|
|
- submitTime: null,
|
425
|
|
- submitSituation: null,
|
426
|
|
- locationLng: null,
|
427
|
|
- locationLat: null,
|
428
|
|
- produceInspector: null,
|
429
|
|
- qualityInspector: null,
|
430
|
|
- deptLeader: null,
|
431
|
|
- archiver: null,
|
432
|
|
- receiveTime: null,
|
433
|
|
- qualityTime: null,
|
434
|
|
- produceTime: null,
|
435
|
|
- deptTime: null,
|
436
|
|
- archiveTime: null,
|
437
|
|
- produceComment: null,
|
438
|
|
- qualityComment: null,
|
439
|
|
- deptComment: null,
|
440
|
|
- archiveComment: null
|
441
|
|
- };
|
442
|
|
- this.resetForm("form");
|
443
|
|
- },
|
444
|
|
- /** 搜索按钮操作 */
|
445
|
|
- handleQuery() {
|
446
|
|
- this.queryParams.pageNum = 1;
|
447
|
|
- this.getList();
|
448
|
|
- },
|
449
|
|
- /** 重置按钮操作 */
|
450
|
|
- resetQuery() {
|
451
|
|
- this.resetForm("queryForm");
|
452
|
|
- this.handleQuery();
|
453
|
|
- },
|
454
|
|
- // 多选框选中数据
|
455
|
|
- handleSelectionChange(selection) {
|
456
|
|
- this.ids = selection.map(item => item.archiveId)
|
457
|
|
- this.single = selection.length !== 1
|
458
|
|
- this.multiple = !selection.length
|
459
|
|
- },
|
460
|
|
- /** 新增按钮操作 */
|
461
|
|
- handleAdd() {
|
462
|
|
- this.reset();
|
463
|
|
- this.open = true;
|
464
|
|
- this.title = "添加cmc成果归档";
|
465
|
|
- },
|
466
|
|
- /** 修改按钮操作 */
|
467
|
|
- handleUpdate(row) {
|
468
|
|
- this.reset();
|
469
|
|
- const archiveId = row.archiveId || this.ids
|
470
|
|
- getArchive(archiveId).then(response => {
|
471
|
|
- this.form = response.data;
|
472
|
|
- this.open = true;
|
473
|
|
- this.title = "修改cmc成果归档";
|
474
|
|
- });
|
475
|
|
- },
|
476
|
364
|
/** 提交按钮 */
|
477
|
365
|
submitForm() {
|
478
|
366
|
this.$refs["form"].validate(valid => {
|
|
@@ -480,16 +368,22 @@ export default {
|
480
|
368
|
if (this.formTotal != 0) {
|
481
|
369
|
updateArchive(this.form).then(response => {
|
482
|
370
|
this.$modal.msgSuccess("修改成功");
|
483
|
|
- this.open = false;
|
484
|
|
- this.getList();
|
485
|
371
|
});
|
486
|
372
|
const params = { taskId: this.taskForm.taskId };
|
487
|
373
|
getNextFlowNode(params).then(res => {
|
488
|
|
- if (this.taskName == '成果上传') {
|
489
|
|
- const params = { taskId: this.taskForm.taskId };
|
490
|
|
- this.checkSendUser = true;
|
491
|
|
- this.completeOpen = true;
|
492
|
|
- this.completeTitle = "流程审批";
|
|
374
|
+ if (this.taskName == '归档发起') {
|
|
375
|
+ // const params = { taskId: this.taskForm.taskId };
|
|
376
|
+ // this.checkSendUser = true;
|
|
377
|
+ // this.completeOpen = true;
|
|
378
|
+ // this.completeTitle = "流程审批";
|
|
379
|
+ getUsersDeptLeaderByDept({ deptId: 109 }).then(res => {
|
|
380
|
+ let userId = res.data.userId;
|
|
381
|
+ this.$set(this.taskForm.variables, "approval", userId);
|
|
382
|
+ complete(this.taskForm).then(response => {
|
|
383
|
+ this.$modal.msgSuccess(response.msg);
|
|
384
|
+ this.$emit('goBack')
|
|
385
|
+ });
|
|
386
|
+ });
|
493
|
387
|
}
|
494
|
388
|
if (this.taskName == '部门检查') {
|
495
|
389
|
let approvalList = this.chooseProject.qualityInspector.split(',')
|
|
@@ -509,7 +403,7 @@ export default {
|
509
|
403
|
});
|
510
|
404
|
});
|
511
|
405
|
}
|
512
|
|
- if (this.taskName == '技术部审核') {
|
|
406
|
+ if (this.taskName == '技术质量部审核') {
|
513
|
407
|
getUserByRole({ roleId: 6 }).then(result => {
|
514
|
408
|
this.$set(this.taskForm.variables, "approval", result.data[0]);
|
515
|
409
|
complete(this.taskForm).then(response => {
|
|
@@ -529,8 +423,6 @@ export default {
|
529
|
423
|
this.form.archiveId = this.taskForm.formId;
|
530
|
424
|
addArchive(this.form).then(response => {
|
531
|
425
|
this.$modal.msgSuccess("新增成功");
|
532
|
|
- this.open = false;
|
533
|
|
- this.getList();
|
534
|
426
|
});
|
535
|
427
|
const params = { taskId: this.taskForm.taskId };
|
536
|
428
|
getNextFlowNode(params).then(res => {
|
|
@@ -542,22 +434,6 @@ export default {
|
542
|
434
|
}
|
543
|
435
|
});
|
544
|
436
|
},
|
545
|
|
- /** 删除按钮操作 */
|
546
|
|
- handleDelete(row) {
|
547
|
|
- const archiveIds = row.archiveId || this.ids;
|
548
|
|
- this.$modal.confirm('是否确认删除cmc成果归档编号为"' + archiveIds + '"的数据项?').then(function () {
|
549
|
|
- return delArchive(archiveIds);
|
550
|
|
- }).then(() => {
|
551
|
|
- this.getList();
|
552
|
|
- this.$modal.msgSuccess("删除成功");
|
553
|
|
- }).catch(() => { });
|
554
|
|
- },
|
555
|
|
- /** 导出按钮操作 */
|
556
|
|
- handleExport() {
|
557
|
|
- this.download('oa/archive/export', {
|
558
|
|
- ...this.queryParams
|
559
|
|
- }, `archive_${new Date().getTime()}.xlsx`)
|
560
|
|
- },
|
561
|
437
|
confirmProject(val) {
|
562
|
438
|
if (val.length > 1) {
|
563
|
439
|
this.$message.error('请选择一个项目');
|
|
@@ -597,7 +473,7 @@ export default {
|
597
|
473
|
})
|
598
|
474
|
},
|
599
|
475
|
gotoFile() {
|
600
|
|
- this.$router.push({ path: '/file' })
|
|
476
|
+ this.$router.push({ path: '/product/archive/file' })
|
601
|
477
|
},
|
602
|
478
|
typeText(flag) {
|
603
|
479
|
if (flag == true)
|