cloud-web-corejs 1.0.108 → 1.0.110
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 +1 -1
- package/src/components/VabUpload/mixins.js +1 -1
- package/src/components/VabUpload/propertiesDialog.vue +1 -1
- package/src/components/VabUpload/view.vue +2 -2
- package/src/components/baseAttachment/index.vue +49 -49
- package/src/components/baseAttachment/mixins.js +1 -1
- package/src/components/xform/form-designer/form-widget/dialog/exportDialog.vue +13 -0
- package/src/components/xform/form-designer/form-widget/dialog/fileReferenceDialog.vue +301 -0
- package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/a-text-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +21 -2
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +5 -3
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +104 -45
- package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +18 -17
- package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +1 -1
- package/src/components/xform/form-designer/indexMixin.js +1 -1
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +588 -164
- package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +69 -10
- package/src/components/xform/form-designer/setting-panel/property-editor/a-link-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/a-text-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/colorClass-editor.vue +28 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +32 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +17 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail-pane/detail-pane-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/clickBindEvent-editor.vue +35 -20
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +4 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/formula-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/formulaEnabled-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/labelColor-editor.vue +20 -11
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconClass-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/labelTooltip-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/required-editor.vue +23 -23
- package/src/components/xform/form-designer/setting-panel/property-editor/requiredHint-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +161 -74
- package/src/components/xform/form-designer/setting-panel/property-editor/validation-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/validationHint-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +236 -92
- package/src/components/xform/form-designer/setting-panel/property-editor/widgetShowRuleFlag-editor.vue +74 -31
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +10 -9
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +52 -17
- package/src/components/xform/form-render/container-item/data-table-item.vue +1 -1
- package/src/components/xform/form-render/container-item/data-table-mixin.js +1 -1
- package/src/components/xform/form-render/container-item/detail-pane-item.vue +17 -3
- package/src/components/xform/form-render/index.vue +4 -1
- package/src/components/xform/form-render/indexMixin.js +2 -1
- package/src/components/xform/mixins/defaultHandle.js +1 -1
- package/src/components/xform/mixins/scriptHttp.js +1 -1
- package/src/components/xform/utils/util.js +1 -1
- package/src/components/xform/utils/validators.js +1 -5
- package/src/store/config/index.js +1 -1
- package/src/views/bd/setting/bd_company_env/dialog.vue +174 -0
- package/src/views/bd/setting/bd_company_env/edit.vue +163 -0
- package/src/views/bd/setting/bd_company_env/list.vue +175 -0
- package/src/views/bd/setting/config_manage/list.vue +51 -0
- package/src/views/user/wf/wf_manage/list.vue +29 -0
@@ -1,18 +1,33 @@
|
|
1
1
|
<template>
|
2
2
|
<div>
|
3
|
-
<el-form
|
4
|
-
|
3
|
+
<el-form
|
4
|
+
:model="formConfig"
|
5
|
+
size="mini"
|
6
|
+
label-position="left"
|
7
|
+
label-width="120px"
|
8
|
+
class="setting-form"
|
9
|
+
@submit.native.prevent
|
10
|
+
>
|
5
11
|
<el-collapse v-model="formActiveCollapseNames" class="setting-collapse">
|
6
|
-
<el-collapse-item
|
12
|
+
<el-collapse-item
|
13
|
+
name="1"
|
14
|
+
:title="i18nt('designer.setting.basicSetting')"
|
15
|
+
>
|
7
16
|
<el-form-item :label="i18nt('实体表')">
|
8
17
|
<el-input type="text" v-model="formConfig.entity"></el-input>
|
9
18
|
</el-form-item>
|
10
19
|
<el-form-item :label="i18nt('数据保存脚本编码')">
|
11
|
-
<el-input
|
20
|
+
<el-input
|
21
|
+
type="text"
|
22
|
+
v-model="formConfig.saveScriptCode"
|
23
|
+
placeholder="默认saveUpdatge"
|
24
|
+
></el-input>
|
12
25
|
</el-form-item>
|
13
26
|
<el-form-item :label="i18nt('启用流程')">
|
14
|
-
<el-switch
|
15
|
-
|
27
|
+
<el-switch
|
28
|
+
v-model="formConfig.wfEnabled"
|
29
|
+
@change="changeWfEnabled"
|
30
|
+
></el-switch>
|
16
31
|
</el-form-item>
|
17
32
|
<el-form-item :label="i18nt('流程启动时自动保存表单数据')">
|
18
33
|
<el-switch v-model="formConfig.wfStartBindSave"></el-switch>
|
@@ -22,8 +37,17 @@
|
|
22
37
|
<el-switch v-model="formConfig.wfAgreenBindSave"></el-switch>
|
23
38
|
</el-form-item>
|
24
39
|
<el-form-item :label="i18nt('流程通过时自动保存表单数据的节点配置')">
|
25
|
-
<a
|
26
|
-
|
40
|
+
<a
|
41
|
+
href="javascript:void(0);"
|
42
|
+
class="a-link link-oneLind"
|
43
|
+
@click="openWfConfigDataDialog2"
|
44
|
+
>
|
45
|
+
<span>{{
|
46
|
+
formConfig.wfAgreeConfigData &&
|
47
|
+
formConfig.wfAgreeConfigData.length
|
48
|
+
? "已维护"
|
49
|
+
: ""
|
50
|
+
}}</span>
|
27
51
|
<i class="el-icon-edit"></i>
|
28
52
|
</a>
|
29
53
|
</el-form-item>
|
@@ -31,20 +55,38 @@
|
|
31
55
|
<el-switch v-model="formConfig.wfConfigDataEnabled"></el-switch>
|
32
56
|
</el-form-item>
|
33
57
|
<el-form-item :label="i18nt('流程节点可编辑表单配置')">
|
34
|
-
<a
|
35
|
-
|
58
|
+
<a
|
59
|
+
href="javascript:void(0);"
|
60
|
+
class="a-link link-oneLind"
|
61
|
+
@click="openWfConfigDataDialog"
|
62
|
+
>
|
63
|
+
<span>{{
|
64
|
+
formConfig.wfConfigData && formConfig.wfConfigData.length
|
65
|
+
? "已维护"
|
66
|
+
: ""
|
67
|
+
}}</span>
|
36
68
|
<i class="el-icon-edit"></i>
|
37
69
|
</a>
|
38
70
|
</el-form-item>
|
39
71
|
|
40
72
|
<el-form-item :label="i18nt('默认流程单据类型名称')">
|
41
|
-
<el-input
|
73
|
+
<el-input
|
74
|
+
type="text"
|
75
|
+
v-model="designer.vueInstance.reportTemplate.objTypeName"
|
76
|
+
></el-input>
|
42
77
|
</el-form-item>
|
43
78
|
<el-form-item :label="i18nt('引用流程的表单编码')">
|
44
|
-
<el-input
|
79
|
+
<el-input
|
80
|
+
type="text"
|
81
|
+
v-model="designer.vueInstance.reportTemplate.fromWfFormCode"
|
82
|
+
></el-input>
|
45
83
|
</el-form-item>
|
46
84
|
<el-form-item :label="i18nt('流程自定义配置')">
|
47
|
-
<a
|
85
|
+
<a
|
86
|
+
href="javascript:void(0);"
|
87
|
+
class="a-link link-oneLind"
|
88
|
+
@click="editFormEventHandler('wfConfig')"
|
89
|
+
>
|
48
90
|
<span>{{ formConfig.wfConfig }}</span>
|
49
91
|
<i class="el-icon-edit"></i>
|
50
92
|
</a>
|
@@ -59,29 +101,51 @@
|
|
59
101
|
<el-switch v-model="formConfig.isLoadEntity"></el-switch>
|
60
102
|
</el-form-item>
|
61
103
|
<el-form-item :label="i18nt('详情数据脚本编码')">
|
62
|
-
<el-input
|
104
|
+
<el-input
|
105
|
+
type="text"
|
106
|
+
v-model="formConfig.formScriptCode"
|
107
|
+
placeholder="默认getOne"
|
108
|
+
></el-input>
|
63
109
|
</el-form-item>
|
64
110
|
<el-form-item :label="i18nt('详情数据脚本参数')">
|
65
|
-
<a
|
111
|
+
<a
|
112
|
+
href="javascript:void(0);"
|
113
|
+
class="a-link link-oneLind"
|
114
|
+
@click="editFormScriptParam"
|
115
|
+
>
|
66
116
|
<span>{{ formConfig.formScriptParam }}</span>
|
67
117
|
<i class="el-icon-edit"></i>
|
68
118
|
</a>
|
69
119
|
</el-form-item>
|
70
120
|
<el-form-item :label="i18nt('详情数据脚本回调')">
|
71
|
-
<a
|
121
|
+
<a
|
122
|
+
href="javascript:void(0);"
|
123
|
+
class="a-link link-oneLind"
|
124
|
+
@click="editFormScriptSuccess"
|
125
|
+
>
|
72
126
|
<span>{{ formConfig.formScriptSuccess }}</span>
|
73
127
|
<i class="el-icon-edit"></i>
|
74
128
|
</a>
|
75
129
|
</el-form-item>
|
76
130
|
<el-form-item :label="i18nt('designer.setting.globalFunctions')">
|
77
|
-
<a
|
131
|
+
<a
|
132
|
+
href="javascript:void(0);"
|
133
|
+
class="a-link link-oneLind"
|
134
|
+
@click="editGlobalFunctions"
|
135
|
+
>
|
78
136
|
<span>{{ formConfig.functions }}</span>
|
79
137
|
<i class="el-icon-edit"></i>
|
80
138
|
</a>
|
81
139
|
</el-form-item>
|
82
140
|
<el-form-item :label="i18nt('designer.setting.formCss')">
|
83
|
-
<el-button
|
84
|
-
|
141
|
+
<el-button
|
142
|
+
type="info"
|
143
|
+
icon="el-icon-edit"
|
144
|
+
plain
|
145
|
+
round
|
146
|
+
@click="editFormCss"
|
147
|
+
>
|
148
|
+
{{ i18nt("designer.setting.addCss") }}
|
85
149
|
</el-button>
|
86
150
|
</el-form-item>
|
87
151
|
</el-collapse-item>
|
@@ -90,7 +154,10 @@
|
|
90
154
|
<el-switch v-model="formConfig.multiTabEnabled"></el-switch>
|
91
155
|
</el-form-item>
|
92
156
|
<el-form-item :label="i18nt('标签名称字段')">
|
93
|
-
<el-input
|
157
|
+
<el-input
|
158
|
+
type="text"
|
159
|
+
v-model="formConfig.multiTabLabelField"
|
160
|
+
></el-input>
|
94
161
|
</el-form-item>
|
95
162
|
</el-collapse-item>
|
96
163
|
<el-collapse-item name="3" title="详情表单信息">
|
@@ -100,13 +167,17 @@
|
|
100
167
|
max="200"
|
101
168
|
v-model="formConfig.editFormCode"
|
102
169
|
@clear="
|
103
|
-
formConfig.editFormName=null;
|
170
|
+
formConfig.editFormName = null;
|
104
171
|
$forceUpdate();
|
105
172
|
"
|
106
173
|
v-el-readonly
|
107
174
|
clearable
|
108
175
|
>
|
109
|
-
<i
|
176
|
+
<i
|
177
|
+
slot="suffix"
|
178
|
+
class="el-input__icon el-icon-search"
|
179
|
+
@click="showFormTemplateDialog = true"
|
180
|
+
></i>
|
110
181
|
</el-input>
|
111
182
|
</el-form-item>
|
112
183
|
<el-form-item :label="i18nt('表单名称')">
|
@@ -134,7 +205,11 @@
|
|
134
205
|
</el-form-item>
|
135
206
|
</el-collapse-item>
|
136
207
|
|
137
|
-
<el-collapse-item
|
208
|
+
<el-collapse-item
|
209
|
+
v-if="showEventCollapse()"
|
210
|
+
name="2"
|
211
|
+
:title="i18nt('designer.setting.eventSetting')"
|
212
|
+
>
|
138
213
|
<!-- <el-form-item label="onBeforeCreated" label-width="150px">
|
139
214
|
<a href="javascript:void(0);" class="a-link link-oneLind"
|
140
215
|
@click="editFormEventHandler('onBeforeCreated', ['dataId','done'])">
|
@@ -143,20 +218,32 @@
|
|
143
218
|
</a>
|
144
219
|
</el-form-item>-->
|
145
220
|
<el-form-item label="onFormCreated" label-width="150px">
|
146
|
-
<a
|
221
|
+
<a
|
222
|
+
href="javascript:void(0);"
|
223
|
+
class="a-link link-oneLind"
|
224
|
+
@click="editFormEventHandler('onFormCreated')"
|
225
|
+
>
|
147
226
|
<span>{{ formConfig.onFormCreated }}</span>
|
148
227
|
<i class="el-icon-edit"></i>
|
149
228
|
</a>
|
150
229
|
</el-form-item>
|
151
230
|
<el-form-item label="onFormMounted" label-width="150px">
|
152
|
-
<a
|
231
|
+
<a
|
232
|
+
href="javascript:void(0);"
|
233
|
+
class="a-link link-oneLind"
|
234
|
+
@click="editFormEventHandler('onFormMounted')"
|
235
|
+
>
|
153
236
|
<span>{{ formConfig.onFormMounted }}</span>
|
154
237
|
<i class="el-icon-edit"></i>
|
155
238
|
</a>
|
156
239
|
</el-form-item>
|
157
240
|
<!-- -->
|
158
241
|
<el-form-item label="onFormDataChange" label-width="150px">
|
159
|
-
<a
|
242
|
+
<a
|
243
|
+
href="javascript:void(0);"
|
244
|
+
class="a-link link-oneLind"
|
245
|
+
@click="editFormEventHandler('onFormDataChange')"
|
246
|
+
>
|
160
247
|
<span>{{ formConfig.onFormDataChange }}</span>
|
161
248
|
<i class="el-icon-edit"></i>
|
162
249
|
</a>
|
@@ -187,16 +274,34 @@
|
|
187
274
|
top="5vh"
|
188
275
|
>
|
189
276
|
<div class="cont">
|
190
|
-
<el-alert
|
191
|
-
|
277
|
+
<el-alert
|
278
|
+
type="info"
|
279
|
+
:closable="false"
|
280
|
+
:title="'form.' + eventParamsMap[curEventName]"
|
281
|
+
></el-alert>
|
282
|
+
<code-editor
|
283
|
+
:mode="'javascript'"
|
284
|
+
:readonly="false"
|
285
|
+
v-model="formEventHandlerCode"
|
286
|
+
ref="ecEditor"
|
287
|
+
></code-editor>
|
192
288
|
<el-alert type="info" :closable="false" title="}"></el-alert>
|
193
289
|
</div>
|
194
290
|
<div slot="footer" class="dialog-footer">
|
195
|
-
<el-button
|
196
|
-
|
291
|
+
<el-button
|
292
|
+
@click="showFormEventDialogFlag = false"
|
293
|
+
class="button-sty"
|
294
|
+
icon="el-icon-close"
|
295
|
+
>
|
296
|
+
{{ i18nt("designer.hint.cancel") }}
|
197
297
|
</el-button>
|
198
|
-
<el-button
|
199
|
-
|
298
|
+
<el-button
|
299
|
+
type="primary"
|
300
|
+
@click="saveFormEventHandler"
|
301
|
+
class="button-sty"
|
302
|
+
icon="el-icon-check"
|
303
|
+
>
|
304
|
+
{{ i18nt("designer.hint.confirm") }}
|
200
305
|
</el-button>
|
201
306
|
</div>
|
202
307
|
</el-dialog>
|
@@ -215,14 +320,27 @@
|
|
215
320
|
:modal-append-to-body="true"
|
216
321
|
>
|
217
322
|
<div class="cont">
|
218
|
-
<code-editor
|
323
|
+
<code-editor
|
324
|
+
:mode="'css'"
|
325
|
+
:readonly="false"
|
326
|
+
v-model="formCssCode"
|
327
|
+
></code-editor>
|
219
328
|
</div>
|
220
329
|
<div slot="footer" class="dialog-footer">
|
221
|
-
<el-button
|
222
|
-
|
330
|
+
<el-button
|
331
|
+
@click="showEditFormCssDialogFlag = false"
|
332
|
+
class="button-sty"
|
333
|
+
icon="el-icon-close"
|
334
|
+
>
|
335
|
+
{{ i18nt("designer.hint.cancel") }}
|
223
336
|
</el-button>
|
224
|
-
<el-button
|
225
|
-
|
337
|
+
<el-button
|
338
|
+
type="primary"
|
339
|
+
@click="saveFormCss"
|
340
|
+
class="button-sty"
|
341
|
+
icon="el-icon-check"
|
342
|
+
>
|
343
|
+
{{ i18nt("designer.hint.confirm") }}
|
226
344
|
</el-button>
|
227
345
|
</div>
|
228
346
|
</el-dialog>
|
@@ -241,14 +359,28 @@
|
|
241
359
|
:modal-append-to-body="true"
|
242
360
|
>
|
243
361
|
<div class="cont">
|
244
|
-
<code-editor
|
362
|
+
<code-editor
|
363
|
+
:mode="'javascript'"
|
364
|
+
:readonly="false"
|
365
|
+
v-model="functionsCode"
|
366
|
+
ref="gfEditor"
|
367
|
+
></code-editor>
|
245
368
|
</div>
|
246
369
|
<div slot="footer" class="dialog-footer">
|
247
|
-
<el-button
|
248
|
-
|
370
|
+
<el-button
|
371
|
+
@click="showEditFunctionsDialogFlag = false"
|
372
|
+
class="button-sty"
|
373
|
+
icon="el-icon-close"
|
374
|
+
>
|
375
|
+
{{ i18nt("designer.hint.cancel") }}
|
249
376
|
</el-button>
|
250
|
-
<el-button
|
251
|
-
|
377
|
+
<el-button
|
378
|
+
type="primary"
|
379
|
+
@click="saveGlobalFunctions"
|
380
|
+
class="button-sty"
|
381
|
+
icon="el-icon-check"
|
382
|
+
>
|
383
|
+
{{ i18nt("designer.hint.confirm") }}
|
252
384
|
</el-button>
|
253
385
|
</div>
|
254
386
|
</el-dialog>
|
@@ -267,14 +399,28 @@
|
|
267
399
|
:modal-append-to-body="true"
|
268
400
|
>
|
269
401
|
<div class="cont">
|
270
|
-
<code-editor
|
402
|
+
<code-editor
|
403
|
+
:mode="'javascript'"
|
404
|
+
:readonly="false"
|
405
|
+
v-model="formScriptParam"
|
406
|
+
ref="gfEditor"
|
407
|
+
></code-editor>
|
271
408
|
</div>
|
272
409
|
<div slot="footer" class="dialog-footer">
|
273
|
-
<el-button
|
274
|
-
|
410
|
+
<el-button
|
411
|
+
@click="showFormScriptParamDialog = false"
|
412
|
+
class="button-sty"
|
413
|
+
icon="el-icon-close"
|
414
|
+
>
|
415
|
+
{{ i18nt("designer.hint.cancel") }}
|
275
416
|
</el-button>
|
276
|
-
<el-button
|
277
|
-
|
417
|
+
<el-button
|
418
|
+
type="primary"
|
419
|
+
@click="saveFormScriptParam"
|
420
|
+
class="button-sty"
|
421
|
+
icon="el-icon-check"
|
422
|
+
>
|
423
|
+
{{ i18nt("designer.hint.confirm") }}
|
278
424
|
</el-button>
|
279
425
|
</div>
|
280
426
|
</el-dialog>
|
@@ -292,14 +438,28 @@
|
|
292
438
|
:modal-append-to-body="true"
|
293
439
|
>
|
294
440
|
<div class="cont">
|
295
|
-
<code-editor
|
441
|
+
<code-editor
|
442
|
+
:mode="'javascript'"
|
443
|
+
:readonly="false"
|
444
|
+
v-model="formScriptSuccess"
|
445
|
+
ref="gfEditor"
|
446
|
+
></code-editor>
|
296
447
|
</div>
|
297
448
|
<div slot="footer" class="dialog-footer">
|
298
|
-
<el-button
|
299
|
-
|
449
|
+
<el-button
|
450
|
+
@click="showFormScriptSuccessDialog = false"
|
451
|
+
class="button-sty"
|
452
|
+
icon="el-icon-close"
|
453
|
+
>
|
454
|
+
{{ i18nt("designer.hint.cancel") }}
|
300
455
|
</el-button>
|
301
|
-
<el-button
|
302
|
-
|
456
|
+
<el-button
|
457
|
+
type="primary"
|
458
|
+
@click="saveFormScriptSuccess"
|
459
|
+
class="button-sty"
|
460
|
+
icon="el-icon-check"
|
461
|
+
>
|
462
|
+
{{ i18nt("designer.hint.confirm") }}
|
303
463
|
</el-button>
|
304
464
|
</div>
|
305
465
|
</el-dialog>
|
@@ -319,7 +479,7 @@
|
|
319
479
|
v-dialog-drag
|
320
480
|
:fullscreen="true"
|
321
481
|
>
|
322
|
-
<div class="cont" style="padding-bottom: 8px
|
482
|
+
<div class="cont" style="padding-bottom: 8px">
|
323
483
|
<el-table
|
324
484
|
ref="singleTable"
|
325
485
|
width="100%"
|
@@ -328,11 +488,15 @@
|
|
328
488
|
border=""
|
329
489
|
row-key="columnId"
|
330
490
|
stripe=""
|
331
|
-
style="margin-bottom: 0px
|
491
|
+
style="margin-bottom: 0px"
|
332
492
|
>
|
333
|
-
<el-table-column
|
334
|
-
|
335
|
-
|
493
|
+
<el-table-column
|
494
|
+
type="index"
|
495
|
+
width="35"
|
496
|
+
fixed="left"
|
497
|
+
></el-table-column>
|
498
|
+
<!-- <el-table-column :label="i18nt('服务')" width="150">
|
499
|
+
<template slot-scope="{ row }">
|
336
500
|
<el-select v-model="row.serveType" @change="changeServeType(row)">
|
337
501
|
<el-option :value="1" label="正式"></el-option>
|
338
502
|
<el-option :value="2" label="UAT"></el-option>
|
@@ -342,22 +506,57 @@
|
|
342
506
|
</template>
|
343
507
|
</el-table-column>
|
344
508
|
<el-table-column :label="i18nt('自定义服务')" width="150">
|
345
|
-
<template slot-scope="{row}">
|
346
|
-
<el-input
|
509
|
+
<template slot-scope="{ row }">
|
510
|
+
<el-input
|
511
|
+
v-model="row.serveName"
|
512
|
+
clearable
|
513
|
+
:disabled="row.serveType !== 4"
|
514
|
+
></el-input>
|
347
515
|
</template>
|
348
516
|
</el-table-column>
|
349
517
|
<el-table-column :label="i18nt('组织编码')" width="250">
|
350
|
-
<template slot-scope="{row
|
518
|
+
<template slot-scope="{ row, $index }">
|
351
519
|
<el-input v-model="row.companyCodes" clearable></el-input>
|
352
520
|
</template>
|
521
|
+
</el-table-column> -->
|
522
|
+
<el-table-column :label="i18nt('组织编码')" width="250">
|
523
|
+
<template slot-scope="{ row, $index }">
|
524
|
+
<el-input
|
525
|
+
class="search-input"
|
526
|
+
max="200"
|
527
|
+
v-model="row.companyCodes"
|
528
|
+
@clear="clearBdCompanyEnv1(row)"
|
529
|
+
v-el-readonly
|
530
|
+
clearable
|
531
|
+
>
|
532
|
+
<i
|
533
|
+
slot="suffix"
|
534
|
+
class="el-input__icon el-icon-search"
|
535
|
+
@click="openBdCompanyEnvDialog1($index)"
|
536
|
+
></i>
|
537
|
+
</el-input>
|
538
|
+
</template>
|
539
|
+
</el-table-column>
|
540
|
+
<el-table-column :label="i18nt('服务名称')" width="150">
|
541
|
+
<template slot-scope="{ row }">
|
542
|
+
{{ row.serveName }}
|
543
|
+
</template>
|
353
544
|
</el-table-column>
|
354
|
-
<el-table-column :label="i18nt('流程模板编码')" width="150">
|
355
|
-
<template slot-scope="{row}">
|
545
|
+
<!-- <el-table-column :label="i18nt('流程模板编码')" width="150">
|
546
|
+
<template slot-scope="{ row }">
|
356
547
|
<el-input v-model="row.modelKey" clearable></el-input>
|
357
548
|
</template>
|
549
|
+
</el-table-column> -->
|
550
|
+
<el-table-column :label="i18nt('流程模板序号')" width="150">
|
551
|
+
<template slot-scope="{ row }">
|
552
|
+
<base-input-number v-model="row.modelOrders" clearable></base-input-number>
|
553
|
+
</template>
|
358
554
|
</el-table-column>
|
359
|
-
<el-table-column
|
360
|
-
|
555
|
+
<el-table-column
|
556
|
+
:label="i18nt('节点步骤(多个值用“,”隔开)')"
|
557
|
+
width="250"
|
558
|
+
>
|
559
|
+
<template slot-scope="{ row }">
|
361
560
|
<el-input v-model="row.taskSteps" clearable></el-input>
|
362
561
|
</template>
|
363
562
|
</el-table-column>
|
@@ -370,11 +569,21 @@
|
|
370
569
|
</el-select>
|
371
570
|
</template>
|
372
571
|
</el-table-column>-->
|
373
|
-
<el-table-column
|
572
|
+
<el-table-column
|
573
|
+
:label="i18nt('designer.setting.actionColumn')"
|
574
|
+
width="100"
|
575
|
+
align="center"
|
576
|
+
>
|
374
577
|
<template #header>
|
375
|
-
<span>{{ i18nt(
|
376
|
-
<el-button
|
377
|
-
|
578
|
+
<span>{{ i18nt("designer.setting.actionColumn") }}</span>
|
579
|
+
<el-button
|
580
|
+
:title="i18nt('designer.setting.addTableColumn')"
|
581
|
+
size="mini"
|
582
|
+
type=""
|
583
|
+
circle=""
|
584
|
+
icon="el-icon-plus"
|
585
|
+
@click="addItem"
|
586
|
+
></el-button>
|
378
587
|
</template>
|
379
588
|
<template slot-scope="scope">
|
380
589
|
<el-button
|
@@ -383,19 +592,27 @@
|
|
383
592
|
type=""
|
384
593
|
circle=""
|
385
594
|
icon="el-icon-minus"
|
386
|
-
@click="wfConfigData.splice(scope.$index,1)"
|
595
|
+
@click="wfConfigData.splice(scope.$index, 1)"
|
387
596
|
></el-button>
|
388
597
|
</template>
|
389
598
|
</el-table-column>
|
390
|
-
|
391
599
|
</el-table>
|
392
600
|
</div>
|
393
601
|
<div class="dialog-footer" slot="footer">
|
394
|
-
<el-button
|
395
|
-
|
602
|
+
<el-button
|
603
|
+
@click="dialogVisible = false"
|
604
|
+
class="button-sty"
|
605
|
+
icon="el-icon-close"
|
606
|
+
>
|
607
|
+
{{ i18nt("designer.hint.cancel") }}
|
396
608
|
</el-button>
|
397
|
-
<el-button
|
398
|
-
|
609
|
+
<el-button
|
610
|
+
type="primary"
|
611
|
+
@click="confirmWfConfigDataDialog"
|
612
|
+
class="button-sty"
|
613
|
+
icon="el-icon-check"
|
614
|
+
>
|
615
|
+
{{ i18nt("designer.hint.confirm") }}
|
399
616
|
</el-button>
|
400
617
|
</div>
|
401
618
|
</el-dialog>
|
@@ -416,7 +633,7 @@
|
|
416
633
|
v-dialog-drag
|
417
634
|
:fullscreen="true"
|
418
635
|
>
|
419
|
-
<div class="cont" style="padding-bottom: 8px
|
636
|
+
<div class="cont" style="padding-bottom: 8px">
|
420
637
|
<el-table
|
421
638
|
ref="singleTable"
|
422
639
|
width="100%"
|
@@ -425,11 +642,15 @@
|
|
425
642
|
border=""
|
426
643
|
row-key="columnId"
|
427
644
|
stripe=""
|
428
|
-
style="margin-bottom: 0px
|
645
|
+
style="margin-bottom: 0px"
|
429
646
|
>
|
430
|
-
<el-table-column
|
431
|
-
|
432
|
-
|
647
|
+
<el-table-column
|
648
|
+
type="index"
|
649
|
+
width="35"
|
650
|
+
fixed="left"
|
651
|
+
></el-table-column>
|
652
|
+
<!-- <el-table-column :label="i18nt('服务')" width="150">
|
653
|
+
<template slot-scope="{ row }">
|
433
654
|
<el-select v-model="row.serveType" @change="changeServeType(row)">
|
434
655
|
<el-option :value="1" label="正式"></el-option>
|
435
656
|
<el-option :value="2" label="UAT"></el-option>
|
@@ -439,22 +660,57 @@
|
|
439
660
|
</template>
|
440
661
|
</el-table-column>
|
441
662
|
<el-table-column :label="i18nt('自定义服务')" width="150">
|
442
|
-
<template slot-scope="{row}">
|
443
|
-
<el-input
|
663
|
+
<template slot-scope="{ row }">
|
664
|
+
<el-input
|
665
|
+
v-model="row.serveName"
|
666
|
+
clearable
|
667
|
+
:disabled="row.serveType !== 4"
|
668
|
+
></el-input>
|
444
669
|
</template>
|
445
670
|
</el-table-column>
|
446
671
|
<el-table-column :label="i18nt('组织编码')" width="250">
|
447
|
-
<template slot-scope="{row
|
672
|
+
<template slot-scope="{ row, $index }">
|
448
673
|
<el-input v-model="row.companyCodes" clearable></el-input>
|
449
674
|
</template>
|
675
|
+
</el-table-column> -->
|
676
|
+
<el-table-column :label="i18nt('组织编码')" width="250">
|
677
|
+
<template slot-scope="{ row, $index }">
|
678
|
+
<el-input
|
679
|
+
class="search-input"
|
680
|
+
max="200"
|
681
|
+
v-model="row.companyCodes"
|
682
|
+
@clear="clearBdCompanyEnv2(row)"
|
683
|
+
v-el-readonly
|
684
|
+
clearable
|
685
|
+
>
|
686
|
+
<i
|
687
|
+
slot="suffix"
|
688
|
+
class="el-input__icon el-icon-search"
|
689
|
+
@click="openBdCompanyEnvDialog2($index)"
|
690
|
+
></i>
|
691
|
+
</el-input>
|
692
|
+
</template>
|
693
|
+
</el-table-column>
|
694
|
+
<el-table-column :label="i18nt('服务名称')" width="150">
|
695
|
+
<template slot-scope="{ row }">
|
696
|
+
{{ row.serveName }}
|
697
|
+
</template>
|
450
698
|
</el-table-column>
|
451
|
-
<el-table-column :label="i18nt('流程模板编码')" width="150">
|
452
|
-
<template slot-scope="{row}">
|
699
|
+
<!-- <el-table-column :label="i18nt('流程模板编码')" width="150">
|
700
|
+
<template slot-scope="{ row }">
|
453
701
|
<el-input v-model="row.modelKey" clearable></el-input>
|
454
702
|
</template>
|
703
|
+
</el-table-column> -->
|
704
|
+
<el-table-column :label="i18nt('流程模板序号')" width="150">
|
705
|
+
<template slot-scope="{ row }">
|
706
|
+
<base-input-number v-model="row.modelOrders" clearable></base-input-number>
|
707
|
+
</template>
|
455
708
|
</el-table-column>
|
456
|
-
<el-table-column
|
457
|
-
|
709
|
+
<el-table-column
|
710
|
+
:label="i18nt('节点步骤(多个值用“,”隔开)')"
|
711
|
+
width="250"
|
712
|
+
>
|
713
|
+
<template slot-scope="{ row }">
|
458
714
|
<el-input v-model="row.taskSteps" clearable></el-input>
|
459
715
|
</template>
|
460
716
|
</el-table-column>
|
@@ -467,11 +723,21 @@
|
|
467
723
|
</el-select>
|
468
724
|
</template>
|
469
725
|
</el-table-column>-->
|
470
|
-
<el-table-column
|
726
|
+
<el-table-column
|
727
|
+
:label="i18nt('designer.setting.actionColumn')"
|
728
|
+
width="100"
|
729
|
+
align="center"
|
730
|
+
>
|
471
731
|
<template #header>
|
472
|
-
<span>{{ i18nt(
|
473
|
-
<el-button
|
474
|
-
|
732
|
+
<span>{{ i18nt("designer.setting.actionColumn") }}</span>
|
733
|
+
<el-button
|
734
|
+
:title="i18nt('designer.setting.addTableColumn')"
|
735
|
+
size="mini"
|
736
|
+
type=""
|
737
|
+
circle=""
|
738
|
+
icon="el-icon-plus"
|
739
|
+
@click="addItem2"
|
740
|
+
></el-button>
|
475
741
|
</template>
|
476
742
|
<template slot-scope="scope">
|
477
743
|
<el-button
|
@@ -480,80 +746,115 @@
|
|
480
746
|
type=""
|
481
747
|
circle=""
|
482
748
|
icon="el-icon-minus"
|
483
|
-
@click="wfAgreeConfigData.splice(scope.$index,1)"
|
749
|
+
@click="wfAgreeConfigData.splice(scope.$index, 1)"
|
484
750
|
></el-button>
|
485
751
|
</template>
|
486
752
|
</el-table-column>
|
487
|
-
|
488
753
|
</el-table>
|
489
754
|
</div>
|
490
755
|
<div class="dialog-footer" slot="footer">
|
491
|
-
<el-button
|
492
|
-
|
756
|
+
<el-button
|
757
|
+
@click="dialogVisible2 = false"
|
758
|
+
class="button-sty"
|
759
|
+
icon="el-icon-close"
|
760
|
+
>
|
761
|
+
{{ i18nt("designer.hint.cancel") }}
|
493
762
|
</el-button>
|
494
|
-
<el-button
|
495
|
-
|
763
|
+
<el-button
|
764
|
+
type="primary"
|
765
|
+
@click="confirmWfConfigDataDialog2"
|
766
|
+
class="button-sty"
|
767
|
+
icon="el-icon-check"
|
768
|
+
>
|
769
|
+
{{ i18nt("designer.hint.confirm") }}
|
496
770
|
</el-button>
|
497
771
|
</div>
|
498
772
|
</el-dialog>
|
499
773
|
|
500
|
-
<formTemplateDialog
|
501
|
-
|
502
|
-
|
503
|
-
|
774
|
+
<formTemplateDialog
|
775
|
+
v-if="showFormTemplateDialog"
|
776
|
+
:visiable.sync="showFormTemplateDialog"
|
777
|
+
@confirm="confirmFormTemplate"
|
778
|
+
multi="false"
|
779
|
+
/>
|
780
|
+
<wfObjConfigDialog
|
781
|
+
v-if="showWfObjConfigDialog"
|
782
|
+
:visiable.sync="showWfObjConfigDialog"
|
783
|
+
@confirm="confirmWfObjConfigDialog"
|
784
|
+
:formTemplate="designer.vueInstance.reportTemplate"
|
785
|
+
/>
|
786
|
+
|
787
|
+
<bdCompanyEnvDialog
|
788
|
+
v-if="showBdCompanyEnvDialog1"
|
789
|
+
:visiable.sync="showBdCompanyEnvDialog1"
|
790
|
+
@confirm="confirmBdCompanyEnvDialog1"
|
791
|
+
:multi="false"
|
792
|
+
/>
|
793
|
+
<bdCompanyEnvDialog
|
794
|
+
v-if="showBdCompanyEnvDialog2"
|
795
|
+
:visiable.sync="showBdCompanyEnvDialog2"
|
796
|
+
@confirm="confirmBdCompanyEnvDialog2"
|
797
|
+
:multi="false"
|
798
|
+
/>
|
504
799
|
</div>
|
505
800
|
</template>
|
506
801
|
|
507
802
|
<script>
|
508
|
-
import i18n from
|
509
|
-
import {
|
510
|
-
|
803
|
+
import i18n from "../../../../components/xform/utils/i18n";
|
804
|
+
import {
|
805
|
+
deepClone,
|
806
|
+
insertCustomCssToHead,
|
807
|
+
insertGlobalFunctionsToHtml,
|
808
|
+
} from "../../../../components/xform/utils/util";
|
809
|
+
import formTemplateDialog from "../../../../views/bd/setting/form_template/dialog.vue";
|
511
810
|
import wfObjConfigDialog from "./wfObjConfigDialog.vue";
|
512
|
-
|
811
|
+
import bdCompanyEnvDialog from "@base/views/bd/setting/bd_company_env/dialog";
|
513
812
|
|
514
813
|
export default {
|
515
|
-
name:
|
814
|
+
name: "form-setting",
|
516
815
|
mixins: [i18n],
|
517
816
|
components: {
|
518
817
|
formTemplateDialog,
|
519
|
-
wfObjConfigDialog
|
818
|
+
wfObjConfigDialog,
|
819
|
+
bdCompanyEnvDialog,
|
520
820
|
},
|
521
821
|
props: {
|
522
822
|
designer: Object,
|
523
|
-
formConfig: Object
|
823
|
+
formConfig: Object,
|
524
824
|
},
|
525
|
-
inject: [
|
825
|
+
inject: ["getDesignerConfig"],
|
526
826
|
data() {
|
527
827
|
return {
|
528
828
|
designerConfig: this.getDesignerConfig(),
|
529
829
|
|
530
|
-
formActiveCollapseNames: [
|
830
|
+
formActiveCollapseNames: ["1", "2"],
|
531
831
|
|
532
832
|
formSizes: [
|
533
|
-
{label:
|
534
|
-
{label:
|
535
|
-
{label:
|
536
|
-
{label:
|
537
|
-
{label:
|
833
|
+
{ label: "default", value: "" },
|
834
|
+
{ label: "large", value: "large" },
|
835
|
+
{ label: "medium", value: "medium" },
|
836
|
+
{ label: "small", value: "small" },
|
837
|
+
{ label: "mini", value: "mini" },
|
538
838
|
],
|
539
839
|
|
540
840
|
showEditFormCssDialogFlag: false,
|
541
|
-
formCssCode:
|
841
|
+
formCssCode: "",
|
542
842
|
cssClassList: [],
|
543
843
|
|
544
844
|
showEditFunctionsDialogFlag: false,
|
545
|
-
functionsCode:
|
845
|
+
functionsCode: "",
|
546
846
|
|
547
847
|
showFormEventDialogFlag: false,
|
548
|
-
formEventHandlerCode:
|
549
|
-
curEventName:
|
848
|
+
formEventHandlerCode: "",
|
849
|
+
curEventName: "",
|
550
850
|
|
551
851
|
eventParamsMap: {
|
552
|
-
onBeforeCreated:
|
553
|
-
onFormCreated:
|
554
|
-
onFormMounted:
|
555
|
-
onFormDataChange:
|
556
|
-
|
852
|
+
onBeforeCreated: "onBeforeCreated(dataId,formCode,done) {",
|
853
|
+
onFormCreated: "onFormCreated(dataId,formCode) {",
|
854
|
+
onFormMounted: "onFormMounted(dataId,formCode) {",
|
855
|
+
onFormDataChange:
|
856
|
+
"onFormDataChange(fieldName, newValue, oldValue, formModel, subFormName, subFormRowIndex) {",
|
857
|
+
wfConfig: "wfConfig(dataId, formCode, formData) {",
|
557
858
|
//'onFormValidate': 'onFormValidate() {',
|
558
859
|
},
|
559
860
|
showVabsearchConfigDialog: false,
|
@@ -571,16 +872,19 @@ export default {
|
|
571
872
|
wfConfigData: [],
|
572
873
|
|
573
874
|
dialogVisible2: false,
|
574
|
-
wfAgreeConfigData: []
|
875
|
+
wfAgreeConfigData: [],
|
876
|
+
|
877
|
+
showBdCompanyEnvDialog1: false,
|
878
|
+
showBdCompanyEnvDialog2: false,
|
575
879
|
};
|
576
880
|
},
|
577
881
|
created() {
|
578
882
|
//导入表单JSON后需要重新加载自定义CSS样式!!!
|
579
|
-
this.designer.handleEvent(
|
883
|
+
this.designer.handleEvent("form-json-imported", () => {
|
580
884
|
this.formCssCode = this.formConfig.cssCode;
|
581
885
|
insertCustomCssToHead(this.formCssCcssCodeode);
|
582
886
|
this.extractCssClass();
|
583
|
-
this.designer.emitEvent(
|
887
|
+
this.designer.emitEvent("form-css-updated", deepClone(this.cssClassList));
|
584
888
|
});
|
585
889
|
},
|
586
890
|
mounted() {
|
@@ -590,17 +894,17 @@ export default {
|
|
590
894
|
this.formCssCode = this.formConfig.cssCode;
|
591
895
|
insertCustomCssToHead(this.formCssCode);
|
592
896
|
this.extractCssClass();
|
593
|
-
this.designer.emitEvent(
|
897
|
+
this.designer.emitEvent("form-css-updated", deepClone(this.cssClassList));
|
594
898
|
}, 1200);
|
595
899
|
this.getListByObjTypeCode();
|
596
900
|
},
|
597
901
|
methods: {
|
598
902
|
showEventCollapse() {
|
599
|
-
if (this.designerConfig[
|
903
|
+
if (this.designerConfig["eventCollapse"] === undefined) {
|
600
904
|
return true;
|
601
905
|
}
|
602
906
|
|
603
|
-
return !!this.designerConfig[
|
907
|
+
return !!this.designerConfig["eventCollapse"];
|
604
908
|
},
|
605
909
|
|
606
910
|
editFormCss() {
|
@@ -614,30 +918,39 @@ export default {
|
|
614
918
|
let cssNameArray = [];
|
615
919
|
|
616
920
|
if (!!result && result.length > 0) {
|
617
|
-
result.forEach(rItem => {
|
618
|
-
let classArray = rItem.split(
|
921
|
+
result.forEach((rItem) => {
|
922
|
+
let classArray = rItem.split(","); //切分逗号分割的多个class
|
619
923
|
if (classArray.length > 0) {
|
620
|
-
classArray.forEach(cItem => {
|
924
|
+
classArray.forEach((cItem) => {
|
621
925
|
let caItem = cItem.trim();
|
622
|
-
if (caItem.indexOf(
|
926
|
+
if (caItem.indexOf(".", 1) !== -1) {
|
623
927
|
//查找第二个.位置
|
624
|
-
let newClass = caItem.substring(
|
928
|
+
let newClass = caItem.substring(
|
929
|
+
caItem.indexOf(".") + 1,
|
930
|
+
caItem.indexOf(".", 1)
|
931
|
+
); //仅截取第一、二个.号之间的class
|
625
932
|
if (!!newClass) {
|
626
933
|
cssNameArray.push(newClass.trim());
|
627
934
|
}
|
628
|
-
} else if (caItem.indexOf(
|
935
|
+
} else if (caItem.indexOf(" ") !== -1) {
|
629
936
|
//查找第一个空格位置
|
630
|
-
let newClass = caItem.substring(
|
937
|
+
let newClass = caItem.substring(
|
938
|
+
caItem.indexOf(".") + 1,
|
939
|
+
caItem.indexOf(" ")
|
940
|
+
); //仅截取第一、二个.号之间的class
|
631
941
|
if (!!newClass) {
|
632
942
|
cssNameArray.push(newClass.trim());
|
633
943
|
}
|
634
944
|
} else {
|
635
|
-
if (caItem.indexOf(
|
945
|
+
if (caItem.indexOf("{") !== -1) {
|
636
946
|
//查找第一个{位置
|
637
|
-
let newClass = caItem.substring(
|
947
|
+
let newClass = caItem.substring(
|
948
|
+
caItem.indexOf(".") + 1,
|
949
|
+
caItem.indexOf("{")
|
950
|
+
);
|
638
951
|
cssNameArray.push(newClass.trim());
|
639
952
|
} else {
|
640
|
-
let newClass = caItem.substring(caItem.indexOf(
|
953
|
+
let newClass = caItem.substring(caItem.indexOf(".") + 1);
|
641
954
|
cssNameArray.push(newClass.trim());
|
642
955
|
}
|
643
956
|
}
|
@@ -657,7 +970,7 @@ export default {
|
|
657
970
|
insertCustomCssToHead(this.formCssCode);
|
658
971
|
this.showEditFormCssDialogFlag = false;
|
659
972
|
|
660
|
-
this.designer.emitEvent(
|
973
|
+
this.designer.emitEvent("form-css-updated", deepClone(this.cssClassList));
|
661
974
|
},
|
662
975
|
|
663
976
|
editGlobalFunctions() {
|
@@ -673,14 +986,16 @@ export default {
|
|
673
986
|
const codeHints = this.$refs.gfEditor.getEditorAnnotations();
|
674
987
|
let syntaxErrorFlag = false;
|
675
988
|
if (!!codeHints && codeHints.length > 0) {
|
676
|
-
codeHints.forEach(chItem => {
|
677
|
-
if (chItem.type ===
|
989
|
+
codeHints.forEach((chItem) => {
|
990
|
+
if (chItem.type === "error") {
|
678
991
|
syntaxErrorFlag = true;
|
679
992
|
}
|
680
993
|
});
|
681
994
|
|
682
995
|
if (syntaxErrorFlag) {
|
683
|
-
this.$message.error(
|
996
|
+
this.$message.error(
|
997
|
+
this.i18nt("designer.setting.syntaxCheckWarning")
|
998
|
+
);
|
684
999
|
return;
|
685
1000
|
}
|
686
1001
|
}
|
@@ -700,14 +1015,16 @@ export default {
|
|
700
1015
|
const codeHints = this.$refs.ecEditor.getEditorAnnotations();
|
701
1016
|
let syntaxErrorFlag = false;
|
702
1017
|
if (!!codeHints && codeHints.length > 0) {
|
703
|
-
codeHints.forEach(chItem => {
|
704
|
-
if (chItem.type ===
|
1018
|
+
codeHints.forEach((chItem) => {
|
1019
|
+
if (chItem.type === "error") {
|
705
1020
|
syntaxErrorFlag = true;
|
706
1021
|
}
|
707
1022
|
});
|
708
1023
|
|
709
1024
|
if (syntaxErrorFlag) {
|
710
|
-
this.$message.error(
|
1025
|
+
this.$message.error(
|
1026
|
+
this.i18nt("designer.setting.syntaxCheckWarning")
|
1027
|
+
);
|
711
1028
|
return;
|
712
1029
|
}
|
713
1030
|
}
|
@@ -724,21 +1041,23 @@ export default {
|
|
724
1041
|
},
|
725
1042
|
getEventButtonName(funStr) {
|
726
1043
|
let name = this.i18nt("designer.setting.addEventHandler");
|
727
|
-
if (funStr) name = "已维护"
|
1044
|
+
if (funStr) name = "已维护";
|
728
1045
|
return name;
|
729
1046
|
},
|
730
1047
|
saveFormScriptParam() {
|
731
1048
|
const codeHints = this.$refs.gfEditor.getEditorAnnotations();
|
732
1049
|
let syntaxErrorFlag = false;
|
733
1050
|
if (!!codeHints && codeHints.length > 0) {
|
734
|
-
codeHints.forEach(chItem => {
|
735
|
-
if (chItem.type ===
|
1051
|
+
codeHints.forEach((chItem) => {
|
1052
|
+
if (chItem.type === "error") {
|
736
1053
|
syntaxErrorFlag = true;
|
737
1054
|
}
|
738
1055
|
});
|
739
1056
|
|
740
1057
|
if (syntaxErrorFlag) {
|
741
|
-
this.$message.error(
|
1058
|
+
this.$message.error(
|
1059
|
+
this.i18nt("designer.setting.syntaxCheckWarning")
|
1060
|
+
);
|
742
1061
|
return;
|
743
1062
|
}
|
744
1063
|
}
|
@@ -754,14 +1073,16 @@ export default {
|
|
754
1073
|
const codeHints = this.$refs.gfEditor.getEditorAnnotations();
|
755
1074
|
let syntaxErrorFlag = false;
|
756
1075
|
if (!!codeHints && codeHints.length > 0) {
|
757
|
-
codeHints.forEach(chItem => {
|
758
|
-
if (chItem.type ===
|
1076
|
+
codeHints.forEach((chItem) => {
|
1077
|
+
if (chItem.type === "error") {
|
759
1078
|
syntaxErrorFlag = true;
|
760
1079
|
}
|
761
1080
|
});
|
762
1081
|
|
763
1082
|
if (syntaxErrorFlag) {
|
764
|
-
this.$message.error(
|
1083
|
+
this.$message.error(
|
1084
|
+
this.i18nt("designer.setting.syntaxCheckWarning")
|
1085
|
+
);
|
765
1086
|
return;
|
766
1087
|
}
|
767
1088
|
}
|
@@ -776,17 +1097,17 @@ export default {
|
|
776
1097
|
this.wfObjConfigs = rows || [];
|
777
1098
|
},
|
778
1099
|
getListByObjTypeCode() {
|
779
|
-
let reportTemplate = this.designer.vueInstance.reportTemplate
|
1100
|
+
let reportTemplate = this.designer.vueInstance.reportTemplate;
|
780
1101
|
this.$http({
|
781
1102
|
url: `/${reportTemplate.serviceName}/wf_obj_config/listByObjTypeCode`,
|
782
1103
|
method: `post`,
|
783
1104
|
data: {
|
784
|
-
stringOne: reportTemplate.objTypeCode
|
1105
|
+
stringOne: reportTemplate.objTypeCode,
|
785
1106
|
},
|
786
1107
|
isLoading: true,
|
787
|
-
success: res => {
|
1108
|
+
success: (res) => {
|
788
1109
|
this.wfObjConfigs = res.objx || [];
|
789
|
-
}
|
1110
|
+
},
|
790
1111
|
});
|
791
1112
|
},
|
792
1113
|
changeWfEnabled(val) {
|
@@ -796,7 +1117,7 @@ export default {
|
|
796
1117
|
openWfConfigDataDialog() {
|
797
1118
|
let wfConfigData = this.formConfig.wfConfigData || [];
|
798
1119
|
this.dialogVisible = true;
|
799
|
-
this.wfConfigData = this.$baseLodash.cloneDeep(wfConfigData)
|
1120
|
+
this.wfConfigData = this.$baseLodash.cloneDeep(wfConfigData);
|
800
1121
|
},
|
801
1122
|
addItem() {
|
802
1123
|
let newItem = {
|
@@ -804,12 +1125,47 @@ export default {
|
|
804
1125
|
serveType: null,
|
805
1126
|
serveName: null,
|
806
1127
|
modelKey: null,
|
1128
|
+
modelOrders: undefined,
|
807
1129
|
taskSteps: null,
|
808
|
-
companyCodes: null
|
809
|
-
}
|
1130
|
+
companyCodes: null,
|
1131
|
+
};
|
810
1132
|
this.wfConfigData.push(newItem);
|
811
1133
|
},
|
812
1134
|
confirmWfConfigDataDialog() {
|
1135
|
+
let tableData = this.wfConfigData;
|
1136
|
+
let map = {};
|
1137
|
+
for (let i = 0; i < tableData.length; i++) {
|
1138
|
+
let item = tableData[i];
|
1139
|
+
if (!item.serveName) {
|
1140
|
+
this.$message({
|
1141
|
+
type: "error",
|
1142
|
+
message: "服务名称不能为空",
|
1143
|
+
});
|
1144
|
+
return
|
1145
|
+
}
|
1146
|
+
if (!item.companyCodes) {
|
1147
|
+
this.$message({
|
1148
|
+
type: "error",
|
1149
|
+
message: "组织编码不能为空",
|
1150
|
+
});
|
1151
|
+
return
|
1152
|
+
}
|
1153
|
+
let modelOrders = item.modelOrders??"";
|
1154
|
+
|
1155
|
+
let serveName = item.serveName;
|
1156
|
+
let companyCodes = item.companyCodes;
|
1157
|
+
let key = serveName + "_" + companyCodes+ "_"+modelOrders;
|
1158
|
+
if (!map[key]) {
|
1159
|
+
map[key] = true;
|
1160
|
+
} else {
|
1161
|
+
this.$message({
|
1162
|
+
type: "error",
|
1163
|
+
message: "[服务+组织+流程模板序号]不能重复",
|
1164
|
+
});
|
1165
|
+
return;
|
1166
|
+
}
|
1167
|
+
}
|
1168
|
+
|
813
1169
|
this.dialogVisible = !1;
|
814
1170
|
this.formConfig.wfConfigData = this.wfConfigData;
|
815
1171
|
},
|
@@ -817,7 +1173,7 @@ export default {
|
|
817
1173
|
openWfConfigDataDialog2() {
|
818
1174
|
let wfAgreeConfigData = this.formConfig.wfAgreeConfigData || [];
|
819
1175
|
this.dialogVisible2 = true;
|
820
|
-
this.wfAgreeConfigData = this.$baseLodash.cloneDeep(wfAgreeConfigData)
|
1176
|
+
this.wfAgreeConfigData = this.$baseLodash.cloneDeep(wfAgreeConfigData);
|
821
1177
|
},
|
822
1178
|
addItem2() {
|
823
1179
|
let newItem = {
|
@@ -825,17 +1181,85 @@ export default {
|
|
825
1181
|
serveType: null,
|
826
1182
|
serveName: null,
|
827
1183
|
modelKey: null,
|
1184
|
+
modelOrders: undefined,
|
828
1185
|
taskSteps: null,
|
829
|
-
companyCodes: null
|
830
|
-
}
|
1186
|
+
companyCodes: null,
|
1187
|
+
};
|
831
1188
|
this.wfAgreeConfigData.push(newItem);
|
832
1189
|
},
|
833
1190
|
confirmWfConfigDataDialog2() {
|
1191
|
+
let tableData = this.wfAgreeConfigData;
|
1192
|
+
|
1193
|
+
let map = {};
|
1194
|
+
for (let i = 0; i < tableData.length; i++) {
|
1195
|
+
let item = tableData[i];
|
1196
|
+
if (!item.serveName) {
|
1197
|
+
this.$message({
|
1198
|
+
type: "error",
|
1199
|
+
message: "服务名称不能为空",
|
1200
|
+
});
|
1201
|
+
return
|
1202
|
+
}
|
1203
|
+
if (!item.companyCodes) {
|
1204
|
+
this.$message({
|
1205
|
+
type: "error",
|
1206
|
+
message: "组织编码不能为空",
|
1207
|
+
});
|
1208
|
+
return
|
1209
|
+
}
|
1210
|
+
let modelOrders = item.modelOrders??"";
|
1211
|
+
|
1212
|
+
let serveName = item.serveName;
|
1213
|
+
let companyCodes = item.companyCodes;
|
1214
|
+
let key = serveName + "_" + companyCodes+ "_"+modelOrders;
|
1215
|
+
if (!map[key]) {
|
1216
|
+
map[key] = true;
|
1217
|
+
} else {
|
1218
|
+
this.$message({
|
1219
|
+
type: "error",
|
1220
|
+
message: "[服务+组织+流程模板序号]不能重复",
|
1221
|
+
});
|
1222
|
+
return;
|
1223
|
+
}
|
1224
|
+
}
|
834
1225
|
this.dialogVisible2 = !1;
|
835
1226
|
this.formConfig.wfAgreeConfigData = this.wfAgreeConfigData;
|
836
1227
|
},
|
837
1228
|
|
838
|
-
|
1229
|
+
clearBdCompanyEnv1(row) {
|
1230
|
+
row.serveName = null;
|
1231
|
+
row.companyCodes = null;
|
1232
|
+
},
|
1233
|
+
openBdCompanyEnvDialog1(rowIndex) {
|
1234
|
+
this.operateIndex = rowIndex;
|
1235
|
+
this.showBdCompanyEnvDialog1 = true;
|
1236
|
+
},
|
1237
|
+
confirmBdCompanyEnvDialog1(rows) {
|
1238
|
+
if (rows.length) {
|
1239
|
+
let row = rows[0];
|
1240
|
+
let item = this.wfConfigData[this.operateIndex];
|
1241
|
+
item.serveName = row.bdService;
|
1242
|
+
item.companyCodes = row.bdCompanyCode;
|
1243
|
+
}
|
1244
|
+
},
|
1245
|
+
|
1246
|
+
clearBdCompanyEnv2(row) {
|
1247
|
+
row.serveName = null;
|
1248
|
+
row.companyCodes = null;
|
1249
|
+
},
|
1250
|
+
openBdCompanyEnvDialog2(rowIndex) {
|
1251
|
+
this.operateIndex = rowIndex;
|
1252
|
+
this.showBdCompanyEnvDialog2 = true;
|
1253
|
+
},
|
1254
|
+
confirmBdCompanyEnvDialog2(rows) {
|
1255
|
+
if (rows.length) {
|
1256
|
+
let row = rows[0];
|
1257
|
+
let item = this.wfAgreeConfigData[this.operateIndex];
|
1258
|
+
item.serveName = row.bdService;
|
1259
|
+
item.companyCodes = row.bdCompanyCode;
|
1260
|
+
}
|
1261
|
+
},
|
1262
|
+
},
|
839
1263
|
};
|
840
1264
|
</script>
|
841
1265
|
|