|
@@ -56,7 +56,7 @@
|
56
|
56
|
<svg-icon slot="prefix" icon-class="school" />
|
57
|
57
|
甲方单位
|
58
|
58
|
</template>
|
59
|
|
- {{ project.partyA.partyAName }}
|
|
59
|
+ {{ project.partyA ? project.partyA.partyAName : '' }}
|
60
|
60
|
</el-descriptions-item>
|
61
|
61
|
<el-descriptions-item>
|
62
|
62
|
<template slot="label">
|
|
@@ -174,7 +174,15 @@
|
174
|
174
|
<svg-icon slot="prefix" icon-class="user" />
|
175
|
175
|
项目负责人
|
176
|
176
|
</template>
|
177
|
|
- {{ project.projectLeaderUser ? project.projectLeaderUser.nickName : "" }}
|
|
177
|
+ <div style="display: flex;justify-content:space-between;">
|
|
178
|
+ <div>{{ project.projectLeaderUser ? project.projectLeaderUser.nickName : "" }}</div>
|
|
179
|
+ <div>
|
|
180
|
+ <el-button class="ml20" type="warning" plain size="mini" icon="el-icon-plus"
|
|
181
|
+ @click="prLeaderOpen = true" v-hasPermi="['oa:project:edit']">
|
|
182
|
+ 更换项目负责人
|
|
183
|
+ </el-button>
|
|
184
|
+ </div>
|
|
185
|
+ </div>
|
178
|
186
|
</el-descriptions-item>
|
179
|
187
|
<el-descriptions-item>
|
180
|
188
|
<template slot="label">
|
|
@@ -232,8 +240,8 @@
|
232
|
240
|
<el-input disabled type="textarea" v-model="projectComment.jyComment"></el-input>
|
233
|
241
|
<div class="sign mt10">
|
234
|
242
|
<div class="mr20">签名:<span class="auditor">{{ projectComment.jyUser ? projectComment.jyUser.nickName :
|
235
|
|
- ''
|
236
|
|
- }}</span>
|
|
243
|
+ ''
|
|
244
|
+ }}</span>
|
237
|
245
|
</div>
|
238
|
246
|
<div class="ml20"><span>审核时间:{{ projectComment.jyApprovalTime }}</span></div>
|
239
|
247
|
</div>
|
|
@@ -248,7 +256,7 @@
|
248
|
256
|
<el-input disabled type="textarea" v-model="projectComment.manageComment"></el-input>
|
249
|
257
|
<div class="sign mt10">
|
250
|
258
|
<div class="mr20">签名:<span class="auditor">{{ projectComment.managerUser ?
|
251
|
|
- projectComment.managerUser.nickName : '' }}</span>
|
|
259
|
+ projectComment.managerUser.nickName : '' }}</span>
|
252
|
260
|
</div>
|
253
|
261
|
<div class="ml20"><span>审核时间:{{ projectComment.manageApprovalTime }}</span></div>
|
254
|
262
|
</div>
|
|
@@ -299,7 +307,7 @@
|
299
|
307
|
</template>
|
300
|
308
|
<el-select v-model="devices" multiple disabled style="width:100%">
|
301
|
309
|
<el-option v-for="item in deviceList" :key="item.deviceId" :label="item.name + '【' + (item.brand != null ? item.brand : '') + (item.series != null ? '-' + item.series + '】' : '')
|
302
|
|
- + (item.code != null ? '(设备编号:' + item.code + ')' : '') + '📍' + item.place" :value="item.deviceId">
|
|
310
|
+ + (item.code != null ? '(设备编号:' + item.code + ')' : '') + '📍' + item.place" :value="item.deviceId">
|
303
|
311
|
</el-option>
|
304
|
312
|
</el-select>
|
305
|
313
|
</el-descriptions-item>
|
|
@@ -396,6 +404,9 @@
|
396
|
404
|
<el-dialog title="技术交底记录表" :visible.sync="openTech" width="1000px" append-to-body>
|
397
|
405
|
<technical-tab :taskForm="taskForm"></technical-tab>
|
398
|
406
|
</el-dialog>
|
|
407
|
+ <el-dialog title="更换项目负责人" :visible.sync="prLeaderOpen" width="1000px" append-to-body>
|
|
408
|
+ <choose-people :multiple="false" @chooseUser="changeProjectLeader"></choose-people>
|
|
409
|
+ </el-dialog>
|
399
|
410
|
</div>
|
400
|
411
|
</template>
|
401
|
412
|
|
|
@@ -403,7 +414,7 @@
|
403
|
414
|
import { getDept } from "@/api/system/dept";
|
404
|
415
|
import { getUsersDeptLeaderByDept } from '@/api/system/post'
|
405
|
416
|
import { listUser, getUser } from "@/api/system/user";
|
406
|
|
-import { getProject } from "@/api/oa/project/project";
|
|
417
|
+import { getProject, updateProject } from "@/api/oa/project/project";
|
407
|
418
|
import { listProjectWork, addProjectWork } from "@/api/oa/project/projectWork";
|
408
|
419
|
import { listProjectComment, getProjectComment } from "@/api/oa/project/projectComment";
|
409
|
420
|
import { listProjectProgress, getProjectProgress } from "@/api/oa/project/projectProgress";
|
|
@@ -411,15 +422,16 @@ import { listProjectContract, addProjectContract } from "@/api/oa/contract/proje
|
411
|
422
|
import { listContract, getContract, delContract, addContract, updateContract } from "@/api/oa/contract/contract";
|
412
|
423
|
import { listDevice } from "@/api/oa/device/device";
|
413
|
424
|
import { listCar } from '@/api/oa/car/car';
|
414
|
|
-import budgetInfo from '../../flowable/form/budget/budgetInfo.vue';
|
415
|
|
-import SafeTab from '../../flowable/form/projectProcess/safeTab.vue';
|
416
|
|
-import TechnicalTab from '../../flowable/form/projectProcess/technicalTab.vue';
|
417
|
|
-import SettleData from '../../flowable/form/inProgress/settleData.vue';
|
418
|
|
-import BorrowData from '../../flowable/form/inProgress/borrowData.vue';
|
419
|
|
-import BudgetTab from '../../flowable/form/projectProcess/budgetTab.vue';
|
420
|
|
-import achiData from "../../flowable/form/inProgress/achiData.vue";
|
|
425
|
+import budgetInfo from '@/views/flowable/form/budget/budgetInfo.vue';
|
|
426
|
+import SafeTab from '@/views/flowable/form/projectProcess/safeTab.vue';
|
|
427
|
+import TechnicalTab from '@/views/flowable/form/projectProcess/technicalTab.vue';
|
|
428
|
+import SettleData from '@/views/flowable/form/inProgress/settleData.vue';
|
|
429
|
+import BorrowData from '@/views/flowable/form/inProgress/borrowData.vue';
|
|
430
|
+import BudgetTab from '@/views/flowable/form/projectProcess/budgetTab.vue';
|
|
431
|
+import achiData from "@/views/flowable/form/inProgress/achiData.vue";
|
|
432
|
+import choosePeople from '@/views/flowable/form/budget/components/choosePeople.vue'
|
421
|
433
|
export default {
|
422
|
|
- components: { budgetInfo, SafeTab, TechnicalTab, SettleData, BorrowData, BudgetTab, achiData },
|
|
434
|
+ components: { budgetInfo, SafeTab, TechnicalTab, SettleData, BorrowData, BudgetTab, achiData, choosePeople },
|
423
|
435
|
created() {
|
424
|
436
|
this.getUserList();
|
425
|
437
|
this.getDeviceList();
|
|
@@ -451,6 +463,7 @@ export default {
|
451
|
463
|
openBudget: false,
|
452
|
464
|
openSafe: false,
|
453
|
465
|
openTech: false,
|
|
466
|
+ prLeaderOpen: false,
|
454
|
467
|
taskForm: {
|
455
|
468
|
formId: ''
|
456
|
469
|
},
|
|
@@ -590,6 +603,23 @@ export default {
|
590
|
603
|
url: url
|
591
|
604
|
}
|
592
|
605
|
})
|
|
606
|
+ },
|
|
607
|
+ changeProjectLeader(val) {
|
|
608
|
+ let preLeader = this.getUserName(this.project.projectLeader);
|
|
609
|
+ let curLeader = val.nickName;
|
|
610
|
+ this.$confirm('项目负责人将由' + preLeader + '变更为' + curLeader + ',是否确认', '提示', {
|
|
611
|
+ confirmButtonText: '确定',
|
|
612
|
+ cancelButtonText: '取消',
|
|
613
|
+ type: 'warning'
|
|
614
|
+ }).then(() => {
|
|
615
|
+ updateProject(
|
|
616
|
+ { projectId: this.project.projectId, projectLeader: val.userId }
|
|
617
|
+ ).then(res => {
|
|
618
|
+ this.$message.success('项目负责人修改成功');
|
|
619
|
+ this.prLeaderOpen = false;
|
|
620
|
+ this.$router.go(0);
|
|
621
|
+ })
|
|
622
|
+ }).catch(() => { });
|
593
|
623
|
}
|
594
|
624
|
},
|
595
|
625
|
}
|