@ebuilding/biz-comm 2.0.0

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.
Files changed (146) hide show
  1. package/LICENSE +0 -0
  2. package/README.md +0 -0
  3. package/components/filter/index.d.ts +1 -0
  4. package/components/filter/src/compare-filter/index.d.ts +44 -0
  5. package/components/filter/src/default/index.d.ts +41 -0
  6. package/components/filter/src/index.module.d.ts +8 -0
  7. package/components/filter/src/public_api.d.ts +3 -0
  8. package/components/lookup/index.d.ts +1 -0
  9. package/components/lookup/src/default/index.d.ts +28 -0
  10. package/components/lookup/src/index.module.d.ts +8 -0
  11. package/components/lookup/src/public_api.d.ts +2 -0
  12. package/fesm2022/components.filter.mjs +411 -0
  13. package/fesm2022/components.filter.mjs.map +1 -0
  14. package/fesm2022/components.lookup.mjs +161 -0
  15. package/fesm2022/components.lookup.mjs.map +1 -0
  16. package/fesm2022/ebuilding-biz-comm.mjs +7 -0
  17. package/fesm2022/ebuilding-biz-comm.mjs.map +1 -0
  18. package/fesm2022/other.card.mjs +419 -0
  19. package/fesm2022/other.card.mjs.map +1 -0
  20. package/fesm2022/other.control.mjs +176 -0
  21. package/fesm2022/other.control.mjs.map +1 -0
  22. package/fesm2022/other.dict.mjs +1181 -0
  23. package/fesm2022/other.dict.mjs.map +1 -0
  24. package/fesm2022/other.formula.mjs +558 -0
  25. package/fesm2022/other.formula.mjs.map +1 -0
  26. package/fesm2022/other.rule.mjs +735 -0
  27. package/fesm2022/other.rule.mjs.map +1 -0
  28. package/fesm2022/other.source.args.mjs +290 -0
  29. package/fesm2022/other.source.args.mjs.map +1 -0
  30. package/fesm2022/other.source.field-map.mjs +245 -0
  31. package/fesm2022/other.source.field-map.mjs.map +1 -0
  32. package/fesm2022/other.source.filter.mjs +295 -0
  33. package/fesm2022/other.source.filter.mjs.map +1 -0
  34. package/fesm2022/other.source.group.mjs +219 -0
  35. package/fesm2022/other.source.group.mjs.map +1 -0
  36. package/fesm2022/other.source.mjs +1485 -0
  37. package/fesm2022/other.source.mjs.map +1 -0
  38. package/fesm2022/other.source.order.mjs +243 -0
  39. package/fesm2022/other.source.order.mjs.map +1 -0
  40. package/fesm2022/other.source.table.mjs +326 -0
  41. package/fesm2022/other.source.table.mjs.map +1 -0
  42. package/fesm2022/other.tree.mjs +441 -0
  43. package/fesm2022/other.tree.mjs.map +1 -0
  44. package/fesm2022/type.formula.mjs +133 -0
  45. package/fesm2022/type.formula.mjs.map +1 -0
  46. package/fesm2022/type.lookup.mjs +256 -0
  47. package/fesm2022/type.lookup.mjs.map +1 -0
  48. package/fesm2022/type.mjs +674 -0
  49. package/fesm2022/type.mjs.map +1 -0
  50. package/fesm2022/type.tree.mjs +225 -0
  51. package/fesm2022/type.tree.mjs.map +1 -0
  52. package/index.d.ts +2 -0
  53. package/other/card/index.d.ts +1 -0
  54. package/other/card/src/card-user/index.d.ts +31 -0
  55. package/other/card/src/card.service.d.ts +28 -0
  56. package/other/card/src/components/emp/index.d.ts +13 -0
  57. package/other/card/src/default/index.d.ts +48 -0
  58. package/other/card/src/index.module.d.ts +9 -0
  59. package/other/card/src/public_api.d.ts +3 -0
  60. package/other/control/index.d.ts +1 -0
  61. package/other/control/src/dict/index.d.ts +26 -0
  62. package/other/control/src/index.module.d.ts +7 -0
  63. package/other/control/src/public_api.d.ts +2 -0
  64. package/other/dict/index.d.ts +1 -0
  65. package/other/dict/src/field/index.d.ts +45 -0
  66. package/other/dict/src/field-info/index.d.ts +38 -0
  67. package/other/dict/src/field-read/index.d.ts +26 -0
  68. package/other/dict/src/index.module.d.ts +9 -0
  69. package/other/dict/src/public_api.d.ts +4 -0
  70. package/other/formula/index.d.ts +1 -0
  71. package/other/formula/src/default/index.d.ts +33 -0
  72. package/other/formula/src/form-item/index.d.ts +32 -0
  73. package/other/formula/src/form-setting/index.d.ts +32 -0
  74. package/other/formula/src/formula.service.d.ts +20 -0
  75. package/other/formula/src/index.module.d.ts +10 -0
  76. package/other/formula/src/public_api.d.ts +5 -0
  77. package/other/formula/src/rule-event/index.d.ts +23 -0
  78. package/other/rule/index.d.ts +1 -0
  79. package/other/rule/src/index.module.d.ts +16 -0
  80. package/other/rule/src/main/index.component.d.ts +34 -0
  81. package/other/rule/src/public_api.d.ts +2 -0
  82. package/other/rule/src/rule-change/index.component.d.ts +9 -0
  83. package/other/rule/src/rule-change-boolean/index.component.d.ts +13 -0
  84. package/other/rule/src/rule-change-date/index.component.d.ts +13 -0
  85. package/other/rule/src/rule-change-item/index.component.d.ts +13 -0
  86. package/other/rule/src/rule-change-number/index.component.d.ts +13 -0
  87. package/other/rule/src/rule-change-ref/index.component.d.ts +19 -0
  88. package/other/rule/src/rule-change-text/index.component.d.ts +13 -0
  89. package/other/rule/src/rule-change-upload/index.component.d.ts +11 -0
  90. package/other/rule/src/rule-fixed/index.component.d.ts +13 -0
  91. package/other/rule/src/service/config.service.d.ts +43 -0
  92. package/other/rule/src/service/rule.service.d.ts +11 -0
  93. package/other/source/args/index.d.ts +1 -0
  94. package/other/source/args/src/basic.d.ts +49 -0
  95. package/other/source/args/src/default/index.d.ts +24 -0
  96. package/other/source/args/src/index.module.d.ts +7 -0
  97. package/other/source/args/src/public_api.d.ts +2 -0
  98. package/other/source/field-map/index.d.ts +1 -0
  99. package/other/source/field-map/src/basic.d.ts +39 -0
  100. package/other/source/field-map/src/default/index.d.ts +26 -0
  101. package/other/source/field-map/src/index.module.d.ts +7 -0
  102. package/other/source/field-map/src/public_api.d.ts +2 -0
  103. package/other/source/filter/index.d.ts +1 -0
  104. package/other/source/filter/src/basic.d.ts +45 -0
  105. package/other/source/filter/src/default/index.d.ts +26 -0
  106. package/other/source/filter/src/index.module.d.ts +8 -0
  107. package/other/source/filter/src/public_api.d.ts +3 -0
  108. package/other/source/filter/src/second/index.d.ts +30 -0
  109. package/other/source/group/index.d.ts +1 -0
  110. package/other/source/group/src/basic.d.ts +32 -0
  111. package/other/source/group/src/default/index.d.ts +26 -0
  112. package/other/source/group/src/index.module.d.ts +7 -0
  113. package/other/source/group/src/public_api.d.ts +2 -0
  114. package/other/source/index.d.ts +6 -0
  115. package/other/source/order/index.d.ts +1 -0
  116. package/other/source/order/src/basic.d.ts +39 -0
  117. package/other/source/order/src/default/index.d.ts +26 -0
  118. package/other/source/order/src/index.module.d.ts +7 -0
  119. package/other/source/order/src/public_api.d.ts +2 -0
  120. package/other/source/table/index.d.ts +1 -0
  121. package/other/source/table/src/basic.d.ts +62 -0
  122. package/other/source/table/src/default/index.d.ts +26 -0
  123. package/other/source/table/src/index.module.d.ts +7 -0
  124. package/other/source/table/src/public_api.d.ts +2 -0
  125. package/other/tree/index.d.ts +1 -0
  126. package/other/tree/src/components/form/index.d.ts +17 -0
  127. package/other/tree/src/components/tree/index.d.ts +19 -0
  128. package/other/tree/src/default/index.d.ts +18 -0
  129. package/other/tree/src/index.module.d.ts +9 -0
  130. package/other/tree/src/public_api.d.ts +4 -0
  131. package/other/tree/src/treeService.d.ts +59 -0
  132. package/package.json +96 -0
  133. package/type/formula/index.d.ts +1 -0
  134. package/type/formula/src/default/index.d.ts +19 -0
  135. package/type/formula/src/index.module.d.ts +8 -0
  136. package/type/formula/src/public_api.d.ts +2 -0
  137. package/type/index.d.ts +1 -0
  138. package/type/index.module.d.ts +11 -0
  139. package/type/lookup/index.d.ts +1 -0
  140. package/type/lookup/src/default/index.d.ts +31 -0
  141. package/type/lookup/src/index.module.d.ts +8 -0
  142. package/type/lookup/src/public_api.d.ts +2 -0
  143. package/type/tree/index.d.ts +1 -0
  144. package/type/tree/src/default/index.d.ts +31 -0
  145. package/type/tree/src/index.module.d.ts +8 -0
  146. package/type/tree/src/public_api.d.ts +2 -0
