|
@@ -136,6 +136,36 @@
|
136
|
136
|
</el-form-item>
|
137
|
137
|
</el-col>
|
138
|
138
|
</el-row>
|
|
139
|
+ <el-form-item label="修改技术方案" prop="reviseDocument">
|
|
140
|
+ <FileUpload v-if="taskName == '技术质量部审核'" ref="final" :limit="1" :filePathName="'技术方案/质量部修改'"
|
|
141
|
+ :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']" @input="getReviseDoc">
|
|
142
|
+ </FileUpload>
|
|
143
|
+ <div v-if="form.reviseDocument && taskName != '技术质量部审核'">
|
|
144
|
+ <el-link type="primary" @click="reviewWord(`${baseUrl}${'/profile/upload' + form.reviseDocument}`)">
|
|
145
|
+ {{ getFileName(form.reviseDocument) }}
|
|
146
|
+ </el-link>
|
|
147
|
+ <el-link class="ml20" type="warning" :href="`${baseUrl}${'/profile/upload' + form.reviseDocument}`"
|
|
148
|
+ :underline="false" target="_blank">
|
|
149
|
+ <span class="el-icon-download">下载文件</span>
|
|
150
|
+ </el-link>
|
|
151
|
+ </div>
|
|
152
|
+ </el-form-item>
|
|
153
|
+ <el-form-item label="技术质量与安全部审核意见" prop="techDeptComment">
|
|
154
|
+ <el-input type="textarea" v-model="form.techDeptComment" :autosize="{ minRows: 4 }" placeholder="请输入意见"
|
|
155
|
+ :disabled="taskName != '技术质量部审核'" />
|
|
156
|
+ </el-form-item>
|
|
157
|
+ <el-row>
|
|
158
|
+ <el-col :span="6" :xs="24" :offset="12">
|
|
159
|
+ <el-form-item label="签名" prop="techDeptLeader">
|
|
160
|
+ <span class="auditor"> {{ form.techDeptLeader ? form.techDeptUser.nickName : managerUser }} </span>
|
|
161
|
+ </el-form-item>
|
|
162
|
+ </el-col>
|
|
163
|
+ <el-col :span="6">
|
|
164
|
+ <el-form-item label="日期:" label-width="120px">
|
|
165
|
+ <span> {{ form.techDeptTime ? form.techDeptTime : manageApprovalTime }} </span>
|
|
166
|
+ </el-form-item>
|
|
167
|
+ </el-col>
|
|
168
|
+ </el-row>
|
139
|
169
|
<el-form-item label="最终技术方案" prop="finalDocument">
|
140
|
170
|
<FileUpload v-if="taskName == '总工审核'" ref="final" :limit="1" :filePathName="'技术方案/最终'"
|
141
|
171
|
:fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf', 'rar', 'zip']" @input="getFinalDoc"></FileUpload>
|
|
@@ -194,6 +224,21 @@
|
194
|
224
|
<el-button type="primary" @click="taskComplete">确 定</el-button>
|
195
|
225
|
</span>
|
196
|
226
|
</el-dialog>
|
|
227
|
+ <el-dialog title="选择审核方式" :visible.sync="commentOpen" width="450px" append-to-body>
|
|
228
|
+ <div class="text-center">
|
|
229
|
+ <el-form>
|
|
230
|
+ <el-form-item :label="examineLabel"></el-form-item>
|
|
231
|
+ </el-form>
|
|
232
|
+ <el-radio-group v-model="common">
|
|
233
|
+ <el-radio label="0" border>是</el-radio>
|
|
234
|
+ <el-radio label="1" border>否</el-radio>
|
|
235
|
+ </el-radio-group>
|
|
236
|
+ </div>
|
|
237
|
+ <span slot="footer" class="text-center">
|
|
238
|
+ <el-button @click="commentOpen = false">取 消</el-button>
|
|
239
|
+ <el-button type="primary" @click="confirmExamine">确 定</el-button>
|
|
240
|
+ </span>
|
|
241
|
+ </el-dialog>
|
197
|
242
|
</div>
|
198
|
243
|
</template>
|
199
|
244
|
|
|
@@ -206,7 +251,7 @@ import FlowUser from '@/components/flow/User';
|
206
|
251
|
import flow from '@/views/flowable/task/todo/detail/flow';
|
207
|
252
|
import { complete, getNextFlowNode } from "@/api/flowable/todo";
|
208
|
253
|
import { flowXmlAndNode } from "@/api/flowable/definition";
|
209
|
|
-import { getUsersManageLeaderByDept, getUserByPost } from '@/api/system/post'
|
|
254
|
+import { getUsersManageLeaderByDept, getUsersDeptLeaderByDept, getUserByPost } from '@/api/system/post'
|
210
|
255
|
|
211
|
256
|
export default {
|
212
|
257
|
components: {
|
|
@@ -290,7 +335,10 @@ export default {
|
290
|
335
|
completeOpen: false,
|
291
|
336
|
completeTitle: '',
|
292
|
337
|
checkType: 'single',
|
293
|
|
- isDocumentValid: true
|
|
338
|
+ isDocumentValid: true,
|
|
339
|
+ commentOpen: false,
|
|
340
|
+ common: '0',
|
|
341
|
+ examineLabel: ''
|
294
|
342
|
};
|
295
|
343
|
},
|
296
|
344
|
created() {
|
|
@@ -306,10 +354,10 @@ export default {
|
306
|
354
|
this.auditUser = this.$store.getters.name;
|
307
|
355
|
this.techApprovalTime = parseTime(new Date(), '{y}-{m}-{d}')
|
308
|
356
|
}
|
309
|
|
- if (this.taskName == '总工审核') {
|
310
|
|
- this.managerUser = this.$store.getters.name;
|
311
|
|
- this.manageApprovalTime = parseTime(new Date(), '{y}-{m}-{d}')
|
312
|
|
- }
|
|
357
|
+ // if (this.taskName == '总工审核') {
|
|
358
|
+ this.managerUser = this.$store.getters.name;
|
|
359
|
+ this.manageApprovalTime = parseTime(new Date(), '{y}-{m}-{d}')
|
|
360
|
+ // }
|
313
|
361
|
this.getProjectById();
|
314
|
362
|
this.getUserList();
|
315
|
363
|
this.getList();
|
|
@@ -341,6 +389,12 @@ export default {
|
341
|
389
|
{ required: true, message: '请输入技术方案审核意见', trigger: 'blur' }
|
342
|
390
|
]
|
343
|
391
|
}
|
|
392
|
+ } else if (this.taskName == '技术质量部审核') {
|
|
393
|
+ this.rules = {
|
|
394
|
+ techDeptComment: [
|
|
395
|
+ { required: true, message: '请输入技术方案审核意见', trigger: 'blur' }
|
|
396
|
+ ]
|
|
397
|
+ }
|
344
|
398
|
} else if (this.taskName == '总工审核') {
|
345
|
399
|
this.rules = {
|
346
|
400
|
manageComment: [
|
|
@@ -403,6 +457,9 @@ export default {
|
403
|
457
|
getFinalDoc(val) {
|
404
|
458
|
this.getDoc(val, 'finalDocument')
|
405
|
459
|
},
|
|
460
|
+ getReviseDoc(val){
|
|
461
|
+ this.getDoc(val, 'reviseDocument')
|
|
462
|
+ },
|
406
|
463
|
getDoc(val, name) {
|
407
|
464
|
if (val) {
|
408
|
465
|
let arr = val.split('/upload')
|
|
@@ -471,6 +528,7 @@ export default {
|
471
|
528
|
this.$modal.msgSuccess("修改成功");
|
472
|
529
|
this.open = false;
|
473
|
530
|
this.getList();
|
|
531
|
+ this.initForm();
|
474
|
532
|
});
|
475
|
533
|
const params = { taskId: this.taskForm.taskId };
|
476
|
534
|
getNextFlowNode(params).then(res => {
|
|
@@ -488,13 +546,11 @@ export default {
|
488
|
546
|
this.completeTitle = "流程审批";
|
489
|
547
|
}
|
490
|
548
|
else if (this.taskName == '技术审核') {
|
491
|
|
- getUserByPost({ postName: "总工程师" }).then(res => {
|
492
|
|
- this.$set(this.taskForm.variables, "approval", res.data[0].userId);
|
493
|
|
- complete(this.taskForm).then(response => {
|
494
|
|
- this.$modal.msgSuccess(response.msg);
|
495
|
|
- this.$emit('goBack')
|
496
|
|
- });
|
497
|
|
- })
|
|
549
|
+ this.commentOpen = true;
|
|
550
|
+ this.examineLabel = '是否提交到技术质量与安全部审核?'
|
|
551
|
+ } else if (this.taskName == '技术质量部审核') {
|
|
552
|
+ this.commentOpen = true;
|
|
553
|
+ this.examineLabel = '是否提交到总工程师审核?'
|
498
|
554
|
}
|
499
|
555
|
else if (this.taskName == '总工审核') {
|
500
|
556
|
complete(this.taskForm).then(response => {
|
|
@@ -526,6 +582,22 @@ export default {
|
526
|
582
|
}
|
527
|
583
|
});
|
528
|
584
|
},
|
|
585
|
+ async confirmExamine() {
|
|
586
|
+ let res = this.common == '0' ? false : true;
|
|
587
|
+ console.log(res);
|
|
588
|
+ this.$set(this.taskForm.variables, "common", res);
|
|
589
|
+ if (this.taskName == '技术审核') {
|
|
590
|
+ let res = await getUsersDeptLeaderByDept({ deptId: 109 })
|
|
591
|
+ this.$set(this.taskForm.variables, "approval", res.data.userId);
|
|
592
|
+ } else if (this.taskName == '技术质量部审核') {
|
|
593
|
+ let res = await getUserByPost({ postName: "总工程师" })
|
|
594
|
+ this.$set(this.taskForm.variables, "approval", res.data[0].userId);
|
|
595
|
+ }
|
|
596
|
+ await complete(this.taskForm).then(response => {
|
|
597
|
+ this.$modal.msgSuccess(response.msg);
|
|
598
|
+ this.$emit('goBack')
|
|
599
|
+ });
|
|
600
|
+ },
|
529
|
601
|
showFormItem(name) {
|
530
|
602
|
let isShow = false;
|
531
|
603
|
if (name == '技术安排')
|