@ebiz/designer-components 0.1.122 → 0.1.124
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/designer-components.css +1 -1
- package/dist/index.mjs +9556 -9545
- package/package.json +1 -1
- package/src/components/EbizApprovalForm.vue +41 -14
- package/src/components/EbizApprovalV2.vue +714 -0
- package/src/components/EbizDormDashboard.vue +4 -4
- package/src/components/EbizParkingDashboard.vue +10 -3
- package/src/components/LaunchInterview.vue +2 -1
package/package.json
CHANGED
|
@@ -48,7 +48,18 @@
|
|
|
48
48
|
<!-- 转审人员选择 -->
|
|
49
49
|
<t-dialog header="选择转审人" :visible="showTransferDialog" :confirm-btn="{ content: '确定', theme: 'primary' }"
|
|
50
50
|
:cancel-btn="{ content: '取消', theme: 'default' }" @confirm="confirmTransfer" @close="showTransferDialog = false">
|
|
51
|
-
<
|
|
51
|
+
<ebiz-approval
|
|
52
|
+
workFlowKey=""
|
|
53
|
+
:required="true"
|
|
54
|
+
type="all"
|
|
55
|
+
limitedType="role"
|
|
56
|
+
:showRootOrg="true"
|
|
57
|
+
:childDeptEnable="false"
|
|
58
|
+
:showCC="false"
|
|
59
|
+
:canEdit="true"
|
|
60
|
+
v-model:approverList="transferApprover"
|
|
61
|
+
:limitedMap="[]"
|
|
62
|
+
></ebiz-approval>
|
|
52
63
|
</t-dialog>
|
|
53
64
|
|
|
54
65
|
<!-- 转接待人选择 -->
|
|
@@ -58,19 +69,31 @@
|
|
|
58
69
|
</t-dialog>
|
|
59
70
|
|
|
60
71
|
<!-- 加签位置选择 -->
|
|
61
|
-
<t-dialog header="
|
|
62
|
-
:cancel-btn="{ content: '取消', theme: 'default' }" @confirm="
|
|
63
|
-
<t-radio-group v-model="addSignPosition">
|
|
72
|
+
<t-dialog header="加签" :visible="showPositionDialog" :confirm-btn="{ content: '确定', theme: 'primary' }"
|
|
73
|
+
:cancel-btn="{ content: '取消', theme: 'default' }" @confirm="confirmAddSign" @close="showPositionDialog = false">
|
|
74
|
+
<t-radio-group v-model="addSignPosition" style="margin-bottom: 10px;">
|
|
64
75
|
<t-radio value="before">往前加签</t-radio>
|
|
65
76
|
<t-radio value="after">往后加签</t-radio>
|
|
66
77
|
</t-radio-group>
|
|
78
|
+
<ebiz-approval
|
|
79
|
+
workFlowKey=""
|
|
80
|
+
:required="true"
|
|
81
|
+
type="all"
|
|
82
|
+
limitedType="role"
|
|
83
|
+
:showRootOrg="true"
|
|
84
|
+
:childDeptEnable="false"
|
|
85
|
+
:showCC="false"
|
|
86
|
+
:canEdit="true"
|
|
87
|
+
v-model:approverList="selectedAddSignUser"
|
|
88
|
+
:limitedMap="[]"
|
|
89
|
+
></ebiz-approval>
|
|
67
90
|
</t-dialog>
|
|
68
91
|
|
|
69
92
|
<!-- 加签人员选择 -->
|
|
70
|
-
<t-dialog header="选择加签人员" :visible="showAddSignDialog" :confirm-btn="{ content: '确定', theme: 'primary' }"
|
|
93
|
+
<!-- <t-dialog header="选择加签人员" :visible="showAddSignDialog" :confirm-btn="{ content: '确定', theme: 'primary' }"
|
|
71
94
|
:cancel-btn="{ content: '取消', theme: 'default' }" @confirm="confirmAddSign" @close="showAddSignDialog = false">
|
|
72
95
|
<EbizEmployeeSelector v-model="selectedAddSignUser" :single="true"></EbizEmployeeSelector>
|
|
73
|
-
</t-dialog>
|
|
96
|
+
</t-dialog> -->
|
|
74
97
|
|
|
75
98
|
<!-- 退回确认 -->
|
|
76
99
|
<t-dialog header="退回确认" :visible="showReturnDialog" :confirm-btn="{ content: '确定退回', theme: 'danger' }"
|
|
@@ -149,7 +172,7 @@ const selectedCCList = ref([])
|
|
|
149
172
|
|
|
150
173
|
// 转审相关
|
|
151
174
|
const showTransferDialog = ref(false)
|
|
152
|
-
const transferApprover = ref(
|
|
175
|
+
const transferApprover = ref([])
|
|
153
176
|
|
|
154
177
|
// 转接待人相关
|
|
155
178
|
const showReceiverDialog = ref(false)
|
|
@@ -159,7 +182,7 @@ const selectedReceiver = ref(null)
|
|
|
159
182
|
const showPositionDialog = ref(false)
|
|
160
183
|
const showAddSignDialog = ref(false)
|
|
161
184
|
const addSignPosition = ref('after')
|
|
162
|
-
const selectedAddSignUser = ref(
|
|
185
|
+
const selectedAddSignUser = ref([])
|
|
163
186
|
|
|
164
187
|
// 退回相关
|
|
165
188
|
const showReturnDialog = ref(false)
|
|
@@ -353,15 +376,19 @@ const handleReject = async () => {
|
|
|
353
376
|
|
|
354
377
|
// 确认转审
|
|
355
378
|
const confirmTransfer = async () => {
|
|
356
|
-
if (
|
|
379
|
+
if (transferApprover.value.length === 0) {
|
|
357
380
|
MessagePlugin.warning('请选择转审人')
|
|
358
381
|
return
|
|
359
382
|
}
|
|
360
383
|
|
|
384
|
+
const toUserId = Array.isArray(transferApprover.value)
|
|
385
|
+
? transferApprover.value[0]
|
|
386
|
+
: transferApprover.value
|
|
387
|
+
|
|
361
388
|
try {
|
|
362
389
|
const res = await request(
|
|
363
390
|
{
|
|
364
|
-
toUserId: String(
|
|
391
|
+
toUserId: String(toUserId),
|
|
365
392
|
comment: comments.value,
|
|
366
393
|
attachments: attachments.value
|
|
367
394
|
},
|
|
@@ -372,7 +399,7 @@ const confirmTransfer = async () => {
|
|
|
372
399
|
if (res.success) {
|
|
373
400
|
MessagePlugin.success(res.message || '转审成功')
|
|
374
401
|
showTransferDialog.value = false
|
|
375
|
-
transferApprover.value =
|
|
402
|
+
transferApprover.value = []
|
|
376
403
|
emit('refresh')
|
|
377
404
|
}
|
|
378
405
|
} catch (err) {
|
|
@@ -425,7 +452,7 @@ const confirmPosition = () => {
|
|
|
425
452
|
|
|
426
453
|
// 确认加签
|
|
427
454
|
const confirmAddSign = async () => {
|
|
428
|
-
if (
|
|
455
|
+
if (selectedAddSignUser.value.length === 0) {
|
|
429
456
|
MessagePlugin.warning('请选择加签人员')
|
|
430
457
|
return
|
|
431
458
|
}
|
|
@@ -433,7 +460,7 @@ const confirmAddSign = async () => {
|
|
|
433
460
|
try {
|
|
434
461
|
const res = await request(
|
|
435
462
|
{
|
|
436
|
-
userIds:
|
|
463
|
+
userIds: selectedAddSignUser.value,
|
|
437
464
|
position: addSignPosition.value,
|
|
438
465
|
comment: comments.value,
|
|
439
466
|
attachments: attachments.value
|
|
@@ -445,7 +472,7 @@ const confirmAddSign = async () => {
|
|
|
445
472
|
MessagePlugin.success('加签成功')
|
|
446
473
|
|
|
447
474
|
showAddSignDialog.value = false
|
|
448
|
-
selectedAddSignUser.value =
|
|
475
|
+
selectedAddSignUser.value = []
|
|
449
476
|
|
|
450
477
|
/* if (addSignPosition.value === 'before') {
|
|
451
478
|
emit('refresh')
|