cloud-web-corejs 1.1.0-dev.11 → 1.1.0-dev.14
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/view.vue +25 -25
- package/src/components/excelExport/exportColumnMemory.js +118 -0
- package/src/components/excelExport/exportFieldDialog.vue +50 -38
- package/src/components/excelExport/index.js +30 -13
- package/src/components/excelExport/mixins.js +403 -65
- package/src/components/excelImport/mixins.js +898 -850
- package/src/components/mobile/wf/addTaskUserdialog.vue +100 -100
- package/src/components/mobile/wf/content.vue +4 -4
- package/src/components/mobile/wf/deleteTaskUserDialog.vue +73 -73
- package/src/components/mobile/wf/setCandidateDialog.vue +69 -69
- package/src/components/mobile/wf/urgingDialog.vue +75 -75
- package/src/components/table/index.js +14 -1
- package/src/components/table/vxeFilter/mixin.js +28 -18
- package/src/components/xform/docs/2026-07 table/344/270/216excelExport/344/277/256/345/244/215/345/217/212/345/257/274/345/207/272/344/274/230/345/214/226.md" +64 -57
- package/src/components/xform/docs/2026-08 xform H5 P0 /345/256/236/347/216/260/350/247/204/346/240/274.md" +528 -0
- package/src/components/xform/docs/2026-08 xform H5 P1 /345/256/236/347/216/260/350/247/204/346/240/274.md" +412 -0
- package/src/components/xform/docs/2026-08 xform H5 P2 /345/256/236/347/216/260/350/247/204/346/240/274.md" +287 -0
- package/src/components/xform/docs/2026-08 xform /347/247/273/345/212/250/347/253/257/345/270/203/345/261/200/345/257/271/351/275/220 bill_setting /346/226/271/346/241/210.md" +400 -0
- package/src/components/xform/docs/2026-09 /346/235/241/344/273/266/345/257/274/345/207/272/345/244/247/346/225/260/346/215/256/351/207/217/345/264/251/346/272/203/346/216/222/346/237/245.md" +389 -0
- package/src/components/xform/form-designer/form-widget/container-widget/detail-h5-widget.vue +243 -243
- package/src/components/xform/form-designer/form-widget/container-widget/h5-card-pane-widget.vue +228 -228
- package/src/components/xform/form-designer/form-widget/container-widget/h5-card-widget.vue +165 -165
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +61 -2
- package/src/components/xform/form-designer/form-widget/field-widget/select-export-item-button-widget.vue +3 -0
- package/src/components/xform/form-designer/form-widget/field-widget/singleUpload-widget.vue +145 -145
- package/src/components/xform/form-render/container-item/data-table-item.vue +350 -347
- package/src/components/xform/form-render/container-item/data-table-mixin.js +251 -37
- package/src/components/xform/form-render/container-item/list-h5-item.vue +1 -1
- package/src/components/xform/utils/dynamicSchemaUtil.js +385 -361
- package/src/layout/components/TagsView/index.vue +325 -323
- package/src/store/modules/tagsView.js +241 -217
- package/src/utils/importLimit.js +72 -0
- package/src/utils/pdfUtil.js +6 -1
- package/src/utils/request.js +17 -0
- package/src/views/demo/bizTab/bill/billConfig.js +41 -0
- package/src/views/demo/bizTab/bill/detail.vue +436 -0
- package/src/views/demo/bizTab/bill/list.vue +288 -0
- package/src/views/demo/bizTab/bill/productDialog.vue +176 -0
- package/src/views/demo/bizTab/simple/billApi.js +123 -0
- package/src/views/demo/bizTab/simple/detail.vue +407 -0
- package/src/views/demo/bizTab/simple/list.vue +217 -0
- package/src/views/demo/bizTab/standalone/index.vue +121 -0
- package/src/views/demo/bizTab/wf/billConfig.js +44 -0
- package/src/views/demo/bizTab/wf/detail.vue +661 -0
- package/src/views/demo/bizTab/wf/list.vue +242 -0
- package/src/views/user/home/wjl/content.vue +1569 -0
- package/src/views/user/outLink/cc_form_view.vue +188 -0
|
@@ -1,145 +1,145 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<form-item-wrapper :designer="designer" :field="field" :rules="rules" :design-state="designState"
|
|
3
|
-
:parent-widget="parentWidget" :parent-list="parentList" :index-of-parent-list="indexOfParentList"
|
|
4
|
-
:sub-form-row-index="subFormRowIndex" :sub-form-col-index="subFormColIndex"
|
|
5
|
-
:sub-form-row-id="subFormRowId">
|
|
6
|
-
<div id="uploadImage" class="upload-img" v-if="designState">
|
|
7
|
-
<div class="el-upload el-upload--picture" style="vertical-align: middle;display: inline-block;float:left">
|
|
8
|
-
<button type="button" class=" avatar-uploader">
|
|
9
|
-
<i class="el-icon-plus avatar-uploader-icon"></i>
|
|
10
|
-
</button>
|
|
11
|
-
</div>
|
|
12
|
-
</div>
|
|
13
|
-
<baseUpload accept="file" :file.sync="fieldModel" :hidePasteArea.sync="isH5"
|
|
14
|
-
:uploadDialogCustomClass="isH5?'dialog-upload-h5':null" :pickPrivateProfile="false"
|
|
15
|
-
:multi="field.options.limit!==1"
|
|
16
|
-
:limit="field.options.limit"
|
|
17
|
-
resultType="Array"
|
|
18
|
-
:edit="!field.options.disabled && !isReadMode"
|
|
19
|
-
@callback="submitFile"
|
|
20
|
-
:hideInfo="field.options.hideFileInfo"
|
|
21
|
-
:hideName="field.options.hideFileName"
|
|
22
|
-
:showSize="!!field.options.showFileSize"
|
|
23
|
-
:createBy="!!field.options.showFileCreateBy"
|
|
24
|
-
:createDate="!!field.options.showFileCreateDate"
|
|
25
|
-
:widgetSize="field.options.fileShowImageSize"
|
|
26
|
-
v-else></baseUpload>
|
|
27
|
-
</form-item-wrapper>
|
|
28
|
-
</template>
|
|
29
|
-
|
|
30
|
-
<script>
|
|
31
|
-
import FormItemWrapper from './form-item-wrapper'
|
|
32
|
-
import emitter from '../../../../../components/xform/utils/emitter'
|
|
33
|
-
import i18n from "../../../../../components/xform/utils/i18n";
|
|
34
|
-
import fieldMixin from "../../../../../components/xform/form-designer/form-widget/field-widget/fieldMixin";
|
|
35
|
-
|
|
36
|
-
export default {
|
|
37
|
-
name: "singleUpload-widget",
|
|
38
|
-
componentName: 'FieldWidget', //必须固定为FieldWidget,用于接收父级组件的broadcast事件
|
|
39
|
-
mixins: [emitter, fieldMixin, i18n],
|
|
40
|
-
props: {
|
|
41
|
-
field: Object,
|
|
42
|
-
parentWidget: Object,
|
|
43
|
-
parentList: Array,
|
|
44
|
-
indexOfParentList: Number,
|
|
45
|
-
designer: Object,
|
|
46
|
-
|
|
47
|
-
designState: {
|
|
48
|
-
type: Boolean,
|
|
49
|
-
default: false
|
|
50
|
-
},
|
|
51
|
-
|
|
52
|
-
subFormRowIndex: { /* 子表单组件行索引,从0开始计数 */
|
|
53
|
-
type: Number,
|
|
54
|
-
default: -1
|
|
55
|
-
},
|
|
56
|
-
subFormColIndex: { /* 子表单组件列索引,从0开始计数 */
|
|
57
|
-
type: Number,
|
|
58
|
-
default: -1
|
|
59
|
-
},
|
|
60
|
-
subFormRowId: { /* 子表单组件行Id,唯一id且不可变 */
|
|
61
|
-
type: String,
|
|
62
|
-
default: ''
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
components: {
|
|
66
|
-
FormItemWrapper,
|
|
67
|
-
},
|
|
68
|
-
inject: ['refList', 'globalOptionData', 'globalModel', 'getFormConfig'],
|
|
69
|
-
data() {
|
|
70
|
-
return {
|
|
71
|
-
oldFieldValue: [], //field组件change之前的值
|
|
72
|
-
fieldModel: [],
|
|
73
|
-
rules: [],
|
|
74
|
-
isH5: false
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
watch: {
|
|
78
|
-
fieldModel(val) {
|
|
79
|
-
this.handleChangeEvent(val);
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
computed: {
|
|
83
|
-
formDataId() {
|
|
84
|
-
let formRef = this.getFormRef();
|
|
85
|
-
return formRef.dataId;
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
beforeCreate() {
|
|
89
|
-
/* 这里不能访问方法和属性!! */
|
|
90
|
-
},
|
|
91
|
-
|
|
92
|
-
created() {
|
|
93
|
-
/* 注意:子组件mounted在父组件created之后、父组件mounted之前触发,故子组件mounted需要用到的prop
|
|
94
|
-
需要在父组件created中初始化!! */
|
|
95
|
-
|
|
96
|
-
this.isH5 = this.getFormConfig().layoutType === 'H5';
|
|
97
|
-
|
|
98
|
-
this.initFieldModel()
|
|
99
|
-
this.registerToRefList()
|
|
100
|
-
this.initEventHandler()
|
|
101
|
-
this.buildFieldRules()
|
|
102
|
-
|
|
103
|
-
this.handleOnCreated()
|
|
104
|
-
},
|
|
105
|
-
|
|
106
|
-
mounted() {
|
|
107
|
-
this.handleOnMounted()
|
|
108
|
-
},
|
|
109
|
-
|
|
110
|
-
beforeDestroy() {
|
|
111
|
-
this.unregisterFromRefList()
|
|
112
|
-
},
|
|
113
|
-
methods: {
|
|
114
|
-
submitFile(rows, fileInfos) {
|
|
115
|
-
// this.handlLineCode(fileInfos);
|
|
116
|
-
let eventParamNames = ['attachments', 'fileInfos'];
|
|
117
|
-
let eventParamValues = [rows, fileInfos];
|
|
118
|
-
this.handleCustomEvent(this.field.options.onAfterConfirmFile, eventParamNames, eventParamValues)
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
</script>
|
|
123
|
-
|
|
124
|
-
<style lang="scss" scoped>
|
|
125
|
-
@import "~@/styles/global.scss"; //* form-item-wrapper已引入,还需要重复引入吗? *//
|
|
126
|
-
|
|
127
|
-
.full-width-input {
|
|
128
|
-
width: 100% !important;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.hideUploadDiv {
|
|
132
|
-
::v-deep div.el-upload--picture-card { /* 隐藏最后的图片上传按钮 */
|
|
133
|
-
display: none;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
::v-deep div.el-upload--text { /* 隐藏最后的文件上传按钮 */
|
|
137
|
-
display: none;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
::v-deep div.el-upload__tip { /* 隐藏最后的文件上传按钮提示 */
|
|
141
|
-
display: none;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<form-item-wrapper :designer="designer" :field="field" :rules="rules" :design-state="designState"
|
|
3
|
+
:parent-widget="parentWidget" :parent-list="parentList" :index-of-parent-list="indexOfParentList"
|
|
4
|
+
:sub-form-row-index="subFormRowIndex" :sub-form-col-index="subFormColIndex"
|
|
5
|
+
:sub-form-row-id="subFormRowId">
|
|
6
|
+
<div id="uploadImage" class="upload-img" v-if="designState">
|
|
7
|
+
<div class="el-upload el-upload--picture" style="vertical-align: middle;display: inline-block;float:left">
|
|
8
|
+
<button type="button" class=" avatar-uploader">
|
|
9
|
+
<i class="el-icon-plus avatar-uploader-icon"></i>
|
|
10
|
+
</button>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
<baseUpload accept="file" :file.sync="fieldModel" :hidePasteArea.sync="isH5"
|
|
14
|
+
:uploadDialogCustomClass="isH5?'dialog-upload-h5':null" :pickPrivateProfile="false"
|
|
15
|
+
:multi="field.options.limit!==1"
|
|
16
|
+
:limit="field.options.limit"
|
|
17
|
+
resultType="Array"
|
|
18
|
+
:edit="!field.options.disabled && !isReadMode"
|
|
19
|
+
@callback="submitFile"
|
|
20
|
+
:hideInfo="field.options.hideFileInfo"
|
|
21
|
+
:hideName="field.options.hideFileName"
|
|
22
|
+
:showSize="!!field.options.showFileSize"
|
|
23
|
+
:createBy="!!field.options.showFileCreateBy"
|
|
24
|
+
:createDate="!!field.options.showFileCreateDate"
|
|
25
|
+
:widgetSize="field.options.fileShowImageSize"
|
|
26
|
+
v-else></baseUpload>
|
|
27
|
+
</form-item-wrapper>
|
|
28
|
+
</template>
|
|
29
|
+
|
|
30
|
+
<script>
|
|
31
|
+
import FormItemWrapper from './form-item-wrapper'
|
|
32
|
+
import emitter from '../../../../../components/xform/utils/emitter'
|
|
33
|
+
import i18n from "../../../../../components/xform/utils/i18n";
|
|
34
|
+
import fieldMixin from "../../../../../components/xform/form-designer/form-widget/field-widget/fieldMixin";
|
|
35
|
+
|
|
36
|
+
export default {
|
|
37
|
+
name: "singleUpload-widget",
|
|
38
|
+
componentName: 'FieldWidget', //必须固定为FieldWidget,用于接收父级组件的broadcast事件
|
|
39
|
+
mixins: [emitter, fieldMixin, i18n],
|
|
40
|
+
props: {
|
|
41
|
+
field: Object,
|
|
42
|
+
parentWidget: Object,
|
|
43
|
+
parentList: Array,
|
|
44
|
+
indexOfParentList: Number,
|
|
45
|
+
designer: Object,
|
|
46
|
+
|
|
47
|
+
designState: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: false
|
|
50
|
+
},
|
|
51
|
+
|
|
52
|
+
subFormRowIndex: { /* 子表单组件行索引,从0开始计数 */
|
|
53
|
+
type: Number,
|
|
54
|
+
default: -1
|
|
55
|
+
},
|
|
56
|
+
subFormColIndex: { /* 子表单组件列索引,从0开始计数 */
|
|
57
|
+
type: Number,
|
|
58
|
+
default: -1
|
|
59
|
+
},
|
|
60
|
+
subFormRowId: { /* 子表单组件行Id,唯一id且不可变 */
|
|
61
|
+
type: String,
|
|
62
|
+
default: ''
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
components: {
|
|
66
|
+
FormItemWrapper,
|
|
67
|
+
},
|
|
68
|
+
inject: ['refList', 'globalOptionData', 'globalModel', 'getFormConfig'],
|
|
69
|
+
data() {
|
|
70
|
+
return {
|
|
71
|
+
oldFieldValue: [], //field组件change之前的值
|
|
72
|
+
fieldModel: [],
|
|
73
|
+
rules: [],
|
|
74
|
+
isH5: false
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
watch: {
|
|
78
|
+
fieldModel(val) {
|
|
79
|
+
this.handleChangeEvent(val);
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
computed: {
|
|
83
|
+
formDataId() {
|
|
84
|
+
let formRef = this.getFormRef();
|
|
85
|
+
return formRef.dataId;
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
beforeCreate() {
|
|
89
|
+
/* 这里不能访问方法和属性!! */
|
|
90
|
+
},
|
|
91
|
+
|
|
92
|
+
created() {
|
|
93
|
+
/* 注意:子组件mounted在父组件created之后、父组件mounted之前触发,故子组件mounted需要用到的prop
|
|
94
|
+
需要在父组件created中初始化!! */
|
|
95
|
+
|
|
96
|
+
this.isH5 = this.getFormConfig().layoutType === 'H5';
|
|
97
|
+
|
|
98
|
+
this.initFieldModel()
|
|
99
|
+
this.registerToRefList()
|
|
100
|
+
this.initEventHandler()
|
|
101
|
+
this.buildFieldRules()
|
|
102
|
+
|
|
103
|
+
this.handleOnCreated()
|
|
104
|
+
},
|
|
105
|
+
|
|
106
|
+
mounted() {
|
|
107
|
+
this.handleOnMounted()
|
|
108
|
+
},
|
|
109
|
+
|
|
110
|
+
beforeDestroy() {
|
|
111
|
+
this.unregisterFromRefList()
|
|
112
|
+
},
|
|
113
|
+
methods: {
|
|
114
|
+
submitFile(rows, fileInfos) {
|
|
115
|
+
// this.handlLineCode(fileInfos);
|
|
116
|
+
let eventParamNames = ['attachments', 'fileInfos'];
|
|
117
|
+
let eventParamValues = [rows, fileInfos];
|
|
118
|
+
this.handleCustomEvent(this.field.options.onAfterConfirmFile, eventParamNames, eventParamValues)
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
</script>
|
|
123
|
+
|
|
124
|
+
<style lang="scss" scoped>
|
|
125
|
+
@import "~@/styles/global.scss"; //* form-item-wrapper已引入,还需要重复引入吗? *//
|
|
126
|
+
|
|
127
|
+
.full-width-input {
|
|
128
|
+
width: 100% !important;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.hideUploadDiv {
|
|
132
|
+
::v-deep div.el-upload--picture-card { /* 隐藏最后的图片上传按钮 */
|
|
133
|
+
display: none;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
::v-deep div.el-upload--text { /* 隐藏最后的文件上传按钮 */
|
|
137
|
+
display: none;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
::v-deep div.el-upload__tip { /* 隐藏最后的文件上传按钮提示 */
|
|
141
|
+
display: none;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
</style>
|