|
|
@@ -166,6 +166,8 @@
|
|
166
|
166
|
@post-deptid="getzhddDeptid" />
|
|
167
|
167
|
</el-form-item>
|
|
168
|
168
|
<el-row>
|
|
|
169
|
+
|
|
|
170
|
+
|
|
169
|
171
|
<el-form-item v-if="isxylx.indexOf('血库送血') < 0" label="指派人">
|
|
170
|
172
|
<el-select
|
|
171
|
173
|
v-model="zhddtransferForm.DealMan"
|
|
|
@@ -174,13 +176,32 @@
|
|
174
|
176
|
placeholder="请选择指派人"
|
|
175
|
177
|
style="width: 68%"
|
|
176
|
178
|
@change="changezhddRepairman">
|
|
177
|
|
- <el-option
|
|
|
179
|
+
|
|
|
180
|
+ <el-option-group
|
|
|
181
|
+ v-for="group in chongzhiOptionFn(zhddrepairman)"
|
|
|
182
|
+ :key="group.label"
|
|
|
183
|
+ :label="group.label">
|
|
|
184
|
+ <el-option
|
|
|
185
|
+ v-for="item in group.options"
|
|
|
186
|
+ :key="item.usercode"
|
|
|
187
|
+ :label="item.username + '(' + item.count + ')'"
|
|
|
188
|
+ :value="item.usercode" />
|
|
|
189
|
+ </el-option-group>
|
|
|
190
|
+
|
|
|
191
|
+
|
|
|
192
|
+ <!-- <el-option
|
|
178
|
193
|
v-for="item in zhddrepairman"
|
|
179
|
194
|
:key="item.usercode"
|
|
180
|
195
|
:label="item.username + '(' + item.count + ')'"
|
|
181
|
|
- :value="item.usercode" />
|
|
|
196
|
+ :value="item.usercode" /> -->
|
|
|
197
|
+
|
|
|
198
|
+
|
|
182
|
199
|
</el-select>
|
|
|
200
|
+
|
|
|
201
|
+
|
|
183
|
202
|
</el-form-item>
|
|
|
203
|
+
|
|
|
204
|
+
|
|
184
|
205
|
<el-form-item v-else>
|
|
185
|
206
|
<el-table :data="xylxdatas">
|
|
186
|
207
|
<el-table-column prop="F_ToDept" label="送达科室" align="center">
|
|
|
@@ -898,6 +919,9 @@
|
|
898
|
919
|
@post-deptid="getdispatchDeptid" />
|
|
899
|
920
|
</el-form-item>
|
|
900
|
921
|
<el-row>
|
|
|
922
|
+
|
|
|
923
|
+ <!-- 【 -->
|
|
|
924
|
+
|
|
901
|
925
|
<el-form-item label="指派人">
|
|
902
|
926
|
<el-select
|
|
903
|
927
|
v-model="dispatchtransferForm.DealMan"
|
|
|
@@ -906,11 +930,18 @@
|
|
906
|
930
|
placeholder="请选择指派人"
|
|
907
|
931
|
style="width: 68%"
|
|
908
|
932
|
@change="changedispatchRepairman">
|
|
909
|
|
- <el-option
|
|
910
|
|
- v-for="item in dispatchrepairman"
|
|
911
|
|
- :key="item.usercode"
|
|
912
|
|
- :label="item.username + '(' + item.count + ')'"
|
|
913
|
|
- :value="item.usercode" />
|
|
|
933
|
+
|
|
|
934
|
+ <el-option-group
|
|
|
935
|
+ v-for="group in chongzhiOptionFn(dispatchrepairman)"
|
|
|
936
|
+ :key="group.label"
|
|
|
937
|
+ :label="group.label">
|
|
|
938
|
+ <el-option
|
|
|
939
|
+ v-for="item in group.options"
|
|
|
940
|
+ :key="item.usercode"
|
|
|
941
|
+ :label="item.username + '(' + item.count + ')'"
|
|
|
942
|
+ :value="item.usercode" />
|
|
|
943
|
+ </el-option-group>
|
|
|
944
|
+
|
|
914
|
945
|
</el-select>
|
|
915
|
946
|
</el-form-item>
|
|
916
|
947
|
</el-row>
|
|
|
@@ -2672,7 +2703,26 @@ export default {
|
|
2672
|
2703
|
this.loading = false // 关闭loading
|
|
2673
|
2704
|
}
|
|
2674
|
2705
|
})
|
|
2675
|
|
- }
|
|
|
2706
|
+ },
|
|
|
2707
|
+ chongzhiOptionFn(data){
|
|
|
2708
|
+ let arr1 = data.filter((v)=> v.username.indexOf('【') !== -1 )
|
|
|
2709
|
+ let arr2 = data.filter((v)=> v.username.indexOf('【') === -1 )
|
|
|
2710
|
+
|
|
|
2711
|
+ let arr = [
|
|
|
2712
|
+ {
|
|
|
2713
|
+ label : '值班人员',
|
|
|
2714
|
+ options : arr1
|
|
|
2715
|
+ },
|
|
|
2716
|
+ {
|
|
|
2717
|
+ label : '其它人员',
|
|
|
2718
|
+ options : arr2
|
|
|
2719
|
+ },
|
|
|
2720
|
+ ]
|
|
|
2721
|
+
|
|
|
2722
|
+ console.log(arr)
|
|
|
2723
|
+
|
|
|
2724
|
+ return arr
|
|
|
2725
|
+ }
|
|
2676
|
2726
|
}
|
|
2677
|
2727
|
}
|
|
2678
|
2728
|
</script>
|