@utogether/udp-core 2.0.0-beta.24 → 2.0.0-beta.26
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/403-D6Wb3JJh.js +72 -0
- package/dist/404-B_HNbPNV.js +72 -0
- package/dist/500-BMemTTy1.js +77 -0
- package/dist/AuthorityInfo-6wHxwiFM.js +91 -0
- package/dist/AuthorityPanel-OqF_DvXA.js +98 -0
- package/dist/Company-BLXSfow0.js +21 -0
- package/dist/CompanyPanel-B4kRZ5Cg.js +199 -0
- package/dist/DataSet-CuGZcKC-.js +141 -0
- package/dist/Department-oFhsa7cd.js +21 -0
- package/dist/DepartmentPanel-B1UGpu-r.js +242 -0
- package/dist/DepartmentPanel-BL58AdoT.js +2 -0
- package/dist/DesignPanel-DmkFVw1N.js +1196 -0
- package/dist/DictView-CC5yMzOq.js +100 -0
- package/dist/File-WJXjGYxr.js +89 -0
- package/dist/InvOrganization-BwMmD8Ua.js +76 -0
- package/dist/Org-HgnOWubi.js +76 -0
- package/dist/Preview-CAzWxLmP.js +45 -0
- package/dist/ReIcon-DecitXmg.js +413 -0
- package/dist/ReportDefine-BgLM-Rjk.js +10 -0
- package/dist/ReportDesign-DwchGG2P.js +158 -0
- package/dist/ReportQuery-D5jaRJEn.js +101 -0
- package/dist/ReportQueryFrom-CNlmtYey.js +198 -0
- package/dist/ReportTemplate-CNcTmccs.js +162 -0
- package/dist/Role-Be8WfdCA.js +21 -0
- package/dist/RoleAssign-CtehGAUf.js +22 -0
- package/dist/RolePanel-CAwITg_q.js +131 -0
- package/dist/RolePanel-SN0FGFZ7.js +176 -0
- package/dist/ScrollPanel-DW30pGz1.js +88 -0
- package/dist/Staff-V2YsNKcj.js +22 -0
- package/dist/StaffInfo-CKRPW0r4.js +149 -0
- package/dist/StaffPanel-BxcgMg7u.js +143 -0
- package/dist/SysUser-Dxyj5w5m.js +12 -0
- package/dist/SysUserPanel-DI6CWcZo.js +365 -0
- package/dist/SystemMenu-BBHREM8T.js +154 -0
- package/dist/UserInfo-BMVQ0xwE.js +194 -0
- package/dist/_plugin-vue_export-helper-C6QCLu9I.js +8 -0
- package/dist/api-BFNxcxSN.js +30 -0
- package/dist/authority-BJFEUdrh.js +20 -0
- package/dist/await-to-js.es5-DkWYmPXW.js +10 -0
- package/dist/childView-BBjPEraB.js +184 -0
- package/dist/childView-DNqG2UVm.js +181 -0
- package/dist/code-rule-QFrhqFrW.js +151 -0
- package/dist/contant-Q77dU_V3.js +4 -0
- package/dist/core.es.js +6 -23
- package/dist/cron-task-BpUDKEAU.js +131 -0
- package/dist/flow-task-DAc2NrDU.js +11 -0
- package/dist/frameView-Di0zJZUR.js +39 -0
- package/dist/img/v_img.svg +1 -1
- package/dist/layout-home-BVp7vYLR.js +239 -0
- package/dist/layoutView-B6Mx2ERA.js +2662 -0
- package/dist/log-in-BrNB0mLz.js +117 -0
- package/dist/log-out-dYfqvzy6.js +111 -0
- package/dist/login-D_Hjy3Jd.js +231 -0
- package/dist/login-log-CJak-ANA.js +79 -0
- package/dist/lov-view-DM5Nm5tW.js +95 -0
- package/dist/menuInfo-BlOY1KZW.js +346 -0
- package/dist/mitt-CQgI7DYU.js +27 -0
- package/dist/pda-app-CA7YI37u.js +589 -0
- package/dist/redirect-N0k4tImU.js +16 -0
- package/dist/resource-CfQTHFcs.js +94 -0
- package/dist/su-welcome-DVD3S_du.js +799 -0
- package/dist/sys-config-Ddb3vBpK.js +316 -0
- package/dist/system-Cm3lyBas.js +1528 -0
- package/dist/udp-core-DaQd5CF1.js +2028 -0
- package/dist/udp-core.css +2 -1
- package/dist/useDataThemeChange-DJ4K3VGp.js +226 -0
- package/dist/useNav-BhOJIdrJ.js +106 -0
- package/dist/utogether-l7JXs4Lv.js +4 -0
- package/dist/water-mark-WDQZ9YqB.js +119 -0
- package/dist/wecom-push-kWkAVRCj.js +77 -0
- package/package.json +1 -1
- package/src/App.vue +5 -0
- package/src/api/index.ts +51 -51
- package/src/components/udp/grid/index.vue +9 -11
- package/src/components/udp/index.ts +9 -8
- package/src/components/udp/lov/index.vue +430 -0
- package/src/components/udp/upload/index.vue +444 -444
- package/src/components/udp/utils.ts +420 -414
- package/src/main.ts +4 -6
- package/src/plugins/vxe-table/index.ts +1 -1
- package/src/plugins/vxe-table/render.tsx +999 -998
- package/src/router/utils.ts +2 -3
- package/src/views/login/login-view.vue +297 -301
- package/src/views/ulogin/login.vue +3 -32
- package/tsconfig.json +1 -1
- package/vite.config.ts +8 -3
- package/dist/403-DDCAPCYb.js +0 -65
- package/dist/404-BclWW4UB.js +0 -65
- package/dist/500-BAggMgTl.js +0 -67
- package/dist/AuthorityInfo-liCxYVNc.js +0 -4
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-Bd5A4CD-.js +0 -100
- package/dist/AuthorityPanel-CRlAwbaI.js +0 -4
- package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S.js +0 -114
- package/dist/Company-DjaOAaWM.js +0 -25
- package/dist/CompanyPanel-Dp_2z717.js +0 -206
- package/dist/DataSet-DT-rGICv.js +0 -147
- package/dist/Department-Bp5RGbl9.js +0 -25
- package/dist/DepartmentPanel-Bg4xM4Lx.js +0 -254
- package/dist/DesignPanel-BS2ioHd_.js +0 -4
- package/dist/DesignPanel.vue_vue_type_style_index_0_lang-DWwfRVCj.js +0 -1013
- package/dist/DictView-pYJXt6IS.js +0 -111
- package/dist/InvOrganization-D90gRzlN.js +0 -74
- package/dist/Org-Dk4KuIx2.js +0 -39
- package/dist/Preview-DpZR6uKs.js +0 -48
- package/dist/ReportDefine-PtJnfaLw.js +0 -10
- package/dist/ReportDesign-4HWkcTtA.js +0 -165
- package/dist/ReportQuery-BPY1lWFn.js +0 -75
- package/dist/ReportQueryFrom-CHFlkZ42.js +0 -4
- package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-DbbQydKz.js +0 -178
- package/dist/ReportTemplate-C2F3oy8I.js +0 -161
- package/dist/Role-iTP6DYOi.js +0 -25
- package/dist/RoleAssign-DIYNHQeF.js +0 -26
- package/dist/RolePanel-0ojFIz9G.js +0 -4
- package/dist/RolePanel-B0Yr5vjo.js +0 -4
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CHAj3dCD.js +0 -132
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CXZBxePU.js +0 -154
- package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-DtNzPRjS.js +0 -101
- package/dist/Staff-sftZ0bIV.js +0 -26
- package/dist/StaffInfo-BG2FMXzR.js +0 -4
- package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-DzGn0pYY.js +0 -108
- package/dist/StaffPanel-BydqiitC.js +0 -4
- package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-C42Pnb-b.js +0 -154
- package/dist/SysUser-qMGVHpJ_.js +0 -15
- package/dist/SysUserPanel-Bh1HgSAr.js +0 -4
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BBEMYLQN.js +0 -356
- package/dist/SystemMenu-DUbWmLip.js +0 -156
- package/dist/UserInfo-DNkiTdWm.js +0 -4
- package/dist/UserInfo.vue_vue_type_style_index_0_lang-B1eNklEd.js +0 -160
- package/dist/await-to-js.es5-Bv3Eu4mi.js +0 -10
- package/dist/childView-CjUjh8Da.js +0 -4
- package/dist/childView-DT9luEEK.js +0 -4
- package/dist/childView.vue_vue_type_style_index_0_lang-CgqosFJQ.js +0 -183
- package/dist/childView.vue_vue_type_style_index_0_lang-DkXHMFPd.js +0 -143
- package/dist/code-rule-uOazxFfn.js +0 -148
- package/dist/cron-task-DEykunjo.js +0 -135
- package/dist/flow-task-B07st2aD.js +0 -10
- package/dist/frameView-FxzlbkeM.js +0 -44
- package/dist/index-BnxyUGKa.js +0 -7944
- package/dist/layout-home-C0jme8Ju.js +0 -232
- package/dist/layoutView-BqMAHIxF.js +0 -3239
- package/dist/log-in-skZaWMBY.js +0 -117
- package/dist/log-out-BiND7muW.js +0 -130
- package/dist/login-C-184YPO.js +0 -235
- package/dist/login-log-BEHYT0v0.js +0 -70
- package/dist/lov-view-Df-swRfy.js +0 -99
- package/dist/menuInfo-CpyjX4a4.js +0 -4
- package/dist/menuInfo.vue_vue_type_style_index_0_lang-D09-OKji.js +0 -363
- package/dist/pda-app-DP87aTBc.js +0 -710
- package/dist/redirect-BqegffKC.js +0 -15
- package/dist/resource-CAldbnw4.js +0 -97
- package/dist/su-welcome-DoBUqadB.js +0 -42225
- package/dist/sys-config-hGuE7DUf.js +0 -385
- package/dist/useNav-Cf_e5pBY.js +0 -92
- package/dist/utogether-MlnyYtNS.js +0 -4
- package/dist/wecom-push-DR7NsNro.js +0 -70
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import { defineComponent as T, ref as $, computed as S, reactive as I, nextTick as q, onBeforeMount as X, resolveComponent as s, createElementBlock as B, openBlock as D, createVNode as a, withCtx as F, createElementVNode as j } from "vue";
|
|
2
|
-
import { useI18n as z } from "vue-i18n";
|
|
3
|
-
import { clone as A } from "xe-utils";
|
|
4
|
-
import { useRoute as J } from "vue-router";
|
|
5
|
-
import { templateRef as O } from "@vueuse/core";
|
|
6
|
-
import { i as V } from "./index-BnxyUGKa.js";
|
|
7
|
-
import { useRender as Y } from "@utogether/utils";
|
|
8
|
-
const H = { class: "ut-drawer-template" }, M = { class: "flex" }, te = /* @__PURE__ */ T({
|
|
9
|
-
__name: "ReportQueryFrom",
|
|
10
|
-
props: {
|
|
11
|
-
show: { type: Boolean, default: !0 },
|
|
12
|
-
record: { default: () => ({}) },
|
|
13
|
-
dataStatus: { default: "add" },
|
|
14
|
-
drawTitle: { default: "报表模板" },
|
|
15
|
-
direction: { default: "rtl" }
|
|
16
|
-
},
|
|
17
|
-
emits: ["onClose"],
|
|
18
|
-
setup(x, { emit: C }) {
|
|
19
|
-
const m = x, { t: h } = z(), d = J();
|
|
20
|
-
let y = {};
|
|
21
|
-
const g = O("xForm", null), E = $(!1), u = Y(), f = V(), N = S(() => {
|
|
22
|
-
const e = {};
|
|
23
|
-
return r.items.length && r.items.filter((t) => t.required).forEach((t) => {
|
|
24
|
-
e[t.field] = [
|
|
25
|
-
{
|
|
26
|
-
required: !0,
|
|
27
|
-
message: `${h("message.required")}${t != null && t.title ? h(t.title) : ""}`
|
|
28
|
-
}
|
|
29
|
-
];
|
|
30
|
-
}), e;
|
|
31
|
-
}), l = [
|
|
32
|
-
{ field: "fileName", title: "message.fileName", span: 24, itemRender: { name: "$input" } },
|
|
33
|
-
{
|
|
34
|
-
field: "templateName",
|
|
35
|
-
required: !0,
|
|
36
|
-
span: 24,
|
|
37
|
-
itemRender: u.renderSelect(
|
|
38
|
-
{
|
|
39
|
-
optionProps: { label: "tempName", value: "tempName" },
|
|
40
|
-
props: { code: "EXP005", fetchField: "tempName" }
|
|
41
|
-
},
|
|
42
|
-
w
|
|
43
|
-
)
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
field: "fileType",
|
|
47
|
-
required: !0,
|
|
48
|
-
span: 24,
|
|
49
|
-
itemRender: {
|
|
50
|
-
name: "$select",
|
|
51
|
-
props: {
|
|
52
|
-
options: [],
|
|
53
|
-
disabled: !0
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
];
|
|
58
|
-
function v() {
|
|
59
|
-
return l.map((e) => (e.title = e.title || `message.${e.field}`, e.span = e.span || 8, e));
|
|
60
|
-
}
|
|
61
|
-
function w(e, t, n, o) {
|
|
62
|
-
o === "templateName" && n[o] && b(t);
|
|
63
|
-
}
|
|
64
|
-
function b(e) {
|
|
65
|
-
y = e, l[2].itemRender.props = {
|
|
66
|
-
disabled: !1,
|
|
67
|
-
options: e.exportFileType.split(",").map((t) => ({ label: t, value: t }))
|
|
68
|
-
}, f.post("EXP010", { templateId: e.id }).then((t) => {
|
|
69
|
-
t.list.forEach((n) => {
|
|
70
|
-
const o = {
|
|
71
|
-
field: n.parameterField,
|
|
72
|
-
title: n.parameterName,
|
|
73
|
-
span: 24,
|
|
74
|
-
dynamicsField: "Y",
|
|
75
|
-
itemRender: R(n)
|
|
76
|
-
};
|
|
77
|
-
l.push(o);
|
|
78
|
-
}), q(() => {
|
|
79
|
-
r.items = v();
|
|
80
|
-
});
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
const R = (e) => {
|
|
84
|
-
let t = {};
|
|
85
|
-
switch (e.parameterType) {
|
|
86
|
-
case "date":
|
|
87
|
-
t = { name: "$input", props: { type: "date" } };
|
|
88
|
-
break;
|
|
89
|
-
case "number":
|
|
90
|
-
t = { name: "$input", props: { type: "number" } };
|
|
91
|
-
break;
|
|
92
|
-
default:
|
|
93
|
-
e.selectOptions === "Y" ? e.valueType === "0" ? t = u.renderDict(e.serviceCode) : e.valueType === "1" && (t = u.renderSelect(
|
|
94
|
-
{
|
|
95
|
-
optionProps: { label: e.showField, value: e.valueField },
|
|
96
|
-
props: { code: e.serviceCode, fetchField: e.showField }
|
|
97
|
-
},
|
|
98
|
-
w
|
|
99
|
-
)) : t = { name: "$input" };
|
|
100
|
-
break;
|
|
101
|
-
}
|
|
102
|
-
return t;
|
|
103
|
-
}, k = () => {
|
|
104
|
-
g.value.validate(async (e) => {
|
|
105
|
-
if (!e) {
|
|
106
|
-
const { dataStatus: t } = m, { row: n } = r, o = A(n, !0), p = t === "add" ? "EXP011" : "EXP003", c = {};
|
|
107
|
-
l.forEach((i) => {
|
|
108
|
-
i.dynamicsField && (c[i.field] = o[i.field]);
|
|
109
|
-
}), o.templateId = y.id, o.reportData = JSON.stringify(c), await f.post(p, o), _("submit");
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
}, P = C;
|
|
113
|
-
function _(e) {
|
|
114
|
-
P("onClose", e);
|
|
115
|
-
}
|
|
116
|
-
const r = I({
|
|
117
|
-
items: v(),
|
|
118
|
-
fetchParamExt: {},
|
|
119
|
-
row: {}
|
|
120
|
-
});
|
|
121
|
-
return X(() => {
|
|
122
|
-
var e;
|
|
123
|
-
r.row = m.record, r.fetchParamExt = { templateId: m.record.id }, (e = d == null ? void 0 : d.params) != null && e.isJump && (r.row = d.params, f.post("EXP005", { tempName: "", pageSize: 1 }).then((t) => {
|
|
124
|
-
t != null && t.list && (l[1].itemRender.props.options = t.list, r.items = v(), b(t == null ? void 0 : t.list[0]));
|
|
125
|
-
}));
|
|
126
|
-
}), (e, t) => {
|
|
127
|
-
const n = s("vxe-form"), o = s("el-divider"), p = s("ut-button"), c = s("el-row"), i = s("el-drawer");
|
|
128
|
-
return D(), B("div", H, [
|
|
129
|
-
a(i, {
|
|
130
|
-
"model-value": e.show,
|
|
131
|
-
title: e.drawTitle,
|
|
132
|
-
"before-close": _,
|
|
133
|
-
"destroy-on-close": "",
|
|
134
|
-
size: "66%"
|
|
135
|
-
}, {
|
|
136
|
-
default: F(() => [
|
|
137
|
-
j("div", M, [
|
|
138
|
-
a(n, {
|
|
139
|
-
ref_key: "xForm",
|
|
140
|
-
ref: g,
|
|
141
|
-
data: r.row,
|
|
142
|
-
rules: N.value,
|
|
143
|
-
items: r.items,
|
|
144
|
-
loading: E.value,
|
|
145
|
-
"title-colon": "",
|
|
146
|
-
"title-align": "right",
|
|
147
|
-
"title-width": "110"
|
|
148
|
-
}, null, 8, ["data", "rules", "items", "loading"])
|
|
149
|
-
]),
|
|
150
|
-
a(o),
|
|
151
|
-
a(c, {
|
|
152
|
-
type: "flex",
|
|
153
|
-
justify: "end",
|
|
154
|
-
style: { "padding-right": "22px" }
|
|
155
|
-
}, {
|
|
156
|
-
default: F(() => [
|
|
157
|
-
a(p, {
|
|
158
|
-
content: "cancel",
|
|
159
|
-
onClick: t[0] || (t[0] = (Q) => _())
|
|
160
|
-
}),
|
|
161
|
-
a(p, {
|
|
162
|
-
content: "confirm",
|
|
163
|
-
status: "u-cyan",
|
|
164
|
-
onClick: k
|
|
165
|
-
})
|
|
166
|
-
]),
|
|
167
|
-
_: 1
|
|
168
|
-
})
|
|
169
|
-
]),
|
|
170
|
-
_: 1
|
|
171
|
-
}, 8, ["model-value", "title"])
|
|
172
|
-
]);
|
|
173
|
-
};
|
|
174
|
-
}
|
|
175
|
-
});
|
|
176
|
-
export {
|
|
177
|
-
te as _
|
|
178
|
-
};
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
import { defineComponent as E, ref as r, createVNode as p, Fragment as S, resolveComponent as s, createElementBlock as O, openBlock as f, createBlock as v, createCommentVNode as h } from "vue";
|
|
2
|
-
import { useI18n as q } from "vue-i18n";
|
|
3
|
-
import { clone as U } from "xe-utils";
|
|
4
|
-
import { useRender as V, successMessage as B, warnMessage as M } from "@utogether/utils";
|
|
5
|
-
import { h as C, i as D } from "./index-BnxyUGKa.js";
|
|
6
|
-
const I = "/upms/v1/printTemplateConfig", L = /* @__PURE__ */ E({
|
|
7
|
-
__name: "ReportTemplate",
|
|
8
|
-
setup(W) {
|
|
9
|
-
const {
|
|
10
|
-
t: b
|
|
11
|
-
} = q(), o = V(), i = r(null), l = r(!1), d = r(!1), g = r({}), u = r([]), a = r({}), R = [{
|
|
12
|
-
field: "templateCode",
|
|
13
|
-
title: "message.urpt.templateCode"
|
|
14
|
-
}, {
|
|
15
|
-
field: "templateName",
|
|
16
|
-
title: "message.urpt.templateName"
|
|
17
|
-
}, {
|
|
18
|
-
field: "printPosition",
|
|
19
|
-
title: "message.urpt.printPosition",
|
|
20
|
-
code: "SU.PRINT.VIEW"
|
|
21
|
-
}], k = [{
|
|
22
|
-
type: "checkbox",
|
|
23
|
-
width: 40,
|
|
24
|
-
align: "center"
|
|
25
|
-
}, {
|
|
26
|
-
field: "templateCode",
|
|
27
|
-
title: "message.urpt.templateCode",
|
|
28
|
-
required: !0,
|
|
29
|
-
width: 120,
|
|
30
|
-
editRender: o.renderLov({
|
|
31
|
-
field: "templateCode",
|
|
32
|
-
code: "SU.PRINT.CODE",
|
|
33
|
-
mapField: {
|
|
34
|
-
templateName: "templateName"
|
|
35
|
-
}
|
|
36
|
-
})
|
|
37
|
-
}, {
|
|
38
|
-
field: "templateName",
|
|
39
|
-
title: "message.urpt.templateName",
|
|
40
|
-
width: 180
|
|
41
|
-
}, {
|
|
42
|
-
field: "printPosition",
|
|
43
|
-
title: "message.urpt.printPosition",
|
|
44
|
-
required: !0,
|
|
45
|
-
width: 120,
|
|
46
|
-
formatter: ["formatDict", "SU.PRINT.VIEW"],
|
|
47
|
-
editRender: o.renderDict("SU.PRINT.VIEW")
|
|
48
|
-
}, {
|
|
49
|
-
field: "buttonCode",
|
|
50
|
-
title: "message.urpt.buttonCode",
|
|
51
|
-
width: 120,
|
|
52
|
-
required: !0,
|
|
53
|
-
editRender: o.renderInput()
|
|
54
|
-
}, {
|
|
55
|
-
field: "url",
|
|
56
|
-
title: "message.baseUrl",
|
|
57
|
-
editRender: o.renderInput()
|
|
58
|
-
}, {
|
|
59
|
-
field: "remark",
|
|
60
|
-
editRender: o.renderInput()
|
|
61
|
-
}, {
|
|
62
|
-
field: "operate",
|
|
63
|
-
width: 100,
|
|
64
|
-
fixed: "right",
|
|
65
|
-
slots: {
|
|
66
|
-
default: ({
|
|
67
|
-
row: t
|
|
68
|
-
}) => [p(S, null, [p(s("ut-button"), {
|
|
69
|
-
content: "inv",
|
|
70
|
-
icon: "ri-edit-line",
|
|
71
|
-
onTap: () => y(t)
|
|
72
|
-
}, null)])]
|
|
73
|
-
}
|
|
74
|
-
}], N = () => {
|
|
75
|
-
if (!i.value.getInstance().getCheckboxRecords().length)
|
|
76
|
-
return M(b("message.selectedRecord"));
|
|
77
|
-
u.value = [], u.value.push({
|
|
78
|
-
field: "orgName",
|
|
79
|
-
required: !0,
|
|
80
|
-
itemRender: {
|
|
81
|
-
name: "$checkbox",
|
|
82
|
-
options: C().getOrglist.map((e) => ({
|
|
83
|
-
value: e.id,
|
|
84
|
-
label: e.orgName
|
|
85
|
-
}))
|
|
86
|
-
}
|
|
87
|
-
}), a.value = {}, l.value = !0;
|
|
88
|
-
}, _ = () => {
|
|
89
|
-
if (a.value.orgName) {
|
|
90
|
-
const t = i.value.getInstance().getCheckboxRecords(), e = [];
|
|
91
|
-
t.forEach((m) => {
|
|
92
|
-
a.value.orgName.forEach((c) => {
|
|
93
|
-
const n = U(m, !0);
|
|
94
|
-
n.orgId = c, n.id = null, e.push(n);
|
|
95
|
-
});
|
|
96
|
-
}), D().post(I, e).then(() => {
|
|
97
|
-
l.value = !1, B();
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
}, x = {
|
|
101
|
-
toolbarButtonClick({
|
|
102
|
-
code: t
|
|
103
|
-
}) {
|
|
104
|
-
t === "copy" && N();
|
|
105
|
-
}
|
|
106
|
-
}, w = [{
|
|
107
|
-
field: "organizationName",
|
|
108
|
-
required: !0,
|
|
109
|
-
editRender: o.renderInvOrg({
|
|
110
|
-
orgId: C().getOrgId
|
|
111
|
-
})
|
|
112
|
-
}, {
|
|
113
|
-
field: "remark",
|
|
114
|
-
editRender: o.renderInput()
|
|
115
|
-
}], y = (t) => {
|
|
116
|
-
g.value = {
|
|
117
|
-
headerId: t.id
|
|
118
|
-
}, d.value = !0;
|
|
119
|
-
}, P = [{
|
|
120
|
-
code: "copy",
|
|
121
|
-
icon: "ri-file-copy-line",
|
|
122
|
-
status: "warning",
|
|
123
|
-
auth: "copy"
|
|
124
|
-
}];
|
|
125
|
-
return (t, e) => {
|
|
126
|
-
const m = s("ut-grid"), c = s("ut-modal-form"), n = s("ut-modal-grid");
|
|
127
|
-
return f(), O("div", null, [p(m, {
|
|
128
|
-
ref_key: "xgrid",
|
|
129
|
-
ref: i,
|
|
130
|
-
items: R,
|
|
131
|
-
buttons: P,
|
|
132
|
-
columns: k,
|
|
133
|
-
events: x,
|
|
134
|
-
url: I
|
|
135
|
-
}, null, 512), l.value ? (f(), v(c, {
|
|
136
|
-
key: 0,
|
|
137
|
-
ref: "xmodal",
|
|
138
|
-
record: a.value,
|
|
139
|
-
items: u.value,
|
|
140
|
-
width: "400",
|
|
141
|
-
height: "170",
|
|
142
|
-
"data-status": "update",
|
|
143
|
-
title: "单据复制",
|
|
144
|
-
onConfirm: _,
|
|
145
|
-
onClose: e[0] || (e[0] = (T) => l.value = !1)
|
|
146
|
-
}, null, 8, ["record", "items"])) : h("", !0), d.value ? (f(), v(n, {
|
|
147
|
-
key: 1,
|
|
148
|
-
ref: "xmgrid",
|
|
149
|
-
"default-value": g.value,
|
|
150
|
-
columns: w,
|
|
151
|
-
url: "/upms/v1/printTemplateConfigOgn",
|
|
152
|
-
title: "库存组织",
|
|
153
|
-
width: "45%",
|
|
154
|
-
onClose: e[1] || (e[1] = (T) => d.value = !1)
|
|
155
|
-
}, null, 8, ["default-value"])) : h("", !0)]);
|
|
156
|
-
};
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
|
-
export {
|
|
160
|
-
L as default
|
|
161
|
-
};
|
package/dist/Role-iTP6DYOi.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { defineComponent as r, ref as e, provide as t, createElementBlock as i, openBlock as _, createElementVNode as o, createVNode as n } from "vue";
|
|
2
|
-
import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-DtNzPRjS.js";
|
|
3
|
-
import { _ as d } from "./RolePanel.vue_vue_type_script_setup_true_lang-CXZBxePU.js";
|
|
4
|
-
import { _ as p } from "./index-BnxyUGKa.js";
|
|
5
|
-
const f = { class: "u-content-panel" }, u = { class: "u-left-panel" }, h = { class: "content" }, v = /* @__PURE__ */ r({
|
|
6
|
-
__name: "Role",
|
|
7
|
-
setup(C) {
|
|
8
|
-
const s = e({}), c = e(!1), a = e([]);
|
|
9
|
-
return t("active", s), t("scrollPanelChange", c), t("treeList", a), (l, N) => (_(), i("div", f, [
|
|
10
|
-
o("div", u, [
|
|
11
|
-
n(m, {
|
|
12
|
-
title: l.$t("company"),
|
|
13
|
-
url: "/uums/unit",
|
|
14
|
-
"tree-otions": { children: "children", label: "unitName" }
|
|
15
|
-
}, null, 8, ["title"])
|
|
16
|
-
]),
|
|
17
|
-
o("div", h, [
|
|
18
|
-
n(d)
|
|
19
|
-
])
|
|
20
|
-
]));
|
|
21
|
-
}
|
|
22
|
-
}), x = /* @__PURE__ */ p(v, [["__scopeId", "data-v-e31bcedc"]]);
|
|
23
|
-
export {
|
|
24
|
-
x as default
|
|
25
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { defineComponent as l, ref as e, provide as t, createElementBlock as i, openBlock as _, createElementVNode as o, createVNode as s } from "vue";
|
|
2
|
-
import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-DtNzPRjS.js";
|
|
3
|
-
import { _ as p } from "./RolePanel.vue_vue_type_script_setup_true_lang-CHAj3dCD.js";
|
|
4
|
-
import { _ as d } from "./index-BnxyUGKa.js";
|
|
5
|
-
const f = { class: "u-content-panel" }, u = { class: "u-left-panel" }, g = { class: "content" }, h = /* @__PURE__ */ l({
|
|
6
|
-
__name: "RoleAssign",
|
|
7
|
-
setup(v) {
|
|
8
|
-
const n = e({}), a = e(!1), r = e([]);
|
|
9
|
-
return t("active", n), t("scrollPanelChange", a), t("treeList", r), (c, C) => (_(), i("div", f, [
|
|
10
|
-
o("div", u, [
|
|
11
|
-
s(m, {
|
|
12
|
-
title: c.$t("SuOrg"),
|
|
13
|
-
"tree-otions": { children: "children", label: "orgName" },
|
|
14
|
-
"default-params": { pageSize: 500 },
|
|
15
|
-
url: "/uums/org"
|
|
16
|
-
}, null, 8, ["title"])
|
|
17
|
-
]),
|
|
18
|
-
o("div", g, [
|
|
19
|
-
s(p)
|
|
20
|
-
])
|
|
21
|
-
]));
|
|
22
|
-
}
|
|
23
|
-
}), A = /* @__PURE__ */ d(h, [["__scopeId", "data-v-ee175fa5"]]);
|
|
24
|
-
export {
|
|
25
|
-
A as default
|
|
26
|
-
};
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import { defineComponent as b, reactive as E, ref as g, inject as M, watch as N, nextTick as B, createVNode as h, resolveComponent as i, resolveDirective as L, withDirectives as P, createElementBlock as A, openBlock as w, createBlock as R, createCommentVNode as S, unref as T } from "vue";
|
|
2
|
-
import { useI18n as U } from "vue-i18n";
|
|
3
|
-
import { clone as $ } from "xe-utils";
|
|
4
|
-
import { VxeUI as j } from "vxe-pc-ui";
|
|
5
|
-
import { t as v } from "./await-to-js.es5-Bv3Eu4mi.js";
|
|
6
|
-
import { successMessage as _ } from "@utogether/utils";
|
|
7
|
-
import { i as C } from "./index-BnxyUGKa.js";
|
|
8
|
-
const q = {
|
|
9
|
-
class: "page-content"
|
|
10
|
-
}, d = "/uums/orgRole", X = /* @__PURE__ */ b({
|
|
11
|
-
__name: "RolePanel",
|
|
12
|
-
setup(z) {
|
|
13
|
-
const e = E({
|
|
14
|
-
record: {},
|
|
15
|
-
loading: !1,
|
|
16
|
-
showModalView: !1
|
|
17
|
-
}), {
|
|
18
|
-
t: c
|
|
19
|
-
} = U(), n = g(null), u = g(null), t = M("active");
|
|
20
|
-
N(() => t.value, () => {
|
|
21
|
-
t != null && t.value.id && (e.fetchExtParam = {
|
|
22
|
-
orgId: t == null ? void 0 : t.value.id
|
|
23
|
-
}, B(() => {
|
|
24
|
-
n.value.refreshData();
|
|
25
|
-
}));
|
|
26
|
-
});
|
|
27
|
-
const k = [{
|
|
28
|
-
code: "del",
|
|
29
|
-
auth: "/"
|
|
30
|
-
}], m = [{
|
|
31
|
-
field: "roleName",
|
|
32
|
-
title: "message.udp.roleName",
|
|
33
|
-
span: 9
|
|
34
|
-
}, {
|
|
35
|
-
field: "roleCode",
|
|
36
|
-
title: "message.udp.roleCode",
|
|
37
|
-
span: 9
|
|
38
|
-
}], f = [{
|
|
39
|
-
type: "checkbox",
|
|
40
|
-
width: 40
|
|
41
|
-
}, {
|
|
42
|
-
field: "roleCode",
|
|
43
|
-
title: "message.udp.roleCode"
|
|
44
|
-
}, {
|
|
45
|
-
field: "roleName",
|
|
46
|
-
title: "message.udp.roleName"
|
|
47
|
-
}, {
|
|
48
|
-
field: "roleDesc",
|
|
49
|
-
title: "message.udp.roleDesc"
|
|
50
|
-
}, {
|
|
51
|
-
field: "enabled",
|
|
52
|
-
width: 100,
|
|
53
|
-
formatter: ["formatDict", "SU.ENABLE"]
|
|
54
|
-
}], p = $(f, !0);
|
|
55
|
-
p.push({
|
|
56
|
-
field: "operate",
|
|
57
|
-
width: 80,
|
|
58
|
-
fixed: "right",
|
|
59
|
-
slots: {
|
|
60
|
-
default: ({
|
|
61
|
-
row: o
|
|
62
|
-
}) => o.roleCode === "admin" ? null : [h(i("ut-button"), {
|
|
63
|
-
icon: "ri-delete-bin-5-fill",
|
|
64
|
-
content: "del",
|
|
65
|
-
status: "danger",
|
|
66
|
-
auth: "del",
|
|
67
|
-
onTap: () => D(o)
|
|
68
|
-
}, null)]
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
const x = () => {
|
|
72
|
-
e.record = {}, e.record.orgId = t.value.id, e.showModalView = !0;
|
|
73
|
-
}, D = async (o) => {
|
|
74
|
-
if (await j.modal.confirm(c("message.tip.del")) === "confirm") {
|
|
75
|
-
const a = {
|
|
76
|
-
orgId: t.value.id,
|
|
77
|
-
roleId: o.id
|
|
78
|
-
};
|
|
79
|
-
e.loading = !0;
|
|
80
|
-
const [s] = await v(C().delete(d, a));
|
|
81
|
-
s || _(c("message.operateSuccess")), n.value.refreshData(), e.loading = !1;
|
|
82
|
-
}
|
|
83
|
-
}, I = async (o) => {
|
|
84
|
-
const r = [];
|
|
85
|
-
o.forEach((l) => {
|
|
86
|
-
l.orgId = t.value.id, l.roleId = l.id, r.push(l);
|
|
87
|
-
});
|
|
88
|
-
const a = {
|
|
89
|
-
orgRoleList: r
|
|
90
|
-
};
|
|
91
|
-
u.value.showLoading();
|
|
92
|
-
const [s] = await v(C().post(d, a));
|
|
93
|
-
s || (_(), n.value.refreshData(), e.showModalView = !1);
|
|
94
|
-
}, y = (o) => o.roleCode !== "admin", V = (o) => {
|
|
95
|
-
o === "add" && x();
|
|
96
|
-
};
|
|
97
|
-
return (o, r) => {
|
|
98
|
-
const a = i("ut-grid"), s = i("ut-modal-grid"), l = L("spinning");
|
|
99
|
-
return P((w(), A("div", q, [h(a, {
|
|
100
|
-
ref_key: "xgrid",
|
|
101
|
-
ref: n,
|
|
102
|
-
items: m,
|
|
103
|
-
columns: T(p),
|
|
104
|
-
"default-params": e.fetchExtParam,
|
|
105
|
-
"default-value": e.fetchExtParam,
|
|
106
|
-
buttons: k,
|
|
107
|
-
"auto-load": !1,
|
|
108
|
-
url: d,
|
|
109
|
-
"check-method": y,
|
|
110
|
-
mode: "form",
|
|
111
|
-
onButtonClick: V
|
|
112
|
-
}, null, 8, ["columns", "default-params", "default-value"]), e.showModalView ? (w(), R(s, {
|
|
113
|
-
key: 0,
|
|
114
|
-
ref_key: "xmodal",
|
|
115
|
-
ref: u,
|
|
116
|
-
items: m,
|
|
117
|
-
columns: f,
|
|
118
|
-
"show-footer": !0,
|
|
119
|
-
editable: !1,
|
|
120
|
-
title: o.$t("message.udp.roleList"),
|
|
121
|
-
url: "/uums/role",
|
|
122
|
-
width: "60%",
|
|
123
|
-
height: "75%",
|
|
124
|
-
onClose: r[0] || (r[0] = (F) => e.showModalView = !1),
|
|
125
|
-
onConfirm: I
|
|
126
|
-
}, null, 8, ["title"])) : S("", !0)])), [[l, e.loading]]);
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
export {
|
|
131
|
-
X as _
|
|
132
|
-
};
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
import { defineComponent as S, reactive as I, inject as M, ref as l, watch as B, createVNode as s, Fragment as E, resolveComponent as r, createElementBlock as $, openBlock as d, createBlock as i, createCommentVNode as c } from "vue";
|
|
2
|
-
import { useRender as O } from "@utogether/utils";
|
|
3
|
-
import { _ as P } from "./AuthorityInfo.vue_vue_type_style_index_0_lang-Bd5A4CD-.js";
|
|
4
|
-
import { _ as R } from "./UserInfo.vue_vue_type_style_index_0_lang-B1eNklEd.js";
|
|
5
|
-
import { i as T, h as q } from "./index-BnxyUGKa.js";
|
|
6
|
-
const H = {
|
|
7
|
-
class: "page-content"
|
|
8
|
-
}, K = /* @__PURE__ */ S({
|
|
9
|
-
__name: "RolePanel",
|
|
10
|
-
setup(j) {
|
|
11
|
-
const e = I({
|
|
12
|
-
record: {},
|
|
13
|
-
showAuthView: !1,
|
|
14
|
-
showModalView: !1,
|
|
15
|
-
showUserView: !1,
|
|
16
|
-
dataStatus: ""
|
|
17
|
-
}), o = M("active"), f = O(), a = l(null), n = l(""), p = l({}), u = l("");
|
|
18
|
-
B(() => o.value, () => {
|
|
19
|
-
C();
|
|
20
|
-
});
|
|
21
|
-
const w = [{
|
|
22
|
-
field: "roleName",
|
|
23
|
-
title: "message.udp.roleName"
|
|
24
|
-
}, {
|
|
25
|
-
field: "roleCode",
|
|
26
|
-
title: "message.udp.roleCode"
|
|
27
|
-
}], g = [{
|
|
28
|
-
field: "roleName",
|
|
29
|
-
title: "message.udp.roleName",
|
|
30
|
-
required: !0
|
|
31
|
-
}, {
|
|
32
|
-
field: "roleCode",
|
|
33
|
-
title: "message.udp.roleCode",
|
|
34
|
-
required: !0
|
|
35
|
-
}, {
|
|
36
|
-
field: "roleDesc",
|
|
37
|
-
title: "message.udp.roleDesc"
|
|
38
|
-
}], _ = [{
|
|
39
|
-
type: "checkbox",
|
|
40
|
-
width: 40,
|
|
41
|
-
align: "center",
|
|
42
|
-
fixed: "left"
|
|
43
|
-
}, {
|
|
44
|
-
field: "roleCode",
|
|
45
|
-
title: "message.udp.roleCode"
|
|
46
|
-
}, {
|
|
47
|
-
field: "roleName",
|
|
48
|
-
title: "message.udp.roleName"
|
|
49
|
-
}, {
|
|
50
|
-
field: "roleDesc",
|
|
51
|
-
title: "message.udp.roleDesc"
|
|
52
|
-
}, {
|
|
53
|
-
field: "enabled",
|
|
54
|
-
width: 90,
|
|
55
|
-
cellRender: f.renderEnabled(A)
|
|
56
|
-
}, {
|
|
57
|
-
field: "operate",
|
|
58
|
-
width: 260,
|
|
59
|
-
fixed: "right",
|
|
60
|
-
slots: {
|
|
61
|
-
default: ({
|
|
62
|
-
row: t
|
|
63
|
-
}) => [s(E, null, [s(r("ut-button"), {
|
|
64
|
-
content: "edit",
|
|
65
|
-
auth: "edit",
|
|
66
|
-
disabled: t.roleCode === "admin",
|
|
67
|
-
onTap: () => k(t)
|
|
68
|
-
}, null), s(r("ut-button"), {
|
|
69
|
-
content: "dispatchUser",
|
|
70
|
-
status: "warning",
|
|
71
|
-
icon: "ri-user-3-line",
|
|
72
|
-
auth: "user",
|
|
73
|
-
onTap: () => y(t)
|
|
74
|
-
}, null), s(r("ut-button"), {
|
|
75
|
-
content: "dispatchAuth",
|
|
76
|
-
status: "success",
|
|
77
|
-
icon: "ri-plane-line",
|
|
78
|
-
auth: "auth",
|
|
79
|
-
onTap: () => D(t)
|
|
80
|
-
}, null)])]
|
|
81
|
-
}
|
|
82
|
-
}], C = () => {
|
|
83
|
-
var t;
|
|
84
|
-
p.value = {
|
|
85
|
-
unitId: (t = o == null ? void 0 : o.value) == null ? void 0 : t.id
|
|
86
|
-
}, a.value.refreshData();
|
|
87
|
-
}, V = (t) => {
|
|
88
|
-
t === "add" && v(), t === "del" && b();
|
|
89
|
-
}, v = () => {
|
|
90
|
-
var t;
|
|
91
|
-
e.dataStatus = "add", n.value = "post", u.value = "/uums/role", e.record = {}, e.record.unitId = (t = o == null ? void 0 : o.value) == null ? void 0 : t.id, e.record.enabled = "1", e.record.orgId = q().getOrgId, e.showModalView = !0;
|
|
92
|
-
}, k = (t) => {
|
|
93
|
-
n.value = "put", u.value = "/uums/role/singleUpdate", e.dataStatus = "update", e.record = t, e.showModalView = !0;
|
|
94
|
-
}, b = () => {
|
|
95
|
-
a.value.getInstance().commitProxy("delete");
|
|
96
|
-
}, D = (t) => {
|
|
97
|
-
e.record = t, e.showAuthView = !0;
|
|
98
|
-
}, y = (t) => {
|
|
99
|
-
e.record = t, e.showUserView = !0;
|
|
100
|
-
};
|
|
101
|
-
async function A({
|
|
102
|
-
row: t
|
|
103
|
-
}) {
|
|
104
|
-
if (t.roleCode === "admin") {
|
|
105
|
-
t.enabled = "1";
|
|
106
|
-
return;
|
|
107
|
-
}
|
|
108
|
-
await T().put("/uums/role/singleUpdate", t), a.value.refreshData();
|
|
109
|
-
}
|
|
110
|
-
const m = () => {
|
|
111
|
-
e.showDrawView = !1, e.showAuthView = !1, e.showUserView = !1;
|
|
112
|
-
}, U = (t) => t.roleCode !== "admin";
|
|
113
|
-
return (t, h) => {
|
|
114
|
-
const x = r("ut-grid"), N = r("ut-modal-form");
|
|
115
|
-
return d(), $("div", H, [s(x, {
|
|
116
|
-
ref_key: "xgrid",
|
|
117
|
-
ref: a,
|
|
118
|
-
items: w,
|
|
119
|
-
columns: _,
|
|
120
|
-
"check-method": U,
|
|
121
|
-
url: "/uums/role",
|
|
122
|
-
mode: "form",
|
|
123
|
-
onButtonClick: V
|
|
124
|
-
}, null, 512), e.showAuthView ? (d(), i(P, {
|
|
125
|
-
key: 0,
|
|
126
|
-
show: e.showAuthView,
|
|
127
|
-
record: e.record,
|
|
128
|
-
"data-status": e.dataStatus,
|
|
129
|
-
onOnClose: m
|
|
130
|
-
}, null, 8, ["show", "record", "data-status"])) : c("", !0), e.showUserView ? (d(), i(R, {
|
|
131
|
-
key: 1,
|
|
132
|
-
show: e.showUserView,
|
|
133
|
-
record: e.record,
|
|
134
|
-
"data-status": e.dataStatus,
|
|
135
|
-
onOnClose: m
|
|
136
|
-
}, null, 8, ["show", "record", "data-status"])) : c("", !0), e.showModalView ? (d(), i(N, {
|
|
137
|
-
key: 2,
|
|
138
|
-
ref: "xmodal",
|
|
139
|
-
record: e.record,
|
|
140
|
-
items: g,
|
|
141
|
-
url: u.value,
|
|
142
|
-
method: n.value,
|
|
143
|
-
width: "400",
|
|
144
|
-
height: "240",
|
|
145
|
-
"data-status": "update",
|
|
146
|
-
title: t.$t("message.title.authEdit"),
|
|
147
|
-
onClose: h[0] || (h[0] = (F) => e.showModalView = !1)
|
|
148
|
-
}, null, 8, ["record", "url", "method", "title"])) : c("", !0)]);
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
});
|
|
152
|
-
export {
|
|
153
|
-
K as _
|
|
154
|
-
};
|