|
|
@@ -5,11 +5,11 @@
|
|
5
|
5
|
<el-form-item label="选择内业人员:">
|
|
6
|
6
|
<span v-if="innerUsers.length != 0">
|
|
7
|
7
|
<el-tag effect="plain" type="success" v-for="item in innerUsers" style="margin: 5px; font-size: 14px"
|
|
8
|
|
- :key="item.userId">
|
|
|
8
|
+ :key="item.userId" closable @close="removeUser('inner', item.userId)">
|
|
9
|
9
|
{{ item.nickName }}
|
|
10
|
10
|
</el-tag>
|
|
11
|
11
|
</span>
|
|
12
|
|
- <el-button type="success" plain icon="el-icon-plus" @click="openPeople('inner')" size="mini">选择</el-button>
|
|
|
12
|
+ <el-button type="success" plain icon="el-icon-plus" @click="openPeople('inner')" size="mini">新增</el-button>
|
|
13
|
13
|
</el-form-item>
|
|
14
|
14
|
|
|
15
|
15
|
<!-- <div class="mb20" style="color:#E23D28;font-size:12px;">
|
|
|
@@ -30,7 +30,7 @@
|
|
30
|
30
|
<td style="width: 100px">预算天数</td>
|
|
31
|
31
|
<td style="width: 100px">预算绩效</td>
|
|
32
|
32
|
<td style="width: 100px">金额</td>
|
|
33
|
|
- <td style="width: 100px">备注</td>
|
|
|
33
|
+ <td style="width: 160px">备注</td>
|
|
34
|
34
|
</tr>
|
|
35
|
35
|
<tr v-for="user, index in innerUsers" :key="user.userId">
|
|
36
|
36
|
<td>{{ index + 1 }}</td>
|
|
|
@@ -40,11 +40,11 @@
|
|
40
|
40
|
{{ user.dayCost }}
|
|
41
|
41
|
</td>
|
|
42
|
42
|
<td>
|
|
43
|
|
- <el-input-number :controls="false" v-model="user.days" placeholder="请输入天数"
|
|
|
43
|
+ <el-input-number style="width: 100px" :controls="false" v-model="user.days" placeholder="请输入天数"
|
|
44
|
44
|
@blur="calculateUserTotal(user)"></el-input-number>
|
|
45
|
45
|
</td>
|
|
46
|
|
- <td>
|
|
47
|
|
- <el-input-number :controls="false" v-model="user.performance" placeholder="请输入预算绩效"
|
|
|
46
|
+ <td>
|
|
|
47
|
+ <el-input-number style="width: 100px" :controls="false" v-model="user.performance" placeholder="请输入预算绩效"
|
|
48
|
48
|
@blur="calculateUserTotal(user)"></el-input-number>
|
|
49
|
49
|
<el-button type="text" @click="openCalculatePerformance(user)">计算绩效</el-button>
|
|
50
|
50
|
</td>
|
|
|
@@ -54,8 +54,8 @@
|
|
54
|
54
|
</td>
|
|
55
|
55
|
</tr>
|
|
56
|
56
|
<tr>
|
|
57
|
|
- <td colspan="4">合计</td>
|
|
58
|
|
- <td>{{ form.innerDays }}</td>
|
|
|
57
|
+ <td colspan="5">合计</td>
|
|
|
58
|
+ <!-- <td>{{ form.innerDays }}</td> -->
|
|
59
|
59
|
<td>{{ form.innerSettle }}</td>
|
|
60
|
60
|
<td>{{ form.innerStaffCost }}</td>
|
|
61
|
61
|
</tr>
|
|
|
@@ -67,17 +67,17 @@
|
|
67
|
67
|
<el-form-item label="选择外业人员:">
|
|
68
|
68
|
<span v-if="outerUsers.length != 0">
|
|
69
|
69
|
<el-tag effect="plain" type="success" v-for="item in outerUsers" style="margin: 5px; font-size: 14px"
|
|
70
|
|
- :key="item.userId">
|
|
|
70
|
+ :key="item.userId" closable @close="removeUser('outer', item.userId)">
|
|
71
|
71
|
{{ item.nickName }}
|
|
72
|
72
|
</el-tag>
|
|
73
|
73
|
</span>
|
|
74
|
|
- <el-button type="success" plain icon="el-icon-plus" @click="openPeople('outer')" size="mini">选择</el-button>
|
|
|
74
|
+ <el-button type="success" plain icon="el-icon-plus" @click="openPeople('outer')" size="mini">新增</el-button>
|
|
75
|
75
|
</el-form-item>
|
|
76
|
76
|
<!-- 外业人员表格 -->
|
|
77
|
77
|
<el-form-item v-if="outerUsers.length != 0">
|
|
78
|
78
|
<table border="1">
|
|
79
|
79
|
<tr>
|
|
80
|
|
- <td :colspan="9" class="head">外业人员成本预算</td>
|
|
|
80
|
+ <td :colspan="10" class="head">外业人员成本预算</td>
|
|
81
|
81
|
</tr>
|
|
82
|
82
|
<tr>
|
|
83
|
83
|
<td style="width: 50px">序号</td>
|
|
|
@@ -89,7 +89,7 @@
|
|
89
|
89
|
<td style="width: 100px">预算系数</td>
|
|
90
|
90
|
<td style="width: 100px">预算绩效</td>
|
|
91
|
91
|
<td style="width: 100px">总额</td>
|
|
92
|
|
- <td style="width: 100px">备注</td>
|
|
|
92
|
+ <td style="width: 160px">备注</td>
|
|
93
|
93
|
</tr>
|
|
94
|
94
|
<tr v-for="user, index in outerUsers" :key="user.userId">
|
|
95
|
95
|
<td>{{ index + 1 }}</td>
|
|
|
@@ -102,11 +102,11 @@
|
|
102
|
102
|
200
|
|
103
|
103
|
</td>
|
|
104
|
104
|
<td>
|
|
105
|
|
- <el-input-number :controls="false" v-model="user.days" placeholder="请输入天数"
|
|
|
105
|
+ <el-input-number style="width: 100px" :controls="false" v-model="user.days" placeholder="请输入天数"
|
|
106
|
106
|
@blur="calculateUserTotal(user)"></el-input-number>
|
|
107
|
107
|
</td>
|
|
108
|
108
|
<td>
|
|
109
|
|
- <el-input-number :controls="false" v-model="user.coefficient" placeholder="请输入系数"
|
|
|
109
|
+ <el-input-number style="width: 100px" :controls="false" v-model="user.coefficient" placeholder="请输入系数"
|
|
110
|
110
|
@blur="calculateUserTotal(user)"></el-input-number>
|
|
111
|
111
|
</td>
|
|
112
|
112
|
<td>
|
|
|
@@ -118,7 +118,7 @@
|
|
118
|
118
|
</td>
|
|
119
|
119
|
</tr>
|
|
120
|
120
|
<tr>
|
|
121
|
|
- <td colspan="6">合计</td>
|
|
|
121
|
+ <td colspan="7">合计</td>
|
|
122
|
122
|
<td>{{ form.outerSettle }}</td>
|
|
123
|
123
|
<td>{{ form.outerStaffCost }}</td>
|
|
124
|
124
|
</tr>
|
|
|
@@ -139,7 +139,10 @@
|
|
139
|
139
|
<!-- 选择人员对话框 -->
|
|
140
|
140
|
<el-dialog :title="currentType === 'inner' ? '选择内业人员' : '选择外业人员'" :visible.sync="isOpenPeople" width="700px"
|
|
141
|
141
|
append-to-body>
|
|
142
|
|
- <choosePeople @chooseUser="getChooseUser"></choosePeople>
|
|
|
142
|
+ <choosePeople @chooseUser="getChooseUser"
|
|
|
143
|
+ :selectedUserIds="currentType === 'inner' ? innerUsers.map(u => u.userId) : outerUsers.map(u => u.userId)"
|
|
|
144
|
+ :currentType="currentType"
|
|
|
145
|
+ ></choosePeople>
|
|
143
|
146
|
</el-dialog>
|
|
144
|
147
|
|
|
145
|
148
|
<!-- 计算绩效对话框 -->
|
|
|
@@ -315,9 +318,9 @@ export default {
|
|
315
|
318
|
});
|
|
316
|
319
|
|
|
317
|
320
|
if (this.currentType === 'inner') {
|
|
318
|
|
- this.innerUsers = processedUsers;
|
|
|
321
|
+ this.innerUsers = this.innerUsers.concat(processedUsers);
|
|
319
|
322
|
} else {
|
|
320
|
|
- this.outerUsers = processedUsers;
|
|
|
323
|
+ this.outerUsers = this.outerUsers.concat(processedUsers);
|
|
321
|
324
|
}
|
|
322
|
325
|
this.isOpenPeople = false;
|
|
323
|
326
|
this.updateStaffCosts();
|
|
|
@@ -367,6 +370,14 @@ export default {
|
|
367
|
370
|
this.calculateUserTotal(this.currentUser);
|
|
368
|
371
|
}
|
|
369
|
372
|
},
|
|
|
373
|
+ removeUser(type, userId) {
|
|
|
374
|
+ if (type === 'inner') {
|
|
|
375
|
+ this.innerUsers = this.innerUsers.filter(user => user.userId !== userId);
|
|
|
376
|
+ } else if (type === 'outer') {
|
|
|
377
|
+ this.outerUsers = this.outerUsers.filter(user => user.userId !== userId);
|
|
|
378
|
+ }
|
|
|
379
|
+ this.updateStaffCosts();
|
|
|
380
|
+ },
|
|
370
|
381
|
},
|
|
371
|
382
|
}
|
|
372
|
383
|
</script>
|