@utogether/udp-core 2.0.0-beta.25 → 2.0.0-beta.27
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-gdcH0-Bo.js +65 -0
- package/dist/404-Se2SF97M.js +65 -0
- package/dist/500-B6j9AqLo.js +67 -0
- package/dist/AuthorityInfo-CQ8ydZvr.js +4 -0
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-C4NRvS8p.js +100 -0
- package/dist/AuthorityPanel-lVnZ5bce.js +4 -0
- package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-nsfhDlvV.js +113 -0
- package/dist/Company-BzSVBSC4.js +25 -0
- package/dist/CompanyPanel-DBjZB4aJ.js +204 -0
- package/dist/DataSet-iBHzs75s.js +147 -0
- package/dist/Department-BkgseHo8.js +25 -0
- package/dist/DepartmentPanel-Sen93_2M.js +249 -0
- package/dist/DesignPanel-pqDcwaFC.js +4 -0
- package/dist/DesignPanel.vue_vue_type_style_index_0_lang-BjtYyEw7.js +1013 -0
- package/dist/DictView-CJLG4LlE.js +110 -0
- package/dist/InvOrganization-D0Jq1IAa.js +74 -0
- package/dist/Org-CO_1WT39.js +39 -0
- package/dist/Preview-DLI4Bwel.js +48 -0
- package/dist/ReportDefine-Cw46OnJ_.js +10 -0
- package/dist/ReportDesign-D4sHTXT7.js +165 -0
- package/dist/ReportQuery-DtOCvQSN.js +74 -0
- package/dist/ReportQueryFrom-QjL-ETPq.js +4 -0
- package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-Dj9ne87n.js +177 -0
- package/dist/ReportTemplate-BxAgc_Aj.js +161 -0
- package/dist/Role-Df77BBD-.js +25 -0
- package/dist/RoleAssign-BrunouML.js +26 -0
- package/dist/RolePanel-DSVwqhiD.js +4 -0
- package/dist/RolePanel-HLA7XBlN.js +4 -0
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CKlbqRa5.js +132 -0
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CN0rUxKz.js +152 -0
- package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-D_FeSXKv.js +99 -0
- package/dist/Staff-BeL1xcRf.js +26 -0
- package/dist/StaffInfo-CIfnltyX.js +4 -0
- package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-DbLFwWfG.js +107 -0
- package/dist/StaffPanel-BV2CHWac.js +4 -0
- package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-CvT-Vp2G.js +153 -0
- package/dist/SysUser-DPfNvthk.js +15 -0
- package/dist/SysUserPanel-CoLKYlQE.js +4 -0
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-lcO3Cjbq.js +353 -0
- package/dist/SystemMenu-sdj1dRDA.js +156 -0
- package/dist/UserInfo-CTX4hhFl.js +4 -0
- package/dist/UserInfo.vue_vue_type_style_index_0_lang-ClhCd_8z.js +160 -0
- package/dist/await-to-js.es5-Bv3Eu4mi.js +10 -0
- package/dist/childView-BDmWwJO5.js +4 -0
- package/dist/childView-Dx3ACtHa.js +4 -0
- package/dist/childView.vue_vue_type_style_index_0_lang-CfKq_0FN.js +183 -0
- package/dist/childView.vue_vue_type_style_index_0_lang-DxZNtkhd.js +143 -0
- package/dist/code-rule-cvN4gYC_.js +148 -0
- package/dist/core.es.js +24 -6
- package/dist/cron-task-B0TkxFdp.js +135 -0
- package/dist/flow-task-PoDnE_kE.js +10 -0
- package/dist/frameView-5cy5BSgS.js +43 -0
- package/dist/img/minicolors.png +0 -0
- package/dist/index-C5WRTwvI.js +3006 -0
- package/dist/layout-home-DrARg-3o.js +232 -0
- package/dist/layoutView-25v_ngk5.js +3191 -0
- package/dist/log-in-Bmz5Uhbt.js +116 -0
- package/dist/log-out-B-8m3oNj.js +130 -0
- package/dist/login-Cmp2RvvW.js +217 -0
- package/dist/login-log-CVvRgZSu.js +70 -0
- package/dist/lov-view-BATtzw2X.js +99 -0
- package/dist/menuInfo-BIvrE7nm.js +4 -0
- package/dist/menuInfo.vue_vue_type_style_index_0_lang-B6USomit.js +360 -0
- package/dist/pda-app-CzHVyeEa.js +707 -0
- package/dist/redirect-DTz8GSnv.js +15 -0
- package/dist/resource-Y5lGB38n.js +97 -0
- package/dist/su-welcome-CXA6OzBw.js +878 -0
- package/dist/sys-config-CqO03LeC.js +385 -0
- package/dist/udp-core.css +1 -2
- package/dist/useNav-C-rCgubt.js +84 -0
- package/dist/utogether-MlnyYtNS.js +4 -0
- package/dist/wecom-push-B75FLee5.js +70 -0
- package/index.ts +3 -2
- package/package.json +1 -1
- package/src/App.vue +79 -73
- package/src/api/index.ts +1 -1
- package/src/components/SuQrcode/src/index.tsx +231 -236
- package/src/components/udp/grid/index.vue +9 -11
- package/src/components/udp/utils.ts +420 -414
- package/src/layout/components/lay-panel/index.vue +2 -6
- package/src/layout/components/lay-search/components/SearchModal.vue +7 -3
- package/src/main.ts +111 -110
- package/src/router/index.ts +156 -187
- package/src/router/utils.ts +2 -3
- package/src/store/modules/system.ts +7 -0
- package/src/style/vxetable.scss +372 -364
- package/src/utils/authority/index.ts +46 -29
- package/src/utils/udp/http/index.ts +115 -64
- package/src/utils/udp/http/types.d.ts +15 -14
- package/src/views/login/login-view.vue +280 -301
- package/src/views/organization/department/DepartmentPanel.vue +3 -4
- package/src/views/system/sys/sys-config.vue +344 -344
- package/src/views/uhome/components/home-todo.vue +179 -178
- package/src/views/ulogin/login.vue +8 -41
- package/tsconfig.json +2 -3
- package/types/global.d.ts +234 -234
- package/vite.config.ts +2 -1
- package/dist/403-QwBKrRZE.js +0 -72
- package/dist/404-Cr7MbzNV.js +0 -72
- package/dist/500-B7kCOeIA.js +0 -77
- package/dist/AuthorityInfo-Dwml2K4S.js +0 -91
- package/dist/AuthorityPanel-DzPhsPpa.js +0 -98
- package/dist/Company-BhOlvl7Q.js +0 -21
- package/dist/CompanyPanel-ByhY5-Sq.js +0 -199
- package/dist/DataSet-CuGZcKC-.js +0 -141
- package/dist/Department-QvngN63N.js +0 -21
- package/dist/DepartmentPanel-BCXqC39J.js +0 -2
- package/dist/DepartmentPanel-DntGycxr.js +0 -242
- package/dist/DesignPanel-BMN4DZ0R.js +0 -1196
- package/dist/DictView-ERFqZ5VD.js +0 -100
- package/dist/File-WJXjGYxr.js +0 -89
- package/dist/InvOrganization-BwMmD8Ua.js +0 -76
- package/dist/Org-HgnOWubi.js +0 -76
- package/dist/Preview-CVZdnHB1.js +0 -45
- package/dist/ReIcon-DecitXmg.js +0 -413
- package/dist/ReportDefine-BgLM-Rjk.js +0 -10
- package/dist/ReportDesign-CjfTyyy_.js +0 -158
- package/dist/ReportQuery-CP-E0Puv.js +0 -101
- package/dist/ReportQueryFrom-D7SPPAps.js +0 -198
- package/dist/ReportTemplate-DE25zc1f.js +0 -162
- package/dist/Role-K7v_ZhFE.js +0 -21
- package/dist/RoleAssign-C16fjLaX.js +0 -22
- package/dist/RolePanel-CV-xPlYJ.js +0 -176
- package/dist/RolePanel-DPCe9k8f.js +0 -131
- package/dist/ScrollPanel-DW30pGz1.js +0 -88
- package/dist/Staff-w2ly4qd0.js +0 -22
- package/dist/StaffInfo-DPDRpz6F.js +0 -149
- package/dist/StaffPanel-DI1eTTp9.js +0 -143
- package/dist/SysUser-BMTX1cJM.js +0 -12
- package/dist/SysUserPanel-xwZdVjdp.js +0 -365
- package/dist/SystemMenu-TXhiQZVm.js +0 -154
- package/dist/UserInfo-JQqw8FMT.js +0 -194
- package/dist/_plugin-vue_export-helper-C6QCLu9I.js +0 -8
- package/dist/api-BFNxcxSN.js +0 -30
- package/dist/authority-Bi6BGB5B.js +0 -20
- package/dist/await-to-js.es5-DkWYmPXW.js +0 -10
- package/dist/childView-Bk8OD9bV.js +0 -181
- package/dist/childView-CyrcwshT.js +0 -184
- package/dist/code-rule-QFrhqFrW.js +0 -151
- package/dist/contant-Q77dU_V3.js +0 -4
- package/dist/cron-task-BpUDKEAU.js +0 -131
- package/dist/flow-task-DAc2NrDU.js +0 -11
- package/dist/frameView-Di0zJZUR.js +0 -39
- package/dist/layout-home-BVp7vYLR.js +0 -239
- package/dist/layoutView-DFUjrqAS.js +0 -2662
- package/dist/log-in-BrNB0mLz.js +0 -117
- package/dist/log-out-dYfqvzy6.js +0 -111
- package/dist/login-BdCDnuXL.js +0 -233
- package/dist/login-log-CJak-ANA.js +0 -79
- package/dist/lov-view-DkmG4K57.js +0 -95
- package/dist/menuInfo-kp2wNYOp.js +0 -346
- package/dist/mitt-CQgI7DYU.js +0 -27
- package/dist/pda-app-CA7YI37u.js +0 -589
- package/dist/redirect-N0k4tImU.js +0 -16
- package/dist/resource-CfQTHFcs.js +0 -94
- package/dist/router-CeluSGiD.js +0 -1531
- package/dist/su-welcome-JeiovGpe.js +0 -799
- package/dist/sys-config-Ddb3vBpK.js +0 -316
- package/dist/udp-core-Dhm-BlAs.js +0 -2032
- package/dist/useDataThemeChange-BCy8JBG7.js +0 -226
- package/dist/useNav-DY8FkltH.js +0 -106
- package/dist/utogether-l7JXs4Lv.js +0 -4
- package/dist/water-mark-WDQZ9YqB.js +0 -119
- package/dist/wecom-push-kWkAVRCj.js +0 -77
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { defineComponent as T, ref as $, computed as S, nextTick as I, reactive as q, onBeforeMount as X, resolveComponent as i, openBlock as B, createElementBlock 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 { n as V } from "./index-C5WRTwvI.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(c, { emit: C }) {
|
|
19
|
+
const m = c, { t: _ } = z(), y = J();
|
|
20
|
+
let g = {};
|
|
21
|
+
const w = 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: `${_("message.required")}${t?.title ? _(t.title) : ""}`
|
|
28
|
+
}
|
|
29
|
+
];
|
|
30
|
+
}), e;
|
|
31
|
+
}), s = [
|
|
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
|
+
b
|
|
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 s.map((e) => (e.title = e.title || `message.${e.field}`, e.span = e.span || 8, e));
|
|
60
|
+
}
|
|
61
|
+
function b(e, t, n, o) {
|
|
62
|
+
o === "templateName" && n[o] && x(t);
|
|
63
|
+
}
|
|
64
|
+
function x(e) {
|
|
65
|
+
g = e, s[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
|
+
s.push(o);
|
|
78
|
+
}), I(() => {
|
|
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
|
+
b
|
|
99
|
+
)) : t = { name: "$input" };
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
102
|
+
return t;
|
|
103
|
+
}, k = () => {
|
|
104
|
+
w.value.validate(async (e) => {
|
|
105
|
+
if (!e) {
|
|
106
|
+
const { dataStatus: t } = m, { row: n } = r, o = A(n, !0), d = t === "add" ? "EXP011" : "EXP003", p = {};
|
|
107
|
+
s.forEach((l) => {
|
|
108
|
+
l.dynamicsField && (p[l.field] = o[l.field]);
|
|
109
|
+
}), o.templateId = g.id, o.reportData = JSON.stringify(p), await f.post(d, o), h("submit");
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
}, P = C;
|
|
113
|
+
function h(e) {
|
|
114
|
+
P("onClose", e);
|
|
115
|
+
}
|
|
116
|
+
const r = q({
|
|
117
|
+
items: v(),
|
|
118
|
+
fetchParamExt: {},
|
|
119
|
+
row: {}
|
|
120
|
+
});
|
|
121
|
+
return X(() => {
|
|
122
|
+
r.row = m.record, r.fetchParamExt = { templateId: m.record.id }, y?.params?.isJump && (r.row = y.params, f.post("EXP005", { tempName: "", pageSize: 1 }).then((e) => {
|
|
123
|
+
e?.list && (s[1].itemRender.props.options = e.list, r.items = v(), x(e?.list[0]));
|
|
124
|
+
}));
|
|
125
|
+
}), (e, t) => {
|
|
126
|
+
const n = i("vxe-form"), o = i("el-divider"), d = i("ut-button"), p = i("el-row"), l = i("el-drawer");
|
|
127
|
+
return B(), D("div", H, [
|
|
128
|
+
a(l, {
|
|
129
|
+
"model-value": c.show,
|
|
130
|
+
title: c.drawTitle,
|
|
131
|
+
"before-close": h,
|
|
132
|
+
"destroy-on-close": "",
|
|
133
|
+
size: "66%"
|
|
134
|
+
}, {
|
|
135
|
+
default: F(() => [
|
|
136
|
+
j("div", M, [
|
|
137
|
+
a(n, {
|
|
138
|
+
ref_key: "xForm",
|
|
139
|
+
ref: w,
|
|
140
|
+
data: r.row,
|
|
141
|
+
rules: N.value,
|
|
142
|
+
items: r.items,
|
|
143
|
+
loading: E.value,
|
|
144
|
+
"title-colon": "",
|
|
145
|
+
"title-align": "right",
|
|
146
|
+
"title-width": "110"
|
|
147
|
+
}, null, 8, ["data", "rules", "items", "loading"])
|
|
148
|
+
]),
|
|
149
|
+
a(o),
|
|
150
|
+
a(p, {
|
|
151
|
+
type: "flex",
|
|
152
|
+
justify: "end",
|
|
153
|
+
style: { "padding-right": "22px" }
|
|
154
|
+
}, {
|
|
155
|
+
default: F(() => [
|
|
156
|
+
a(d, {
|
|
157
|
+
content: "cancel",
|
|
158
|
+
onClick: t[0] || (t[0] = (Q) => h())
|
|
159
|
+
}),
|
|
160
|
+
a(d, {
|
|
161
|
+
content: "confirm",
|
|
162
|
+
status: "u-cyan",
|
|
163
|
+
onClick: k
|
|
164
|
+
})
|
|
165
|
+
]),
|
|
166
|
+
_: 1
|
|
167
|
+
})
|
|
168
|
+
]),
|
|
169
|
+
_: 1
|
|
170
|
+
}, 8, ["model-value", "title"])
|
|
171
|
+
]);
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
export {
|
|
176
|
+
te as _
|
|
177
|
+
};
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { defineComponent as E, ref as r, createVNode as p, Fragment as S, resolveComponent as s, openBlock as f, createElementBlock as O, 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 { X as C, n as D } from "./index-C5WRTwvI.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(), d = r(null), l = r(!1), i = 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 (!d.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 = d.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
|
+
}, i.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: d,
|
|
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), i.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) => i.value = !1)
|
|
155
|
+
}, null, 8, ["default-value"])) : h("", !0)]);
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
export {
|
|
160
|
+
L as default
|
|
161
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { defineComponent as r, ref as e, provide as t, openBlock as i, createElementBlock as _, createElementVNode as o, createVNode as n } from "vue";
|
|
2
|
+
import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-D_FeSXKv.js";
|
|
3
|
+
import { _ as d } from "./RolePanel.vue_vue_type_script_setup_true_lang-CN0rUxKz.js";
|
|
4
|
+
import { _ as p } from "./index-C5WRTwvI.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
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { defineComponent as l, ref as e, provide as t, openBlock as i, createElementBlock as _, createElementVNode as o, createVNode as s } from "vue";
|
|
2
|
+
import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-D_FeSXKv.js";
|
|
3
|
+
import { _ as p } from "./RolePanel.vue_vue_type_script_setup_true_lang-CKlbqRa5.js";
|
|
4
|
+
import { _ as d } from "./index-C5WRTwvI.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
|
+
};
|
|
@@ -0,0 +1,132 @@
|
|
|
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, openBlock as v, createElementBlock as A, unref as R, createBlock as S, createCommentVNode 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 w } from "./await-to-js.es5-Bv3Eu4mi.js";
|
|
6
|
+
import { successMessage as _ } from "@utogether/utils";
|
|
7
|
+
import { n as C } from "./index-C5WRTwvI.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?.value.id && (e.fetchExtParam = {
|
|
22
|
+
orgId: 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 l = {
|
|
76
|
+
orgId: t.value.id,
|
|
77
|
+
roleId: o.id
|
|
78
|
+
};
|
|
79
|
+
e.loading = !0;
|
|
80
|
+
const [s] = await w(C().delete(d, l));
|
|
81
|
+
s || _(c("message.operateSuccess")), n.value.refreshData(), e.loading = !1;
|
|
82
|
+
}
|
|
83
|
+
}, I = async (o) => {
|
|
84
|
+
const r = [];
|
|
85
|
+
o.forEach((a) => {
|
|
86
|
+
a.orgId = t.value.id, a.roleId = a.id, r.push(a);
|
|
87
|
+
});
|
|
88
|
+
const l = {
|
|
89
|
+
orgRoleList: r
|
|
90
|
+
};
|
|
91
|
+
u.value.showLoading();
|
|
92
|
+
const [s] = await w(C().post(d, l));
|
|
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 l = i("ut-grid"), s = i("ut-modal-grid"), a = L("spinning");
|
|
99
|
+
return P((v(), A("div", q, [h(l, {
|
|
100
|
+
ref_key: "xgrid",
|
|
101
|
+
ref: n,
|
|
102
|
+
items: m,
|
|
103
|
+
columns: R(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 ? (v(), S(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"])) : T("", !0)])), [[a, e.loading]]);
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
export {
|
|
131
|
+
X as _
|
|
132
|
+
};
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { defineComponent as S, reactive as I, inject as M, ref as r, watch as B, createVNode as o, Fragment as E, resolveComponent as s, openBlock as l, createElementBlock as $, 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-C4NRvS8p.js";
|
|
4
|
+
import { _ as R } from "./UserInfo.vue_vue_type_style_index_0_lang-ClhCd_8z.js";
|
|
5
|
+
import { n as T, X as q } from "./index-C5WRTwvI.js";
|
|
6
|
+
const H = {
|
|
7
|
+
class: "page-content"
|
|
8
|
+
}, J = /* @__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
|
+
}), d = M("active"), f = O(), a = r(null), n = r(""), p = r({}), u = r("");
|
|
18
|
+
B(() => d.value, () => {
|
|
19
|
+
v();
|
|
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
|
+
}) => [o(E, null, [o(s("ut-button"), {
|
|
64
|
+
content: "edit",
|
|
65
|
+
auth: "edit",
|
|
66
|
+
disabled: t.roleCode === "admin",
|
|
67
|
+
onTap: () => k(t)
|
|
68
|
+
}, null), o(s("ut-button"), {
|
|
69
|
+
content: "dispatchUser",
|
|
70
|
+
status: "warning",
|
|
71
|
+
icon: "ri-user-3-line",
|
|
72
|
+
auth: "user",
|
|
73
|
+
onTap: () => y(t)
|
|
74
|
+
}, null), o(s("ut-button"), {
|
|
75
|
+
content: "dispatchAuth",
|
|
76
|
+
status: "success",
|
|
77
|
+
icon: "ri-plane-line",
|
|
78
|
+
auth: "auth",
|
|
79
|
+
onTap: () => D(t)
|
|
80
|
+
}, null)])]
|
|
81
|
+
}
|
|
82
|
+
}], v = () => {
|
|
83
|
+
p.value = {
|
|
84
|
+
unitId: d?.value?.id
|
|
85
|
+
}, a.value.refreshData();
|
|
86
|
+
}, C = (t) => {
|
|
87
|
+
t === "add" && V(), t === "del" && b();
|
|
88
|
+
}, V = () => {
|
|
89
|
+
e.dataStatus = "add", n.value = "post", u.value = "/uums/role", e.record = {}, e.record.unitId = d?.value?.id, e.record.enabled = "1", e.record.orgId = q().getOrgId, e.showModalView = !0;
|
|
90
|
+
}, k = (t) => {
|
|
91
|
+
n.value = "put", u.value = "/uums/role/singleUpdate", e.dataStatus = "update", e.record = t, e.showModalView = !0;
|
|
92
|
+
}, b = () => {
|
|
93
|
+
a.value.getInstance().commitProxy("delete");
|
|
94
|
+
}, D = (t) => {
|
|
95
|
+
e.record = t, e.showAuthView = !0;
|
|
96
|
+
}, y = (t) => {
|
|
97
|
+
e.record = t, e.showUserView = !0;
|
|
98
|
+
};
|
|
99
|
+
async function A({
|
|
100
|
+
row: t
|
|
101
|
+
}) {
|
|
102
|
+
if (t.roleCode === "admin") {
|
|
103
|
+
t.enabled = "1";
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
await T().put("/uums/role/singleUpdate", t), a.value.refreshData();
|
|
107
|
+
}
|
|
108
|
+
const m = () => {
|
|
109
|
+
e.showDrawView = !1, e.showAuthView = !1, e.showUserView = !1;
|
|
110
|
+
}, U = (t) => t.roleCode !== "admin";
|
|
111
|
+
return (t, h) => {
|
|
112
|
+
const x = s("ut-grid"), N = s("ut-modal-form");
|
|
113
|
+
return l(), $("div", H, [o(x, {
|
|
114
|
+
ref_key: "xgrid",
|
|
115
|
+
ref: a,
|
|
116
|
+
items: w,
|
|
117
|
+
columns: _,
|
|
118
|
+
"check-method": U,
|
|
119
|
+
url: "/uums/role",
|
|
120
|
+
mode: "form",
|
|
121
|
+
onButtonClick: C
|
|
122
|
+
}, null, 512), e.showAuthView ? (l(), i(P, {
|
|
123
|
+
key: 0,
|
|
124
|
+
show: e.showAuthView,
|
|
125
|
+
record: e.record,
|
|
126
|
+
"data-status": e.dataStatus,
|
|
127
|
+
onOnClose: m
|
|
128
|
+
}, null, 8, ["show", "record", "data-status"])) : c("", !0), e.showUserView ? (l(), i(R, {
|
|
129
|
+
key: 1,
|
|
130
|
+
show: e.showUserView,
|
|
131
|
+
record: e.record,
|
|
132
|
+
"data-status": e.dataStatus,
|
|
133
|
+
onOnClose: m
|
|
134
|
+
}, null, 8, ["show", "record", "data-status"])) : c("", !0), e.showModalView ? (l(), i(N, {
|
|
135
|
+
key: 2,
|
|
136
|
+
ref: "xmodal",
|
|
137
|
+
record: e.record,
|
|
138
|
+
items: g,
|
|
139
|
+
url: u.value,
|
|
140
|
+
method: n.value,
|
|
141
|
+
width: "400",
|
|
142
|
+
height: "240",
|
|
143
|
+
"data-status": "update",
|
|
144
|
+
title: t.$t("message.title.authEdit"),
|
|
145
|
+
onClose: h[0] || (h[0] = (F) => e.showModalView = !1)
|
|
146
|
+
}, null, 8, ["record", "url", "method", "title"])) : c("", !0)]);
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
export {
|
|
151
|
+
J as _
|
|
152
|
+
};
|