@@ -0,0 +1,176 @@
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter, forwardRef, Output, Input, Component, NgModule } from '@angular/core';
3
+ import { CommonModule } from '@angular/common';
4
+ import * as i2 from '@angular/forms';
5
+ import { FormsModule, ReactiveFormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
6
+ import { NzSpinModule } from 'ng-zorro-antd/spin';
7
+ import * as i3 from 'ng-zorro-antd/input';
8
+ import { NzInputModule } from 'ng-zorro-antd/input';
9
+ import { NzButtonModule } from 'ng-zorro-antd/button';
10
+ import { NzPaginationModule } from 'ng-zorro-antd/pagination';
11
+ import { GramDeonQuickModule } from '@ebuilding/abc/quick';
12
+ import { GramDeonButtonModule } from '@ebuilding/abc/button';
13
+ import { GramDeonNZTableModule } from '@ebuilding/abc/nz-table';
14
+ import { GramDeonNZTableTreeModule } from '@ebuilding/abc/nz-table-tree';
15
+ import { GramDeonCardModule } from '@ebuilding/abc/card';
16
+ import { PageDialogDefaultComponent } from '@ebuilding/dialog/default';
17
+ import * as i1 from '@ebuilding/base/shared.srv/base-dialog.service';
18
+ import * as i4 from 'ng-zorro-antd/core/transition-patch';
19
+
20
+ class ControlDictomponent {
21
+ dialogSrv;
22
+ _modelValue = null;
23
+ //"single" || "multiple"
24
+ _selectType = null;
25
+ valueName = "";
26
+ get modelValue() {
27
+ return this._modelValue;
28
+ }
29
+ set modelValue(value) {
30
+ this._modelValue = value;
31
+ this.propagateChange(this._modelValue);
32
+ }
33
+ placeHolder = null;
34
+ selectType = null;
35
+ modelChange = new EventEmitter();
36
+ constructor(dialogSrv) {
37
+ this.dialogSrv = dialogSrv;
38
+ }
39
+ ngOnInit() { }
40
+ writeValue(value) {
41
+ if (value !== undefined) {
42
+ this._modelValue = value;
43
+ this.valueName = value?.name;
44
+ }
45
+ }
46
+ propagateChange = (_) => { };
47
+ propagateTouched = (_) => { };
48
+ registerOnChange(fn) {
49
+ this.propagateChange = fn;
50
+ }
51
+ registerOnTouched(fn) {
52
+ this.propagateTouched = fn;
53
+ }
54
+ touched($event) {
55
+ this.propagateTouched($event);
56
+ }
57
+ openSelected() {
58
+ let config = {
59
+ selectData: [],
60
+ pageType: "dict",
61
+ selectType: this.selectType == null ? "single" : this.selectType,
62
+ };
63
+ if (this.selectType == "multiple") {
64
+ if (this.modelValue && Array.isArray(this.modelValue)) {
65
+ config.selectData = this.modelValue.map((item) => {
66
+ return {
67
+ id: item.id,
68
+ name: item.name
69
+ };
70
+ });
71
+ }
72
+ }
73
+ else {
74
+ if (this.modelValue) {
75
+ config.selectData = [this.modelValue];
76
+ }
77
+ }
78
+ this.dialogSrv.CreateModelDialog({
79
+ nzTitle: '选择业务主表',
80
+ size: 'large',
81
+ nzContent: PageDialogDefaultComponent,
82
+ }, {
83
+ config: config
84
+ }, (type, instance, modal) => {
85
+ modal.destroy();
86
+ let res = instance.getPageSelectData();
87
+ if (res && Array.isArray(res) && res.length > 0) {
88
+ if (this.selectType == "multiple") {
89
+ let arr = res.map((item) => {
90
+ return {
91
+ id: item.id, name: item.name,
92
+ code: item?.rowData?.code
93
+ };
94
+ });
95
+ this.valueName = arr.map((item) => {
96
+ return item.name;
97
+ }).join("、");
98
+ this.modelValue = arr;
99
+ }
100
+ else {
101
+ this.valueName = res[0].name;
102
+ let obj = {
103
+ id: res[0].id,
104
+ name: res[0].name,
105
+ code: res[0]?.rowData?.code
106
+ };
107
+ this.modelValue = obj;
108
+ }
109
+ }
110
+ else {
111
+ this.valueName = null;
112
+ this.modelValue = null;
113
+ }
114
+ this.modelChange.emit(this.modelValue);
115
+ });
116
+ }
117
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ControlDictomponent, deps: [{ token: i1.GramBaseDialogService }], target: i0.ɵɵFactoryTarget.Component });
118
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: ControlDictomponent, isStandalone: true, selector: "control-dict", inputs: { placeHolder: "placeHolder", selectType: "selectType" }, outputs: { modelChange: "modelChange" }, providers: [
119
+ {
120
+ provide: NG_VALUE_ACCESSOR,
121
+ useExisting: forwardRef(() => ControlDictomponent),
122
+ multi: true
123
+ }
124
+ ], ngImport: i0, template: "<nz-input-group [nzAddOnAfter]=\"addOnAfterTemplate\">\r\n <input type=\"text\" nz-input [(ngModel)]=\"valueName\" [placeholder]=\"placeHolder\" />\r\n</nz-input-group>\r\n<ng-template #addOnAfterTemplate>\r\n <label (click)=\"openSelected()\">\u9009\u62E9</label>\r\n</ng-template>", styles: [":host ::ng-deep nz-input-group{width:100%;font-size:12px}:host ::ng-deep nz-input-group .ant-input-group-addon{font-size:12px;cursor:pointer}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: NzSpinModule }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i3.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i3.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "directive", type: i4.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "ngmodule", type: NzPaginationModule }, { kind: "ngmodule", type: GramDeonQuickModule }, { kind: "ngmodule", type: GramDeonButtonModule }, { kind: "ngmodule", type: GramDeonNZTableModule }, { kind: "ngmodule", type: GramDeonNZTableTreeModule }, { kind: "ngmodule", type: GramDeonCardModule }] });
125
+ }
126
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ControlDictomponent, decorators: [{
127
+ type: Component,
128
+ args: [{ selector: 'control-dict', standalone: true, providers: [
129
+ {
130
+ provide: NG_VALUE_ACCESSOR,
131
+ useExisting: forwardRef(() => ControlDictomponent),
132
+ multi: true
133
+ }
134
+ ], imports: [
135
+ CommonModule,
136
+ FormsModule,
137
+ ReactiveFormsModule,
138
+ NzSpinModule,
139
+ NzInputModule,
140
+ NzButtonModule,
141
+ NzPaginationModule,
142
+ GramDeonQuickModule,
143
+ GramDeonButtonModule,
144
+ GramDeonNZTableModule,
145
+ GramDeonNZTableTreeModule,
146
+ GramDeonCardModule,
147
+ ControlDictomponent
148
+ ], template: "<nz-input-group [nzAddOnAfter]=\"addOnAfterTemplate\">\r\n <input type=\"text\" nz-input [(ngModel)]=\"valueName\" [placeholder]=\"placeHolder\" />\r\n</nz-input-group>\r\n<ng-template #addOnAfterTemplate>\r\n <label (click)=\"openSelected()\">\u9009\u62E9</label>\r\n</ng-template>", styles: [":host ::ng-deep nz-input-group{width:100%;font-size:12px}:host ::ng-deep nz-input-group .ant-input-group-addon{font-size:12px;cursor:pointer}\n"] }]
149
+ }], ctorParameters: () => [{ type: i1.GramBaseDialogService }], propDecorators: { placeHolder: [{
150
+ type: Input
151
+ }], selectType: [{
152
+ type: Input
153
+ }], modelChange: [{
154
+ type: Output
155
+ }] } });
156
+
157
+ const components = [ControlDictomponent];
158
+ class ControlModule {
159
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ControlModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
160
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: ControlModule, imports: [ControlDictomponent], exports: [ControlDictomponent] });
161
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ControlModule, imports: [components] });
162
+ }
163
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ControlModule, decorators: [{
164
+ type: NgModule,
165
+ args: [{
166
+ imports: [...components],
167
+ exports: [...components],
168
+ }]
169
+ }] });
170
+
171
+ /**
172
+ * Generated bundle index. Do not edit.
173
+ */
174
+
175
+ export { ControlDictomponent, ControlModule };
176
+ //# sourceMappingURL=other.control.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"other.control.mjs","sources":["../../../../packages/biz-comm/other/control/src/dict/index.ts","../../../../packages/biz-comm/other/control/src/dict/index.html","../../../../packages/biz-comm/other/control/src/index.module.ts","../../../../packages/biz-comm/other/control/other.control.ts"],"sourcesContent":["\r\nimport { Component, OnInit, Input, Output, EventEmitter, forwardRef } from '@angular/core';\r\n\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\r\n\r\nimport { NzSpinModule } from 'ng-zorro-antd/spin';\r\nimport { NzInputModule } from 'ng-zorro-antd/input';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\r\nimport { NzPaginationModule } from 'ng-zorro-antd/pagination';\r\n\r\nimport { GramBaseDialogService } from '@ebuilding/base/shared.srv/base-dialog.service';\r\n\r\nimport { GramDeonQuickModule } from '@ebuilding/abc/quick';\r\nimport { GramDeonButtonModule } from '@ebuilding/abc/button';\r\nimport { GramDeonNZTableModule } from '@ebuilding/abc/nz-table';\r\nimport { GramDeonNZTableTreeModule } from '@ebuilding/abc/nz-table-tree';\r\nimport { GramDeonCardModule } from '@ebuilding/abc/card';\r\n\r\nimport { PageDialogDefaultComponent } from '@ebuilding/dialog/default';\r\n\r\n@Component({\r\n selector: 'control-dict',\r\n templateUrl: './index.html',\r\n styleUrls: ['./index.less'],\r\n standalone: true,\r\n providers: [\r\n {\r\n provide: NG_VALUE_ACCESSOR,\r\n useExisting: forwardRef(() => ControlDictomponent),\r\n multi: true\r\n }\r\n ],\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n ReactiveFormsModule,\r\n NzSpinModule,\r\n NzInputModule,\r\n NzButtonModule,\r\n NzPaginationModule,\r\n GramDeonQuickModule,\r\n GramDeonButtonModule,\r\n GramDeonNZTableModule,\r\n GramDeonNZTableTreeModule,\r\n GramDeonCardModule,\r\n ControlDictomponent\r\n ]\r\n})\r\nexport class ControlDictomponent implements OnInit, ControlValueAccessor {\r\n\r\n _modelValue: any = null;\r\n\r\n //\"single\" || \"multiple\"\r\n _selectType: any = null;\r\n\r\n valueName: any = \"\";\r\n\r\n get modelValue(): any {\r\n return this._modelValue;\r\n }\r\n\r\n set modelValue(value: any) {\r\n this._modelValue = value;\r\n this.propagateChange(this._modelValue);\r\n }\r\n\r\n @Input() placeHolder: any = null;\r\n\r\n @Input() selectType: any = null;\r\n\r\n @Output() modelChange: EventEmitter<any> = new EventEmitter();\r\n\r\n constructor(public dialogSrv: GramBaseDialogService) { }\r\n\r\n ngOnInit() { }\r\n\r\n\r\n writeValue(value: any) {\r\n if (value !== undefined) {\r\n this._modelValue = value;\r\n this.valueName = value?.name;\r\n }\r\n }\r\n\r\n propagateChange = (_: any) => { };\r\n\r\n propagateTouched = (_: any) => { };\r\n\r\n registerOnChange(fn: any) {\r\n this.propagateChange = fn;\r\n }\r\n\r\n registerOnTouched(fn: any) {\r\n this.propagateTouched = fn;\r\n }\r\n\r\n touched($event: any) {\r\n this.propagateTouched($event);\r\n }\r\n\r\n\r\n openSelected() {\r\n let config: any = {\r\n selectData: [],\r\n pageType: \"dict\",\r\n selectType: this.selectType == null ? \"single\" : this.selectType,\r\n };\r\n\r\n if (this.selectType == \"multiple\") {\r\n if (this.modelValue!! && Array.isArray(this.modelValue)) {\r\n config.selectData = this.modelValue.map((item: any) => {\r\n return {\r\n id: item.id,\r\n name: item.name\r\n }\r\n })\r\n }\r\n } else {\r\n if (this.modelValue!!) {\r\n config.selectData = [this.modelValue];\r\n }\r\n }\r\n\r\n this.dialogSrv.CreateModelDialog(\r\n {\r\n nzTitle: '选择业务主表',\r\n size: 'large',\r\n nzContent: PageDialogDefaultComponent,\r\n },\r\n {\r\n config: config\r\n },\r\n (type: any, instance: any, modal: any) => {\r\n modal.destroy();\r\n let res: any[] = instance.getPageSelectData();\r\n if (res!! && Array.isArray(res) && res.length > 0) {\r\n if (this.selectType == \"multiple\") {\r\n let arr: any[] = res.map((item: any) => {\r\n return {\r\n id: item.id, name: item.name,\r\n code: item?.rowData?.code\r\n }\r\n });\r\n this.valueName = arr.map((item: any) => {\r\n return item.name\r\n }).join(\"、\");\r\n this.modelValue = arr;\r\n } else {\r\n this.valueName = res[0].name;\r\n let obj: any = {\r\n id: res[0].id,\r\n name: res[0].name,\r\n code: res[0]?.rowData?.code\r\n };\r\n this.modelValue = obj;\r\n }\r\n }\r\n else {\r\n this.valueName = null;\r\n this.modelValue = null;\r\n }\r\n this.modelChange.emit(this.modelValue);\r\n }\r\n );\r\n }\r\n\r\n}\r\n","<nz-input-group [nzAddOnAfter]=\"addOnAfterTemplate\">\r\n <input type=\"text\" nz-input [(ngModel)]=\"valueName\" [placeholder]=\"placeHolder\" />\r\n</nz-input-group>\r\n<ng-template #addOnAfterTemplate>\r\n <label (click)=\"openSelected()\">选择</label>\r\n</ng-template>","import { NgModule } from '@angular/core';\r\n\r\nimport { ControlDictomponent } from './dict';\r\n\r\nconst components: any[] = [ControlDictomponent];\r\n\r\n@NgModule({\r\n imports: [...components],\r\n exports: [...components],\r\n})\r\nexport class ControlModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;MAkDa,mBAAmB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