lyflowchart 1.0.113 → 1.0.130
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/dist/ActionsConfig-BuvSvRbv.js +395 -0
- package/dist/ActionsConfig-BuvSvRbv.js.map +1 -0
- package/dist/ApprovalEditorModal-DZfXupU3.js +48 -0
- package/dist/ApprovalEditorModal-DZfXupU3.js.map +1 -0
- package/dist/CancelModal-BUi3ieI8.js +61 -0
- package/dist/CancelModal-BUi3ieI8.js.map +1 -0
- package/dist/Cell_click_approve-CBh0j--6.js +244 -0
- package/dist/Cell_click_approve-CBh0j--6.js.map +1 -0
- package/dist/JsonTags-BbWLqghI.js +66 -0
- package/dist/JsonTags-BbWLqghI.js.map +1 -0
- package/dist/MyProcess-FWGEwQcv.js +26434 -0
- package/dist/MyProcess-FWGEwQcv.js.map +1 -0
- package/dist/MyProcess.vue.d.ts +991 -0
- package/dist/approval-BW2WjPxY.js +167 -0
- package/dist/approval-BW2WjPxY.js.map +1 -0
- package/dist/approval-CuUNtG9u.js +18 -0
- package/dist/approval-CuUNtG9u.js.map +1 -0
- package/dist/approvalHistory-B2gpQbFC.js +868 -0
- package/dist/approvalHistory-B2gpQbFC.js.map +1 -0
- package/dist/approvalHistoryViewModal-DgLpv2ot.js +114 -0
- package/dist/approvalHistoryViewModal-DgLpv2ot.js.map +1 -0
- package/dist/approvalPageConfig-D0zPXOUf.js +2437 -0
- package/dist/approvalPageConfig-D0zPXOUf.js.map +1 -0
- package/dist/approveLeftConfig-BOU_UgHp.js +136 -0
- package/dist/approveLeftConfig-BOU_UgHp.js.map +1 -0
- package/dist/codeHistoryViewModal-BfSjIbEU.js +103 -0
- package/dist/codeHistoryViewModal-BfSjIbEU.js.map +1 -0
- package/dist/columnTables-DLwtgcC7.js +1272 -0
- package/dist/columnTables-DLwtgcC7.js.map +1 -0
- package/dist/components/Cell_click_approve.vue.d.ts +5 -0
- package/dist/components/Cell_click_data_source.vue.d.ts +6 -0
- package/dist/components/Process/common/bpmnUtils.d.ts +8 -0
- package/dist/components/Process/common/global.d.ts +16 -0
- package/dist/components/Process/common/index.d.ts +5 -0
- package/dist/components/Process/component/JsonTags2.vue.d.ts +60 -0
- package/dist/components/Process/component/ValueInput2.vue.d.ts +74 -0
- package/dist/components/Process/component/columnNameField2.vue.d.ts +51 -0
- package/dist/components/Process/component/data.d.ts +157 -0
- package/dist/components/Process/customPanel/CustomContextPad.d.ts +31 -0
- package/dist/components/Process/customPanel/CustomPalette.d.ts +89 -0
- package/dist/components/Process/customPanel/customTranslate.d.ts +1 -0
- package/dist/components/Process/customPanel/index.d.ts +8 -0
- package/dist/components/Process/designer.vue.d.ts +589 -0
- package/dist/components/Process/flowable/init.d.ts +1 -0
- package/dist/components/Process/index.vue.d.ts +812 -0
- package/dist/components/Process/lang/zh.d.ts +249 -0
- package/dist/components/Process/panel/ButtonsPanel.vue.d.ts +24 -0
- package/dist/components/Process/panel/PropertiesPanel.vue.d.ts +24 -0
- package/dist/components/Process/panel/commonPanel.vue.d.ts +40 -0
- package/dist/components/Process/panel/conditionPanel.vue.d.ts +271 -0
- package/dist/components/Process/panel/executionListener.vue.d.ts +66 -0
- package/dist/components/Process/panel/formPanel.vue.d.ts +7 -0
- package/dist/components/Process/panel/multiInstance.vue.d.ts +33 -0
- package/dist/components/Process/panel/otherPanel.vue.d.ts +17 -0
- package/dist/components/Process/panel/taskListener.vue.d.ts +64 -0
- package/dist/components/Process/panel/taskPanel.vue.d.ts +254 -0
- package/dist/components/Process/viewer/index.vue.d.ts +41 -0
- package/dist/components/approval/ApprovalEditorModal.vue.d.ts +26 -0
- package/dist/components/approval/CostCompanySelect.vue.d.ts +29 -0
- package/dist/components/approval/CostDepartmentSelect.vue.d.ts +35 -0
- package/dist/components/approval/CreateByCascader.vue.d.ts +27 -0
- package/dist/components/approval/CreateBySelect.vue.d.ts +35 -0
- package/dist/components/approval/PostionCascader.vue.d.ts +26 -0
- package/dist/components/approval/SystemTime.vue.d.ts +38 -0
- package/dist/components/approval/approvalViewId.d.ts +36 -0
- package/dist/components/approval/components/CancelModal.vue.d.ts +25 -0
- package/dist/components/approval/components/FormCodeInput.vue.d.ts +33 -0
- package/dist/components/approval/components/FormContextInput.vue.d.ts +33 -0
- package/dist/components/approval/components/FormFlowOrgInput.vue.d.ts +40 -0
- package/dist/components/approval/components/actionsBar.vue.d.ts +17 -0
- package/dist/components/approval/components/approvalHistory/approvalHistoryViewModal.vue.d.ts +41 -0
- package/dist/components/approval/components/approvalHistory/dataStoreSettingHistory.vue.d.ts +55 -0
- package/dist/components/approval/components/approvalHistory/dataStoreSettingHistoryViewModal.vue.d.ts +41 -0
- package/dist/components/approval/components/approvalHistory/flowHistoryViewModal.vue.d.ts +41 -0
- package/dist/components/approval/components/approvalHistory/flowSettingHistory.vue.d.ts +55 -0
- package/dist/components/approval/components/approvalHistory/index.vue.d.ts +212 -0
- package/dist/components/approval/components/approvalHistory/pageSettingHistory.vue.d.ts +55 -0
- package/dist/components/approval/components/approvalPageConfig/ActionsConfig.vue.d.ts +112 -0
- package/dist/components/approval/components/approvalPageConfig/BaseConditions.vue.d.ts +205 -0
- package/dist/components/approval/components/approvalPageConfig/CodeEditorWraper.vue.d.ts +51 -0
- package/dist/components/approval/components/approvalPageConfig/ColumnConfig.vue.d.ts +145 -0
- package/dist/components/approval/components/approvalPageConfig/ConditionFieldMulType.vue.d.ts +137 -0
- package/dist/components/approval/components/approvalPageConfig/JsonInput.vue.d.ts +38 -0
- package/dist/components/approval/components/approvalPageConfig/JsonTags.vue.d.ts +26 -0
- package/dist/components/approval/components/approvalPageConfig/JsonText.vue.d.ts +36 -0
- package/dist/components/approval/components/approvalPageConfig/approveLeftConfig.vue.d.ts +6 -0
- package/dist/components/approval/components/approvalPageConfig/baseConfig.vue.d.ts +10 -0
- package/dist/components/approval/components/approvalPageConfig/cellEdit.vue.d.ts +23 -0
- package/dist/components/approval/components/approvalPageConfig/configSync.vue.d.ts +76 -0
- package/dist/components/approval/components/approvalPageConfig/confirmInput.vue.d.ts +26 -0
- package/dist/components/approval/components/approvalPageConfig/defaultOperatorSelect.vue.d.ts +18 -0
- package/dist/components/approval/components/approvalPageConfig/index.vue.d.ts +11 -0
- package/dist/components/approval/components/approvalPageConfig/jsonConfig.vue.d.ts +16 -0
- package/dist/components/approval/components/approvalPageConfig/layoutSetting.vue.d.ts +9 -0
- package/dist/components/approval/components/approvalPageConfig/leftColumn.vue.d.ts +1184 -0
- package/dist/components/approval/components/approvalPageConfig/middleColumn.vue.d.ts +145 -0
- package/dist/components/approval/components/approvalPageConfig/operatorSelect.vue.d.ts +18 -0
- package/dist/components/approval/components/approvalPageConfig/searchConfig.vue.d.ts +166 -0
- package/dist/components/approval/components/approvalPageConfig/tableConfig.vue.d.ts +802 -0
- package/dist/components/approval/components/codeHistory/codeHistory.vue.d.ts +53 -0
- package/dist/components/approval/components/codeHistory/codeHistoryViewModal.vue.d.ts +32 -0
- package/dist/components/approval/components/columnDataList.vue.d.ts +454 -0
- package/dist/components/approval/components/columnForm.vue.d.ts +26 -0
- package/dist/components/approval/components/columnTables.vue.d.ts +502 -0
- package/dist/components/approval/components/columnUnknown.vue.d.ts +2 -0
- package/dist/components/approval/components/dataStoreConfig/ConditionConfig.vue.d.ts +199 -0
- package/dist/components/approval/components/dataStoreConfig/ValueInput.vue.d.ts +37 -0
- package/dist/components/approval/components/dataStoreConfig/dataSourceDetial.vue.d.ts +22 -0
- package/dist/components/approval/components/dataStoreConfig/dataStoreConfig.vue.d.ts +554 -0
- package/dist/components/approval/components/dataStoreConfig/dataStoreConfigItem.vue.d.ts +434 -0
- package/dist/components/approval/components/dataStoreConfig/dataStoreTest.vue.d.ts +39 -0
- package/dist/components/approval/components/dataStoreConfig/dataStoreTestsItem.vue.d.ts +17 -0
- package/dist/components/approval/components/dataStoreConfig/formField.vue.d.ts +28 -0
- package/dist/components/approval/components/dataStoreConfig/formFieldMulType.vue.d.ts +96 -0
- package/dist/components/approval/components/dataStoreConfig/selectExcelColumn.vue.d.ts +26 -0
- package/dist/components/approval/components/dataStoreConfig/selectExcelType.vue.d.ts +28 -0
- package/dist/components/approval/components/debugCode/debugCode.vue.d.ts +214 -0
- package/dist/components/approval/components/drawerDataList.vue.d.ts +504 -0
- package/dist/components/approval/components/drawerTablesList.vue.d.ts +551 -0
- package/dist/components/approval/components/flowConfig/flowConfig.vue.d.ts +1097 -0
- package/dist/components/approval/components/flowConfig/selectCcGroup.vue.d.ts +9 -0
- package/dist/components/approval/components/flowConfig/selectUsers.vue.d.ts +9 -0
- package/dist/components/approval/components/modelTablesList.vue.d.ts +551 -0
- package/dist/components/approval/components/pageConfigHistory.vue.d.ts +2 -0
- package/dist/components/approval/components/search.vue.d.ts +238 -0
- package/dist/components/approval/components/searchSummary.vue.d.ts +100 -0
- package/dist/components/approval/components/table.vue.d.ts +416 -0
- package/dist/components/approval/components/tableModal.vue.d.ts +84 -0
- package/dist/components/approval/configs/approval/default.d.ts +11 -0
- package/dist/components/approval/configs/approval/recordActions.d.ts +22 -0
- package/dist/components/approval/core.vue.d.ts +48 -0
- package/dist/components/approval/example_code/example_code.d.ts +11 -0
- package/dist/components/approval/index.d.ts +18 -0
- package/dist/components/approval/index.vue.d.ts +2 -0
- package/dist/components/approval/migrate/index.d.ts +1 -0
- package/dist/components/approval/migrate/v0001.d.ts +2 -0
- package/dist/components/approval/store/context.d.ts +48 -0
- package/dist/components/approval/store/debugCode.d.ts +7 -0
- package/dist/components/approval/store/settingsState.d.ts +15 -0
- package/dist/components/approval/typing.d.ts +210 -0
- package/dist/components/approval/useApprovalRecordActions.d.ts +83 -0
- package/dist/components/approval/utils.d.ts +164 -0
- package/dist/components/approval_for_details.vue.d.ts +9 -0
- package/dist/components/flow/ElInputTag/index.vue.d.ts +46 -0
- package/dist/components/flow/Expression/index.vue.d.ts +48 -0
- package/dist/components/flow/Role/index.vue.d.ts +68 -0
- package/dist/components/flow/User/index.vue.d.ts +76 -0
- package/dist/config/packed-config.d.ts +26 -0
- package/dist/constants.d.ts +1 -0
- package/dist/core-CctSle2c.js +1629 -0
- package/dist/core-CctSle2c.js.map +1 -0
- package/dist/dataStoreSettingHistoryViewModal-D_so-KLp.js +114 -0
- package/dist/dataStoreSettingHistoryViewModal-D_so-KLp.js.map +1 -0
- package/dist/debugCode-Cm9-WiUG.js +565 -0
- package/dist/debugCode-Cm9-WiUG.js.map +1 -0
- package/dist/debugCode-dD1YnQSD.js +11 -0
- package/dist/debugCode-dD1YnQSD.js.map +1 -0
- package/dist/default-VdDMlY4e.js +560 -0
- package/dist/default-VdDMlY4e.js.map +1 -0
- package/dist/example_code-C_xF8RRG.js +129 -0
- package/dist/example_code-C_xF8RRG.js.map +1 -0
- package/dist/flowHistoryViewModal-D8DJP7Te.js +109 -0
- package/dist/flowHistoryViewModal-D8DJP7Te.js.map +1 -0
- package/dist/index.d.ts +81 -0
- package/dist/index.js +507 -26691
- package/dist/index.js.map +1 -1
- package/dist/init-plugin-fQTSQzui.js +48 -0
- package/dist/init-plugin-fQTSQzui.js.map +1 -0
- package/dist/init-plugin.d.ts +57 -0
- package/dist/leftColumn-CsPjufue.js +209 -0
- package/dist/leftColumn-CsPjufue.js.map +1 -0
- package/dist/lyflowchart.css +1 -1
- package/dist/middleColumn-C7M6-eVo.js +107 -0
- package/dist/middleColumn-C7M6-eVo.js.map +1 -0
- package/dist/recordActions-BgFlNsGU.js +51 -0
- package/dist/recordActions-BgFlNsGU.js.map +1 -0
- package/dist/settingsState-CI81PG-i.js +19 -0
- package/dist/settingsState-CI81PG-i.js.map +1 -0
- package/dist/style.d.ts +3 -0
- package/dist/styles.d.ts +7 -0
- package/dist/tableConfig-uLXue-BS.js +2408 -0
- package/dist/tableConfig-uLXue-BS.js.map +1 -0
- package/dist/tableModal-BcYfVL02.js +124 -0
- package/dist/tableModal-BcYfVL02.js.map +1 -0
- package/dist/useApprovalRecordActions-BQ6MgV2L.js +843 -0
- package/dist/useApprovalRecordActions-BQ6MgV2L.js.map +1 -0
- package/dist/utils/StrUtil.d.ts +52 -0
- package/dist/utils/function.d.ts +8 -0
- package/dist/utils-CLet2gLV.js +420 -0
- package/dist/utils-CLet2gLV.js.map +1 -0
- package/dist/v0001-OaBeBCXI.js +4 -0
- package/dist/v0001-OaBeBCXI.js.map +1 -0
- package/dist/{Cell_click_data_source-CUVsbkcN.js → viewer-Dv3kQsMf.js} +1551 -2415
- package/dist/viewer-Dv3kQsMf.js.map +1 -0
- package/dist/vue-print-next-HRweUmNi.js +683 -0
- package/dist/vue-print-next-HRweUmNi.js.map +1 -0
- package/package.json +39 -8
- package/dist/Cell_click_data_source-CUVsbkcN.js.map +0 -1
|
@@ -0,0 +1,843 @@
|
|
|
1
|
+
import { t as e } from "./viewer-Dv3kQsMf.js";
|
|
2
|
+
import { a as t, d as n, o as r, v as i } from "./init-plugin-fQTSQzui.js";
|
|
3
|
+
import { t as a } from "./recordActions-BgFlNsGU.js";
|
|
4
|
+
import { Fragment as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, onMounted as h, openBlock as g, reactive as _, ref as v, renderList as y, resolveComponent as b, toDisplayString as x, watch as S, withCtx as C } from "vue";
|
|
5
|
+
import { message as w } from "ant-design-vue";
|
|
6
|
+
//#region src/components/approval_for_details.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var T = { class: "form-container" }, ee = { class: "header-container" }, te = { class: "serial-number" }, ne = { class: "article-title" }, E = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "modify-status"
|
|
10
|
+
}, D = {
|
|
11
|
+
class: "form-body descriptions",
|
|
12
|
+
style: { "padding-bottom": "10px" }
|
|
13
|
+
}, O = { class: "xinxi-title" }, k = { style: {
|
|
14
|
+
"white-space": "pre-line",
|
|
15
|
+
margin: "0",
|
|
16
|
+
color: "#909399"
|
|
17
|
+
} }, A = { key: 0 }, j = { key: 0 }, re = { style: {
|
|
18
|
+
overflow: "hidden",
|
|
19
|
+
"text-overflow": "ellipsis",
|
|
20
|
+
"white-space": "nowrap",
|
|
21
|
+
width: "100%",
|
|
22
|
+
"user-select": "text",
|
|
23
|
+
"text-align": "left"
|
|
24
|
+
} }, ie = { style: {
|
|
25
|
+
"white-space": "pre-line",
|
|
26
|
+
margin: "0",
|
|
27
|
+
color: "#909399"
|
|
28
|
+
} }, ae = { key: 0 }, oe = { key: 0 }, M = { style: {
|
|
29
|
+
overflow: "hidden",
|
|
30
|
+
"text-overflow": "ellipsis",
|
|
31
|
+
"white-space": "nowrap",
|
|
32
|
+
width: "100%",
|
|
33
|
+
"user-select": "text",
|
|
34
|
+
"text-align": "left"
|
|
35
|
+
} }, N = { style: {
|
|
36
|
+
"white-space": "pre-line",
|
|
37
|
+
margin: "0",
|
|
38
|
+
color: "#909399"
|
|
39
|
+
} }, P = { key: 0 }, F = { key: 0 }, I = { style: {
|
|
40
|
+
overflow: "hidden",
|
|
41
|
+
"text-overflow": "ellipsis",
|
|
42
|
+
"white-space": "nowrap",
|
|
43
|
+
width: "100%",
|
|
44
|
+
"user-select": "text",
|
|
45
|
+
"text-align": "left"
|
|
46
|
+
} }, L = { style: {
|
|
47
|
+
"white-space": "pre-line",
|
|
48
|
+
margin: "0",
|
|
49
|
+
color: "#909399"
|
|
50
|
+
} }, R = { key: 0 }, z = { key: 0 }, B = { style: {
|
|
51
|
+
overflow: "hidden",
|
|
52
|
+
"text-overflow": "ellipsis",
|
|
53
|
+
"white-space": "nowrap",
|
|
54
|
+
width: "100%",
|
|
55
|
+
"user-select": "text",
|
|
56
|
+
"text-align": "left"
|
|
57
|
+
} }, V = { style: {
|
|
58
|
+
height: "400px",
|
|
59
|
+
"margin-top": "10px"
|
|
60
|
+
} }, H = /* @__PURE__ */ i(/* @__PURE__ */ m({
|
|
61
|
+
name: "ApprovalForDetails",
|
|
62
|
+
__name: "approval_for_details",
|
|
63
|
+
props: { record: {} },
|
|
64
|
+
setup(t, { expose: r }) {
|
|
65
|
+
let i = n(), a = t, s = v([]), m = _({}), w = v({}), H = [
|
|
66
|
+
{
|
|
67
|
+
title: "序号",
|
|
68
|
+
dataIndex: "index",
|
|
69
|
+
width: 50,
|
|
70
|
+
ellipsis: !0,
|
|
71
|
+
fixed: "left"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
title: "审批步骤",
|
|
75
|
+
dataIndex: "name",
|
|
76
|
+
minWidth: 150,
|
|
77
|
+
ellipsis: !0,
|
|
78
|
+
resizable: !0
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
title: "职位",
|
|
82
|
+
dataIndex: "approval_position__name",
|
|
83
|
+
minWidth: 150,
|
|
84
|
+
ellipsis: !0,
|
|
85
|
+
resizable: !0
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
title: "审批人",
|
|
89
|
+
dataIndex: "assignee__realname",
|
|
90
|
+
minWidth: 150,
|
|
91
|
+
ellipsis: !0,
|
|
92
|
+
resizable: !0
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
title: "操作",
|
|
96
|
+
dataIndex: "approval_result",
|
|
97
|
+
minWidth: 150,
|
|
98
|
+
ellipsis: !0,
|
|
99
|
+
resizable: !0
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
title: "审批意见",
|
|
103
|
+
dataIndex: "comment",
|
|
104
|
+
minWidth: 150,
|
|
105
|
+
ellipsis: !0,
|
|
106
|
+
resizable: !0
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
title: "时间",
|
|
110
|
+
dataIndex: "end_time",
|
|
111
|
+
minWidth: 150,
|
|
112
|
+
ellipsis: !0,
|
|
113
|
+
resizable: !0
|
|
114
|
+
}
|
|
115
|
+
], U = [
|
|
116
|
+
{
|
|
117
|
+
title: "序号",
|
|
118
|
+
dataIndex: "index",
|
|
119
|
+
width: 50,
|
|
120
|
+
ellipsis: !0,
|
|
121
|
+
fixed: "left"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
title: "审批步骤",
|
|
125
|
+
dataIndex: "name",
|
|
126
|
+
width: 150,
|
|
127
|
+
ellipsis: !0,
|
|
128
|
+
resizable: !0
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
title: "职位",
|
|
132
|
+
dataIndex: "jue_se",
|
|
133
|
+
width: 150,
|
|
134
|
+
ellipsis: !0,
|
|
135
|
+
resizable: !0
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
title: "步骤审批人",
|
|
139
|
+
dataIndex: "list",
|
|
140
|
+
minWidth: 150,
|
|
141
|
+
ellipsis: !0,
|
|
142
|
+
resizable: !0
|
|
143
|
+
}
|
|
144
|
+
], W = v([]), G = (e) => e != null && e !== "", K = (e, t, n) => {
|
|
145
|
+
let r = [], i = (e, t, n) => e?.form?.dynamicFieldList ? e.form.dynamicFieldList.flatMap((r) => r.children.map((r) => {
|
|
146
|
+
let a = {
|
|
147
|
+
label: r.label,
|
|
148
|
+
type: r.type,
|
|
149
|
+
value: "",
|
|
150
|
+
column: r?.column || 3,
|
|
151
|
+
is_hide: e?.showType == "table" ? r?.is_table_hide_column || !1 : r?.is_hide || !1
|
|
152
|
+
};
|
|
153
|
+
return r.type === "formtemplate" ? t?.[r.name]?.length > 0 && (a.children = [], t[r.name].forEach((e) => {
|
|
154
|
+
a.children.push(i(r, e, r.form.options));
|
|
155
|
+
})) : r.type === "select" || r.type === "radio" ? G(t?.[r.name]) && (a.value = n?.[r.name]?.find((e) => e.value == t[r.name])?.name || "") : r.type === "checkbox" ? G(t?.[r.name]) && (a.value = (n?.[r.name]?.filter((e) => t[r.name].includes(e.value))?.map((e) => e.name)?.filter(Boolean))?.join(",") || "") : r.type === "remoteselectpro" ? G(t?.[r.name + ".label"]) && (a.value = t[r.name + ".label"]) : r.type === "remotetablepro" ? (a.children = [], t?.[r.name]?.length > 0 && t[r.name].forEach((e) => {
|
|
156
|
+
let t = [];
|
|
157
|
+
r?.children?.length > 0 && r.children.forEach((n) => {
|
|
158
|
+
n?.children?.length > 0 && n.children.forEach((n) => {
|
|
159
|
+
let r = {
|
|
160
|
+
label: n.label,
|
|
161
|
+
type: n.type,
|
|
162
|
+
value: ""
|
|
163
|
+
};
|
|
164
|
+
n.type === "select" || n.type === "radio" || n.type === "checkbox" || n.type === "remoteselectpro" ? r.value = e?.[n.name2] || "" : r.value = e?.[n.name] || "", t.push(r);
|
|
165
|
+
});
|
|
166
|
+
}), a.children.push(t);
|
|
167
|
+
})) : a.value = t?.[r.name] || "", a;
|
|
168
|
+
})) : [];
|
|
169
|
+
return e.forEach((e) => {
|
|
170
|
+
if (e?.children?.length > 0) {
|
|
171
|
+
let a = {
|
|
172
|
+
group_name: e?.group_name || "",
|
|
173
|
+
children: [],
|
|
174
|
+
column: e?.column || 3
|
|
175
|
+
};
|
|
176
|
+
e.children.forEach((e) => {
|
|
177
|
+
let r = {
|
|
178
|
+
label: e.label,
|
|
179
|
+
type: e.type,
|
|
180
|
+
column: e?.column || 3,
|
|
181
|
+
value: ""
|
|
182
|
+
};
|
|
183
|
+
e.type === "remoteselectpro" ? G(t?.[e.name + ".label"]) && (r.value = t?.[e.name + ".label"]) : e.type === "select" || e.type === "radio" ? G(t?.[e.name]) && (r.value = n?.[e.name]?.find((n) => n.value == t[e.name])?.name || "") : e.type === "checkbox" ? G(t?.[e.name]) && (r.value = (n?.[e.name]?.filter((n) => t[e.name].includes(n.value))?.map((e) => e.name)?.filter(Boolean))?.join(",") || "") : e.type === "remotetablepro" ? (r.children = [], t?.[e.name]?.length > 0 && t[e.name].forEach((t) => {
|
|
184
|
+
let n = [];
|
|
185
|
+
e?.children?.length > 0 && e.children.forEach((e) => {
|
|
186
|
+
e?.children?.length > 0 && e.children.forEach((e) => {
|
|
187
|
+
let r = {
|
|
188
|
+
label: e.label,
|
|
189
|
+
type: e.type,
|
|
190
|
+
value: ""
|
|
191
|
+
};
|
|
192
|
+
e.type === "select" || e.type === "radio" || e.type === "checkbox" || e.type === "remoteselectpro" ? r.value = t?.[e.name2] || "" : r.value = t?.[e.name] || "", n.push(r);
|
|
193
|
+
});
|
|
194
|
+
}), r.children.push(n);
|
|
195
|
+
})) : e.type === "formtemplate" ? t?.[e.name]?.length > 0 && (r.children = [], t[e.name].forEach((t) => {
|
|
196
|
+
r.children.push(i(e, t, e.form.options));
|
|
197
|
+
})) : r.value = t?.[e.name] || "", a.children.push(r);
|
|
198
|
+
}), r.push(a);
|
|
199
|
+
}
|
|
200
|
+
}), r;
|
|
201
|
+
}, se = (e) => {
|
|
202
|
+
let t = new DOMParser().parseFromString(e, "text/xml").getElementsByTagName("userTask"), n = [];
|
|
203
|
+
for (let e of t) {
|
|
204
|
+
let t = e.getAttribute("name") || "", r = e.getAttribute("flowable:userType") || "", i = "";
|
|
205
|
+
r === "candidateGroups" && (i = e.getAttribute("flowable:candidateGroups") || ""), r === "assignee" && (i = e.getAttribute("flowable:assignee") || ""), r === "candidateUsers" && (i = e.getAttribute("flowable:candidateUsers") || ""), n.push({
|
|
206
|
+
name: t,
|
|
207
|
+
type: r,
|
|
208
|
+
value: i
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
return n;
|
|
212
|
+
}, q = v([]), J = 0, Y = async () => {
|
|
213
|
+
let e = ++J, t = a.record?.id;
|
|
214
|
+
if (!t) return;
|
|
215
|
+
W.value = [], q.value = [], s.value = [];
|
|
216
|
+
let n = await i({ approve_record_id: t }, "/approve/get_approve_record_info");
|
|
217
|
+
if (e !== J) return;
|
|
218
|
+
s.value = K(n.form_definition__data.dynamicFieldList, n.form_data, n.form_definition__data.options), w.value = {
|
|
219
|
+
xmlData: n.xml_data,
|
|
220
|
+
nodeData: n.node_data
|
|
221
|
+
};
|
|
222
|
+
let r = await i({ is_active: !0 }, "/sys/query_person_detail_list"), o = await i({
|
|
223
|
+
is_active: !0,
|
|
224
|
+
column_fields: ["approvers_m2m_json", "name"]
|
|
225
|
+
}, "/lyapprove/query_approval_position_list");
|
|
226
|
+
q.value = se(n.xml_data), q.value = q.value.map((e, t) => ({
|
|
227
|
+
...e,
|
|
228
|
+
id: t,
|
|
229
|
+
value: e.value ? e.value.split(",").filter(Boolean).map(Number) : null
|
|
230
|
+
})), q.value.forEach((e) => {
|
|
231
|
+
e.value && e.value.length > 0 && (e.list = [], (e.type == "assignee" || e.type == "candidateUsers") && e.value.forEach((t) => {
|
|
232
|
+
r.data.forEach((n) => {
|
|
233
|
+
t == n.id && e.list.push({ realname: n.realname });
|
|
234
|
+
});
|
|
235
|
+
}), e.type == "candidateGroups" && e.value.forEach((t) => {
|
|
236
|
+
o.data.forEach((n) => {
|
|
237
|
+
t == n.id && (e.jue_se = n.name, e.list = n.approvers_m2m_json);
|
|
238
|
+
});
|
|
239
|
+
}));
|
|
240
|
+
}), Object.assign(m, n), n.process_instance_id && (W.value.push({
|
|
241
|
+
name: "开始",
|
|
242
|
+
id: 0,
|
|
243
|
+
approval_position__name: m?.form_data?.globalData?.person_position?.name ? m.form_data.globalData.person_position.name : "",
|
|
244
|
+
assignee__realname: n.send_person__realname,
|
|
245
|
+
approval_result: "发起",
|
|
246
|
+
comment: "",
|
|
247
|
+
end_time: n.start_time
|
|
248
|
+
}), i({ process_instance_id: n.process_instance_id }, "/lyapprove/query_task_list").then((e) => {
|
|
249
|
+
e && e.data && e.data.length > 0 && e.data.sort((e, t) => e.id - t.id).forEach((e) => {
|
|
250
|
+
e.status == "完成" && W.value.push({
|
|
251
|
+
...e,
|
|
252
|
+
approval_result: e.approval_result === "agree" ? "通过" : e.approval_result === "refuse" ? "拒绝" : ""
|
|
253
|
+
});
|
|
254
|
+
}), W.value = [].concat(W.value);
|
|
255
|
+
}));
|
|
256
|
+
};
|
|
257
|
+
h(() => {
|
|
258
|
+
Y();
|
|
259
|
+
}), S(() => a.record?.id, () => {
|
|
260
|
+
Y();
|
|
261
|
+
}), r({ reload: Y });
|
|
262
|
+
let ce = (e) => {
|
|
263
|
+
let t = /* @__PURE__ */ new Set();
|
|
264
|
+
return e.filter((e) => !t.has(e.title) && t.add(e.title));
|
|
265
|
+
}, X = (e) => {
|
|
266
|
+
let t = [];
|
|
267
|
+
return e && e.length > 0 && e[0].forEach((e, n) => {
|
|
268
|
+
e.type === "upload" ? t.push({
|
|
269
|
+
title: e.label,
|
|
270
|
+
dataIndex: "upload_" + n,
|
|
271
|
+
minWidth: 150,
|
|
272
|
+
resizable: !0,
|
|
273
|
+
autoHeight: !0
|
|
274
|
+
}) : t.push({
|
|
275
|
+
title: e.label,
|
|
276
|
+
dataIndex: "value_" + n,
|
|
277
|
+
resizable: !0,
|
|
278
|
+
autoHeight: !0
|
|
279
|
+
});
|
|
280
|
+
}), ce(t);
|
|
281
|
+
}, Z = (e) => {
|
|
282
|
+
let t = [];
|
|
283
|
+
return e && e.length > 0 && e.forEach((e, n) => {
|
|
284
|
+
let r = {};
|
|
285
|
+
e.forEach((e, t) => {
|
|
286
|
+
e.type === "upload" ? r["upload_" + t] = e.value : r["value_" + t] = e.value;
|
|
287
|
+
}), t.push({
|
|
288
|
+
...r,
|
|
289
|
+
index: n
|
|
290
|
+
});
|
|
291
|
+
}), t;
|
|
292
|
+
}, Q = (e) => (e &&= e.substring(0, 10), e), le = (e) => ({
|
|
293
|
+
正常: "green",
|
|
294
|
+
已修改: "orange",
|
|
295
|
+
已删除: "red"
|
|
296
|
+
})[e] || "default", $ = (e) => {
|
|
297
|
+
window.open(encodeURI(e), "_blank");
|
|
298
|
+
};
|
|
299
|
+
return (n, r) => {
|
|
300
|
+
let i = b("a-tag"), a = b("a-descriptions-item"), h = b("a-descriptions"), _ = b("a-button"), v = b("s-table");
|
|
301
|
+
return g(), u("div", T, [d("div", ee, [
|
|
302
|
+
d("div", te, "流程编码:" + x(t.record?.number), 1),
|
|
303
|
+
d("div", ne, x(m?.context) + "(" + x(m?.flow_name) + ")", 1),
|
|
304
|
+
m?.modify_status ? (g(), u("div", E, [p(i, { color: le(m.modify_status) }, {
|
|
305
|
+
default: C(() => [f(x(m.modify_status), 1)]),
|
|
306
|
+
_: 1
|
|
307
|
+
}, 8, ["color"])])) : l("", !0)
|
|
308
|
+
]), d("div", D, [
|
|
309
|
+
r[2] ||= d("div", {
|
|
310
|
+
class: "xinxi-title",
|
|
311
|
+
style: { "margin-top": "0" }
|
|
312
|
+
}, " 基本信息 ", -1),
|
|
313
|
+
p(h, { bordered: "" }, {
|
|
314
|
+
default: C(() => [
|
|
315
|
+
p(a, { label: "发起人" }, {
|
|
316
|
+
default: C(() => [f(x(m?.send_person__realname), 1)]),
|
|
317
|
+
_: 1
|
|
318
|
+
}),
|
|
319
|
+
p(a, { label: "切换组织" }, {
|
|
320
|
+
default: C(() => [f(x(m?.form_data?.globalData?.cost_company?.name), 1)]),
|
|
321
|
+
_: 1
|
|
322
|
+
}),
|
|
323
|
+
p(a, { label: "切换部门" }, {
|
|
324
|
+
default: C(() => [f(x(m?.form_data?.globalData?.cost_department?.name), 1)]),
|
|
325
|
+
_: 1
|
|
326
|
+
}),
|
|
327
|
+
p(a, { label: "员工职位" }, {
|
|
328
|
+
default: C(() => [f(x(m?.form_data?.globalData?.person_position?.name), 1)]),
|
|
329
|
+
_: 1
|
|
330
|
+
}),
|
|
331
|
+
p(a, { label: "员工组织" }, {
|
|
332
|
+
default: C(() => [f(x(m?.form_data?.globalData?.person_cost_company?.name), 1)]),
|
|
333
|
+
_: 1
|
|
334
|
+
}),
|
|
335
|
+
p(a, { label: "员工部门" }, {
|
|
336
|
+
default: C(() => [f(x(m?.form_data?.globalData?.person_department?.name), 1)]),
|
|
337
|
+
_: 1
|
|
338
|
+
}),
|
|
339
|
+
p(a, { label: "发起时间" }, {
|
|
340
|
+
default: C(() => [f(x(Q(m?.start_time)), 1)]),
|
|
341
|
+
_: 1
|
|
342
|
+
}),
|
|
343
|
+
p(a, {
|
|
344
|
+
span: 2,
|
|
345
|
+
label: "结束时间"
|
|
346
|
+
}, {
|
|
347
|
+
default: C(() => [f(x(Q(m?.finish_time)), 1)]),
|
|
348
|
+
_: 1
|
|
349
|
+
}),
|
|
350
|
+
p(a, { label: "流程主题" }, {
|
|
351
|
+
default: C(() => [f(x(m?.context), 1)]),
|
|
352
|
+
_: 1
|
|
353
|
+
}),
|
|
354
|
+
m?.modify_source__number ? (g(), c(a, {
|
|
355
|
+
key: 0,
|
|
356
|
+
label: "修改来源流水号"
|
|
357
|
+
}, {
|
|
358
|
+
default: C(() => [f(x(m?.modify_source__number), 1)]),
|
|
359
|
+
_: 1
|
|
360
|
+
})) : l("", !0)
|
|
361
|
+
]),
|
|
362
|
+
_: 1
|
|
363
|
+
}),
|
|
364
|
+
(g(!0), u(o, null, y(s.value, (e, t) => (g(), u(o, { key: t }, [
|
|
365
|
+
d("div", O, x(e?.group_name ? e.group_name : "审批信息" + (t + 1)), 1),
|
|
366
|
+
p(h, {
|
|
367
|
+
bordered: "",
|
|
368
|
+
column: e?.column ? e?.column : 3
|
|
369
|
+
}, {
|
|
370
|
+
default: C(() => [(g(!0), u(o, null, y(e.children, (e, t) => (g(), u(o, { key: t }, [e.type !== "remotetablepro" && e.type !== "formtemplate" ? (g(), u(o, { key: 0 }, [e.type === "textarea" ? (g(), c(a, {
|
|
371
|
+
key: 0,
|
|
372
|
+
label: e.label
|
|
373
|
+
}, {
|
|
374
|
+
default: C(() => [d("p", k, x(e.value), 1)]),
|
|
375
|
+
_: 2
|
|
376
|
+
}, 1032, ["label"])) : e.type === "upload" ? (g(), c(a, {
|
|
377
|
+
key: 1,
|
|
378
|
+
label: e.label
|
|
379
|
+
}, {
|
|
380
|
+
default: C(() => [e.value && e.value?.length > 0 ? (g(!0), u(o, { key: 0 }, y(e.value, (e, t) => (g(), u(o, { key: t }, [t > 0 ? (g(), u("br", A)) : l("", !0), p(_, {
|
|
381
|
+
type: "link",
|
|
382
|
+
onClick: (t) => $(e.url)
|
|
383
|
+
}, {
|
|
384
|
+
default: C(() => [f(x(e.name), 1)]),
|
|
385
|
+
_: 2
|
|
386
|
+
}, 1032, ["onClick"])], 64))), 128)) : l("", !0)]),
|
|
387
|
+
_: 2
|
|
388
|
+
}, 1032, ["label"])) : (g(), c(a, {
|
|
389
|
+
key: 2,
|
|
390
|
+
label: e.label,
|
|
391
|
+
span: 1
|
|
392
|
+
}, {
|
|
393
|
+
default: C(() => [f(x(e.value), 1)]),
|
|
394
|
+
_: 2
|
|
395
|
+
}, 1032, ["label"]))], 64)) : l("", !0)], 64))), 128))]),
|
|
396
|
+
_: 2
|
|
397
|
+
}, 1032, ["column"]),
|
|
398
|
+
p(h, {
|
|
399
|
+
bordered: "",
|
|
400
|
+
column: e?.column ? e?.column : 3
|
|
401
|
+
}, {
|
|
402
|
+
default: C(() => [(g(!0), u(o, null, y(e.children, (e, t) => (g(), u(o, { key: t }, [e.type === "remotetablepro" ? (g(), c(a, {
|
|
403
|
+
key: 0,
|
|
404
|
+
label: e.label,
|
|
405
|
+
span: 3
|
|
406
|
+
}, {
|
|
407
|
+
default: C(() => [p(v, {
|
|
408
|
+
columns: X(e.children),
|
|
409
|
+
"data-source": Z(e.children),
|
|
410
|
+
pagination: !1,
|
|
411
|
+
rangeSelection: !1,
|
|
412
|
+
"row-key": "index",
|
|
413
|
+
bordered: "",
|
|
414
|
+
size: "small",
|
|
415
|
+
stripe: ""
|
|
416
|
+
}, {
|
|
417
|
+
bodyCell: C(({ record: e, column: t, text: n, index: r }) => [t.dataIndex.includes("upload") ? (g(), u(o, { key: 0 }, [n && n?.length > 0 ? (g(!0), u(o, { key: 0 }, y(n, (e, t) => (g(), u(o, { key: t }, [t > 0 ? (g(), u("br", j)) : l("", !0), p(_, {
|
|
418
|
+
title: e.name,
|
|
419
|
+
style: {
|
|
420
|
+
"padding-left": "1px",
|
|
421
|
+
width: "100%"
|
|
422
|
+
},
|
|
423
|
+
type: "link",
|
|
424
|
+
onClick: (t) => $(e.url)
|
|
425
|
+
}, {
|
|
426
|
+
default: C(() => [d("span", re, x(e.name), 1)]),
|
|
427
|
+
_: 2
|
|
428
|
+
}, 1032, ["title", "onClick"])], 64))), 128)) : l("", !0)], 64)) : (g(), u(o, { key: 1 }, [f(x(n), 1)], 64))]),
|
|
429
|
+
_: 1
|
|
430
|
+
}, 8, ["columns", "data-source"])]),
|
|
431
|
+
_: 2
|
|
432
|
+
}, 1032, ["label"])) : l("", !0), e.type === "formtemplate" ? (g(), c(a, {
|
|
433
|
+
key: 1,
|
|
434
|
+
label: e.label,
|
|
435
|
+
span: 3
|
|
436
|
+
}, {
|
|
437
|
+
default: C(() => [(g(!0), u(o, null, y(e.children, (t, n) => (g(), u(o, { key: n }, [p(h, {
|
|
438
|
+
bordered: "",
|
|
439
|
+
column: e?.column ? e?.column : 3
|
|
440
|
+
}, {
|
|
441
|
+
default: C(() => [(g(!0), u(o, null, y(t, (e, t) => (g(), u(o, { key: t }, [e.type !== "remotetablepro" && e.type !== "formtemplate" ? (g(), u(o, { key: 0 }, [e.type === "textarea" && !e.is_hide ? (g(), c(a, {
|
|
442
|
+
key: 0,
|
|
443
|
+
label: e.label
|
|
444
|
+
}, {
|
|
445
|
+
default: C(() => [d("p", ie, x(e.value), 1)]),
|
|
446
|
+
_: 2
|
|
447
|
+
}, 1032, ["label"])) : e.type === "upload" && !e.is_hide ? (g(), c(a, {
|
|
448
|
+
key: 1,
|
|
449
|
+
label: e.label
|
|
450
|
+
}, {
|
|
451
|
+
default: C(() => [e.value && e.value?.length > 0 ? (g(!0), u(o, { key: 0 }, y(e.value, (e, t) => (g(), u(o, { key: t }, [t > 0 ? (g(), u("br", ae)) : l("", !0), p(_, {
|
|
452
|
+
type: "link",
|
|
453
|
+
onClick: (t) => $(e.url)
|
|
454
|
+
}, {
|
|
455
|
+
default: C(() => [f(x(e.name), 1)]),
|
|
456
|
+
_: 2
|
|
457
|
+
}, 1032, ["onClick"])], 64))), 128)) : l("", !0)]),
|
|
458
|
+
_: 2
|
|
459
|
+
}, 1032, ["label"])) : (g(), u(o, { key: 2 }, [e.is_hide ? l("", !0) : (g(), c(a, {
|
|
460
|
+
key: 0,
|
|
461
|
+
label: e.label
|
|
462
|
+
}, {
|
|
463
|
+
default: C(() => [f(x(e.value), 1)]),
|
|
464
|
+
_: 2
|
|
465
|
+
}, 1032, ["label"]))], 64))], 64)) : l("", !0)], 64))), 128))]),
|
|
466
|
+
_: 2
|
|
467
|
+
}, 1032, ["column"]), p(h, {
|
|
468
|
+
bordered: "",
|
|
469
|
+
column: e?.column ? e?.column : 3
|
|
470
|
+
}, {
|
|
471
|
+
default: C(() => [(g(!0), u(o, null, y(t, (e, t) => (g(), u(o, { key: t }, [e.type === "remotetablepro" && !e.is_hide ? (g(), c(a, {
|
|
472
|
+
key: 0,
|
|
473
|
+
label: e.label,
|
|
474
|
+
span: 3
|
|
475
|
+
}, {
|
|
476
|
+
default: C(() => [p(v, {
|
|
477
|
+
columns: X(e.children),
|
|
478
|
+
"data-source": Z(e.children),
|
|
479
|
+
pagination: !1,
|
|
480
|
+
rangeSelection: !1,
|
|
481
|
+
"row-key": "index",
|
|
482
|
+
bordered: "",
|
|
483
|
+
size: "small",
|
|
484
|
+
stripe: ""
|
|
485
|
+
}, {
|
|
486
|
+
bodyCell: C(({ record: e, column: t, text: n, index: r }) => [t.dataIndex.includes("upload") ? (g(), u(o, { key: 0 }, [n && n?.length > 0 ? (g(!0), u(o, { key: 0 }, y(n, (e, t) => (g(), u(o, { key: t }, [t > 0 ? (g(), u("br", oe)) : l("", !0), p(_, {
|
|
487
|
+
title: e.name,
|
|
488
|
+
style: {
|
|
489
|
+
"padding-left": "1px",
|
|
490
|
+
width: "100%"
|
|
491
|
+
},
|
|
492
|
+
type: "link",
|
|
493
|
+
onClick: (t) => $(e.url)
|
|
494
|
+
}, {
|
|
495
|
+
default: C(() => [d("span", M, x(e.name), 1)]),
|
|
496
|
+
_: 2
|
|
497
|
+
}, 1032, ["title", "onClick"])], 64))), 128)) : l("", !0)], 64)) : (g(), u(o, { key: 1 }, [f(x(n), 1)], 64))]),
|
|
498
|
+
_: 1
|
|
499
|
+
}, 8, ["columns", "data-source"])]),
|
|
500
|
+
_: 2
|
|
501
|
+
}, 1032, ["label"])) : l("", !0), e.type === "formtemplate" && !e.is_hide ? (g(), c(a, {
|
|
502
|
+
key: 1,
|
|
503
|
+
label: e.label,
|
|
504
|
+
span: 3
|
|
505
|
+
}, {
|
|
506
|
+
default: C(() => [(g(!0), u(o, null, y(e.children, (t, n) => (g(), u(o, { key: n }, [p(h, {
|
|
507
|
+
bordered: "",
|
|
508
|
+
column: e?.column ? e?.column : 3
|
|
509
|
+
}, {
|
|
510
|
+
default: C(() => [(g(!0), u(o, null, y(t, (e, t) => (g(), u(o, { key: t }, [e.type !== "remotetablepro" && e.type !== "formtemplate" ? (g(), u(o, { key: 0 }, [e.type === "textarea" && !e.is_hide ? (g(), c(a, {
|
|
511
|
+
key: 0,
|
|
512
|
+
label: e.label
|
|
513
|
+
}, {
|
|
514
|
+
default: C(() => [d("p", N, x(e.value), 1)]),
|
|
515
|
+
_: 2
|
|
516
|
+
}, 1032, ["label"])) : e.type === "upload" && !e.is_hide ? (g(), c(a, {
|
|
517
|
+
key: 1,
|
|
518
|
+
label: e.label
|
|
519
|
+
}, {
|
|
520
|
+
default: C(() => [e.value && e.value?.length > 0 ? (g(!0), u(o, { key: 0 }, y(e.value, (e, t) => (g(), u(o, { key: t }, [t > 0 ? (g(), u("br", P)) : l("", !0), p(_, {
|
|
521
|
+
type: "link",
|
|
522
|
+
onClick: (t) => $(e.url)
|
|
523
|
+
}, {
|
|
524
|
+
default: C(() => [f(x(e.name), 1)]),
|
|
525
|
+
_: 2
|
|
526
|
+
}, 1032, ["onClick"])], 64))), 128)) : l("", !0)]),
|
|
527
|
+
_: 2
|
|
528
|
+
}, 1032, ["label"])) : (g(), u(o, { key: 2 }, [e.is_hide ? l("", !0) : (g(), c(a, {
|
|
529
|
+
key: 0,
|
|
530
|
+
label: e.label
|
|
531
|
+
}, {
|
|
532
|
+
default: C(() => [f(x(e.value), 1)]),
|
|
533
|
+
_: 2
|
|
534
|
+
}, 1032, ["label"]))], 64))], 64)) : l("", !0)], 64))), 128))]),
|
|
535
|
+
_: 2
|
|
536
|
+
}, 1032, ["column"]), p(h, {
|
|
537
|
+
bordered: "",
|
|
538
|
+
column: e?.column ? e?.column : 3
|
|
539
|
+
}, {
|
|
540
|
+
default: C(() => [(g(!0), u(o, null, y(t, (e, t) => (g(), u(o, { key: t }, [e.type === "remotetablepro" ? (g(), c(a, {
|
|
541
|
+
key: 0,
|
|
542
|
+
label: e.label,
|
|
543
|
+
span: 3
|
|
544
|
+
}, {
|
|
545
|
+
default: C(() => [p(v, {
|
|
546
|
+
columns: X(e.children),
|
|
547
|
+
"data-source": Z(e.children),
|
|
548
|
+
pagination: !1,
|
|
549
|
+
rangeSelection: !1,
|
|
550
|
+
"row-key": "index",
|
|
551
|
+
bordered: "",
|
|
552
|
+
size: "small",
|
|
553
|
+
stripe: ""
|
|
554
|
+
}, {
|
|
555
|
+
bodyCell: C(({ record: e, column: t, text: n, index: r }) => [t.dataIndex.includes("upload") ? (g(), u(o, { key: 0 }, [n && n?.length > 0 ? (g(!0), u(o, { key: 0 }, y(n, (e, t) => (g(), u(o, { key: t }, [t > 0 ? (g(), u("br", F)) : l("", !0), p(_, {
|
|
556
|
+
title: e.name,
|
|
557
|
+
style: {
|
|
558
|
+
"padding-left": "1px",
|
|
559
|
+
width: "100%"
|
|
560
|
+
},
|
|
561
|
+
type: "link",
|
|
562
|
+
onClick: (t) => $(e.url)
|
|
563
|
+
}, {
|
|
564
|
+
default: C(() => [d("span", I, x(e.name), 1)]),
|
|
565
|
+
_: 2
|
|
566
|
+
}, 1032, ["title", "onClick"])], 64))), 128)) : l("", !0)], 64)) : (g(), u(o, { key: 1 }, [f(x(n), 1)], 64))]),
|
|
567
|
+
_: 1
|
|
568
|
+
}, 8, ["columns", "data-source"])]),
|
|
569
|
+
_: 2
|
|
570
|
+
}, 1032, ["label"])) : l("", !0), e.type === "formtemplate" ? (g(), c(a, {
|
|
571
|
+
key: 1,
|
|
572
|
+
label: e.label,
|
|
573
|
+
span: 3
|
|
574
|
+
}, {
|
|
575
|
+
default: C(() => [(g(!0), u(o, null, y(e.children, (t, n) => (g(), u(o, { key: n }, [p(h, {
|
|
576
|
+
bordered: "",
|
|
577
|
+
column: e?.column ? e?.column : 3
|
|
578
|
+
}, {
|
|
579
|
+
default: C(() => [(g(!0), u(o, null, y(t, (e, t) => (g(), u(o, { key: t }, [e.type !== "remotetablepro" && e.type !== "formtemplate" ? (g(), u(o, { key: 0 }, [e.type === "textarea" && !e.is_hide ? (g(), c(a, {
|
|
580
|
+
key: 0,
|
|
581
|
+
label: e.label
|
|
582
|
+
}, {
|
|
583
|
+
default: C(() => [d("p", L, x(e.value), 1)]),
|
|
584
|
+
_: 2
|
|
585
|
+
}, 1032, ["label"])) : e.type === "upload" && !e.is_hide ? (g(), c(a, {
|
|
586
|
+
key: 1,
|
|
587
|
+
label: e.label
|
|
588
|
+
}, {
|
|
589
|
+
default: C(() => [e.value && e.value?.length > 0 ? (g(!0), u(o, { key: 0 }, y(e.value, (e, t) => (g(), u(o, { key: t }, [t > 0 ? (g(), u("br", R)) : l("", !0), p(_, {
|
|
590
|
+
type: "link",
|
|
591
|
+
onClick: (t) => $(e.url)
|
|
592
|
+
}, {
|
|
593
|
+
default: C(() => [f(x(e.name), 1)]),
|
|
594
|
+
_: 2
|
|
595
|
+
}, 1032, ["onClick"])], 64))), 128)) : l("", !0)]),
|
|
596
|
+
_: 2
|
|
597
|
+
}, 1032, ["label"])) : (g(), u(o, { key: 2 }, [e.is_hide ? l("", !0) : (g(), c(a, {
|
|
598
|
+
key: 0,
|
|
599
|
+
label: e.label
|
|
600
|
+
}, {
|
|
601
|
+
default: C(() => [f(x(e.value), 1)]),
|
|
602
|
+
_: 2
|
|
603
|
+
}, 1032, ["label"]))], 64))], 64)) : l("", !0)], 64))), 128))]),
|
|
604
|
+
_: 2
|
|
605
|
+
}, 1032, ["column"]), p(h, {
|
|
606
|
+
bordered: "",
|
|
607
|
+
column: e?.column ? e?.column : 3
|
|
608
|
+
}, {
|
|
609
|
+
default: C(() => [(g(!0), u(o, null, y(t, (e, t) => (g(), u(o, { key: t }, [e.type === "remotetablepro" ? (g(), c(a, {
|
|
610
|
+
key: 0,
|
|
611
|
+
label: e.label,
|
|
612
|
+
span: 3
|
|
613
|
+
}, {
|
|
614
|
+
default: C(() => [p(v, {
|
|
615
|
+
columns: X(e.children),
|
|
616
|
+
"data-source": Z(e.children),
|
|
617
|
+
pagination: !1,
|
|
618
|
+
rangeSelection: !1,
|
|
619
|
+
"row-key": "index",
|
|
620
|
+
bordered: "",
|
|
621
|
+
size: "small",
|
|
622
|
+
stripe: ""
|
|
623
|
+
}, {
|
|
624
|
+
bodyCell: C(({ record: e, column: t, text: n, index: r }) => [t.dataIndex.includes("upload") ? (g(), u(o, { key: 0 }, [n && n?.length > 0 ? (g(!0), u(o, { key: 0 }, y(n, (e, t) => (g(), u(o, { key: t }, [t > 0 ? (g(), u("br", z)) : l("", !0), p(_, {
|
|
625
|
+
title: e.name,
|
|
626
|
+
style: {
|
|
627
|
+
"padding-left": "1px",
|
|
628
|
+
width: "100%"
|
|
629
|
+
},
|
|
630
|
+
type: "link",
|
|
631
|
+
onClick: (t) => $(e.url)
|
|
632
|
+
}, {
|
|
633
|
+
default: C(() => [d("span", B, x(e.name), 1)]),
|
|
634
|
+
_: 2
|
|
635
|
+
}, 1032, ["title", "onClick"])], 64))), 128)) : l("", !0)], 64)) : (g(), u(o, { key: 1 }, [f(x(n), 1)], 64))]),
|
|
636
|
+
_: 1
|
|
637
|
+
}, 8, ["columns", "data-source"])]),
|
|
638
|
+
_: 2
|
|
639
|
+
}, 1032, ["label"])) : l("", !0)], 64))), 128))]),
|
|
640
|
+
_: 2
|
|
641
|
+
}, 1032, ["column"])], 64))), 128))]),
|
|
642
|
+
_: 2
|
|
643
|
+
}, 1032, ["label"])) : l("", !0)], 64))), 128))]),
|
|
644
|
+
_: 2
|
|
645
|
+
}, 1032, ["column"])], 64))), 128))]),
|
|
646
|
+
_: 2
|
|
647
|
+
}, 1032, ["label"])) : l("", !0)], 64))), 128))]),
|
|
648
|
+
_: 2
|
|
649
|
+
}, 1032, ["column"])], 64))), 128))]),
|
|
650
|
+
_: 2
|
|
651
|
+
}, 1032, ["label"])) : l("", !0)], 64))), 128))]),
|
|
652
|
+
_: 2
|
|
653
|
+
}, 1032, ["column"])
|
|
654
|
+
], 64))), 128)),
|
|
655
|
+
W.value.length > 0 ? (g(), u(o, { key: 0 }, [r[0] ||= d("div", { class: "xinxi-title" }, "审批记录", -1), p(v, {
|
|
656
|
+
columns: H,
|
|
657
|
+
"data-source": W.value,
|
|
658
|
+
pagination: !1,
|
|
659
|
+
rangeSelection: !1,
|
|
660
|
+
scroll: { y: 400 },
|
|
661
|
+
rowKey: "id",
|
|
662
|
+
bordered: "",
|
|
663
|
+
size: "small",
|
|
664
|
+
stripe: ""
|
|
665
|
+
}, {
|
|
666
|
+
bodyCell: C(({ column: e, index: t, text: n, record: r }) => [e.dataIndex == "index" ? (g(), u(o, { key: 0 }, [f(x(t + 1), 1)], 64)) : (g(), u(o, { key: 1 }, [f(x(n), 1)], 64))]),
|
|
667
|
+
_: 1
|
|
668
|
+
}, 8, ["data-source"])], 64)) : l("", !0),
|
|
669
|
+
q.value.length > 0 ? (g(), u(o, { key: 1 }, [r[1] ||= d("div", { class: "xinxi-title" }, "步骤审批人信息", -1), p(v, {
|
|
670
|
+
columns: U,
|
|
671
|
+
"data-source": q.value,
|
|
672
|
+
pagination: !1,
|
|
673
|
+
rangeSelection: !1,
|
|
674
|
+
scroll: { y: 400 },
|
|
675
|
+
rowKey: "id",
|
|
676
|
+
bordered: "",
|
|
677
|
+
size: "small",
|
|
678
|
+
stripe: ""
|
|
679
|
+
}, {
|
|
680
|
+
bodyCell: C(({ column: e, index: t, text: n, record: r }) => [e.dataIndex == "index" ? (g(), u(o, { key: 0 }, [f(x(t + 1), 1)], 64)) : e.dataIndex == "jue_se" ? (g(), u(o, { key: 1 }, [r?.jue_se ? (g(), c(i, {
|
|
681
|
+
key: 0,
|
|
682
|
+
color: "blue"
|
|
683
|
+
}, {
|
|
684
|
+
default: C(() => [f(x(r?.jue_se || ""), 1)]),
|
|
685
|
+
_: 2
|
|
686
|
+
}, 1024)) : l("", !0)], 64)) : e.dataIndex == "list" ? (g(!0), u(o, { key: 2 }, y(r.list, (e, t) => (g(), c(i, {
|
|
687
|
+
key: t,
|
|
688
|
+
color: "green"
|
|
689
|
+
}, {
|
|
690
|
+
default: C(() => [f(x(e.realname), 1)]),
|
|
691
|
+
_: 2
|
|
692
|
+
}, 1024))), 128)) : (g(), u(o, { key: 3 }, [f(x(n), 1)], 64))]),
|
|
693
|
+
_: 1
|
|
694
|
+
}, 8, ["data-source"])], 64)) : l("", !0),
|
|
695
|
+
d("div", V, [p(e, {
|
|
696
|
+
flowData: w.value,
|
|
697
|
+
height: 400
|
|
698
|
+
}, null, 8, ["flowData"])])
|
|
699
|
+
])]);
|
|
700
|
+
};
|
|
701
|
+
}
|
|
702
|
+
}), [["__scopeId", "data-v-75a6b118"]]), U = [
|
|
703
|
+
"edit_approve",
|
|
704
|
+
"cancel_agree_approve",
|
|
705
|
+
"print"
|
|
706
|
+
], W = () => ({
|
|
707
|
+
tables: { "approve-approve_record": {
|
|
708
|
+
searchConditions: [],
|
|
709
|
+
selectedRowKeys: [],
|
|
710
|
+
selectedRecord: [],
|
|
711
|
+
datasource: []
|
|
712
|
+
} },
|
|
713
|
+
formModel: null,
|
|
714
|
+
isEdit: !1
|
|
715
|
+
}), G = (e) => {
|
|
716
|
+
let n = v(null), i = v(!1), o = v(!1), c = v({
|
|
717
|
+
edit_approve: !1,
|
|
718
|
+
cancel_agree_approve: !1,
|
|
719
|
+
print: !1
|
|
720
|
+
}), l = v(!1), u = v(null), d = v(!1), f = v(null), p = s(() => {
|
|
721
|
+
let t = e.actions?.();
|
|
722
|
+
return {
|
|
723
|
+
...a(),
|
|
724
|
+
...t || {}
|
|
725
|
+
};
|
|
726
|
+
}), m = s(() => e.modelType?.() || n.value?.menu_flag || ""), h = (e, n, r) => t(e, {
|
|
727
|
+
table_id: "approve-approve_record",
|
|
728
|
+
record: r,
|
|
729
|
+
context: W(),
|
|
730
|
+
settings: n.settings || {}
|
|
731
|
+
}), g = async (e) => {
|
|
732
|
+
if (!e || !n.value) return !1;
|
|
733
|
+
try {
|
|
734
|
+
return !(e.showCode?.enable && e.showCode?.code && !await h(e.showCode.code, e, n.value) || e.disableCode?.enable && e.disableCode?.code && await h(e.disableCode.code, e, n.value));
|
|
735
|
+
} catch (e) {
|
|
736
|
+
return console.error("[useApproveRecordActions] 可用性判定脚本执行失败,按不可用处理", e), !1;
|
|
737
|
+
}
|
|
738
|
+
}, _ = async () => {
|
|
739
|
+
let t = e.recordId();
|
|
740
|
+
if (!t) {
|
|
741
|
+
n.value = null, o.value = !1, c.value = {
|
|
742
|
+
edit_approve: !1,
|
|
743
|
+
cancel_agree_approve: !1,
|
|
744
|
+
print: !1
|
|
745
|
+
};
|
|
746
|
+
return;
|
|
747
|
+
}
|
|
748
|
+
i.value = !0;
|
|
749
|
+
try {
|
|
750
|
+
n.value = await r({ approve_record_id: t }, "/approve/get_approve_record"), o.value = !0;
|
|
751
|
+
let [i, a] = await Promise.all([g(p.value.edit_approve), g(p.value.cancel_agree_approve)]);
|
|
752
|
+
c.value = {
|
|
753
|
+
edit_approve: i,
|
|
754
|
+
cancel_agree_approve: a,
|
|
755
|
+
print: !!(e.getPrintElement && n.value)
|
|
756
|
+
};
|
|
757
|
+
} finally {
|
|
758
|
+
n.value || (o.value = !1), i.value = !1;
|
|
759
|
+
}
|
|
760
|
+
}, y = async () => {
|
|
761
|
+
let t = e.getPrintElement?.();
|
|
762
|
+
if (!t) {
|
|
763
|
+
w.error("未找到可打印的内容区域");
|
|
764
|
+
return;
|
|
765
|
+
}
|
|
766
|
+
let { VuePrintNext: n } = await import("./vue-print-next-HRweUmNi.js");
|
|
767
|
+
new n({
|
|
768
|
+
el: t,
|
|
769
|
+
popTitle: e.printTitle || "审批信息",
|
|
770
|
+
extraHead: "<style>@page { margin: 0mm; } body { padding: 10mm !important; box-sizing: border-box; }</style>",
|
|
771
|
+
...e.printOptions?.() || {}
|
|
772
|
+
});
|
|
773
|
+
}, b = async (e) => {
|
|
774
|
+
if (e === "print") {
|
|
775
|
+
await y();
|
|
776
|
+
return;
|
|
777
|
+
}
|
|
778
|
+
let t = p.value[e];
|
|
779
|
+
if (!t?.code) {
|
|
780
|
+
w.error(`未配置 ${e} 的执行代码`);
|
|
781
|
+
return;
|
|
782
|
+
}
|
|
783
|
+
if (!n.value) {
|
|
784
|
+
w.error("未获取到审批记录");
|
|
785
|
+
return;
|
|
786
|
+
}
|
|
787
|
+
let r;
|
|
788
|
+
try {
|
|
789
|
+
r = await h(t.code, t, n.value);
|
|
790
|
+
} catch (e) {
|
|
791
|
+
w.error(e?.message || "操作失败");
|
|
792
|
+
return;
|
|
793
|
+
}
|
|
794
|
+
if (e === "edit_approve") {
|
|
795
|
+
let { id: e } = r || {};
|
|
796
|
+
if (!e) {
|
|
797
|
+
w.error("代码未返回id");
|
|
798
|
+
return;
|
|
799
|
+
}
|
|
800
|
+
u.value = e, l.value = !0;
|
|
801
|
+
} else if (e === "cancel_agree_approve") {
|
|
802
|
+
let e = r?.ids;
|
|
803
|
+
if (!e?.length) {
|
|
804
|
+
w.error("代码未返回ids");
|
|
805
|
+
return;
|
|
806
|
+
}
|
|
807
|
+
if (e.length !== 1) {
|
|
808
|
+
w.error("每次仅能作废一个审批单");
|
|
809
|
+
return;
|
|
810
|
+
}
|
|
811
|
+
f.value = e[0], d.value = !0;
|
|
812
|
+
}
|
|
813
|
+
}, x = (e) => !!c.value[e], C = s(() => ({
|
|
814
|
+
modelType: m.value,
|
|
815
|
+
approveRecordId: u.value,
|
|
816
|
+
onSaved: async () => {
|
|
817
|
+
await _(), e.onChange?.();
|
|
818
|
+
}
|
|
819
|
+
})), T = s(() => ({
|
|
820
|
+
id: f.value,
|
|
821
|
+
onDone: async () => {
|
|
822
|
+
await _(), e.onChange?.();
|
|
823
|
+
}
|
|
824
|
+
}));
|
|
825
|
+
return S(() => e.recordId(), () => {
|
|
826
|
+
_();
|
|
827
|
+
}, { immediate: !0 }), {
|
|
828
|
+
record: n,
|
|
829
|
+
ready: o,
|
|
830
|
+
loading: i,
|
|
831
|
+
modelType: m,
|
|
832
|
+
availability: c,
|
|
833
|
+
canShow: x,
|
|
834
|
+
runAction: b,
|
|
835
|
+
editorOpen: l,
|
|
836
|
+
editorProps: C,
|
|
837
|
+
removeOpen: d,
|
|
838
|
+
removeProps: T,
|
|
839
|
+
reload: _
|
|
840
|
+
};
|
|
841
|
+
};
|
|
842
|
+
//#endregion
|
|
843
|
+
export { G as n, H as r, U as t };
|