|
@@ -2,14 +2,14 @@
|
2
|
2
|
* @Author: ysh
|
3
|
3
|
* @Date: 2024-04-03 16:28:09
|
4
|
4
|
* @LastEditors: Please set LastEditors
|
5
|
|
- * @LastEditTime: 2024-07-08 14:27:10
|
|
5
|
+ * @LastEditTime: 2024-07-10 19:15:14
|
6
|
6
|
-->
|
7
|
7
|
<template>
|
8
|
8
|
<div class="main">
|
9
|
9
|
<div>
|
10
|
10
|
<h2 class="text-center">项目直接生产成本预算表</h2>
|
11
|
11
|
<p style="text-align: center;">编制人:{{ budgetForm.compilerUser ? budgetForm.compilerUser.nickName : '' }} | 审核人:{{
|
12
|
|
- budgetForm.auditorUser ? budgetForm.auditorUser.nickName : '' }}</p>
|
|
12
|
+ budgetForm.managerUser ? budgetForm.managerUser.nickName : '' }}</p>
|
13
|
13
|
<el-descriptions :column="3" border class="descriptions">
|
14
|
14
|
<el-descriptions-item label="项目编号">
|
15
|
15
|
{{ projectForm.projectNumber }}
|
|
@@ -262,10 +262,44 @@
|
262
|
262
|
(简写:{{ (profit / 10000).toFixed(4) + '万' }})
|
263
|
263
|
</div>
|
264
|
264
|
</el-descriptions-item>
|
|
265
|
+ <el-descriptions-item label="分管审核意见" :span="3">
|
|
266
|
+ <div>
|
|
267
|
+ <el-input :disabled="taskName != '分管审核'" type="textarea" placeholder="请输入审核意见"
|
|
268
|
+ v-model="budgetForm.managerComment" :autosize="{ minRows: 4 }"></el-input>
|
|
269
|
+ <div class="sign mt10">
|
|
270
|
+ <div class="mr20">签名:<span class="auditor">{{ getUserName(budgetForm.manager) }}</span>
|
|
271
|
+ </div>
|
|
272
|
+ <div class="ml20"><span>审核时间:{{ budgetForm.managerTime }}</span></div>
|
|
273
|
+ </div>
|
|
274
|
+ </div>
|
|
275
|
+ </el-descriptions-item>
|
|
276
|
+ <el-descriptions-item label="总经理审核意见" :span="3">
|
|
277
|
+ <div>
|
|
278
|
+ <el-input :disabled="taskName != '总经理审核'" type="textarea" placeholder="请输入审核意见"
|
|
279
|
+ v-model="budgetForm.zjlComment" :autosize="{ minRows: 4 }"></el-input>
|
|
280
|
+ <div class="sign mt10">
|
|
281
|
+ <div class="mr20">签名:<span class="auditor">{{ getUserName(budgetForm.auditor) }}</span>
|
|
282
|
+ </div>
|
|
283
|
+ <div class="ml20"><span>审核时间:{{ budgetForm.zjlTime }}</span></div>
|
|
284
|
+ </div>
|
|
285
|
+ </div>
|
|
286
|
+ </el-descriptions-item>
|
|
287
|
+ <el-descriptions-item label="董事长批准意见" :span="3">
|
|
288
|
+ <div>
|
|
289
|
+ <el-input :disabled="taskName != '预算批准'" type="textarea" placeholder="请输入审核意见"
|
|
290
|
+ v-model="budgetForm.dszComment" :autosize="{ minRows: 4 }"></el-input>
|
|
291
|
+ <div class="sign mt10">
|
|
292
|
+ <div class="mr20">签名:<span class="auditor">{{ getUserName(budgetForm.approver) }}</span>
|
|
293
|
+ </div>
|
|
294
|
+ <div class="ml20"><span>审核时间:{{ budgetForm.dszTime }}</span></div>
|
|
295
|
+ </div>
|
|
296
|
+ </div>
|
|
297
|
+ </el-descriptions-item>
|
265
|
298
|
</el-descriptions>
|
266
|
299
|
</div>
|
|
300
|
+
|
267
|
301
|
<el-row v-if="taskName == '分管审核' || taskName == '总经理审核' || taskName == '预算批准'" class="text-center mt20 mb20">
|
268
|
|
- <el-button type="success" @click="confirmSucess(taskName)">审批通过</el-button>
|
|
302
|
+ <el-button type="success" @click="confirmSucess(taskName)">提 交</el-button>
|
269
|
303
|
</el-row>
|
270
|
304
|
</div>
|
271
|
305
|
</template>
|
|
@@ -330,6 +364,7 @@ export default {
|
330
|
364
|
initBudgetForm() {
|
331
|
365
|
listBudget({ pageNum: 1, pageSize: 20, projectId: this.taskForm.formId }).then(res => {
|
332
|
366
|
this.budgetForm = res.rows[0];
|
|
367
|
+ this.setSignName();
|
333
|
368
|
if (this.budgetForm) {
|
334
|
369
|
listBudgetDevice({ budgetId: this.budgetForm.budgetId }).then(res => {
|
335
|
370
|
this.chooseDevice = res.rows;
|
|
@@ -377,6 +412,20 @@ export default {
|
377
|
412
|
}
|
378
|
413
|
});
|
379
|
414
|
},
|
|
415
|
+ setSignName() {
|
|
416
|
+ const signUser = this.$store.getters.userId
|
|
417
|
+ const times = this.parseTime(new Date(), '{y}-{m}-{d}')
|
|
418
|
+ if (this.taskName == '分管审核') {
|
|
419
|
+ this.budgetForm.manager = signUser
|
|
420
|
+ this.budgetForm.managerTime = times
|
|
421
|
+ } else if (this.taskName == '总经理审核') {
|
|
422
|
+ this.budgetForm.auditor = signUser
|
|
423
|
+ this.budgetForm.zjlTime = times
|
|
424
|
+ } else if (this.taskName == '预算批准') {
|
|
425
|
+ this.budgetForm.approver = signUser
|
|
426
|
+ this.budgetForm.dszTime = times
|
|
427
|
+ }
|
|
428
|
+ },
|
380
|
429
|
// 查询项目列表
|
381
|
430
|
getProjectList() {
|
382
|
431
|
getProject(this.taskForm.formId).then(response => {
|
|
@@ -404,6 +453,7 @@ export default {
|
404
|
453
|
|
405
|
454
|
})
|
406
|
455
|
} else if (taskName == '总经理审核') {
|
|
456
|
+ this.updateBudgetForm();
|
407
|
457
|
getNextFlowNode(params).then(res => {
|
408
|
458
|
getUserByPost({ postName: "董事长" }).then(res => {
|
409
|
459
|
const userId = res.data[0].userId;
|
|
@@ -415,6 +465,7 @@ export default {
|
415
|
465
|
})
|
416
|
466
|
})
|
417
|
467
|
} else {
|
|
468
|
+ this.updateBudgetForm();
|
418
|
469
|
getNextFlowNode(params).then(res => {
|
419
|
470
|
complete(this.taskForm).then(response => {
|
420
|
471
|
this.$modal.msgSuccess(response.msg);
|
|
@@ -556,6 +607,7 @@ export default {
|
556
|
607
|
</script>
|
557
|
608
|
|
558
|
609
|
<style lang="scss" scoped>
|
|
610
|
+@import "@/assets/styles/element-reset.scss";
|
559
|
611
|
.main {
|
560
|
612
|
width: 100%;
|
561
|
613
|
margin: 0 auto;
|
|
@@ -584,12 +636,21 @@ table {
|
584
|
636
|
font-weight: bold;
|
585
|
637
|
}
|
586
|
638
|
|
|
639
|
+.sign {
|
|
640
|
+ display: flex;
|
|
641
|
+ justify-content: flex-end;
|
|
642
|
+ align-items: center;
|
|
643
|
+ padding-right: 80px;
|
|
644
|
+ line-height: 30px;
|
|
645
|
+ /* 如果需要垂直居中 */
|
|
646
|
+}
|
|
647
|
+
|
587
|
648
|
::v-deep .el-descriptions-item__label.is-bordered-label {
|
588
|
649
|
color: #5a5757;
|
589
|
650
|
background: rgba($color: #a9adb3, $alpha: 0.1);
|
590
|
|
- width: 110px;
|
|
651
|
+ width: 120px;
|
591
|
652
|
text-align: center;
|
592
|
|
- min-width: 110px;
|
|
653
|
+ min-width: 120px;
|
593
|
654
|
}
|
594
|
655
|
|
595
|
656
|
::v-deep .el-descriptions .is-bordered .el-descriptions-item__cell {
|