bl-common-vue3 3.8.96 → 3.8.101

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bl-common-vue3",
3
- "version": "3.8.96",
3
+ "version": "3.8.101",
4
4
  "main": "index.js",
5
5
  "module": "index.js",
6
6
  "description": "bailing vue3 common components lib",
@@ -443,7 +443,7 @@
443
443
  v-if="detail.dealerHandle || detail.approverHandle || detail.revoke == 1">
444
444
  <a-space size="small">
445
445
  <a-button
446
- v-if="detail.dealerHandle"
446
+ v-if="detail.dealerHandle && !collapseApprovalActions"
447
447
  type="primary"
448
448
  key="deal"
449
449
  :size="isAllButton ? 'small' : 'default'"
@@ -457,7 +457,7 @@
457
457
 
458
458
  <template v-if="detail.approverHandle">
459
459
  <a-button
460
- v-if="canAddSign"
460
+ v-if="canAddSign && !collapseApprovalActions"
461
461
  type="primary"
462
462
  ghost
463
463
  :size="isAllButton ? 'small' : 'default'"
@@ -468,7 +468,7 @@
468
468
  {{ $t("ApprovalDetail.index.931943-2") }}
469
469
  </a-button>
470
470
  <a-button
471
- v-if="detail?.process_now > 1"
471
+ v-if="detail?.process_now > 1 && !collapseApprovalActions"
472
472
  type="default"
473
473
  :size="isAllButton ? 'small' : 'default'"
474
474
  :loading="submitLoading"
@@ -480,7 +480,7 @@
480
480
  </a-button>
481
481
 
482
482
  <a-button
483
- v-if="canEdit"
483
+ v-if="canEdit && !collapseApprovalActions"
484
484
  type="primary"
485
485
  key="edit"
486
486
  :size="isAllButton ? 'small' : 'default'"
@@ -545,7 +545,7 @@
545
545
  ghost
546
546
  key="urging"
547
547
  :size="isAllButton ? 'small' : 'default'"
548
- v-if="detail.revoke == 1"
548
+ v-if="detail.revoke == 1 && !collapseApprovalActions"
549
549
  @click="ApprovalUrging">
550
550
  <template #icon>
551
551
  <BellOutlined />
@@ -557,13 +557,81 @@
557
557
  :loading="submitLoading"
558
558
  key="revoke"
559
559
  :size="isAllButton ? 'small' : 'default'"
560
- v-if="detail.revoke == 1"
560
+ v-if="detail.revoke == 1 && !collapseApprovalActions"
561
561
  @click="revokeApproval">
562
562
  <template #icon>
563
563
  <UndoOutlined />
564
564
  </template>
565
565
  {{ $t("ApprovalDetail.index.931943-20") }}
566
566
  </a-button>
567
+
568
+ <a-dropdown
569
+ v-if="collapseApprovalActions && moreApprovalActions.length"
570
+ :trigger="['click']"
571
+ placement="topRight">
572
+ <a-button type="primary" ghost :size="isAllButton ? 'small' : 'default'">
573
+ {{ $t("common.button.more") }}
574
+ <DownOutlined />
575
+ </a-button>
576
+ <template #overlay>
577
+ <a-menu>
578
+ <a-menu-item
579
+ v-if="detail.dealerHandle"
580
+ key="deal"
581
+ :disabled="submitLoading"
582
+ @click="approvalForm('agree')">
583
+ <template #icon>
584
+ <CheckOutlined />
585
+ </template>
586
+ {{ $t("ApprovalDetail.index.931943-14") }}
587
+ </a-menu-item>
588
+ <a-menu-item
589
+ v-if="canAddSign"
590
+ key="addSign"
591
+ @click="handleAddSign">
592
+ <template #icon>
593
+ <PlusCircleOutlined />
594
+ </template>
595
+ {{ $t("ApprovalDetail.index.931943-2") }}
596
+ </a-menu-item>
597
+ <a-menu-item
598
+ v-if="detail?.process_now > 1"
599
+ key="back"
600
+ :disabled="submitLoading"
601
+ @click="handleMore(2)">
602
+ <template #icon>
603
+ <RollbackOutlined />
604
+ </template>
605
+ {{ $t("ApprovalDetail.index.931943-15") }}
606
+ </a-menu-item>
607
+ <a-menu-item v-if="canEdit" key="edit" @click="editFormInfo">
608
+ <template #icon>
609
+ <FormOutlined />
610
+ </template>
611
+ {{ $t("ApprovalDetail.index.931943-16") }}
612
+ </a-menu-item>
613
+ <a-menu-item
614
+ v-if="detail.revoke == 1"
615
+ key="urging"
616
+ @click="ApprovalUrging">
617
+ <template #icon>
618
+ <BellOutlined />
619
+ </template>
620
+ {{ $t("ApprovalDetail.index.931943-19") }}
621
+ </a-menu-item>
622
+ <a-menu-item
623
+ v-if="detail.revoke == 1"
624
+ key="revoke"
625
+ :disabled="submitLoading"
626
+ @click="revokeApproval">
627
+ <template #icon>
628
+ <UndoOutlined />
629
+ </template>
630
+ {{ $t("ApprovalDetail.index.931943-20") }}
631
+ </a-menu-item>
632
+ </a-menu>
633
+ </template>
634
+ </a-dropdown>
567
635
  </a-space>
