cloud-web-corejs 1.0.116 → 1.0.118
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 +3 -1
- package/src/components/VabUpload/view.vue +135 -135
- package/src/components/errorMsg/mixins.js +7 -5
- package/src/components/excelExport/button.vue +57 -4
- package/src/components/excelExport/index.js +7 -6
- package/src/components/excelExport/index.vue +56 -2
- package/src/components/excelExport/mixins.js +1 -1
- package/src/components/formOplog/mixins.js +1 -1
- package/src/components/statusTag/mixins.js +1 -1
- package/src/components/table/index.js +1 -1
- package/src/components/table/util/index.js +1 -1
- package/src/components/tempStorage/index.vue +9 -6
- package/src/components/tempStorage/tempStorageDialog.vue +1 -1
- package/src/components/wf/content.vue +17 -1
- package/src/components/wf/mixins/setCandidateDialog.js +2 -1
- package/src/components/wf/setCandidateDialog.vue +9 -0
- package/src/components/wf/setCandidateDialog2.vue +320 -0
- package/src/components/wf/wf.js +1 -1
- package/src/components/wf/wfStartDialog.vue +70 -42
- package/src/components/wf/wfTaskUserRangeDialog.vue +131 -0
- package/src/components/wf/wfUtil.js +1 -1
- package/src/components/xform/form-designer/designer.js +1 -1
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +4 -4
- package/src/components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue +2 -1
- package/src/components/xform/form-designer/form-widget/field-widget/tempStorage-widget.vue +127 -0
- package/src/components/xform/form-designer/indexMixin.js +1 -1
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +93 -5
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +18 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/tempStorage-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +1 -0
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +31 -0
- package/src/components/xform/form-render/container-item/data-table-mixin.js +1 -1
- package/src/components/xform/form-render/indexMixin.js +3 -1
- package/src/components/xform/lang/zh-CN.js +1 -0
- package/src/components/xform/mixins/defaultHandle.js +1 -1
- package/src/components/xform/utils/util.js +1451 -1
- package/src/utils/index.js +2 -5
- package/src/views/user/form/view/list.vue +18 -3
- package/src/views/user/wf/wf_obj_config/itemEdit.vue +3 -3
- package/src/views/user/wf/wf_obj_config/list.vue +5 -5
@@ -29,6 +29,20 @@
|
|
29
29
|
@change="changeWfEnabled"
|
30
30
|
></el-switch>
|
31
31
|
</el-form-item>
|
32
|
+
<el-form-item>
|
33
|
+
<span slot="label">流程主题
|
34
|
+
<el-tooltip effect="light">
|
35
|
+
<i class="el-icon-info"></i>
|
36
|
+
<div slot="content" style="white-space: pre-wrap;">
|
37
|
+
{{tip1}}
|
38
|
+
</div>
|
39
|
+
|
40
|
+
</el-tooltip>
|
41
|
+
</span>
|
42
|
+
</el-form-item>
|
43
|
+
<div>
|
44
|
+
<el-input style="word-break: break-word" type="textarea" :rows="3" v-model="formConfig.wfTheme" clearable></el-input>
|
45
|
+
</div>
|
32
46
|
<el-form-item :label="i18nt('流程启动时自动保存表单数据')">
|
33
47
|
<el-switch v-model="formConfig.wfStartBindSave"></el-switch>
|
34
48
|
</el-form-item>
|
@@ -160,8 +174,9 @@
|
|
160
174
|
></el-input>
|
161
175
|
</el-form-item>
|
162
176
|
</el-collapse-item>
|
177
|
+
|
163
178
|
<el-collapse-item name="3" title="详情表单信息">
|
164
|
-
<el-form-item :label="i18nt('
|
179
|
+
<el-form-item :label="i18nt('查看页面表单编码')">
|
165
180
|
<el-input
|
166
181
|
class="search-input"
|
167
182
|
max="200"
|
@@ -176,13 +191,36 @@
|
|
176
191
|
<i
|
177
192
|
slot="suffix"
|
178
193
|
class="el-input__icon el-icon-search"
|
179
|
-
@click="
|
194
|
+
@click="openFormTemplate(2)"
|
180
195
|
></i>
|
181
196
|
</el-input>
|
182
197
|
</el-form-item>
|
183
|
-
<el-form-item :label="i18nt('
|
198
|
+
<el-form-item :label="i18nt('查看页面表单名称')">
|
184
199
|
{{ formConfig.editFormName }}
|
185
200
|
</el-form-item>
|
201
|
+
<el-form-item :label="i18nt('新增页面表单编码')">
|
202
|
+
<el-input
|
203
|
+
class="search-input"
|
204
|
+
max="200"
|
205
|
+
v-model="formConfig.addFormCode"
|
206
|
+
@clear="
|
207
|
+
formConfig.addFormCode = null;
|
208
|
+
$forceUpdate();
|
209
|
+
"
|
210
|
+
v-el-readonly
|
211
|
+
clearable
|
212
|
+
placeholder="默认使用查看表单编码"
|
213
|
+
>
|
214
|
+
<i
|
215
|
+
slot="suffix"
|
216
|
+
class="el-input__icon el-icon-search"
|
217
|
+
@click="openFormTemplate(1)"
|
218
|
+
></i>
|
219
|
+
</el-input>
|
220
|
+
</el-form-item>
|
221
|
+
<el-form-item :label="i18nt('新增页面表单名称')">
|
222
|
+
{{ formConfig.addFormName }}
|
223
|
+
</el-form-item>
|
186
224
|
</el-collapse-item>
|
187
225
|
<el-collapse-item name="4" title="查询弹框展示信息">
|
188
226
|
<el-form-item :label="i18nt('展示字段')">
|
@@ -876,6 +914,42 @@ export default {
|
|
876
914
|
|
877
915
|
showBdCompanyEnvDialog1: false,
|
878
916
|
showBdCompanyEnvDialog2: false,
|
917
|
+
|
918
|
+
tip1:`流程主题表达式设置说明。
|
919
|
+
|
920
|
+
1、可使用参数:
|
921
|
+
wf:流程对象
|
922
|
+
name:流程名称
|
923
|
+
objTypeCode:单据类型编码
|
924
|
+
objId:对象id
|
925
|
+
procInstId:act流程实例id
|
926
|
+
procDefId:act流程定义id
|
927
|
+
modelId:act流程模板id
|
928
|
+
starterId:启动人ID
|
929
|
+
starterName:启动人姓名
|
930
|
+
uuid:流程实例唯一标识
|
931
|
+
identityInfo:身份信息对象
|
932
|
+
id:用户ID
|
933
|
+
loginAccount:用户登录名
|
934
|
+
nickName:用户姓名
|
935
|
+
companyCode:企业编码
|
936
|
+
parentCompanyCode:集团企业编码
|
937
|
+
nowDate:当前时间
|
938
|
+
nowDateStr:当前时间字符串(yyyy-MM-dd HH:mm:ss)
|
939
|
+
nowDayStr:当前天字符串(yyyy-MM-dd)
|
940
|
+
tableName:数据库表名,取表单设计中维护的表名作为参数名称
|
941
|
+
tableField1:数据库表字段名1
|
942
|
+
tableField2:数据库表字段名2
|
943
|
+
tableField3:数据库表字段名3
|
944
|
+
......
|
945
|
+
|
946
|
+
2、可使用函数:
|
947
|
+
func.orgName(orgId):根据机构id获取机构名称
|
948
|
+
func.convertDate(date, format):时间转换,如当前时间转为当前天字符串,则$\{func.convertDate(nowDate, 'yyyy-MM-dd')\},当前时间转为当前月字符串,则$\{func.convertDate(nowDate, 'yyyy-MM')\}
|
949
|
+
|
950
|
+
3、配置示例
|
951
|
+
比如表名为:pm_product_project,配置如下:
|
952
|
+
$\{wf.starterName\}提交的$\{pm_product_project.product_code\}$\{pm_product_project.product_name\}$\{wf.name\}$\{pm_product_project.sn\}$\{func.orgName(pm_product_project.f_sale_org_id)\}$\{nowDayStr\}`
|
879
953
|
};
|
880
954
|
},
|
881
955
|
created() {
|
@@ -1032,11 +1106,22 @@ export default {
|
|
1032
1106
|
this.formConfig[this.curEventName] = this.formEventHandlerCode;
|
1033
1107
|
this.showFormEventDialogFlag = false;
|
1034
1108
|
},
|
1109
|
+
openFormTemplate(flag){
|
1110
|
+
this.formTemplateFlag = flag;
|
1111
|
+
this.showFormTemplateDialog = true;
|
1112
|
+
},
|
1035
1113
|
confirmFormTemplate(rows) {
|
1036
1114
|
if (rows.length) {
|
1037
1115
|
let row = rows[0];
|
1038
|
-
|
1039
|
-
|
1116
|
+
if(this.formTemplateFlag==1){
|
1117
|
+
//新增
|
1118
|
+
this.$set(this.formConfig, "addFormCode", row.formCode);
|
1119
|
+
this.$set(this.formConfig, "addFormName", row.formName);
|
1120
|
+
}else{
|
1121
|
+
//查看
|
1122
|
+
this.$set(this.formConfig, "editFormCode", row.formCode);
|
1123
|
+
this.$set(this.formConfig, "editFormName", row.formName);
|
1124
|
+
}
|
1040
1125
|
}
|
1041
1126
|
},
|
1042
1127
|
getEventButtonName(funStr) {
|
@@ -1303,4 +1388,7 @@ export default {
|
|
1303
1388
|
padding: 6px 15px 12px 15px;
|
1304
1389
|
}
|
1305
1390
|
}
|
1391
|
+
::v-deep .el-textarea .el-textarea__inner {
|
1392
|
+
word-break: break-all;
|
1393
|
+
}
|
1306
1394
|
</style>
|
@@ -11,13 +11,20 @@
|
|
11
11
|
<el-form-item label="弹框表单编码">
|
12
12
|
<el-input type="text" v-model="eventConfig.formCode"></el-input>
|
13
13
|
</el-form-item>
|
14
|
-
<el-form-item label="
|
14
|
+
<el-form-item label="弹框查询参数">
|
15
15
|
<a href="javascript:void(0);" class="a-link link-oneLind"
|
16
16
|
@click="editEventHandler('confirmCallback', ['dataId', 'formCode','rows'], option2)">
|
17
17
|
<span>{{ eventConfig.dialogQueryParam }}</span>
|
18
18
|
<i class="el-icon-edit"></i>
|
19
19
|
</a>
|
20
20
|
</el-form-item>
|
21
|
+
<el-form-item label="弹框自定义参数">
|
22
|
+
<a href="javascript:void(0);" class="a-link link-oneLind"
|
23
|
+
@click="editEventHandler('dialogCustomParam', ['dataId', 'formCode','rows'], option3)">
|
24
|
+
<span>{{ eventConfig.dialogCustomParam }}</span>
|
25
|
+
<i class="el-icon-edit"></i>
|
26
|
+
</a>
|
27
|
+
</el-form-item>
|
21
28
|
<template v-if="hasConfig('vabsearchFlag')">
|
22
29
|
<el-form-item label="关联来源字段">
|
23
30
|
<el-input type="text" v-model="eventConfig.valueSourceField"></el-input>
|
@@ -175,7 +182,16 @@ export default {
|
|
175
182
|
this.eventConfig.dialogQueryParam = code;
|
176
183
|
this.$forceUpdate()
|
177
184
|
}
|
178
|
-
}
|
185
|
+
},
|
186
|
+
option3: {
|
187
|
+
customCode: () => {
|
188
|
+
return this.eventConfig.dialogCustomParam;
|
189
|
+
},
|
190
|
+
callback: (code) => {
|
191
|
+
this.eventConfig.dialogCustomParam = code;
|
192
|
+
this.$forceUpdate()
|
193
|
+
}
|
194
|
+
},
|
179
195
|
}
|
180
196
|
},
|
181
197
|
computed: {
|
package/src/components/xform/form-designer/setting-panel/property-editor/tempStorage-editor.vue
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
<template>
|
2
|
+
<el-form-item :label="i18nt('暂存唯一编码')">
|
3
|
+
<el-input type="text" v-model="optionModel.tempStorageCode" placeholder="默认表单模板编码"></el-input>
|
4
|
+
</el-form-item>
|
5
|
+
</template>
|
6
|
+
|
7
|
+
<script>
|
8
|
+
import i18n from "../../../../../components/xform/utils/i18n";
|
9
|
+
|
10
|
+
export default {
|
11
|
+
name: "tempStorage-editor",
|
12
|
+
mixins: [i18n],
|
13
|
+
props: {
|
14
|
+
designer: Object,
|
15
|
+
selectedWidget: Object,
|
16
|
+
optionModel: Object,
|
17
|
+
},
|
18
|
+
}
|
19
|
+
</script>
|
20
|
+
|
21
|
+
<style scoped>
|
22
|
+
|
23
|
+
</style>
|
@@ -81,6 +81,7 @@ const COMMON_PROPERTIES = {
|
|
81
81
|
'echarCategoryOption': 'echart-category-editor', //折线图
|
82
82
|
'vabSearchName': 'vabSearchName-editor',
|
83
83
|
'copyButton': 'copyButton-editor',
|
84
|
+
"tempStorageFlag": "tempStorage-editor",
|
84
85
|
|
85
86
|
//容器
|
86
87
|
'showBlankRow': 'showBlankRow-editor',
|
@@ -779,6 +779,7 @@ export const defaultSearchDialogConfig = {
|
|
779
779
|
multipleChoices: true,
|
780
780
|
confirmCallback: null,
|
781
781
|
dialogQueryParam: null,
|
782
|
+
dialogCustomParam:null
|
782
783
|
};
|
783
784
|
|
784
785
|
export const defaultWfConfig = {
|
@@ -1193,10 +1194,12 @@ export const basicFields = [
|
|
1193
1194
|
{
|
1194
1195
|
label: "radio 1",
|
1195
1196
|
value: "1",
|
1197
|
+
disabled: false
|
1196
1198
|
},
|
1197
1199
|
{
|
1198
1200
|
label: "radio 2",
|
1199
1201
|
value: "2",
|
1202
|
+
disabled: false
|
1200
1203
|
},
|
1201
1204
|
],
|
1202
1205
|
required: !1,
|
@@ -1263,10 +1266,12 @@ export const basicFields = [
|
|
1263
1266
|
{
|
1264
1267
|
label: "check 1",
|
1265
1268
|
value: "1",
|
1269
|
+
disabled: false
|
1266
1270
|
},
|
1267
1271
|
{
|
1268
1272
|
label: "check 2",
|
1269
1273
|
value: "2",
|
1274
|
+
disabled: false
|
1270
1275
|
},
|
1271
1276
|
],
|
1272
1277
|
required: !1,
|
@@ -1340,14 +1345,17 @@ export const basicFields = [
|
|
1340
1345
|
{
|
1341
1346
|
label: "select 1",
|
1342
1347
|
value: "1",
|
1348
|
+
disabled: false
|
1343
1349
|
},
|
1344
1350
|
{
|
1345
1351
|
label: "select 2",
|
1346
1352
|
value: "2",
|
1353
|
+
disabled: false
|
1347
1354
|
},
|
1348
1355
|
{
|
1349
1356
|
label: "select 3",
|
1350
1357
|
value: "3",
|
1358
|
+
disabled: false
|
1351
1359
|
},
|
1352
1360
|
],
|
1353
1361
|
required: !1,
|
@@ -3605,6 +3613,29 @@ export const businessFields = [
|
|
3605
3613
|
showRules: [],
|
3606
3614
|
},
|
3607
3615
|
},
|
3616
|
+
{
|
3617
|
+
type: "tempStorage",
|
3618
|
+
icon: "uploadbox",
|
3619
|
+
commonFlag: !0,
|
3620
|
+
columnFlag: true,
|
3621
|
+
formItemFlag: !1,
|
3622
|
+
options: {
|
3623
|
+
name: "",
|
3624
|
+
// label: "暂存",
|
3625
|
+
columnWidth: "200px",
|
3626
|
+
disabled: !1,
|
3627
|
+
hidden: !1,
|
3628
|
+
|
3629
|
+
tempStorageFlag:1,
|
3630
|
+
tempStorageCode:null,
|
3631
|
+
|
3632
|
+
customClass: "",
|
3633
|
+
onCreated: "",
|
3634
|
+
onMounted: "",
|
3635
|
+
|
3636
|
+
...defaultWidgetShowRuleConfig,
|
3637
|
+
},
|
3638
|
+
},
|
3608
3639
|
];
|
3609
3640
|
|
3610
3641
|
export const keyNamePrefixMap = {
|