cloud-web-corejs 1.0.54-dev.95 → 1.0.54-dev.96
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/fileLibrary/filterDialog.vue +79 -134
- package/src/components/wf/wf.js +1737 -1
- package/src/components/wf/wfUtil.js +278 -1
- package/src/components/xform/form-designer/indexMixin.js +856 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +159 -14
- package/src/components/xform/form-render/indexMixin.js +15 -4
@@ -6,7 +6,7 @@
|
|
6
6
|
<el-form-item :label="i18nt('有流程隐藏')">
|
7
7
|
<el-switch v-model="optionModel.hiddenByWf" @change="changeHiddenByWf"></el-switch>
|
8
8
|
</el-form-item>
|
9
|
-
<el-form-item :label="i18nt('
|
9
|
+
<el-form-item :label="i18nt('特定流程节点设置')">
|
10
10
|
<el-switch v-model="optionModel.wfEdit" @change="changeWfEdit"></el-switch>
|
11
11
|
</el-form-item>
|
12
12
|
<el-form-item :label="i18nt('流程节点信息')">
|
@@ -15,23 +15,32 @@
|
|
15
15
|
<i class="el-icon-edit"></i>
|
16
16
|
</a>
|
17
17
|
</el-form-item>
|
18
|
-
|
19
|
-
|
20
|
-
<el-switch v-model="optionModel.wfEdit" @change="changeWfEdit"></el-switch>
|
18
|
+
<el-form-item :label="i18nt('过程更改业务数据')">
|
19
|
+
<el-switch v-model="optionModel.wfModifyDataEnabled"></el-switch>
|
21
20
|
</el-form-item>
|
22
|
-
<el-form-item :label="i18nt('
|
23
|
-
<a href="javascript:void(0);" class="a-link link-oneLind" @click="
|
24
|
-
<span>{{ optionModel.
|
21
|
+
<el-form-item :label="i18nt('更改业务数据信息')">
|
22
|
+
<a href="javascript:void(0);" class="a-link link-oneLind" @click="openDialog2">
|
23
|
+
<span>{{ optionModel.wfModifyDataConfig && optionModel.wfModifyDataConfig.length ? "已维护" : "" }}</span>
|
25
24
|
<i class="el-icon-edit"></i>
|
26
25
|
</a>
|
27
|
-
</el-form-item
|
26
|
+
</el-form-item>
|
27
|
+
|
28
|
+
<!-- <el-form-item :label="i18nt('特定流程节点显隐')">
|
29
|
+
<el-switch v-model="optionModel.wfEdit" @change="changeWfEdit"></el-switch>
|
30
|
+
</el-form-item>
|
31
|
+
<el-form-item :label="i18nt('流程节点信息')">
|
32
|
+
<a href="javascript:void(0);" class="a-link link-oneLind" @click="openDialog">
|
33
|
+
<span>{{ optionModel.wfConfigData && optionModel.wfConfigData.length ? "已维护" : "" }}</span>
|
34
|
+
<i class="el-icon-edit"></i>
|
35
|
+
</a>
|
36
|
+
</el-form-item>-->
|
28
37
|
<el-dialog
|
29
38
|
v-if="dialogVisible"
|
30
39
|
custom-class="dialog-style list-dialog"
|
31
40
|
:title="i18nt('流程节点信息')"
|
32
41
|
:visible.sync="dialogVisible"
|
33
42
|
:show-close="!0"
|
34
|
-
:append-to-body="
|
43
|
+
:append-to-body="true"
|
35
44
|
:modal="false"
|
36
45
|
:close-on-click-modal="!1"
|
37
46
|
:close-on-press-escape="!1"
|
@@ -39,16 +48,18 @@
|
|
39
48
|
width="1220px"
|
40
49
|
top="5vh"
|
41
50
|
v-dialog-drag
|
51
|
+
:fullscreen="true"
|
42
52
|
>
|
43
|
-
<div class="cont">
|
53
|
+
<div class="cont" style="padding-bottom: 8px;">
|
44
54
|
<el-table
|
45
55
|
ref="singleTable"
|
46
56
|
width="100%"
|
47
57
|
:data="tableData"
|
48
|
-
height="
|
58
|
+
height="100%"
|
49
59
|
border=""
|
50
60
|
row-key="columnId"
|
51
61
|
stripe=""
|
62
|
+
style="margin-bottom: 0px;"
|
52
63
|
>
|
53
64
|
<el-table-column type="index" width="35" fixed="left"></el-table-column>
|
54
65
|
<el-table-column :label="i18nt('服务')" width="150">
|
@@ -92,7 +103,15 @@
|
|
92
103
|
<el-input v-model="row.taskSteps" clearable></el-input>
|
93
104
|
</template>
|
94
105
|
</el-table-column>
|
95
|
-
|
106
|
+
<el-table-column :label="i18nt('设置')" width="150">
|
107
|
+
<template slot-scope="{row}">
|
108
|
+
<el-select v-model="row.type" clearable>
|
109
|
+
<el-option :value="1" label="可编辑"></el-option>
|
110
|
+
<el-option :value="2" label="仅显示"></el-option>
|
111
|
+
<el-option :value="3" label="隐藏"></el-option>
|
112
|
+
</el-select>
|
113
|
+
</template>
|
114
|
+
</el-table-column>
|
96
115
|
<!-- <el-table-column :label="i18nt('流程模板')" width="250" prop="label">
|
97
116
|
<template slot-scope="scope">
|
98
117
|
<el-select v-model="scope.row.modelId" @change="changeModelId">
|
@@ -140,6 +159,92 @@
|
|
140
159
|
</el-button>
|
141
160
|
</div>
|
142
161
|
</el-dialog>
|
162
|
+
<el-dialog
|
163
|
+
v-if="dialogVisible2"
|
164
|
+
custom-class="dialog-style list-dialog"
|
165
|
+
:title="i18nt('过程更改业务数据')"
|
166
|
+
:visible.sync="dialogVisible2"
|
167
|
+
:show-close="!0"
|
168
|
+
:append-to-body="true"
|
169
|
+
:modal="false"
|
170
|
+
:close-on-click-modal="!1"
|
171
|
+
:close-on-press-escape="!1"
|
172
|
+
:destroy-on-close="!0"
|
173
|
+
width="1220px"
|
174
|
+
top="5vh"
|
175
|
+
v-dialog-drag
|
176
|
+
>
|
177
|
+
<div class="cont" style="padding-bottom: 8px;">
|
178
|
+
<el-table
|
179
|
+
ref="singleTable"
|
180
|
+
width="100%"
|
181
|
+
:data="tableData2"
|
182
|
+
height="500px"
|
183
|
+
border=""
|
184
|
+
row-key="columnId"
|
185
|
+
stripe=""
|
186
|
+
style="margin-bottom: 0px;"
|
187
|
+
>
|
188
|
+
<el-table-column type="index" width="35" fixed="left"></el-table-column>
|
189
|
+
<el-table-column :label="i18nt('流程动作')" width="150">
|
190
|
+
<template slot-scope="{row}">
|
191
|
+
<el-select v-model="row.action">
|
192
|
+
<el-option value="start" label="流程启动"></el-option>
|
193
|
+
<el-option value="interrupt" label="流程中断"></el-option>
|
194
|
+
<el-option value="end" label="流程完成"></el-option>
|
195
|
+
</el-select>
|
196
|
+
</template>
|
197
|
+
</el-table-column>
|
198
|
+
<!-- <el-table-column :label="i18nt('值类型')" width="250">
|
199
|
+
<template slot-scope="{row}">
|
200
|
+
<el-select v-model="row.valueType" @change="changeValueType">
|
201
|
+
<el-option :value="1" label="文本"></el-option>
|
202
|
+
<el-option :value="2" label="数值"></el-option>
|
203
|
+
<el-option :value="3" label="布尔值"></el-option>
|
204
|
+
</el-select>
|
205
|
+
</template>
|
206
|
+
</el-table-column>-->
|
207
|
+
<el-table-column :label="i18nt('设置的值')" width="650">
|
208
|
+
<template slot-scope="{row}">
|
209
|
+
<el-input v-model="row.toValue" clearable></el-input>
|
210
|
+
<!-- <el-input v-model="row.toValue" clearable v-if="row.valueType==1"></el-input>
|
211
|
+
<base-input-number v-model="row.toValue" clearable v-else-if="row.valueType==2"></base-input-number>
|
212
|
+
<el-radio-group v-model="row.toValue" v-else-if="row.valueType==3">
|
213
|
+
<el-radio :label="true">true</el-radio>
|
214
|
+
<el-radio :label="false">false</el-radio>
|
215
|
+
</el-radio-group>-->
|
216
|
+
|
217
|
+
</template>
|
218
|
+
</el-table-column>
|
219
|
+
<el-table-column :label="i18nt('designer.setting.actionColumn')" width="100" align="center">
|
220
|
+
<template #header>
|
221
|
+
<span>{{ i18nt('designer.setting.actionColumn') }}</span>
|
222
|
+
<el-button :title="i18nt('designer.setting.addTableColumn')" size="mini" type="" circle=""
|
223
|
+
icon="el-icon-plus" @click="addItem2"></el-button>
|
224
|
+
</template>
|
225
|
+
<template slot-scope="scope">
|
226
|
+
<el-button
|
227
|
+
:title="i18nt('designer.setting.deleteTableColumn')"
|
228
|
+
size="mini"
|
229
|
+
type=""
|
230
|
+
circle=""
|
231
|
+
icon="el-icon-minus"
|
232
|
+
@click="tableData2.splice(scope.$index,1)"
|
233
|
+
></el-button>
|
234
|
+
</template>
|
235
|
+
</el-table-column>
|
236
|
+
|
237
|
+
</el-table>
|
238
|
+
</div>
|
239
|
+
<div class="dialog-footer" slot="footer">
|
240
|
+
<el-button @click="dialogVisible2 = false" class="button-sty" icon="el-icon-close">
|
241
|
+
{{ i18nt('designer.hint.cancel') }}
|
242
|
+
</el-button>
|
243
|
+
<el-button type="primary" @click="colSubmit2" class="button-sty" icon="el-icon-check">
|
244
|
+
{{ i18nt('designer.hint.confirm') }}
|
245
|
+
</el-button>
|
246
|
+
</div>
|
247
|
+
</el-dialog>
|
143
248
|
<companyInfoDialog v-if="showCompanyInfoDialog" :visiable.sync="showCompanyInfoDialog"
|
144
249
|
@confirm="confirmCompanyDialog" :multi="true" :allCompany="true" :rows="currentCompanyInfos"
|
145
250
|
fieldKey="companyCode"/>
|
@@ -169,8 +274,10 @@ export default {
|
|
169
274
|
|
170
275
|
currentCompanyInfos: [],
|
171
276
|
operateIndex: 0,
|
172
|
-
showCompanyInfoDialog: false
|
277
|
+
showCompanyInfoDialog: false,
|
173
278
|
|
279
|
+
dialogVisible2: false,
|
280
|
+
tableData2: [],
|
174
281
|
}
|
175
282
|
},
|
176
283
|
computed: {
|
@@ -225,6 +332,7 @@ export default {
|
|
225
332
|
},
|
226
333
|
addItem() {
|
227
334
|
let newItem = {
|
335
|
+
type: null,
|
228
336
|
serveType: null,
|
229
337
|
serveName: null,
|
230
338
|
modelKey: null,
|
@@ -245,7 +353,7 @@ export default {
|
|
245
353
|
changeEnabledByWf(val) {
|
246
354
|
if (val) {
|
247
355
|
this.optionModel.hiddenByWf = false;
|
248
|
-
this.optionModel.wfEdit = false;
|
356
|
+
// this.optionModel.wfEdit = false;
|
249
357
|
}
|
250
358
|
},
|
251
359
|
changeHiddenByWf(val) {
|
@@ -286,6 +394,43 @@ export default {
|
|
286
394
|
},
|
287
395
|
getCompanyNames(item) {
|
288
396
|
return item.companyInfos.map(item => item.companyName).join(',');
|
397
|
+
},
|
398
|
+
|
399
|
+
openDialog2() {
|
400
|
+
this.tableData2 = this.$baseLodash.cloneDeep(this.optionModel.wfModifyDataConfig || []);
|
401
|
+
this.dialogVisible2 = true;
|
402
|
+
},
|
403
|
+
addItem2() {
|
404
|
+
let newItem = {
|
405
|
+
action: 'start',
|
406
|
+
// valueType: 1,
|
407
|
+
toValue: null
|
408
|
+
}
|
409
|
+
this.tableData2.push(newItem);
|
410
|
+
},
|
411
|
+
colSubmit2() {
|
412
|
+
let isError = false;
|
413
|
+
let map = {}
|
414
|
+
this.tableData2.forEach(item => {
|
415
|
+
let count = map[item.action] || 0;
|
416
|
+
map[item.action] = count + 1;
|
417
|
+
if (map[item.action] > 1) {
|
418
|
+
isError = true;
|
419
|
+
}
|
420
|
+
})
|
421
|
+
if (isError) {
|
422
|
+
this.$message({
|
423
|
+
message: "流程动作不能重复",
|
424
|
+
type: 'error',
|
425
|
+
duration: 2000,
|
426
|
+
})
|
427
|
+
return
|
428
|
+
}
|
429
|
+
this.dialogVisible2 = !1;
|
430
|
+
this.$set(this.optionModel, 'wfModifyDataConfig', this.tableData2)
|
431
|
+
},
|
432
|
+
changeValueType(row) {
|
433
|
+
row.toValue = null;
|
289
434
|
}
|
290
435
|
}
|
291
436
|
}
|
@@ -375,17 +375,27 @@ modules = {
|
|
375
375
|
if (wfEdit) {
|
376
376
|
let wfConfigData = widget?.options?.wfConfigData || [];
|
377
377
|
wfConfigData.forEach(item => {
|
378
|
+
let type = item.type;
|
378
379
|
let taskStepList = item.taskSteps ? item.taskSteps.split(',') : []
|
379
|
-
if (taskStepList.includes(taskStep)) {
|
380
|
+
if (type && taskStepList.includes(taskStep)) {
|
380
381
|
let companyInfos = item.companyInfos || [];
|
381
382
|
let companyCodes = companyInfos.map(item => item.companyCode);
|
382
383
|
let flag1 = !item.serveName || item.serveName == bdService;
|
383
384
|
let flag2 = !item.modelKey || item.modelKey == modelKey;
|
384
385
|
let flag3 = !companyCodes.length || companyCodes.includes(companyCode)
|
385
386
|
if (flag1 && flag2 && flag3) {
|
386
|
-
|
387
|
-
|
388
|
-
|
387
|
+
if (type === 1) {
|
388
|
+
//可编辑
|
389
|
+
hasModifyItem = true;
|
390
|
+
target.setDisabled && target.setDisabled(false);
|
391
|
+
target.setHidden(false);
|
392
|
+
} else if (type === 2) {
|
393
|
+
//仅显示
|
394
|
+
target.setDisabled && target.setDisabled(true);
|
395
|
+
target.setHidden(false);
|
396
|
+
} else if (type === 3) {
|
397
|
+
target.setHidden(true);
|
398
|
+
}
|
389
399
|
}
|
390
400
|
}
|
391
401
|
|
@@ -428,6 +438,7 @@ modules = {
|
|
428
438
|
objId: dataId, //单据ID
|
429
439
|
wfCode: wfCode, //流程编码
|
430
440
|
showStartBtn: true, //是否放出启动按钮,流程已启动时此参数失效
|
441
|
+
formCode: formCode,
|
431
442
|
callback: (wfParam) => {
|
432
443
|
this.setFormData(formData);
|
433
444
|
let {hasWf} = wfParam;
|