568
636
  </div>
569
637
  </div>
@@ -618,6 +686,7 @@ import {
618
686
  RollbackOutlined,
619
687
  FormOutlined,
620
688
  PlusCircleOutlined,
689
+ DownOutlined,
621
690
  } from "@ant-design/icons-vue";
622
691
  import { message } from "ant-design-vue";
623
692
  import moment from "moment";
@@ -672,6 +741,7 @@ export default defineComponent({
672
741
  FormOutlined,
673
742
  AddSignModal,
674
743
  BlPopover,
744
+ DownOutlined,
675
745
  "a-timeline": Timeline,
676
746
  },
677
747
  directives: {
@@ -1231,6 +1301,40 @@ export default defineComponent({
1231
1301
  return false;
1232
1302
  });
1233
1303
 
1304
+ const moreApprovalActions = computed(() => {
1305
+ const list = [];
1306
+ if (state.detail?.dealerHandle) {
1307
+ list.push("deal");
1308
+ }
1309
+ if (state.detail?.approverHandle) {
1310
+ if (canAddSign.value) {
1311
+ list.push("addSign");
1312
+ }
1313
+ if (state.detail?.process_now > 1) {
1314
+ list.push("back");
1315
+ }
1316
+ if (canEdit.value) {
1317
+ list.push("edit");
1318
+ }
1319
+ }
1320
+ if (state.detail?.revoke == 1) {
1321
+ list.push("urging", "revoke");
1322
+ }
1323
+ return list;
1324
+ });
1325
+
1326
+ const approvalActionCount = computed(() => {
1327
+ let count = moreApprovalActions.value.length;
1328
+ if (state.detail?.approverHandle) {
1329
+ count += 2;
1330
+ }
1331
+ return count;
1332
+ });
1333
+
1334
+ const collapseApprovalActions = computed(() => {
1335
+ return state.detail?.approverHandle && approvalActionCount.value > 4;
1336
+ });
1337
+
1234
1338
  const handleRequest = (emitObj) => {
1235
1339
  emit("request", emitObj);
1236
1340
  };
@@ -1300,6 +1404,8 @@ export default defineComponent({
1300
1404
  handleAddSign,
1301
1405
  handleAddSignSuccess,
1302
1406
  canAddSign,
1407
+ moreApprovalActions,
1408
+ collapseApprovalActions,
1303
1409
  handleRequest,
1304
1410
  detailRef,
1305
1411
  isAllButton,
@@ -12,13 +12,13 @@ export default {
12
12
  "common.table.status": "Status",
13
13
  "common.table.operation": "Operation",
14
14
  "common.button.cancel": "Cancel",
15
- "common.button.ok": "Ok",
15
+ "common.button.ok": "OK",
16
16
  "common.button.save": "Save",
17
17
  "common.button.confirm": "Confirm",
18
18
  "common.button.submit": "Submit",
19
19
  "common.button.whole": "All",
20
- "common.tenant.lower": "customer",
21
- "common.tenant.cap": "Customer",
20
+ "common.tenant.lower": "tenant",
21
+ "common.tenant.cap": "Tenant",
22
22
  "common.action.collapse": "Collapse",
23
23
  "common.action.expand": "Expand",
24
24
  "common.switch.enabled": "Enabled",
@@ -30,38 +30,38 @@ export default {
30
30
  "common.switch.normal": "Normal",
31
31
  "common.switch.yes": "Yes",
32
32
  "common.switch.no": "No",
33
- "common.save.success": "Successfully saved",
34
- "common.action.success": "Operation successful",
35
- "common.submit.success": "Submitted successfully",
33
+ "common.save.success": "Saved",
34
+ "common.action.success": "Completed",
35
+ "common.submit.success": "Submitted",
36
36
  "common.save.fail": "Save failed, please try again",
37
37
  "common.action.fail": "Operation failed, please try again",
38
38
  "common.submit.fail": "Submission failed, please try again",
39
39
  "common.verification.required": "Required",
40
- "common.houseResources.lower": "housing resources",
41
- "common.houseResources.cap": "Housing resources",
40
+ "common.houseResources.lower": "property",
41
+ "common.houseResources.cap": "Property",
42
42
  "common.basic.project": "Project",
43
43
  "common.basic.building": "Building",
44
44
  "common.basic.floor": "Floor",
45
- "common.basic.tips": "Tips",
46
- "common.form.remarks": "Remarks",
45
+ "common.basic.tips": "Tip",
46
+ "common.form.remarks": "Notes",
47
47
  "common.button.agree": "Agree",
48
- "common.button.refuse": "Refuse",
48
+ "common.button.refuse": "Reject",
49
49
  "common.please.enter": "Please enter",
50
- "common.please.choose": "Please choose",
50
+ "common.please.choose": "Please select",
51
51
  "common.date.today": "Today",
52
52
  "common.date.yesterday": "Yesterday",
53
53
  "common.date.thisWeek": "This week",
54
- "common.date.lastWeek": "last week",
54
+ "common.date.lastWeek": "Last week",
55
55
  "common.date.thisMonth": "This month",
56
56
  "common.date.lastMonth": "Last month",
57
57
  "common.date.thisYear": "This year",
58
- "common.date.lastYear": "last year",
59
- "common.confirm.delete": "Are you sure to delete?",
60
- "common.confirm.action": "Are you sure about the operation?",
58
+ "common.date.lastYear": "Last year",
59
+ "common.confirm.delete": "Delete this item?",
60
+ "common.confirm.action": "Continue with this action?",
61
61
  "common.button.view": "View",
62
62
  "common.button.detail": "Details",
63
63
  "common.choose.required": "Required",
64
- "common.verification.chooseRequired": "Required option",
64
+ "common.verification.chooseRequired": "Selection required",
65
65
  "common.button.change": "Change",
66
66
  "common.button.copy": "Copy",
67
- }
67
+ }
@@ -1,50 +1,50 @@
1
1
  export default {
2
2
  "common.button.add": "追加",
3
3
  "common.button.edit": "編集",
4
- "common.button.delete": "削除#サクジョ#",
5
- "common.button.export": "エクスポート#エクスポート#",
6
- "common.button.import": "インポート#インポート#",
7
- "common.button.search": "検索けんさく",
4
+ "common.button.delete": "削除",
5
+ "common.button.export": "エクスポート",
6
+ "common.button.import": "インポート",
7
+ "common.button.search": "検索",
8
8
  "common.button.reset": "リセット",
9
9
  "common.button.more": "詳細",
10
- "common.switch.open": "オープン",
10
+ "common.switch.open": "開く",
11
11
  "common.switch.close": "閉じる",
12
12
  "common.table.status": "ステータス",
13
- "common.table.operation": "操作する",
13
+ "common.table.operation": "操作",
14
14
  "common.button.cancel": "キャンセル",
15
- "common.button.ok": "確定です",
16
- "common.button.save": "保存します",
17
- "common.button.confirm": "確認します",
18
- "common.button.submit": "提出します",
15
+ "common.button.ok": "OK",
16
+ "common.button.save": "保存",
17
+ "common.button.confirm": "確認",
18
+ "common.button.submit": "送信",
19
19
  "common.button.whole": "すべて",
20
- "common.tenant.lower": "業界人",
21
- "common.tenant.cap": "業界人",
22
- "common.action.collapse": "やめる",
23
- "common.action.expand": "てんかい",
24
- "common.switch.enabled": "ゆうこうか",
25
- "common.switch.disabled": "むこうか",
20
+ "common.tenant.lower": "入居者",
21
+ "common.tenant.cap": "入居者",
22
+ "common.action.collapse": "折りたたむ",
23
+ "common.action.expand": "展開",
24
+ "common.switch.enabled": "有効",
25
+ "common.switch.disabled": "無効",
26
26
  "common.switch.display": "表示",
27
27
  "common.switch.hide": "非表示",
28
28
  "common.form.required": "必須",
29
- "common.form.notRequired": "必須ではありません",
29
+ "common.form.notRequired": "任意",
30
30
  "common.switch.normal": "通常",
31
31
  "common.switch.yes": "はい",
32
32
  "common.switch.no": "いいえ",
33
- "common.save.success": "保存に成功しました",
34
- "common.action.success": "操作が成功しました",
35
- "common.submit.success": "コミット成功",
33
+ "common.save.success": "保存しました",
34
+ "common.action.success": "完了しました",
35
+ "common.submit.success": "送信しました",
36
36
  "common.save.fail": "保存に失敗しました。再試行してください",
37
37
  "common.action.fail": "操作に失敗しました。再試行してください",
38
- "common.submit.fail": "コミットに失敗しました。再試行してください",
38
+ "common.submit.fail": "送信に失敗しました。再試行してください",
39
39
  "common.verification.required": "必須項目",
40
- "common.houseResources.lower": "住宅源",
41
- "common.houseResources.cap": "住宅源",
40
+ "common.houseResources.lower": "物件",
41
+ "common.houseResources.cap": "物件",
42
42
  "common.basic.project": "プロジェクト",
43
- "common.basic.building": "ビル",
44
- "common.basic.floor": "フロア",
43
+ "common.basic.building": "建物",
44
+ "common.basic.floor": "",
45
45
  "common.basic.tips": "ヒント",
46
- "common.form.remarks": "コメント",
47
- "common.button.agree": "に同意",
46
+ "common.form.remarks": "備考",
47
+ "common.button.agree": "同意",
48
48
  "common.button.refuse": "拒否",
49
49
  "common.please.enter": "入力してください",
50
50
  "common.please.choose": "選択してください",
@@ -54,14 +54,14 @@ export default {
54
54
  "common.date.lastWeek": "先週",
55
55
  "common.date.thisMonth": "今月",
56
56
  "common.date.lastMonth": "先月",
57
- "common.date.thisYear": "本年",
58
- "common.date.lastYear": "去年です",
59
- "common.confirm.delete": "削除を確認しますか?",
60
- "common.confirm.action": "操作を確認しますか?",
61
- "common.button.view": "必ず選びます",
57
+ "common.date.thisYear": "今年",
58
+ "common.date.lastYear": "昨年",
59
+ "common.confirm.delete": "削除しますか?",
60
+ "common.confirm.action": "この操作を実行しますか?",
61
+ "common.button.view": "表示",
62
62
  "common.button.detail": "詳細",
63
63
  "common.choose.required": "必須",
64
- "common.verification.chooseRequired": "必須オプション",
65
- "common.button.change": "改訂",
64
+ "common.verification.chooseRequired": "選択必須",
65
+ "common.button.change": "変更",
66
66
  "common.button.copy": "コピー",
67
- }
67
+ }
@@ -1,10 +1,10 @@
1
1
  export default {
2
- "common.button.add": "添加",
2
+ "common.button.add": "新增",
3
3
  "common.button.edit": "編輯",
4
- "common.button.delete": "删除",
4
+ "common.button.delete": "刪除",
5
5
  "common.button.export": "匯出",
6
- "common.button.import": "導入",
7
- "common.button.search": "蒐索",
6
+ "common.button.import": "匯入",
7
+ "common.button.search": "搜尋",
8
8
  "common.button.reset": "重設",
9
9
  "common.button.more": "更多",
10
10
  "common.switch.open": "開啟",
@@ -13,7 +13,7 @@ export default {
13
13
  "common.table.operation": "操作",
14
14
  "common.button.cancel": "取消",
15
15
  "common.button.ok": "確定",
16
- "common.button.save": "保存",
16
+ "common.button.save": "儲存",
17
17
  "common.button.confirm": "確認",
18
18
  "common.button.submit": "提交",
19
19
  "common.button.whole": "全部",
@@ -22,7 +22,7 @@ export default {
22
22
  "common.action.collapse": "收起",
23
23
  "common.action.expand": "展開",
24
24
  "common.switch.enabled": "啟用",
25
- "common.switch.disabled": "禁用",
25
+ "common.switch.disabled": "停用",
26
26
  "common.switch.display": "顯示",
27
27
  "common.switch.hide": "隱藏",
28
28
  "common.form.required": "必填",
@@ -30,13 +30,13 @@ export default {
30
30
  "common.switch.normal": "正常",
31
31
  "common.switch.yes": "是",
32
32
  "common.switch.no": "否",
33
- "common.save.success": "保存成功",
33
+ "common.save.success": "儲存成功",
34
34
  "common.action.success": "操作成功",
35
35
  "common.submit.success": "提交成功",
36
- "common.save.fail": "保存失敗,請重試",
36
+ "common.save.fail": "儲存失敗,請重試",
37
37
  "common.action.fail": "操作失敗,請重試",
38
38
  "common.submit.fail": "提交失敗,請重試",
39
- "common.verification.required": "必填項",
39
+ "common.verification.required": "必填欄位",
40
40
  "common.houseResources.lower": "房源",
41
41
  "common.houseResources.cap": "房源",
42
42
  "common.basic.project": "項目",
@@ -50,18 +50,18 @@ export default {
50
50
  "common.please.choose": "請選擇",
51
51
  "common.date.today": "今天",
52
52
  "common.date.yesterday": "昨天",
53
- "common.date.thisWeek": "本周",
54
- "common.date.lastWeek": "上周",
53
+ "common.date.thisWeek": "本週",
54
+ "common.date.lastWeek": "上週",
55
55
  "common.date.thisMonth": "本月",
56
56
  "common.date.lastMonth": "上月",
57
- "common.date.thisYear": "本年",
58
- "common.date.lastYear": "上年",
59
- "common.confirm.delete": "確認删除嗎?",
57
+ "common.date.thisYear": "今年",
58
+ "common.date.lastYear": "去年",
59
+ "common.confirm.delete": "確認刪除嗎?",
60
60
  "common.confirm.action": "是否確認操作?",
61
61
  "common.button.view": "查看",
62
62
  "common.button.detail": "詳情",
63
63
  "common.choose.required": "必選",
64
- "common.verification.chooseRequired": "必選項",
64
+ "common.verification.chooseRequired": "必選欄位",
65
65
  "common.button.change": "修改",
66
66
  "common.button.copy": "複製",
67
- }
67
+ }
@@ -3,7 +3,7 @@ export default {
3
3
  "common.button.edit": "編輯",
4
4
  "common.button.delete": "刪除",
5
5
  "common.button.export": "匯出",
6
- "common.button.import": "導入",
6
+ "common.button.import": "匯入",
7
7
  "common.button.search": "搜尋",
8
8
  "common.button.reset": "重設",
9
9
  "common.button.more": "更多",
@@ -22,7 +22,7 @@ export default {
22
22
  "common.action.collapse": "收起",
23
23
  "common.action.expand": "展開",
24
24
  "common.switch.enabled": "啟用",
25
- "common.switch.disabled": "禁用",
25
+ "common.switch.disabled": "停用",
26
26
  "common.switch.display": "顯示",
27
27
  "common.switch.hide": "隱藏",
28
28
  "common.form.required": "必填",
@@ -36,7 +36,7 @@ export default {
36
36
  "common.save.fail": "儲存失敗,請重試",
37
37
  "common.action.fail": "操作失敗,請重試",
38
38
  "common.submit.fail": "送出失敗,請重試",
39
- "common.verification.required": "必填項",
39
+ "common.verification.required": "必填欄位",
40
40
  "common.houseResources.lower": "房源",
41
41
  "common.houseResources.cap": "房源",
42
42
  "common.basic.project": "案場",
@@ -50,18 +50,18 @@ export default {
50
50
  "common.please.choose": "請選擇",
51
51
  "common.date.today": "今天",
52
52
  "common.date.yesterday": "昨天",
53
- "common.date.thisWeek": "本周",
54
- "common.date.lastWeek": "上周",
53
+ "common.date.thisWeek": "本週",
54
+ "common.date.lastWeek": "上週",
55
55
  "common.date.thisMonth": "本月",
56
56
  "common.date.lastMonth": "上月",
57
- "common.date.thisYear": "本年",
58
- "common.date.lastYear": "上年",
57
+ "common.date.thisYear": "今年",
58
+ "common.date.lastYear": "去年",
59
59
  "common.confirm.delete": "確認刪除嗎?",
60
60
  "common.confirm.action": "是否確認操作?",
61
- "common.button.view": "查看",
62
- "common.button.detail": "詳情",
61
+ "common.button.view": "檢視",
62
+ "common.button.detail": "詳細資料",
63
63
  "common.choose.required": "必選",
64
- "common.verification.chooseRequired": "必選項",
64
+ "common.verification.chooseRequired": "必選欄位",
65
65
  "common.button.change": "修改",
66
66
  "common.button.copy": "複製",
67
- }
67
+ }
@@ -1,12 +1,12 @@
1
- import antdEnUS from 'ant-design-vue/es/locale-provider/en_US'
2
- import momentEU from 'moment/locale/eu'
3
-
4
- const components = {
5
- antLocale: antdEnUS,
6
- momentName: 'eu',
7
- momentLocale: momentEU
8
- }
9
-
10
- export default {
11
- ...components,
12
- }
1
+ import antdEnUS from 'ant-design-vue/es/locale-provider/en_US'
2
+ import momentEN from 'moment/locale/en';
3
+
4
+ const components = {
5
+ antLocale: antdEnUS,
6
+ momentName: 'en',
7
+ momentLocale: momentEN
8
+ }
9
+
10
+ export default {
11
+ ...components,
12
+ }