cloud-web-corejs 1.1.0-dev.74 → 1.1.0-dev.76
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/Qrcode/fileParse.vue +4 -4
- package/src/components/Tinymce/dynamicLoadScript.js +4 -4
- package/src/components/Tinymce/index.vue +1 -1
- package/src/components/VabUpload/fileLibraryDialog.vue +18 -18
- package/src/components/VabUpload/image-viewer.vue +2 -2
- package/src/components/VabUpload/mixins/fileLibraryDialog.js +12 -12
- package/src/components/VabUpload/mixins.js +1 -3
- package/src/components/VabUpload/privateProfileDialog.vue +18 -18
- package/src/components/VabUpload/privateProfileDialogMixins.js +12 -12
- package/src/components/VabUpload/view.vue +1 -1
- package/src/components/base-textarea/index.vue +2 -4
- package/src/components/baseArea/index.vue +8 -8
- package/src/components/baseAutocomplete/index.vue +1 -1
- package/src/components/bizTab/BizTabListPage.vue +69 -71
- package/src/components/code-editor/async.js +3 -1
- package/src/components/excelExport/mixins.js +1 -1
- package/src/components/extendedProperties/view.vue +4 -5
- package/src/components/fileLibrary/fileObjAuthEdit.vue +1 -1
- package/src/components/fileLibrary/fileObjAuthEditDialog.vue +3 -5
- package/src/components/fileLibrary/filterDialog.vue +2 -2
- package/src/components/fileLibrary/index.vue +13 -13
- package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +2 -2
- package/src/components/fileLibrary/mixins/indexMixins.js +4 -4
- package/src/components/fileLibrary/mixins/recycleBinDialogMixins.js +1 -1
- package/src/components/fileLibrary/propertiesDialog.vue +1 -1
- package/src/components/fileLibrary/recycleBinDialog.vue +2 -2
- package/src/components/fileLibrary/recycleBinPropertiesDialog.vue +1 -2
- package/src/components/formDialog/index.vue +1 -1
- package/src/components/formDrawer/drawer.vue +1 -1
- package/src/components/hiprint/etypes/default-etyps-provider.js +22 -22
- package/src/components/hiprint/hiprint.config.js +29 -29
- package/src/components/hiprint/view/design/dialog.vue +3 -4
- package/src/components/hiprint/view/design/font-size.js +2 -2
- package/src/components/hiprint/view/design/index.vue +27 -29
- package/src/components/hiprint/view/design/mixins.js +22 -22
- package/src/components/hiprint/view/design/preview.vue +9 -10
- package/src/components/hiprint/view/design/scale.js +1 -1
- package/src/components/hiprint/view/json-view.vue +6 -6
- package/src/components/jsonImport/exportDialog.vue +2 -2
- package/src/components/langImport/index.vue +1 -2
- package/src/components/luckysheet/dialog.vue +1 -1
- package/src/components/luckysheet/loadResources.js +5 -5
- package/src/components/luckysheet/view.vue +3 -3
- package/src/components/mobile/buttonGroup/index.vue +3 -4
- package/src/components/mobile/file/index.vue +7 -7
- package/src/components/mobile/oplogTable/index.vue +4 -4
- package/src/components/mobile/searchDialog/index.vue +3 -4
- package/src/components/mobile/wf/addTaskUserdialog.vue +18 -19
- package/src/components/mobile/wf/content.vue +14 -14
- package/src/components/mobile/wf/deleteTaskUserDialog.vue +5 -5
- package/src/components/mobile/wf/mixins/wfStartDialogMixin.js +1 -1
- package/src/components/mobile/wf/selectUserDialog.vue +13 -13
- package/src/components/mobile/wf/setCandidateDialog.vue +5 -6
- package/src/components/mobile/wf/urgingDialog.vue +4 -4
- package/src/components/mobile/wf/wfStartDialog.vue +2 -2
- package/src/components/obsUpload/mixins.js +7 -9
- package/src/components/onlineTalk/index.vue +21 -24
- package/src/components/onlineTalk/mixins.js +3 -3
- package/src/components/table/vxeFilter/FilterComplex.vue +6 -6
- package/src/components/table/vxeFilter/FilterInput.vue +1 -1
- package/src/components/wf/addTaskUserdialog.vue +1 -1
- package/src/components/wf/content.vue +8 -10
- package/src/components/wf/content2.vue +58 -77
- package/src/components/wf/formIframeDialog.vue +1 -1
- package/src/components/wf/index.vue +1 -1
- package/src/components/wf/wf.js +18 -5
- package/src/components/xform/docs//345/270/270/347/224/250/350/204/232/346/234/254/350/260/203/347/224/250.md +209 -0
- package/src/components/xform/docs//347/272/247/350/201/224/351/200/211/346/213/251/346/207/222/345/212/240/350/275/275/344/275/277/347/224/250/350/257/264/346/230/216.md +177 -0
- package/src/components/xform/form-designer/designer.js +20 -20
- package/src/components/xform/form-designer/form-widget/components/gantt/index.vue +74 -76
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +2 -2
- package/src/components/xform/form-designer/form-widget/container-widget/detail-temp-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/container-widget/list-h5-widget.vue +6 -6
- package/src/components/xform/form-designer/form-widget/dialog/baseFormulaDialog copy.vue +1 -1
- package/src/components/xform/form-designer/form-widget/dialog/baseFormulaDialog.vue +1 -1
- package/src/components/xform/form-designer/form-widget/dialog/formFieldDialog.vue +5 -5
- package/src/components/xform/form-designer/form-widget/dialog/formulaDialog.vue +2 -2
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +2 -2
- package/src/components/xform/form-designer/form-widget/dialog/treeMoveDialog.vue +4 -6
- package/src/components/xform/form-designer/form-widget/dialog/vabSearchDialog.vue +3 -3
- package/src/components/xform/form-designer/form-widget/field-widget/area-select-widget.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/autocomplete-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/cascader-widget.vue +349 -10
- package/src/components/xform/form-designer/form-widget/field-widget/copy_button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +6 -0
- package/src/components/xform/form-designer/form-widget/field-widget/gantt-widget.vue +176 -176
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/date-limit-mixin.js +3 -3
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/relativeDateUtil.js +4 -4
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/time-limit-mixin.js +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/row-col-select-widget.vue +4 -4
- package/src/components/xform/form-designer/form-widget/field-widget/script-input-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/tempStorage-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/time-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload2-widget.vue +8 -8
- package/src/components/xform/form-designer/form-widget/field-widget/vue-page-widget.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/action-button-config-dialog.vue +21 -21
- package/src/components/xform/form-designer/setting-panel/dataSource-setting.vue +46 -46
- package/src/components/xform/form-designer/setting-panel/form-dynamicField-setting.vue +62 -66
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +53 -61
- package/src/components/xform/form-designer/setting-panel/indexMixin.js +50 -0
- package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +9 -9
- package/src/components/xform/form-designer/setting-panel/property-editor/censusItems-editor.vue +6 -6
- package/src/components/xform/form-designer/setting-panel/property-editor/colorClass-editor.vue +4 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/condition-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +99 -116
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/edit-tree-button-group-config-dialog.vue +17 -17
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/exportItemColumns-dialog.vue +14 -14
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +80 -80
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +1 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail-plain/detail-plain-editor.vue +1 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +14 -16
- package/src/components/xform/form-designer/setting-panel/property-editor/container-table/table-dynamicField-editor.vue +39 -56
- package/src/components/xform/form-designer/setting-panel/property-editor/container-table/table-fullWidth-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tree/tree-customClass-editor.vue +6 -6
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tree-pane/tree-pane-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/copyButton-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/descriptionsItems-editor.vue +8 -8
- package/src/components/xform/form-designer/setting-panel/property-editor/downloadButtonFlag-editor.vue +4 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/dropdownFlag-editor.vue +11 -12
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClear-editor.vue +30 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onLazyLoad-editor.vue +34 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-accessUrl/accessUrl-editor.vue +7 -7
- package/src/components/xform/form-designer/setting-panel/property-editor/field-autocomplete/autocomplete-vabSearchName-editor.vue +22 -22
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/addTableData-event-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/clickBindActions.js +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/clickBindEvent-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/form-host-event-editor.vue +40 -40
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +24 -24
- package/src/components/xform/form-designer/setting-panel/property-editor/field-cascader/cascader-lazy-editor.vue +99 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-common/keyName-editor.vue +6 -6
- package/src/components/xform/form-designer/setting-panel/property-editor/field-common/keyNameEnabled-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-dateLimit-editor.vue +11 -11
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-format-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-format-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +15 -15
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +15 -15
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +25 -25
- package/src/components/xform/form-designer/setting-panel/property-editor/field-gantt/gantt-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +28 -31
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +41 -50
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +4 -5
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +4 -5
- package/src/components/xform/form-designer/setting-panel/property-editor/field-script/script-editor.vue +24 -24
- package/src/components/xform/form-designer/setting-panel/property-editor/field-script-input/script-input-editor.vue +7 -7
- package/src/components/xform/form-designer/setting-panel/property-editor/field-status/field-status-editor.vue +24 -24
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-button-editor.vue +4 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-item-button-editor.vue +19 -21
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +13 -14
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time/time-format-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time/time-timeLimit-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time-range/time-range-format-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchField-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchName-editor.vue +6 -6
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabsearchConfigDialog.vue +9 -9
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload2/field-vabUpload2-editor.vue +5 -5
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vue-page/vue-page-editor.vue +5 -5
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +6 -6
- package/src/components/xform/form-designer/setting-panel/property-editor/formatType-editor.vue +9 -9
- 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/iconClass-editor.vue +8 -8
- package/src/components/xform/form-designer/setting-panel/property-editor/labelColor-editor.vue +5 -5
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/listItems-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/oplog-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +25 -25
- package/src/components/xform/form-designer/setting-panel/property-editor/relative-default-block.vue +14 -15
- package/src/components/xform/form-designer/setting-panel/property-editor/showRuleFlag-editor.vue +5 -5
- package/src/components/xform/form-designer/setting-panel/property-editor/showText-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/tempStorage-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +11 -11
- package/src/components/xform/form-designer/setting-panel/property-editor/urlValueEnabled-editor.vue +2 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/utcTransformEnabled-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +23 -23
- package/src/components/xform/form-designer/setting-panel/property-editor/widgetShowRuleFlag-editor.vue +9 -9
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +3 -0
- package/src/components/xform/form-designer/setting-panel/wfObjConfigDialog.vue +1 -1
- package/src/components/xform/form-designer/toolbar-panel/index.vue +3 -4
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +7 -0
- package/src/components/xform/form-render/container-item/data-table-item.vue +10 -10
- package/src/components/xform/form-render/container-item/data-table-mixin.js +34 -34
- package/src/components/xform/form-render/container-item/detail-item.vue +2 -2
- package/src/components/xform/form-render/container-item/detail-temp-item.vue +1 -1
- package/src/components/xform/form-render/container-item/list-h5-item.vue +13 -13
- package/src/components/xform/form-render/fieldControlEngine.js +17 -17
- package/src/components/xform/form-render/fieldControlMixin.js +14 -14
- package/src/components/xform/form-render/index.vue +2 -2
- package/src/components/xform/form-render/indexMixin.js +21 -21
- package/src/components/xform/mixins/defaultHandle.js +1 -1
- package/src/components/xform/mixins/scriptHttp.js +1 -1
- package/src/components/xform/utils/dynamicSchemaUtil.js +1 -1
- package/src/components/xform/utils/formHttp.js +1 -1
- package/src/components/xform/utils/treeTableUtil.js +44 -44
- package/src/layout/components/createCompany/createCompanyDialog.vue +2 -2
- package/src/layout/components/extractedCode/createDialog.vue +1 -1
- package/src/layout/components/langTool.vue +1 -1
- package/src/utils/vab.js +4 -0
- package/src/views/user/api_request/list.vue +6 -6
- package/src/views/user/area/dialog.vue +1 -1
- package/src/views/user/area/list.vue +1 -1
- package/src/views/user/bill_setting/render.vue +2 -2
- package/src/views/user/error-page/401.vue +9 -9
- package/src/views/user/form/form_ins_list/edit.vue +17 -17
- package/src/views/user/form/form_template/dialog.vue +12 -12
- package/src/views/user/form/form_template/edit.vue +10 -10
- package/src/views/user/form/form_template/itemEdit.vue +18 -18
- package/src/views/user/form/form_template/itemList.vue +13 -13
- package/src/views/user/form/form_template/list.vue +25 -25
- package/src/views/user/form/form_template_field/dialog.vue +3 -3
- package/src/views/user/form/form_type/dialog.vue +5 -5
- package/src/views/user/form/form_type/edit.vue +2 -2
- package/src/views/user/form/form_type/editDialog.vue +3 -3
- package/src/views/user/form/form_type/list.vue +5 -5
- package/src/views/user/form/report_requestaccess/dialog.vue +12 -12
- package/src/views/user/form/report_requestaccess/edit.vue +54 -54
- package/src/views/user/form/report_requestaccess/list.vue +15 -15
- package/src/views/user/form/vform/designer.vue +37 -37
- package/src/views/user/form/vform/render.vue +1 -1
- package/src/views/user/form/view/list.vue +4 -4
- package/src/views/user/home/wjl/content.vue +2 -2
- package/src/views/user/login/default.vue +1 -1
- package/src/views/user/login/indexMixin.js +1 -1
- package/src/views/user/outLink/form_view.vue +1 -1
- package/src/views/user/outLink/index.vue +1 -1
- package/src/views/user/outLink/view.vue +1 -1
- package/src/views/user/push_setting/list.vue +20 -20
- package/src/views/user/request_setting/list.vue +18 -18
- package/src/views/user/sale_org/list.vue +1 -1
- package/src/views/user/sale_org/moveDialog.vue +8 -8
- package/src/views/user/user/edit.vue +3 -3
- package/src/views/user/user/form_list.vue +6 -6
- package/src/views/user/user/info.vue +2 -2
- package/src/views/user/user/infoEdit.vue +1 -1
- package/src/views/user/user/list.vue +1 -1
- package/src/views/user/wf/iframe/index.vue +1 -1
- package/src/views/user/wf/iframe/index2.vue +1 -1
- package/src/views/user/wf/wfReport/index.vue +18 -18
- package/src/views/user/wf/wf_manage/list.vue +1 -1
- package/src/views/user/wf/wf_manage/list2.vue +1 -1
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +93 -93
- package/src/views/user/wf/wf_obj_config/dialog.vue +1 -1
- package/src/views/user/wf/wf_obj_config/importItemDialog.vue +4 -4
- package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +3 -3
- package/src/views/user/wf/wf_work_calendar/components/calendar.vue +2 -8
- package/src/views/user/wf/wf_work_calendar/components/calendar2.vue +2 -8
|
@@ -1,59 +1,58 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<baseTabPane label="流程信息" :showFold="showWfFold" :defaultShowContent="showWfContent">
|
|
2
|
+
<baseTabPane :label="$t1('流程信息')" :showFold="showWfFold" :defaultShowContent="showWfContent">
|
|
3
3
|
<template #default>
|
|
4
4
|
<div class="title-name">
|
|
5
5
|
<b>
|
|
6
|
-
<em
|
|
6
|
+
<em>{{ $t1('流程主题:') }}</em>
|
|
7
7
|
{{ (wfInfo.createDate ? wfInfo.createDate.substring(0, 10) : '') + wfInfo.name }}
|
|
8
8
|
</b>
|
|
9
9
|
<span v-html="wfInfo.statusStr" class="status"></span>
|
|
10
10
|
</div>
|
|
11
11
|
|
|
12
12
|
<div class="title-second" @click="showOpeaImg = !showOpeaImg"
|
|
13
|
-
style="margin: 14px 0 24px;line-height: 29px;cursor: pointer;"><b
|
|
13
|
+
style="margin: 14px 0 24px;line-height: 29px;cursor: pointer;"><b>{{ $t1('流程操作') }}</b>
|
|
14
14
|
<div class="fr" v-if="showOpeaImg == true" style="font-weight: 400;">
|
|
15
|
-
<span
|
|
15
|
+
<span>{{ $t1('收起') }}</span>
|
|
16
16
|
<i class="el-icon-arrow-up"></i>
|
|
17
17
|
</div>
|
|
18
18
|
<div class="fr" v-else style="font-weight: 400;">
|
|
19
|
-
<span
|
|
19
|
+
<span>{{ $t1('展开') }}</span>
|
|
20
20
|
<i class="el-icon-arrow-down"></i>
|
|
21
21
|
</div>
|
|
22
22
|
</div>
|
|
23
23
|
<div v-show="showOpeaImg == true">
|
|
24
24
|
<div class="flow-btn-opeaBtn" ref="opeaBtn">
|
|
25
25
|
<el-button type="primary" class="btn" :class="{on:operateType == 'submit'}" @click="openAgreeDialog('submit')"
|
|
26
|
-
v-show="wfInfo.toSubmit"
|
|
26
|
+
v-show="wfInfo.toSubmit">{{ $t1('通过') }}
|
|
27
27
|
</el-button>
|
|
28
28
|
<el-button type="primary" class="btn" :class="{on:operateType == 'interrupt'}"
|
|
29
|
-
@click="openManualDialog(null)" v-show="wfInfo.toInterrupt"
|
|
29
|
+
@click="openManualDialog(null)" v-show="wfInfo.toInterrupt">{{ $t1('中断') }}
|
|
30
30
|
</el-button>
|
|
31
31
|
<el-button type="primary" class="btn" :class="{on:operateType == 'reject'}"
|
|
32
|
-
@click="rejectWfTask('reject')" v-show="wfInfo.toReject"
|
|
32
|
+
@click="rejectWfTask('reject')" v-show="wfInfo.toReject">{{ $t1('驳回') }}
|
|
33
33
|
</el-button>
|
|
34
34
|
<el-button type="primary" class="btn" :class="{on:operateType == 'transfer'}"
|
|
35
|
-
@click="openChangeWfForm('transfer')" v-show="transferEnabled && wfInfo.toSubmit"
|
|
35
|
+
@click="openChangeWfForm('transfer')" v-show="transferEnabled && wfInfo.toSubmit">{{ $t1('转办') }}
|
|
36
36
|
</el-button>
|
|
37
37
|
<el-button type="primary" class="btn" :class="{on:operateType == 'urging'}"
|
|
38
|
-
@click="openUrgingDialog(null)" v-show="wfInfo.toInterrupt"
|
|
38
|
+
@click="openUrgingDialog(null)" v-show="wfInfo.toInterrupt">{{ $t1('催办') }}
|
|
39
39
|
</el-button>
|
|
40
40
|
<el-button type="primary" class="btn" :class="{on:operateType == 'addIncreaseSign'}"
|
|
41
41
|
@click="openAddIncreaseSign('addIncreaseSign')"
|
|
42
|
-
v-show="increaseSignEnabled && wfInfo.toAddIncreaseSign"
|
|
42
|
+
v-show="increaseSignEnabled && wfInfo.toAddIncreaseSign">{{ $t1('加签') }}
|
|
43
43
|
</el-button>
|
|
44
44
|
<el-button type="primary" class="btn" :class="{on:operateType == 'deleteIncreaseSign'}"
|
|
45
45
|
@click="openDeleteTaskUserDialog(null)"
|
|
46
|
-
v-show="increaseSignEnabled && wfInfo.toDeleteIncreaseSign">
|
|
47
|
-
减签
|
|
46
|
+
v-show="increaseSignEnabled && wfInfo.toDeleteIncreaseSign">{{ $t1('减签') }}
|
|
48
47
|
</el-button>
|
|
49
48
|
<el-button type="primary" class="btn" :class="{on:operateType == 'setCandidate'}"
|
|
50
|
-
@click="openSetCandidateDialog(null)" v-show="wfInfo.toSetCandidate"
|
|
49
|
+
@click="openSetCandidateDialog(null)" v-show="wfInfo.toSetCandidate">{{ $t1('候选人') }}
|
|
51
50
|
</el-button>
|
|
52
51
|
<el-button type="primary" class="btn" :class="{on:operateType == 'revoke'}"
|
|
53
|
-
@click="openRevokeDialog('revoke')" v-show="wfInfo.toRevoke"
|
|
52
|
+
@click="openRevokeDialog('revoke')" v-show="wfInfo.toRevoke">{{ $t1('撤回') }}
|
|
54
53
|
</el-button>
|
|
55
54
|
<el-button type="primary" class="btn" :class="{on:operateType == 'talk'}"
|
|
56
|
-
@click="openTalkDialog(null,null,'talk')" v-if="toTalk && wfInfo.stat!=2"
|
|
55
|
+
@click="openTalkDialog(null,null,'talk')" v-if="toTalk && wfInfo.stat!=2">{{ $t1('沟通') }}
|
|
57
56
|
</el-button>
|
|
58
57
|
</div>
|
|
59
58
|
<template v-if="operateType == 'submit'">
|
|
@@ -63,13 +62,12 @@
|
|
|
63
62
|
<tbody>
|
|
64
63
|
<tr v-if="agreeNodes.length>0">
|
|
65
64
|
<th>
|
|
66
|
-
<span class="t">
|
|
67
|
-
通过节点
|
|
65
|
+
<span class="t">{{ $t1('通过节点') }}
|
|
68
66
|
</span>
|
|
69
67
|
</th>
|
|
70
68
|
<td>
|
|
71
69
|
<el-form-item label="" field="nodeId">
|
|
72
|
-
<el-select v-model="agreeForm.nodeId" placeholder="请选择通过节点">
|
|
70
|
+
<el-select v-model="agreeForm.nodeId" :placeholder="$t1('请选择通过节点')">
|
|
73
71
|
<el-option v-for="(node,index) in agreeNodes" :key="index" :label="node.nodeName"
|
|
74
72
|
:value="node.nodeId"></el-option>
|
|
75
73
|
</el-select>
|
|
@@ -78,16 +76,12 @@
|
|
|
78
76
|
</tr>
|
|
79
77
|
<tr>
|
|
80
78
|
<th>
|
|
81
|
-
<span class="t">
|
|
82
|
-
通过意见
|
|
79
|
+
<span class="t">{{ $t1('通过意见') }}
|
|
83
80
|
</span>
|
|
84
81
|
</th>
|
|
85
82
|
<td colspan="3">
|
|
86
83
|
<el-form-item label="" field="opinion">
|
|
87
|
-
<el-input type="textarea" :rows="8" placeholder="
|
|
88
|
-
注:
|
|
89
|
-
通过默认意见为“同意”
|
|
90
|
-
" v-model="agreeForm.opinion"></el-input>
|
|
84
|
+
<el-input type="textarea" :rows="8" :placeholder="$t1('请填写您的意见~\n 注:\n 通过默认意见为“同意”\n ')" v-model="agreeForm.opinion"></el-input>
|
|
91
85
|
</el-form-item>
|
|
92
86
|
</td>
|
|
93
87
|
</tr>
|
|
@@ -114,33 +108,31 @@
|
|
|
114
108
|
<tbody>
|
|
115
109
|
<tr>
|
|
116
110
|
<th>
|
|
117
|
-
<span class="t">
|
|
118
|
-
驳回节点
|
|
111
|
+
<span class="t">{{ $t1('驳回节点') }}
|
|
119
112
|
</span>
|
|
120
113
|
</th>
|
|
121
114
|
<td colspan="5">
|
|
122
115
|
<el-form-item label="" field="nodeId">
|
|
123
|
-
<el-select v-model="rejectForm.nodeId" placeholder="请选择驳回节点">
|
|
116
|
+
<el-select v-model="rejectForm.nodeId" :placeholder="$t1('请选择驳回节点')">
|
|
124
117
|
<el-option v-for="(rejectNode,index) in rejectNodes" :key="index" :label="rejectNode.nodeName"
|
|
125
118
|
:value="rejectNode.nodeId"></el-option>
|
|
126
119
|
</el-select>
|
|
127
120
|
<el-radio-group v-if="wfInfo.toRejectNode == false" v-model="rejectForm.rejectSubmitModel"
|
|
128
121
|
style="margin-left: 10px;">
|
|
129
|
-
<el-radio :label="1"
|
|
130
|
-
<el-radio :label="2"
|
|
122
|
+
<el-radio :label="1">{{ $t1('驳回的节点提交顺延下一步') }}</el-radio>
|
|
123
|
+
<el-radio :label="2">{{ $t1('驳回的节点提交回本节点') }}</el-radio>
|
|
131
124
|
</el-radio-group>
|
|
132
125
|
</el-form-item>
|
|
133
126
|
</td>
|
|
134
127
|
</tr>
|
|
135
128
|
<tr>
|
|
136
129
|
<th>
|
|
137
|
-
<span class="t">
|
|
138
|
-
驳回意见
|
|
130
|
+
<span class="t">{{ $t1('驳回意见') }}
|
|
139
131
|
</span>
|
|
140
132
|
</th>
|
|
141
133
|
<td colspan="5">
|
|
142
134
|
<el-form-item label="" field="opinion">
|
|
143
|
-
<el-input type="textarea" :rows="8" placeholder="请输入内容" v-model="rejectForm.opinion"></el-input>
|
|
135
|
+
<el-input type="textarea" :rows="8" :placeholder="$t1('请输入内容')" v-model="rejectForm.opinion"></el-input>
|
|
144
136
|
</el-form-item>
|
|
145
137
|
</td>
|
|
146
138
|
</tr>
|
|
@@ -165,8 +157,7 @@
|
|
|
165
157
|
<tbody>
|
|
166
158
|
<tr>
|
|
167
159
|
<th>
|
|
168
|
-
<span class="t">
|
|
169
|
-
转办人
|
|
160
|
+
<span class="t">{{ $t1('转办人') }}
|
|
170
161
|
</span>
|
|
171
162
|
</th>
|
|
172
163
|
<td>
|
|
@@ -190,13 +181,12 @@
|
|
|
190
181
|
</tr>
|
|
191
182
|
<tr>
|
|
192
183
|
<th>
|
|
193
|
-
<span class="t">
|
|
194
|
-
转办意见
|
|
184
|
+
<span class="t">{{ $t1('转办意见') }}
|
|
195
185
|
</span>
|
|
196
186
|
</th>
|
|
197
187
|
<td colspan="3">
|
|
198
188
|
<el-form-item label="" field="opinion">
|
|
199
|
-
<el-input type="textarea" :rows="8" placeholder="请输入内容" v-model="changeWfForm.opinion"></el-input>
|
|
189
|
+
<el-input type="textarea" :rows="8" :placeholder="$t1('请输入内容')" v-model="changeWfForm.opinion"></el-input>
|
|
200
190
|
</el-form-item>
|
|
201
191
|
</td>
|
|
202
192
|
</tr>
|
|
@@ -224,8 +214,7 @@
|
|
|
224
214
|
<tbody>
|
|
225
215
|
<tr>
|
|
226
216
|
<th>
|
|
227
|
-
<span class="t">
|
|
228
|
-
候选人
|
|
217
|
+
<span class="t">{{ $t1('候选人') }}
|
|
229
218
|
</span>
|
|
230
219
|
</th>
|
|
231
220
|
<td>
|
|
@@ -238,7 +227,7 @@
|
|
|
238
227
|
addIncreaseSignUsers = [];
|
|
239
228
|
$forceUpdate();
|
|
240
229
|
"
|
|
241
|
-
placeholder="候选人"
|
|
230
|
+
:placeholder="$t1('候选人')"
|
|
242
231
|
v-el-readonly
|
|
243
232
|
clearable
|
|
244
233
|
>
|
|
@@ -250,13 +239,12 @@
|
|
|
250
239
|
</tr>
|
|
251
240
|
<tr>
|
|
252
241
|
<th>
|
|
253
|
-
<span class="t">
|
|
254
|
-
加签意见
|
|
242
|
+
<span class="t">{{ $t1('加签意见') }}
|
|
255
243
|
</span>
|
|
256
244
|
</th>
|
|
257
245
|
<td colspan="3">
|
|
258
246
|
<el-form-item field="opinion">
|
|
259
|
-
<el-input type="textarea" :rows="8" placeholder="请输入内容"
|
|
247
|
+
<el-input type="textarea" :rows="8" :placeholder="$t1('请输入内容')"
|
|
260
248
|
v-model="addIncreaseSignForm.opinion"></el-input>
|
|
261
249
|
</el-form-item>
|
|
262
250
|
</td>
|
|
@@ -285,13 +273,12 @@
|
|
|
285
273
|
<tbody>
|
|
286
274
|
<tr>
|
|
287
275
|
<th>
|
|
288
|
-
<span class="t">
|
|
289
|
-
撤回意见
|
|
276
|
+
<span class="t">{{ $t1('撤回意见') }}
|
|
290
277
|
</span>
|
|
291
278
|
</th>
|
|
292
279
|
<td colspan="5">
|
|
293
280
|
<el-form-item label="" field="opinion">
|
|
294
|
-
<el-input type="textarea" :rows="8" placeholder="请输入内容" v-model="revokeForm.opinion"></el-input>
|
|
281
|
+
<el-input type="textarea" :rows="8" :placeholder="$t1('请输入内容')" v-model="revokeForm.opinion"></el-input>
|
|
295
282
|
</el-form-item>
|
|
296
283
|
</td>
|
|
297
284
|
</tr>
|
|
@@ -316,8 +303,7 @@
|
|
|
316
303
|
<tbody>
|
|
317
304
|
<tr>
|
|
318
305
|
<th>
|
|
319
|
-
<span class="t">
|
|
320
|
-
接收人
|
|
306
|
+
<span class="t">{{ $t1('接收人') }}
|
|
321
307
|
</span>
|
|
322
308
|
</th>
|
|
323
309
|
<td>
|
|
@@ -330,7 +316,7 @@
|
|
|
330
316
|
changeWfForm.receiver = null;
|
|
331
317
|
$forceUpdate();
|
|
332
318
|
"
|
|
333
|
-
placeholder="接收人"
|
|
319
|
+
:placeholder="$t1('接收人')"
|
|
334
320
|
v-el-readonly
|
|
335
321
|
clearable
|
|
336
322
|
>
|
|
@@ -347,20 +333,18 @@
|
|
|
347
333
|
</tr>
|
|
348
334
|
<tr>
|
|
349
335
|
<th>
|
|
350
|
-
<span class="t">
|
|
351
|
-
沟通内容
|
|
336
|
+
<span class="t">{{ $t1('沟通内容') }}
|
|
352
337
|
</span>
|
|
353
338
|
</th>
|
|
354
339
|
<td colspan="3">
|
|
355
340
|
<el-form-item field="content">
|
|
356
|
-
<el-input type="textarea" :rows="8" placeholder="请输入内容" v-model="talkForm.content"></el-input>
|
|
341
|
+
<el-input type="textarea" :rows="8" :placeholder="$t1('请输入内容')" v-model="talkForm.content"></el-input>
|
|
357
342
|
</el-form-item>
|
|
358
343
|
</td>
|
|
359
344
|
</tr>
|
|
360
345
|
<tr>
|
|
361
346
|
<th>
|
|
362
|
-
<span class="t">
|
|
363
|
-
沟通资料
|
|
347
|
+
<span class="t">{{ $t1('沟通资料') }}
|
|
364
348
|
</span>
|
|
365
349
|
</th>
|
|
366
350
|
<td colspan="7">
|
|
@@ -384,20 +368,20 @@
|
|
|
384
368
|
</div>
|
|
385
369
|
|
|
386
370
|
<div class="title-second" @click="showFlowImg = !showFlowImg"
|
|
387
|
-
style="margin: 14px 0 24px;line-height: 29px;cursor: pointer;"><b
|
|
371
|
+
style="margin: 14px 0 24px;line-height: 29px;cursor: pointer;"><b>{{ $t1('流程图') }}</b>
|
|
388
372
|
<div class="fr" v-if="showFlowImg == true" style="font-weight: 400;">
|
|
389
|
-
<span
|
|
373
|
+
<span>{{ $t1('收起') }}</span>
|
|
390
374
|
<i class="el-icon-arrow-up"></i>
|
|
391
375
|
</div>
|
|
392
376
|
<div class="fr" v-else style="font-weight: 400;">
|
|
393
|
-
<span
|
|
377
|
+
<span>{{ $t1('展开') }}</span>
|
|
394
378
|
<i class="el-icon-arrow-down"></i>
|
|
395
379
|
</div>
|
|
396
380
|
</div>
|
|
397
381
|
<div class="flow-tree" style="padding-right:0" v-show="showFlowImg == true">
|
|
398
382
|
<div class="flow-box">
|
|
399
383
|
<img :src="wfImage"/>
|
|
400
|
-
<el-tooltip :enterable="false" class="item" effect="dark" content="放大" placement="bottom">
|
|
384
|
+
<el-tooltip :enterable="false" class="item" effect="dark" :content="$t1('放大')" placement="bottom">
|
|
401
385
|
<i class="el-icon-zoom-in btn-magnifier" @click="$window.open(wfImage)" style="right:0;"></i>
|
|
402
386
|
</el-tooltip>
|
|
403
387
|
</div>
|
|
@@ -422,9 +406,9 @@
|
|
|
422
406
|
</div>
|
|
423
407
|
<div class="title-tab">
|
|
424
408
|
<div>
|
|
425
|
-
<b :class="{on:tabIndex=='1'}" @click="tabIndex='1'"
|
|
426
|
-
<b :class="{on:tabIndex=='2'}" @click="tabIndex='2'" v-if="toTalk"
|
|
427
|
-
<b :class="{on:tabIndex=='3'}" @click="tabIndex='3'" v-if="showAllWfOpinon"
|
|
409
|
+
<b :class="{on:tabIndex=='1'}" @click="tabIndex='1'">{{ $t1('任务情况') }}</b>
|
|
410
|
+
<b :class="{on:tabIndex=='2'}" @click="tabIndex='2'" v-if="toTalk">{{ $t1('流程沟通') }}</b>
|
|
411
|
+
<b :class="{on:tabIndex=='3'}" @click="tabIndex='3'" v-if="showAllWfOpinon">{{ $t1('全部任务情况') }}</b>
|
|
428
412
|
</div>
|
|
429
413
|
</div>
|
|
430
414
|
<div class="task-situation" v-show="tabIndex=='1'" style="max-height: 500px; overflow: hidden auto;">
|
|
@@ -441,13 +425,12 @@
|
|
|
441
425
|
<div class="info">
|
|
442
426
|
<p>
|
|
443
427
|
<span class="name">{{ wftaskLineData.taskName }}</span>
|
|
444
|
-
<span
|
|
445
|
-
<span>
|
|
446
|
-
候选人:
|
|
428
|
+
<span>{{ $t1('执行人:') }}{{ wftaskLineData.approverName }}</span>
|
|
429
|
+
<span>{{ $t1('候选人:') }}
|
|
447
430
|
<span class="">{{ wftaskLineData.candidateNames }}</span>
|
|
448
431
|
</span>
|
|
449
432
|
</p>
|
|
450
|
-
<p class="t"><span class="t1"
|
|
433
|
+
<p class="t"><span class="t1">{{ $t1('备注/意见:') }}</span><span>{{ wftaskLineData.opinion }}</span></p>
|
|
451
434
|
</div>
|
|
452
435
|
</div>
|
|
453
436
|
</div>
|
|
@@ -463,7 +446,7 @@
|
|
|
463
446
|
<div style="margin-bottom: 8px;" class="clearfix">
|
|
464
447
|
<div class="fl">
|
|
465
448
|
<el-button type="primary" class="button-sty" @click="openTalkDialog(null, null, 'talk',1)"
|
|
466
|
-
icon="el-icon-chat-dot-square" v-if="wfInfo.stat!=2"
|
|
449
|
+
icon="el-icon-chat-dot-square" v-if="wfInfo.stat!=2">{{ $t1('沟通') }}
|
|
467
450
|
</el-button>
|
|
468
451
|
</div>
|
|
469
452
|
<div class="fr">
|
|
@@ -479,7 +462,7 @@
|
|
|
479
462
|
@click="openTalkDialog(row.sender, row.senderName, 'talk',1)"
|
|
480
463
|
v-if="wfInfo.stat!=2"
|
|
481
464
|
>
|
|
482
|
-
<el-tooltip :enterable="false" effect="dark" content="沟通" placement="top"
|
|
465
|
+
<el-tooltip :enterable="false" effect="dark" :content="$t1('沟通')" placement="top"
|
|
483
466
|
popper-class="tooltip-skin">
|
|
484
467
|
<div>
|
|
485
468
|
<i class="el-icon-chat-dot-square"></i>
|
|
@@ -495,7 +478,7 @@
|
|
|
495
478
|
@click="openTalkDialog(row.receiver,row.receiverName,'talk',1)"
|
|
496
479
|
v-if="wfInfo.stat!=2"
|
|
497
480
|
>
|
|
498
|
-
<el-tooltip :enterable="false" effect="dark" content="沟通" placement="top"
|
|
481
|
+
<el-tooltip :enterable="false" effect="dark" :content="$t1('沟通')" placement="top"
|
|
499
482
|
popper-class="tooltip-skin">
|
|
500
483
|
<div>
|
|
501
484
|
<i class="el-icon-chat-dot-square"></i>
|
|
@@ -522,13 +505,12 @@
|
|
|
522
505
|
<div class="info">
|
|
523
506
|
<p>
|
|
524
507
|
<span class="name">{{ wftaskLineData.taskName }}</span>
|
|
525
|
-
<span
|
|
526
|
-
<span>
|
|
527
|
-
候选人:
|
|
508
|
+
<span>{{ $t1('执行人:') }}{{ wftaskLineData.approverName }}</span>
|
|
509
|
+
<span>{{ $t1('候选人:') }}
|
|
528
510
|
<span class="">{{ wftaskLineData.candidateNames }}</span>
|
|
529
511
|
</span>
|
|
530
512
|
</p>
|
|
531
|
-
<p class="t"><span class="t1"
|
|
513
|
+
<p class="t"><span class="t1">{{ $t1('备注/意见:') }}</span><span>{{ wftaskLineData.opinion }}</span></p>
|
|
532
514
|
</div>
|
|
533
515
|
</div>
|
|
534
516
|
</div>
|
|
@@ -546,13 +528,12 @@
|
|
|
546
528
|
v-el-dialog-center
|
|
547
529
|
>
|
|
548
530
|
<template #title>
|
|
549
|
-
<span class="el-dialog__title"
|
|
550
|
-
class="f-red" style="font-size: 12px;"
|
|
531
|
+
<span class="el-dialog__title">{{ $t1('流程中断') }}<span style="margin-left: 10px;margin-right: 10px;">—</span><b
|
|
532
|
+
class="f-red" style="font-size: 12px;">{{ $t1('节点:') }}{{
|
|
551
533
|
wfInfo.taskName
|
|
552
534
|
}}</b></span>
|
|
553
535
|
</template>
|
|
554
|
-
<div class="cont">
|
|
555
|
-
您确定要中断流程吗?
|
|
536
|
+
<div class="cont">{{ $t1('您确定要中断流程吗?') }}
|
|
556
537
|
</div>
|
|
557
538
|
<span slot="footer" class="dialog-footer">
|
|
558
539
|
<el-button type="primary" plain class="button-sty" @click="showWfManualDialog = false"><i
|
package/src/components/wf/wf.js
CHANGED
|
@@ -505,6 +505,12 @@ wfContentMixin = {
|
|
|
505
505
|
},
|
|
506
506
|
config: {
|
|
507
507
|
height: 350,
|
|
508
|
+
// 关闭单行省略后按内容换行。虚拟滚动按固定行高裁切,这里关掉。
|
|
509
|
+
showOverflow: false,
|
|
510
|
+
scrollY: {
|
|
511
|
+
enabled: false,
|
|
512
|
+
gt: -1
|
|
513
|
+
},
|
|
508
514
|
proxyConfig: {
|
|
509
515
|
props: {
|
|
510
516
|
result: "objx", // 配置响应结果列表字段
|
|
@@ -521,10 +527,11 @@ wfContentMixin = {
|
|
|
521
527
|
{
|
|
522
528
|
field: 'wfTaskCandidates',
|
|
523
529
|
title: this.$t2('候选人', 'components.wf.candidate'),
|
|
524
|
-
|
|
530
|
+
minWidth: 450,
|
|
525
531
|
slots: {
|
|
526
|
-
default: ({row
|
|
527
|
-
|
|
532
|
+
default: ({row}) => {
|
|
533
|
+
let list = row.wfTaskCandidateDTOs || [];
|
|
534
|
+
return list.map(item => item.name).filter(Boolean).join(',');
|
|
528
535
|
},
|
|
529
536
|
},
|
|
530
537
|
},
|
|
@@ -537,6 +544,12 @@ wfContentMixin = {
|
|
|
537
544
|
]
|
|
538
545
|
};
|
|
539
546
|
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
|
547
|
+
// 列宽记忆会把候选人列写回固定 width,剩余空间就铺不满
|
|
548
|
+
let column = (opts.columns || []).find(item => item.field === 'wfTaskCandidates');
|
|
549
|
+
if (column) {
|
|
550
|
+
column.minWidth = column.minWidth || 450;
|
|
551
|
+
delete column.width;
|
|
552
|
+
}
|
|
540
553
|
that.candidateOption = opts;
|
|
541
554
|
});
|
|
542
555
|
},
|
|
@@ -1755,12 +1768,12 @@ wfStartMixin = {
|
|
|
1755
1768
|
let btnName = getWfButtonNames().submitBtn;
|
|
1756
1769
|
if (btnName) {
|
|
1757
1770
|
//只能用 $t1(找不到 key 原样返回),$t2 在 i18n 命中 key 时会把拼进去的名字吞掉
|
|
1758
|
-
return this.$t1(
|
|
1771
|
+
return this.$t1("您确定要{name}吗?", { name: btnName });
|
|
1759
1772
|
}
|
|
1760
1773
|
let wfStartOperateName =
|
|
1761
1774
|
settingConfig.wfStartOperateName ||
|
|
1762
1775
|
settingConfig.wfStartButtonName ||
|
|
1763
|
-
|
|
1776
|
+
(window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('启动流程') : '启动流程');
|
|
1764
1777
|
return this.$t2(
|
|
1765
1778
|
"您确定要" + wfStartOperateName + "吗?",
|
|
1766
1779
|
'components.wf.startTip'
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
# 常用脚本调用
|
|
2
|
+
|
|
3
|
+
表单事件里 `this` 是当前表单,方法直接写在 `this` 上。按钮点击脚本里 `this` 是按钮,取表单用 `this.getFormRef()`。下面按按钮脚本来写;写在表单事件里时,把 `this.getFormRef()` 换成 `this`。
|
|
4
|
+
|
|
5
|
+
按钮脚本可以直接用注入的 `dataId`、`formCode`。表格行内按钮另外有 `row`、`rowIndex`。
|
|
6
|
+
|
|
7
|
+
## 读写字段
|
|
8
|
+
|
|
9
|
+
```javascript
|
|
10
|
+
let formRef = this.getFormRef();
|
|
11
|
+
|
|
12
|
+
formRef.getFieldValue("字段名");
|
|
13
|
+
formRef.setFieldValue("字段名", "值");
|
|
14
|
+
|
|
15
|
+
// 当前表单整单数据,和 formDataModel 是同一个对象
|
|
16
|
+
let formData = formRef.formModel;
|
|
17
|
+
|
|
18
|
+
// 按提交结构取出的数据(含子表)
|
|
19
|
+
let submitData = formRef.getRealFormData();
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
`formModel` 是正在编辑的对象。业务里如果会改这份数据,先拷一份再处理。
|
|
23
|
+
|
|
24
|
+
## 必填校验
|
|
25
|
+
|
|
26
|
+
```javascript
|
|
27
|
+
let formRef = this.getFormRef();
|
|
28
|
+
|
|
29
|
+
formRef.validateForm((valid) => {
|
|
30
|
+
if (!valid) return;
|
|
31
|
+
let formData = formRef.formModel;
|
|
32
|
+
});
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
校验不通过时会自己提示,回调里的 `valid` 为 `false`。
|
|
36
|
+
|
|
37
|
+
## 保存
|
|
38
|
+
|
|
39
|
+
```javascript
|
|
40
|
+
this.saveDefaultHandle();
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
不要默认的「您确定要保存吗?」,或保存成功后还要做事:
|
|
44
|
+
|
|
45
|
+
```javascript
|
|
46
|
+
this.saveDefaultHandle({
|
|
47
|
+
config: {
|
|
48
|
+
isConfirm: false,
|
|
49
|
+
success: (res) => {
|
|
50
|
+
// res.objx 为保存后的单据 id
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
保存并提交流程:
|
|
57
|
+
|
|
58
|
+
```javascript
|
|
59
|
+
this.saveAndSubmitWfHandle();
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## 调后台脚本
|
|
63
|
+
|
|
64
|
+
`scriptCode` 只写脚本编码时,走当前表单。写成 `表单编码/脚本编码` 时,调指定表单上的脚本。
|
|
65
|
+
|
|
66
|
+
```javascript
|
|
67
|
+
this.formHttp({
|
|
68
|
+
scriptCode: "脚本编码",
|
|
69
|
+
data: this.getFormRef().getRealFormData(),
|
|
70
|
+
successMsg: true,
|
|
71
|
+
isConfirm: true,
|
|
72
|
+
confirmText: "您确定要执行吗?",
|
|
73
|
+
success: (res) => {
|
|
74
|
+
// res.objx
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## 刷新
|
|
80
|
+
|
|
81
|
+
刷新当前页:
|
|
82
|
+
|
|
83
|
+
```javascript
|
|
84
|
+
this.getFormRef().$baseReload();
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
保存或接口返回新单据 id 后,按新 id 重载表单:
|
|
88
|
+
|
|
89
|
+
```javascript
|
|
90
|
+
this.getFormRef().reloadForm({
|
|
91
|
+
updateParam: {
|
|
92
|
+
_dataId: res.objx
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## 打开表单弹框
|
|
98
|
+
|
|
99
|
+
点击弹框默认「确定」后:先做必填校验,再在调用页执行业务,最后关闭弹框。
|
|
100
|
+
|
|
101
|
+
默认「确定」不会自己校验。`confirm` 不是返回 `false` 时,弹框会马上关闭。校验是异步的,所以这里固定返回 `false`,校验通过并且调用页业务执行完,再 `dialog.close()`。
|
|
102
|
+
|
|
103
|
+
目标模板如果配了 `formConfig.actionButtons`,底部就不再是这个默认「确定」,`confirm` 也不会被调用。
|
|
104
|
+
|
|
105
|
+
```javascript
|
|
106
|
+
this.getFormRef().openFormDialog({
|
|
107
|
+
formCode: "目标表单编码",
|
|
108
|
+
dialogConfig: {
|
|
109
|
+
title: "标题",
|
|
110
|
+
width: "1200px"
|
|
111
|
+
},
|
|
112
|
+
formConfig: {
|
|
113
|
+
dataId: null // 有值是编辑,null 是新增
|
|
114
|
+
},
|
|
115
|
+
confirm: (formRef, dialog) => {
|
|
116
|
+
formRef.validateForm((valid) => {
|
|
117
|
+
if (!valid) return;
|
|
118
|
+
|
|
119
|
+
let formData = formRef.formModel;
|
|
120
|
+
|
|
121
|
+
// 调用页业务逻辑,this 仍是打开弹框的按钮
|
|
122
|
+
// this.getFormRef().setFieldValue("字段名", formData.xxx);
|
|
123
|
+
|
|
124
|
+
dialog.close();
|
|
125
|
+
});
|
|
126
|
+
return false;
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
表单事件里打开时,把第一行换成 `this.openFormDialog`。`confirm` 里的 `this` 仍是调用页。
|
|
132
|
+
|
|
133
|
+
## 打开表单抽屉
|
|
134
|
+
|
|
135
|
+
抽屉的默认「确定」会先做必填校验,通过后把表单数据交给 `confirm`。取消或关闭时不会进 `confirm`。
|
|
136
|
+
|
|
137
|
+
业务要在抽屉关掉之前做完时,用 `beforeConfirm`。它返回的 Promise 被拒绝时,抽屉保持打开。
|
|
138
|
+
|
|
139
|
+
```javascript
|
|
140
|
+
this.getFormRef().openFormDrawer({
|
|
141
|
+
formCode: "目标表单编码",
|
|
142
|
+
dataId: null,
|
|
143
|
+
title: "标题",
|
|
144
|
+
beforeConfirm: (formData) => {
|
|
145
|
+
return this.formHttp({
|
|
146
|
+
scriptCode: "脚本编码",
|
|
147
|
+
data: formData,
|
|
148
|
+
successMsg: true
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
## 打开选择弹框
|
|
155
|
+
|
|
156
|
+
`confirm` 的第一个参数是选中行。返回 `false` 时弹框不关闭。
|
|
157
|
+
|
|
158
|
+
```javascript
|
|
159
|
+
this.getFormRef().openSearchDialog({
|
|
160
|
+
formCode: "选择表单编码",
|
|
161
|
+
multiple: false,
|
|
162
|
+
queryParam: {},
|
|
163
|
+
confirm: (rows) => {
|
|
164
|
+
if (!rows || !rows.length) return false;
|
|
165
|
+
let row = rows[0];
|
|
166
|
+
this.getFormRef().setFieldValue("字段名", row.id);
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
## 数据表格
|
|
172
|
+
|
|
173
|
+
```javascript
|
|
174
|
+
let table = this.getFormRef().getWidgetRef("表格字段名");
|
|
175
|
+
|
|
176
|
+
table.searchEvent();
|
|
177
|
+
table.addTableData([{ name: "新行" }]);
|
|
178
|
+
|
|
179
|
+
let grid = table.getGridTable();
|
|
180
|
+
let checkedRows = grid.getCheckboxRecords(true);
|
|
181
|
+
let allRows = grid.getTableData().fullData;
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
`getCheckboxRecords(true)` 取出跨页勾选的行。`addTableData` 的第二个参数是去重字段,例如 `table.addTableData(rows, "id")`。
|
|
185
|
+
|
|
186
|
+
## 显隐和禁用
|
|
187
|
+
|
|
188
|
+
参数可以是字段名,也可以是字段名数组。
|
|
189
|
+
|
|
190
|
+
```javascript
|
|
191
|
+
let formRef = this.getFormRef();
|
|
192
|
+
|
|
193
|
+
formRef.hideWidgets("字段名");
|
|
194
|
+
formRef.showWidgets(["字段甲", "字段乙"]);
|
|
195
|
+
formRef.disableWidgets("字段名");
|
|
196
|
+
formRef.enableWidgets("字段名");
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
## 提示
|
|
200
|
+
|
|
201
|
+
```javascript
|
|
202
|
+
this.$baseConfirm("您确定要执行吗?").then(() => {
|
|
203
|
+
// 点确定
|
|
204
|
+
});
|
|
205
|
+
|
|
206
|
+
this.$baseAlert("处理完成");
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
带自定义按钮的消息框见 `消息框自定义按钮说明.md`。
|