|
@@ -2,7 +2,7 @@
|
2
|
2
|
* @Author: wrh
|
3
|
3
|
* @Date: 2024-08-14 14:24:11
|
4
|
4
|
* @LastEditors: Please set LastEditors
|
5
|
|
- * @LastEditTime: 2025-01-09 09:26:23
|
|
5
|
+ * @LastEditTime: 2025-01-15 10:33:56
|
6
|
6
|
-->
|
7
|
7
|
<template>
|
8
|
8
|
<div class="app-container">
|
|
@@ -38,38 +38,6 @@
|
38
|
38
|
</el-form>
|
39
|
39
|
|
40
|
40
|
<el-row :gutter="10" class="mb8">
|
41
|
|
- <!-- <el-col :span="1.5">
|
42
|
|
- <el-button
|
43
|
|
- type="primary"
|
44
|
|
- plain
|
45
|
|
- icon="el-icon-plus"
|
46
|
|
- size="mini"
|
47
|
|
- @click="handleAdd"
|
48
|
|
- v-hasPermi="['oa:declare:add']"
|
49
|
|
- >新增</el-button>
|
50
|
|
- </el-col>
|
51
|
|
- <el-col :span="1.5">
|
52
|
|
- <el-button
|
53
|
|
- type="success"
|
54
|
|
- plain
|
55
|
|
- icon="el-icon-edit"
|
56
|
|
- size="mini"
|
57
|
|
- :disabled="single"
|
58
|
|
- @click="handleUpdate"
|
59
|
|
- v-hasPermi="['oa:declare:edit']"
|
60
|
|
- >修改</el-button>
|
61
|
|
- </el-col>
|
62
|
|
- <el-col :span="1.5">
|
63
|
|
- <el-button
|
64
|
|
- type="danger"
|
65
|
|
- plain
|
66
|
|
- icon="el-icon-delete"
|
67
|
|
- size="mini"
|
68
|
|
- :disabled="multiple"
|
69
|
|
- @click="handleDelete"
|
70
|
|
- v-hasPermi="['oa:declare:remove']"
|
71
|
|
- >删除</el-button>
|
72
|
|
- </el-col> -->
|
73
|
41
|
<el-col :span="1.5">
|
74
|
42
|
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport"
|
75
|
43
|
v-hasPermi="['oa:declare:export']">导出</el-button>
|
|
@@ -79,13 +47,13 @@
|
79
|
47
|
|
80
|
48
|
<el-table v-loading="loading" :data="declareList" @selection-change="handleSelectionChange">
|
81
|
49
|
<el-table-column type="index" width="55" align="center" />
|
82
|
|
- <!-- <el-table-column label="填报id" align="center" prop="formId" /> -->
|
83
|
50
|
<el-table-column label="项目编号" align="center" prop="project.projectNumber" :formatter="formatterProjectNumber" />
|
84
|
|
- <el-table-column label="项目名称" align="center" prop="project.projectName" :formatter="formatterProjectName" />
|
|
51
|
+ <el-table-column label="项目名称" align="center" prop="project.projectName" width="220px"
|
|
52
|
+ :formatter="formatterProjectName" />
|
85
|
53
|
<el-table-column label="填报人" align="center" prop="user.nickName" />
|
86
|
54
|
<el-table-column label="工作类别" align="center" prop="workType" />
|
87
|
55
|
<el-table-column label="工作项目" align="center" prop="workItem" />
|
88
|
|
- <el-table-column label="工作内容" align="center" prop="workContent" />
|
|
56
|
+ <el-table-column label="工作内容" align="center" prop="workContent" width="250px" />
|
89
|
57
|
<el-table-column label="工天" align="center" prop="workLoad" />
|
90
|
58
|
<el-table-column label="工天单价" align="center" prop="price" />
|
91
|
59
|
<el-table-column label="系数" align="center" prop="coefficient" />
|
|
@@ -94,22 +62,26 @@
|
94
|
62
|
{{ predictMoney(scope.row) }}
|
95
|
63
|
</template>
|
96
|
64
|
</el-table-column>
|
97
|
|
- <el-table-column label="一审状态" align="center" prop="checkStatus">
|
98
|
|
- <template slot-scope="scope">
|
99
|
|
- <el-tag :type="formartType(scope.row.checkStatus)">{{ formatFn(scope.row, 'checkStatus') }}</el-tag>
|
100
|
|
- </template>
|
101
|
|
- </el-table-column>
|
102
|
|
- <el-table-column label="二审状态" align="center" prop="auditStatus">
|
103
|
|
- <template slot-scope="scope">
|
104
|
|
- <el-tag :type="formartType(scope.row.auditStatus)">{{ formatFn(scope.row, 'auditStatus') }}</el-tag>
|
105
|
|
- </template>
|
106
|
|
- </el-table-column>
|
107
|
|
- <el-table-column label="确认状态" align="center" prop="confirmStatus">
|
|
65
|
+ <el-table-column label="审核状态" align="center">
|
108
|
66
|
<template slot-scope="scope">
|
109
|
|
- <el-tag :type="formartType(scope.row.confirmStatus)">{{ formatFn(scope.row, 'confirmStatus') }}</el-tag>
|
|
67
|
+ <div>
|
|
68
|
+ <el-tag :type="formatFn(scope.row, 'checkStatus') ? 'success':'warning'" size="mini">一审</el-tag>
|
|
69
|
+ <i v-if="formatFn(scope.row, 'checkStatus')" class="el-icon-circle-check" style="color:#67C23A"></i>
|
|
70
|
+ <i v-else class="el-icon-warning-outline" style="color:#E6A23C"></i>
|
|
71
|
+ </div>
|
|
72
|
+ <div>
|
|
73
|
+ <el-tag :type="formatFn(scope.row, 'auditStatus') ? 'success':'warning'" size="mini">二审</el-tag>
|
|
74
|
+ <i v-if="formatFn(scope.row, 'auditStatus')" class="el-icon-circle-check" style="color:#67C23A"></i>
|
|
75
|
+ <i v-else class="el-icon-warning-outline" style="color:#E6A23C"></i>
|
|
76
|
+ </div>
|
|
77
|
+ <div>
|
|
78
|
+ <el-tag :type="formatFn(scope.row, 'confirmStatus') ? 'success':'warning'" size="mini">确认</el-tag>
|
|
79
|
+ <i v-if="formatFn(scope.row, 'confirmStatus')" class="el-icon-circle-check" style="color:#67C23A"></i>
|
|
80
|
+ <i v-else class="el-icon-warning-outline" style="color:#E6A23C"></i>
|
|
81
|
+ </div>
|
110
|
82
|
</template>
|
111
|
83
|
</el-table-column>
|
112
|
|
- <el-table-column label="填报时间" align="center" prop="submitTime" width="180">
|
|
84
|
+ <el-table-column label="填报时间" align="center" prop="submitTime">
|
113
|
85
|
<template slot-scope="scope">
|
114
|
86
|
<span>{{ parseTime(scope.row.submitTime, '{y}-{m}-{d}') }}</span>
|
115
|
87
|
</template>
|
|
@@ -118,13 +90,6 @@
|
118
|
90
|
<template slot-scope="scope">
|
119
|
91
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
|
120
|
92
|
v-hasPermi="['oa:declare:edit']">修改</el-button>
|
121
|
|
- <!-- <el-button
|
122
|
|
- size="mini"
|
123
|
|
- type="text"
|
124
|
|
- icon="el-icon-delete"
|
125
|
|
- @click="handleDelete(scope.row)"
|
126
|
|
- v-hasPermi="['oa:declare:remove']"
|
127
|
|
- >删除</el-button> -->
|
128
|
93
|
</template>
|
129
|
94
|
</el-table-column>
|
130
|
95
|
</el-table>
|
|
@@ -246,7 +211,7 @@ export default {
|
246
|
211
|
if (this.$store.getters.roles.includes('dept')) {
|
247
|
212
|
this.queryParams.projectLeader = null
|
248
|
213
|
}
|
249
|
|
- if (this.$store.getters.userId == 1 ) {
|
|
214
|
+ if (this.$store.getters.userId == 1) {
|
250
|
215
|
this.queryParams.deptId = null
|
251
|
216
|
this.queryParams.projectLeader = null
|
252
|
217
|
}
|
|
@@ -370,17 +335,10 @@ export default {
|
370
|
335
|
}, `declare_${new Date().getTime()}.xlsx`)
|
371
|
336
|
},
|
372
|
337
|
formatFn(row, type) {
|
373
|
|
- if (type == 'confirmStatus') {
|
374
|
|
- if (row[type] && row[type] == '1') {
|
375
|
|
- return '已确认'
|
376
|
|
- } else {
|
377
|
|
- return '待确认'
|
378
|
|
- }
|
379
|
|
- }
|
380
|
338
|
if (row[type] && row[type] == '1') {
|
381
|
|
- return '已审核'
|
|
339
|
+ return true
|
382
|
340
|
} else {
|
383
|
|
- return '待审核'
|
|
341
|
+ return false
|
384
|
342
|
}
|
385
|
343
|
},
|
386
|
344
|
formartType(val) {
|