cloud-web-corejs-haier 1.0.42 → 1.0.44
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 +9 -7
- package/src/api/user.js +54 -46
- package/src/components/baseAlert/index.vue +57 -53
- package/src/components/baseInputExport/index.vue +3 -3
- package/src/components/baseTabs/mixins.js +12 -1
- package/src/components/errorMsg/index.vue +78 -78
- package/src/components/excelExport/button.vue +54 -45
- package/src/components/excelExport/exportFieldDialog.vue +3 -3
- package/src/components/excelExport/index.js +1 -43
- package/src/components/excelExport/index.vue +62 -34
- package/src/components/excelExport/mixins.js +74 -87
- package/src/components/excelImport/index.js +1 -62
- package/src/components/excelImport/mixins.js +1 -774
- package/src/components/fileLibrary/index.vue +113 -33
- package/src/components/fileLibrary/propertiesDialog.vue +6 -0
- package/src/components/hiprint/view/design/index.vue +139 -47
- package/src/components/hiprint/view/design/preview.vue +75 -52
- package/src/components/hiprint/view/json-view.vue +31 -31
- package/src/components/luckysheet/dialog.vue +159 -0
- package/src/components/luckysheet/export.js +595 -0
- package/src/components/luckysheet/fileUtils.js +147 -0
- package/src/components/luckysheet/index.js +69 -0
- package/src/components/luckysheet/templateJson.js +12078 -0
- package/src/components/luckysheet/view.vue +210 -0
- package/src/components/onlineTalk/index.vue +328 -6
- package/src/components/onlineTalk/talkUserDialog.vue +280 -0
- package/src/components/wf/addTaskUserdialog.vue +5 -5
- package/src/components/wf/content.vue +1244 -1169
- package/src/components/wf/mixins/setCandidateDialog.js +228 -2
- package/src/components/wf/mixins/setCandidateDialog2.js +115 -100
- package/src/components/wf/mixins/wfTaskUserRangeDialog.js +67 -1
- package/src/components/wf/setCandidateDialog.vue +5 -7
- package/src/components/wf/setCandidateDialog2.vue +14 -10
- package/src/components/wf/wf.js +527 -411
- package/src/components/wf/wfTaskUserRangeDialog.vue +1 -1
- package/src/components/wf/wfUtil.js +129 -91
- package/src/components/xform/form-designer/designer.js +1994 -9
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +10 -0
- package/src/components/xform/form-designer/form-widget/container-widget/detail-pane-widget.vue +3 -2
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +5 -1
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin - /345/211/257/346/234/254.js" +1639 -0
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1756 -2
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +1 -0
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-item-widget.vue +10 -1
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-widget.vue +170 -0
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1630 -1
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +153 -40
- package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +65 -46
- package/src/components/xform/form-designer/form-widget/field-widget/vue-page-widget.vue +231 -0
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +7 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/edit-tree-button-group-config-dialog.vue +281 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +659 -221
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/dropdownFlag-editor.vue +133 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +14 -6
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vue-page/vue-page-editor.vue +48 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconClass-editor.vue +18 -17
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +26 -26
- package/src/components/xform/form-designer/setting-panel/property-editor/labelTooltip-editor.vue +67 -13
- package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +2 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/showViewButton-editor.vue +29 -0
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +8 -6
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +1 -0
- package/src/components/xform/form-render/container-item/data-table-mixin.js +20 -17
- package/src/components/xform/form-render/container-item/detail-item.vue +72 -48
- package/src/components/xform/form-render/container-item/sub-form-item.vue +10 -2
- package/src/components/xform/form-render/container-item/table2-item.vue +40 -10
- package/src/components/xform/form-render/indexMixin.js +3705 -1
- package/src/components/xform/icon-picker/icons.json +284 -0
- package/src/components/xform/icon-picker/index.vue +145 -0
- package/src/components/xform/lang/zh-CN.js +2 -1
- package/src/components/xform/mixins/defaultHandle.js +366 -2
- package/src/components/xform/utils/formula-util.js +3 -0
- package/src/components/xform/utils/sfc-generator.js +2 -2
- package/src/components/xform/utils/smart-vue-i18n/index.js +2 -1
- package/src/components/xform/utils/tableColumnHelper.js +54 -10
- package/src/components/xform/utils/util.js +1547 -1
- package/src/index.js +190 -211
- package/src/lang/locale/en/login.js +26 -19
- package/src/lang/locale/zh/login.js +25 -19
- package/src/layout/components/Sidebar/default.vue +252 -71
- package/src/layout/components/Sidebar/index.vue +6 -1
- package/src/layout/components/TagsView/index.vue +6 -0
- package/src/layout/components/langTool.vue +32 -29
- package/src/layout/defaultLayout.vue +16 -8
- package/src/layout/index.vue +5 -3
- package/src/permission.js +135 -1
- package/src/router/index.js +1 -4
- package/src/store/config/index.js +667 -1
- package/src/store/getters.js +2 -1
- package/src/store/modules/permission.js +332 -1
- package/src/store/modules/settings.js +26 -1
- package/src/store/modules/tagsView.js +190 -1
- package/src/store/modules/user.js +358 -1
- package/src/utils/aes.js +15 -1
- package/src/utils/auth.js +27 -1
- package/src/utils/componentDialog.js +217 -0
- package/src/utils/request.js +368 -1
- package/src/utils/vab.js +1256 -7
- package/src/views/bd/setting/bd_company_env/dialog.vue +174 -174
- package/src/views/bd/setting/bd_company_env/edit.vue +193 -193
- package/src/views/bd/setting/formVersion/button.vue +55 -0
- package/src/views/bd/setting/formVersion/compareBasicSection.vue +125 -0
- package/src/views/bd/setting/formVersion/compareCodeSection.vue +539 -0
- package/src/views/bd/setting/formVersion/compareContMixin.scss +65 -0
- package/src/views/bd/setting/formVersion/compareContent.vue +63 -0
- package/src/views/bd/setting/formVersion/compareDialog.vue +88 -0
- package/src/views/bd/setting/formVersion/compareMixin.js +93 -0
- package/src/views/bd/setting/formVersion/fieldCompare.vue +54 -0
- package/src/views/bd/setting/formVersion/formScriptCompareView.vue +94 -0
- package/src/views/bd/setting/formVersion/formTemplateCompareView.vue +74 -0
- package/src/views/bd/setting/formVersion/ftHistoryDialog.vue +491 -0
- package/src/views/bd/setting/formVersion/link.vue +58 -0
- package/src/views/bd/setting/formVersion/preformDialog.vue +87 -0
- package/src/views/bd/setting/formVersion/reverButton.vue +82 -0
- package/src/views/bd/setting/formVersion/tableDetailDiff.js +99 -0
- package/src/views/bd/setting/formVersion/tableModelCompareView.vue +514 -0
- package/src/views/bd/setting/formVersion/textDiff.js +102 -0
- package/src/views/bd/setting/form_import_log/edit.vue +6 -3
- package/src/views/bd/setting/form_import_log/list.vue +5 -0
- package/src/views/bd/setting/form_script/edit.vue +196 -83
- package/src/views/bd/setting/form_script/edit1.vue +410 -220
- package/src/views/bd/setting/form_script/form_list.vue +19 -0
- package/src/views/bd/setting/form_script/list.vue +95 -21
- package/src/views/bd/setting/form_script/list1.vue +24 -0
- package/src/views/bd/setting/form_script/mixins/dialog.js +2 -2
- package/src/views/bd/setting/form_script/mixins/edit.js +265 -207
- package/src/views/bd/setting/form_script/mixins/edit1.js +259 -201
- package/src/views/bd/setting/form_script/mixins/form_list.js +322 -296
- package/src/views/bd/setting/form_script/mixins/list.js +163 -95
- package/src/views/bd/setting/form_script/mixins/list1.js +244 -155
- package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +1 -1
- package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +1 -1
- package/src/views/bd/setting/form_template/edit.vue +355 -205
- package/src/views/bd/setting/form_template/formDesignerDialog.vue +171 -0
- package/src/views/bd/setting/form_template/list.vue +49 -74
- package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +3 -3
- package/src/views/bd/setting/form_template/mixins/edit.js +51 -8
- package/src/views/bd/setting/form_template/mixins/itemList.js +1 -1
- package/src/views/bd/setting/form_template/mixins/list.js +114 -82
- package/src/views/bd/setting/form_template/mixins/list2.js +3 -3
- package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +1 -1
- package/src/views/bd/setting/form_template/mixins/wf_list.js +3 -7
- package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +254 -254
- package/src/views/bd/setting/form_template/wf_list.vue +161 -127
- package/src/views/bd/setting/request_async_setting/edit.vue +320 -320
- package/src/views/bd/setting/request_setting/edit.vue +300 -300
- package/src/views/bd/setting/request_setting/list.vue +15 -25
- package/src/views/bd/setting/table_model/edit.vue +702 -498
- package/src/views/bd/setting/table_model/list.vue +28 -0
- package/src/views/bd/setting/table_model/mixins/dialog.js +1 -1
- package/src/views/bd/setting/table_model/mixins/edit copy.js +903 -0
- package/src/views/bd/setting/table_model/mixins/edit.js +228 -121
- package/src/views/bd/setting/table_model/mixins/list.js +55 -20
- package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +1 -1
- package/src/views/bd/setting/table_model/mixins/zdDialog.js +50 -46
- package/src/views/bd/setting/utils/index.js +15 -0
- package/src/views/user/api_request/list.vue +203 -203
- package/src/views/user/bill_setting/list.vue +345 -345
- package/src/views/user/code_rules/list.vue +204 -204
- package/src/views/user/common_attribute/list.vue +378 -378
- package/src/views/user/common_script/list.vue +341 -341
- package/src/views/user/company_info/dialog.vue +80 -49
- package/src/views/user/country/list.vue +197 -197
- package/src/views/user/extend_datasource/dialog.vue +0 -3
- package/src/views/user/extend_datasource/edit.vue +1 -2
- package/src/views/user/extend_datasource/list.vue +221 -224
- package/src/views/user/fieldTranslation/editDialog.vue +1 -1
- package/src/views/user/fieldTranslation/list.vue +473 -473
- package/src/views/user/field_values_invisible/list.vue +207 -207
- package/src/views/user/file_type/list.vue +271 -271
- package/src/views/user/file_view_area/list.vue +331 -331
- package/src/views/user/form/vform/designer.vue +303 -287
- package/src/views/user/form/vform/formFieldMapping.js +2 -3
- package/src/views/user/form/view/edit.vue +19 -1
- package/src/views/user/form/view/list.vue +59 -17
- package/src/views/user/groups/list.vue +158 -158
- package/src/views/user/home/default.vue +274 -182
- package/src/views/user/home/default2.vue +1148 -0
- package/src/views/user/home/index.vue +2 -1
- package/src/views/user/lang_tag/list.vue +170 -170
- package/src/views/user/language_setting/list.vue +208 -208
- package/src/views/user/ledger_library/list.vue +12 -10
- package/src/views/user/login/default.vue +1 -1
- package/src/views/user/login/indexMixin.js +204 -169
- package/src/views/user/menu/list.vue +575 -575
- package/src/views/user/notify_message/dialog.vue +7 -1
- package/src/views/user/notify_template/list.vue +192 -192
- package/src/views/user/notify_template/list2.vue +190 -190
- package/src/views/user/position/list.vue +188 -188
- package/src/views/user/project_tag/list.vue +175 -175
- package/src/views/user/push_setting/list.vue +236 -236
- package/src/views/user/request_setting/list.vue +248 -248
- package/src/views/user/role/list.vue +182 -182
- package/src/views/user/system_notice/infoDialog.vue +61 -2
- package/src/views/user/system_notice/list.vue +203 -203
- package/src/views/user/system_parameter/list.vue +141 -141
- package/src/views/user/user/edit.vue +45 -0
- package/src/views/user/user/form_list.vue +245 -245
- package/src/views/user/user/info.vue +253 -140
- package/src/views/user/user_log_classify/list.vue +197 -197
- package/src/views/user/wf/iframe/index.vue +46 -46
- package/src/views/user/wf/wfReport/index.vue +1 -1
- package/src/views/user/wf/wf_auto_submit_data/list.vue +659 -659
- package/src/views/user/wf/wf_diy_attribute/edit.vue +1 -1
- package/src/views/user/wf/wf_manage/list.vue +795 -795
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +106 -106
- package/src/views/user/wf/wf_obj_config/dialog.vue +2 -2
- package/src/views/user/wf/wf_obj_config/edit.vue +1 -1
- package/src/views/user/wf/wf_obj_config/edit_form.vue +2 -2
- package/src/views/user/wf/wf_obj_config/itemEdit.vue +1 -1
- package/src/views/user/wf/wf_obj_config/itemEdit_form.vue +1 -1
- package/src/views/user/wf/wf_obj_config/itemOperateDialog.vue +4 -4
- package/src/views/user/wf/wf_obj_config/list.vue +28 -28
- package/src/views/user/wf/wf_obj_config/list_form.vue +5 -5
- package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +292 -292
- package/src/views/user/wf/wf_param/edit.vue +1 -1
- package/src/views/user/wf/wf_transfer_setting/edit.vue +1 -1
- package/src/views/user/wf/wf_transfer_setting/list.vue +321 -319
- package/src/views/user/wf/wf_work_calendar/components/calendar.vue +369 -367
- package/src/views/user/wf/wf_work_calendar/components/calendar2.vue +401 -399
- package/src/views/user/wf/wf_work_calendar/configDialog.vue +6 -6
- package/src/views/user/wf/wf_work_calendar/date.js +84 -83
- package/src/views/user/wf/wf_work_calendar/list.vue +6 -6
- package/src/views/user/workbench_menu/list.vue +555 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Vue from
|
|
2
|
-
import settingConfig from
|
|
1
|
+
import Vue from "vue";
|
|
2
|
+
import settingConfig from "@/settings.js";
|
|
3
3
|
|
|
4
4
|
let f;
|
|
5
5
|
let configUtil = {
|
|
@@ -7,7 +7,7 @@ let configUtil = {
|
|
|
7
7
|
return require(`../../components/wf${path}`).default;
|
|
8
8
|
},
|
|
9
9
|
Vue,
|
|
10
|
-
settingConfig
|
|
10
|
+
settingConfig,
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
f = async function (option) {
|
|
@@ -22,8 +22,8 @@ f = async function (option) {
|
|
|
22
22
|
|
|
23
23
|
let hasWf = false;
|
|
24
24
|
let wfInfo, currentTask, taskParam;
|
|
25
|
-
await initWfInfo(that, option).then(res => {
|
|
26
|
-
if (res && res.type ==
|
|
25
|
+
await initWfInfo(that, option).then((res) => {
|
|
26
|
+
if (res && res.type == "success") {
|
|
27
27
|
if (res.objx && res.objx.instanceId) {
|
|
28
28
|
hasWf = true;
|
|
29
29
|
wfInfo = res.objx;
|
|
@@ -44,22 +44,27 @@ f = async function (option) {
|
|
|
44
44
|
|
|
45
45
|
let done = () => {
|
|
46
46
|
let $wfBtnRegion = that.$refs[option.wfBtnRegion || "wfBtnRegion"];
|
|
47
|
-
let $wfViewRegion = that.$refs[
|
|
47
|
+
let $wfViewRegion = that.$refs[option.wfViewRegion || "wfViewRegion"];
|
|
48
48
|
|
|
49
|
-
let wfBtnRegion = $wfBtnRegion
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
let wfBtnRegion = $wfBtnRegion
|
|
50
|
+
? $wfBtnRegion.$el
|
|
51
|
+
: that.$el.querySelector(".el-form .d-header >.fr");
|
|
52
|
+
let wfViewRegion = $wfViewRegion
|
|
53
|
+
? $wfViewRegion.$el
|
|
54
|
+
: that.$el.querySelector(".el-form .d-cont");
|
|
53
55
|
|
|
54
|
-
let slideWrap = $wfViewRegion
|
|
55
|
-
|
|
56
|
+
let slideWrap = $wfViewRegion
|
|
57
|
+
? $wfViewRegion.$el
|
|
58
|
+
: that.$el.querySelector(".el-form .slide-wrap");
|
|
56
59
|
|
|
57
|
-
let showStartBtn =
|
|
58
|
-
|
|
60
|
+
let showStartBtn =
|
|
61
|
+
option.showStartBtn != null ? option.showStartBtn : true;
|
|
62
|
+
let showModifyBtn =
|
|
63
|
+
option.showModifyBtn != null ? option.showModifyBtn : true;
|
|
59
64
|
|
|
60
65
|
if (wfInfo) {
|
|
61
66
|
let wfModel = configUtil.settingConfig.wfModel || 1;
|
|
62
|
-
let url = wfModel == 2 ?
|
|
67
|
+
let url = wfModel == 2 ? "/content2.vue" : "/content.vue";
|
|
63
68
|
let a = configUtil.Vue.extend(configUtil.getWfObj(url));
|
|
64
69
|
let defaultShowWfContent = that.$attrs.defaultShowWfContent;
|
|
65
70
|
let instance = new a({
|
|
@@ -72,36 +77,43 @@ f = async function (option) {
|
|
|
72
77
|
_taskParam: taskParam,
|
|
73
78
|
parentVue: that,
|
|
74
79
|
defaultShowWfContent: defaultShowWfContent,
|
|
75
|
-
wfConfig: option
|
|
76
|
-
}
|
|
80
|
+
wfConfig: option,
|
|
81
|
+
},
|
|
77
82
|
});
|
|
78
83
|
let _hideWf = that._hideWf || that.$attrs._hideWf;
|
|
79
|
-
let isHideWf = _hideWf === true || _hideWf ===
|
|
84
|
+
let isHideWf = _hideWf === true || _hideWf === "true";
|
|
80
85
|
if (!_hideWf && slideWrap) {
|
|
81
86
|
let navDom = new configUtil.Vue({
|
|
82
87
|
render: function (h) {
|
|
83
88
|
let node = h("div", {}, [
|
|
84
|
-
h(
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
89
|
+
h(
|
|
90
|
+
"a",
|
|
91
|
+
{
|
|
92
|
+
staticClass: "slide-nav",
|
|
93
|
+
attrs: {
|
|
94
|
+
id: "wfNavBtn",
|
|
95
|
+
},
|
|
96
|
+
on: {
|
|
97
|
+
click: (event) => {
|
|
98
|
+
instance.$children[0].handleFold(true);
|
|
99
|
+
that.$nextTick(() => {
|
|
100
|
+
instance.$el.scrollIntoView();
|
|
101
|
+
});
|
|
102
|
+
},
|
|
103
|
+
},
|
|
88
104
|
},
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
97
|
-
}, [h('i', {
|
|
98
|
-
staticClass: "ico"
|
|
99
|
-
}), h("p", that.$t2('流程信息', 'components.wf.wfInfo'))])
|
|
105
|
+
[
|
|
106
|
+
h("i", {
|
|
107
|
+
staticClass: "ico",
|
|
108
|
+
}),
|
|
109
|
+
h("p", that.$t2("流程信息", "components.wf.wfInfo")),
|
|
110
|
+
]
|
|
111
|
+
),
|
|
100
112
|
]);
|
|
101
113
|
return node;
|
|
102
|
-
}
|
|
114
|
+
},
|
|
103
115
|
}).$mount().$el;
|
|
104
|
-
if (settingConfig.version ==
|
|
116
|
+
if (settingConfig.version == "oa") {
|
|
105
117
|
slideWrap = slideWrap.children[0];
|
|
106
118
|
}
|
|
107
119
|
setTimeout(() => {
|
|
@@ -109,7 +121,7 @@ f = async function (option) {
|
|
|
109
121
|
if (that.$attrs.toWfArea) {
|
|
110
122
|
//待办进来,直接跳到流程模块
|
|
111
123
|
this.$nextTick(() => {
|
|
112
|
-
navDom.querySelector(
|
|
124
|
+
navDom.querySelector("a").click();
|
|
113
125
|
});
|
|
114
126
|
that.$emit("update:toWfArea", false);
|
|
115
127
|
}
|
|
@@ -118,51 +130,75 @@ f = async function (option) {
|
|
|
118
130
|
wfViewRegion && wfViewRegion.append(instance.$mount().$el);
|
|
119
131
|
}
|
|
120
132
|
|
|
121
|
-
if (
|
|
133
|
+
if (
|
|
134
|
+
wfBtnRegion &&
|
|
135
|
+
showModifyBtn &&
|
|
136
|
+
hasWf &&
|
|
137
|
+
taskParam &&
|
|
138
|
+
taskParam.url &&
|
|
139
|
+
wfInfo.toSubmit &&
|
|
140
|
+
!option.hiddenAllButton
|
|
141
|
+
) {
|
|
122
142
|
let buttonName = getModifyButtonName(that, taskParam);
|
|
123
143
|
let dom = new configUtil.Vue({
|
|
124
144
|
render: function (h) {
|
|
125
|
-
let modifyNode = h(
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
145
|
+
let modifyNode = h(
|
|
146
|
+
"el-button",
|
|
147
|
+
{
|
|
148
|
+
attrs: {
|
|
149
|
+
type: "primary",
|
|
150
|
+
plain: "",
|
|
151
|
+
icon: "el-icon-edit",
|
|
152
|
+
},
|
|
153
|
+
staticClass: "button-sty",
|
|
154
|
+
on: {
|
|
155
|
+
click: () => {
|
|
156
|
+
openWfModifyDialog(that, taskParam, buttonName, wfInfo);
|
|
157
|
+
},
|
|
158
|
+
},
|
|
130
159
|
},
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
click: () => {
|
|
134
|
-
openWfModifyDialog(that, taskParam, buttonName, wfInfo);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}, buttonName);
|
|
160
|
+
buttonName
|
|
161
|
+
);
|
|
138
162
|
return modifyNode;
|
|
139
|
-
}
|
|
163
|
+
},
|
|
140
164
|
}).$mount().$el;
|
|
141
165
|
appendPrevChildDom(wfBtnRegion, dom);
|
|
142
166
|
}
|
|
143
167
|
|
|
144
|
-
if (
|
|
145
|
-
|
|
168
|
+
if (
|
|
169
|
+
wfBtnRegion &&
|
|
170
|
+
showStartBtn &&
|
|
171
|
+
option.injectStartBtn !== false &&
|
|
172
|
+
!hasWf &&
|
|
173
|
+
!option.hiddenAllButton
|
|
174
|
+
) {
|
|
175
|
+
let wfStartButtonName =
|
|
176
|
+
configUtil.settingConfig.wfStartButtonName ||
|
|
177
|
+
this.$t2("流程启动", "components.wf.wfStart");
|
|
146
178
|
let dom = new configUtil.Vue({
|
|
147
179
|
render: function (h) {
|
|
148
|
-
let startNode = h(
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
180
|
+
let startNode = h(
|
|
181
|
+
"el-button",
|
|
182
|
+
{
|
|
183
|
+
attrs: {
|
|
184
|
+
type: "success",
|
|
185
|
+
icon: "el-icon-video-play",
|
|
186
|
+
},
|
|
187
|
+
staticClass: "button-sty",
|
|
188
|
+
on: {
|
|
189
|
+
click: () => {
|
|
190
|
+
openStartWfDialog(that, option);
|
|
191
|
+
},
|
|
192
|
+
},
|
|
152
193
|
},
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
click: () => {
|
|
156
|
-
openStartWfDialog(that, option);
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}, wfStartButtonName);
|
|
194
|
+
wfStartButtonName
|
|
195
|
+
);
|
|
160
196
|
return startNode;
|
|
161
|
-
}
|
|
197
|
+
},
|
|
162
198
|
}).$mount().$el;
|
|
163
|
-
appendPrevChildDom(wfBtnRegion, dom)
|
|
199
|
+
appendPrevChildDom(wfBtnRegion, dom);
|
|
164
200
|
}
|
|
165
|
-
}
|
|
201
|
+
};
|
|
166
202
|
|
|
167
203
|
if (true || wfInfo) {
|
|
168
204
|
if (option.callback) {
|
|
@@ -171,7 +207,7 @@ f = async function (option) {
|
|
|
171
207
|
currentTask,
|
|
172
208
|
taskParam,
|
|
173
209
|
hasWf,
|
|
174
|
-
done
|
|
210
|
+
done,
|
|
175
211
|
});
|
|
176
212
|
}
|
|
177
213
|
}
|
|
@@ -179,12 +215,12 @@ f = async function (option) {
|
|
|
179
215
|
done();
|
|
180
216
|
}
|
|
181
217
|
}
|
|
182
|
-
}
|
|
218
|
+
};
|
|
183
219
|
|
|
184
220
|
function getModifyButtonName(that, taskParam) {
|
|
185
221
|
let buttonName = null;
|
|
186
222
|
if (!taskParam.buttonName || taskParam.buttonName == "修改单据") {
|
|
187
|
-
buttonName = that.$t2("修改单据",
|
|
223
|
+
buttonName = that.$t2("修改单据", "components.wf.modifyBill");
|
|
188
224
|
} else {
|
|
189
225
|
buttonName = taskParam.buttonName;
|
|
190
226
|
}
|
|
@@ -194,10 +230,10 @@ function getModifyButtonName(that, taskParam) {
|
|
|
194
230
|
function getServiceId(str) {
|
|
195
231
|
let serviceId;
|
|
196
232
|
if (str) {
|
|
197
|
-
let strArr = str.split(
|
|
198
|
-
serviceId = strArr[0] ==
|
|
233
|
+
let strArr = str.split("/");
|
|
234
|
+
serviceId = strArr[0] == "/" ? strArr[1] : str;
|
|
199
235
|
} else {
|
|
200
|
-
serviceId =
|
|
236
|
+
serviceId = "";
|
|
201
237
|
}
|
|
202
238
|
return serviceId;
|
|
203
239
|
}
|
|
@@ -205,9 +241,10 @@ function getServiceId(str) {
|
|
|
205
241
|
function getCurrentPrefix(serviceId) {
|
|
206
242
|
let currentPrefix;
|
|
207
243
|
if (serviceId) {
|
|
208
|
-
currentPrefix =
|
|
244
|
+
currentPrefix =
|
|
245
|
+
serviceId.split("/")[0] == "/" ? serviceId : "/" + serviceId;
|
|
209
246
|
} else {
|
|
210
|
-
currentPrefix =
|
|
247
|
+
currentPrefix = "";
|
|
211
248
|
}
|
|
212
249
|
return currentPrefix;
|
|
213
250
|
}
|
|
@@ -216,32 +253,32 @@ async function initWfInfo(that, option) {
|
|
|
216
253
|
let id = option.objId;
|
|
217
254
|
let code = option.wfCode;
|
|
218
255
|
return that.$http({
|
|
219
|
-
url: getCurrentPrefix(option.serviceId) +
|
|
256
|
+
url: getCurrentPrefix(option.serviceId) + "/wf/getWfInfo",
|
|
220
257
|
method: `post`,
|
|
221
258
|
data: {
|
|
222
259
|
objTypeCode: code,
|
|
223
|
-
objId: id
|
|
260
|
+
objId: id,
|
|
224
261
|
},
|
|
225
262
|
isLoading: true,
|
|
226
|
-
modalStrictly: true
|
|
263
|
+
modalStrictly: true,
|
|
227
264
|
});
|
|
228
265
|
}
|
|
229
266
|
|
|
230
267
|
async function getTaskParams(that, option, taskId) {
|
|
231
268
|
return that.$http({
|
|
232
|
-
url: getCurrentPrefix(option.serviceId) +
|
|
269
|
+
url: getCurrentPrefix(option.serviceId) + "/wf/getTaskVariables",
|
|
233
270
|
method: `post`,
|
|
234
271
|
data: {
|
|
235
|
-
stringOne: taskId
|
|
272
|
+
stringOne: taskId,
|
|
236
273
|
},
|
|
237
274
|
isLoading: true,
|
|
238
|
-
modalStrictly: true
|
|
275
|
+
modalStrictly: true,
|
|
239
276
|
});
|
|
240
277
|
}
|
|
241
278
|
|
|
242
279
|
function openStartWfDialog(that, option) {
|
|
243
280
|
let done = () => {
|
|
244
|
-
let a = configUtil.Vue.extend(configUtil.getWfObj(
|
|
281
|
+
let a = configUtil.Vue.extend(configUtil.getWfObj("/wfStartDialog.vue"));
|
|
245
282
|
let instance = new a({
|
|
246
283
|
i18n: that._i18n,
|
|
247
284
|
propsData: {
|
|
@@ -251,21 +288,21 @@ function openStartWfDialog(that, option) {
|
|
|
251
288
|
startParam: option.startParam,
|
|
252
289
|
parentVue: that,
|
|
253
290
|
visible: true,
|
|
254
|
-
formCode:
|
|
255
|
-
option
|
|
256
|
-
}
|
|
291
|
+
formCode: option.formCode || null,
|
|
292
|
+
option,
|
|
293
|
+
},
|
|
257
294
|
});
|
|
258
|
-
document.body.append(instance.$mount().$el)
|
|
259
|
-
}
|
|
295
|
+
document.body.append(instance.$mount().$el);
|
|
296
|
+
};
|
|
260
297
|
if (option.onStart) {
|
|
261
|
-
option.onStart(done)
|
|
298
|
+
option.onStart(done);
|
|
262
299
|
} else {
|
|
263
300
|
done();
|
|
264
301
|
}
|
|
265
302
|
}
|
|
266
303
|
|
|
267
304
|
function openWfModifyDialog(that, paramData, title, wfInfo) {
|
|
268
|
-
let a = configUtil.Vue.extend(configUtil.getWfObj(
|
|
305
|
+
let a = configUtil.Vue.extend(configUtil.getWfObj("/wfModifyDialog.vue"));
|
|
269
306
|
let instance = new a({
|
|
270
307
|
i18n: that._i18n,
|
|
271
308
|
propsData: {
|
|
@@ -273,10 +310,10 @@ function openWfModifyDialog(that, paramData, title, wfInfo) {
|
|
|
273
310
|
parentVue: that,
|
|
274
311
|
visible: true,
|
|
275
312
|
wfInfo: wfInfo,
|
|
276
|
-
title: title
|
|
277
|
-
}
|
|
313
|
+
title: title,
|
|
314
|
+
},
|
|
278
315
|
});
|
|
279
|
-
document.body.append(instance.$mount().$el)
|
|
316
|
+
document.body.append(instance.$mount().$el);
|
|
280
317
|
}
|
|
281
318
|
|
|
282
319
|
function appendPrevChildDom(parentDom, newDom) {
|
|
@@ -289,3 +326,4 @@ function appendPrevChildDom(parentDom, newDom) {
|
|
|
289
326
|
}
|
|
290
327
|
|
|
291
328
|
export const initWf = f;
|
|
329
|
+
export { openStartWfDialog };
|