@utogether/udp-core 2.0.0-beta.26 → 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 -78
- package/src/api/index.ts +1 -1
- package/src/components/SuQrcode/src/index.tsx +231 -236
- 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 +25 -23
- package/src/router/index.ts +156 -187
- 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 +4 -21
- 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 +5 -9
- package/tsconfig.json +2 -3
- package/types/global.d.ts +234 -234
- package/vite.config.ts +2 -1
- package/dist/403-D6Wb3JJh.js +0 -72
- package/dist/404-B_HNbPNV.js +0 -72
- package/dist/500-BMemTTy1.js +0 -77
- package/dist/AuthorityInfo-6wHxwiFM.js +0 -91
- package/dist/AuthorityPanel-OqF_DvXA.js +0 -98
- package/dist/Company-BLXSfow0.js +0 -21
- package/dist/CompanyPanel-B4kRZ5Cg.js +0 -199
- package/dist/DataSet-CuGZcKC-.js +0 -141
- package/dist/Department-oFhsa7cd.js +0 -21
- package/dist/DepartmentPanel-B1UGpu-r.js +0 -242
- package/dist/DepartmentPanel-BL58AdoT.js +0 -2
- package/dist/DesignPanel-DmkFVw1N.js +0 -1196
- package/dist/DictView-CC5yMzOq.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-CAzWxLmP.js +0 -45
- package/dist/ReIcon-DecitXmg.js +0 -413
- package/dist/ReportDefine-BgLM-Rjk.js +0 -10
- package/dist/ReportDesign-DwchGG2P.js +0 -158
- package/dist/ReportQuery-D5jaRJEn.js +0 -101
- package/dist/ReportQueryFrom-CNlmtYey.js +0 -198
- package/dist/ReportTemplate-CNcTmccs.js +0 -162
- package/dist/Role-Be8WfdCA.js +0 -21
- package/dist/RoleAssign-CtehGAUf.js +0 -22
- package/dist/RolePanel-CAwITg_q.js +0 -131
- package/dist/RolePanel-SN0FGFZ7.js +0 -176
- package/dist/ScrollPanel-DW30pGz1.js +0 -88
- package/dist/Staff-V2YsNKcj.js +0 -22
- package/dist/StaffInfo-CKRPW0r4.js +0 -149
- package/dist/StaffPanel-BxcgMg7u.js +0 -143
- package/dist/SysUser-Dxyj5w5m.js +0 -12
- package/dist/SysUserPanel-DI6CWcZo.js +0 -365
- package/dist/SystemMenu-BBHREM8T.js +0 -154
- package/dist/UserInfo-BMVQ0xwE.js +0 -194
- package/dist/_plugin-vue_export-helper-C6QCLu9I.js +0 -8
- package/dist/api-BFNxcxSN.js +0 -30
- package/dist/authority-BJFEUdrh.js +0 -20
- package/dist/await-to-js.es5-DkWYmPXW.js +0 -10
- package/dist/childView-BBjPEraB.js +0 -184
- package/dist/childView-DNqG2UVm.js +0 -181
- 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-B6Mx2ERA.js +0 -2662
- package/dist/log-in-BrNB0mLz.js +0 -117
- package/dist/log-out-dYfqvzy6.js +0 -111
- package/dist/login-D_Hjy3Jd.js +0 -231
- package/dist/login-log-CJak-ANA.js +0 -79
- package/dist/lov-view-DM5Nm5tW.js +0 -95
- package/dist/menuInfo-BlOY1KZW.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/su-welcome-DVD3S_du.js +0 -799
- package/dist/sys-config-Ddb3vBpK.js +0 -316
- package/dist/system-Cm3lyBas.js +0 -1528
- package/dist/udp-core-DaQd5CF1.js +0 -2028
- package/dist/useDataThemeChange-DJ4K3VGp.js +0 -226
- package/dist/useNav-BhOJIdrJ.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,110 @@
|
|
|
1
|
+
import { defineComponent as _, ref as i, createVNode as c, resolveComponent as l, nextTick as v, openBlock as s, createElementBlock as g, createBlock as C, createCommentVNode as D } from "vue";
|
|
2
|
+
import { _ as T } from "./childView.vue_vue_type_style_index_0_lang-CfKq_0FN.js";
|
|
3
|
+
import { useRender as k } from "@utogether/utils";
|
|
4
|
+
const E = {
|
|
5
|
+
name: "DictView"
|
|
6
|
+
}, w = /* @__PURE__ */ _({
|
|
7
|
+
...E,
|
|
8
|
+
setup(y) {
|
|
9
|
+
const n = i(null), u = [{
|
|
10
|
+
field: "dictCode",
|
|
11
|
+
title: "message.udp.dictCode"
|
|
12
|
+
}, {
|
|
13
|
+
field: "dictName",
|
|
14
|
+
title: "message.udp.dictName"
|
|
15
|
+
}, {
|
|
16
|
+
field: "dictType",
|
|
17
|
+
title: "message.udp.dictType",
|
|
18
|
+
code: "SU.DICT.TYPE"
|
|
19
|
+
}], t = k(), o = [
|
|
20
|
+
{
|
|
21
|
+
type: "checkbox",
|
|
22
|
+
width: 40,
|
|
23
|
+
align: "center"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
field: "dictCode",
|
|
27
|
+
title: "message.udp.dictCode",
|
|
28
|
+
required: !0,
|
|
29
|
+
editRender: t.renderInput()
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
field: "dictName",
|
|
33
|
+
title: "message.udp.dictName",
|
|
34
|
+
required: !0,
|
|
35
|
+
editRender: t.renderInput()
|
|
36
|
+
},
|
|
37
|
+
// {
|
|
38
|
+
// field: 'userName',
|
|
39
|
+
// width: 300,
|
|
40
|
+
// editRender: renderHook.renderUpload()
|
|
41
|
+
// },
|
|
42
|
+
{
|
|
43
|
+
field: "dictType",
|
|
44
|
+
title: "message.udp.dictType",
|
|
45
|
+
required: !0,
|
|
46
|
+
editRender: t.renderDict("SU.DICT.TYPE"),
|
|
47
|
+
formatter: ["formatDict", "SU.DICT.TYPE"]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
field: "dictDesc",
|
|
51
|
+
title: "message.udp.dictDesc",
|
|
52
|
+
editRender: t.renderInput()
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
field: "enabled",
|
|
56
|
+
width: 110,
|
|
57
|
+
editRender: t.renderDict({
|
|
58
|
+
code: "SU.ENABLE",
|
|
59
|
+
defaultValue: "1"
|
|
60
|
+
}),
|
|
61
|
+
formatter: ["formatDict", "SU.ENABLE"]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
field: "operate",
|
|
65
|
+
width: 80,
|
|
66
|
+
slots: {
|
|
67
|
+
default: ({
|
|
68
|
+
row: e
|
|
69
|
+
}) => e.id ? [c(l("ut-button"), {
|
|
70
|
+
content: "lov",
|
|
71
|
+
icon: "ri-dice-6-line",
|
|
72
|
+
onClick: () => a(e)
|
|
73
|
+
}, null)] : null
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
], d = i(!1), r = i(null), a = (e) => {
|
|
77
|
+
v(() => {
|
|
78
|
+
d.value = !0, r.value = e, r.value.total = e.children?.length;
|
|
79
|
+
});
|
|
80
|
+
}, m = () => {
|
|
81
|
+
n.value.refreshData(), d.value = !1;
|
|
82
|
+
}, f = {
|
|
83
|
+
editActived({
|
|
84
|
+
row: e
|
|
85
|
+
}) {
|
|
86
|
+
o[1].editRender.props.disabled = !!e.id;
|
|
87
|
+
}
|
|
88
|
+
}, p = (e) => e.dictType !== "0";
|
|
89
|
+
return (e, N) => {
|
|
90
|
+
const h = l("ut-grid");
|
|
91
|
+
return s(), g("div", null, [c(h, {
|
|
92
|
+
ref_key: "xgrid",
|
|
93
|
+
ref: n,
|
|
94
|
+
items: u,
|
|
95
|
+
columns: o,
|
|
96
|
+
"check-method": p,
|
|
97
|
+
events: f,
|
|
98
|
+
url: "/upfm/v1/lov"
|
|
99
|
+
}, null, 512), d.value ? (s(), C(T, {
|
|
100
|
+
key: 0,
|
|
101
|
+
show: d.value,
|
|
102
|
+
record: r.value,
|
|
103
|
+
onOnClose: m
|
|
104
|
+
}, null, 8, ["show", "record"])) : D("", !0)]);
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
export {
|
|
109
|
+
w as default
|
|
110
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { defineComponent as u, ref as m, reactive as c, resolveComponent as g, openBlock as p, createBlock as f } from "vue";
|
|
2
|
+
import { t as _ } from "./await-to-js.es5-Bv3Eu4mi.js";
|
|
3
|
+
import { useRender as z } from "@utogether/utils";
|
|
4
|
+
import { n as h } from "./index-C5WRTwvI.js";
|
|
5
|
+
const C = {
|
|
6
|
+
name: "InvOrganization"
|
|
7
|
+
}, x = /* @__PURE__ */ u({
|
|
8
|
+
...C,
|
|
9
|
+
setup(k) {
|
|
10
|
+
const t = "/uums/cusOrganization", n = m(null), e = z(), i = [{
|
|
11
|
+
field: "organizationCode",
|
|
12
|
+
title: "message.udp.organizationCode"
|
|
13
|
+
}, {
|
|
14
|
+
field: "organizationName",
|
|
15
|
+
title: "message.udp.organizationName"
|
|
16
|
+
}], a = [{
|
|
17
|
+
type: "checkbox",
|
|
18
|
+
width: 40,
|
|
19
|
+
align: "center"
|
|
20
|
+
}, {
|
|
21
|
+
field: "organizationCode",
|
|
22
|
+
width: 120,
|
|
23
|
+
title: "message.udp.organizationCode",
|
|
24
|
+
required: !0,
|
|
25
|
+
editRender: e.renderInput()
|
|
26
|
+
}, {
|
|
27
|
+
field: "organizationName",
|
|
28
|
+
minWidth: 120,
|
|
29
|
+
title: "message.udp.organizationName",
|
|
30
|
+
required: !0,
|
|
31
|
+
editRender: e.renderInput()
|
|
32
|
+
}, {
|
|
33
|
+
field: "orgName",
|
|
34
|
+
minWidth: 170,
|
|
35
|
+
title: "message.udp.orgName",
|
|
36
|
+
required: !0,
|
|
37
|
+
editRender: e.renderBU()
|
|
38
|
+
}, {
|
|
39
|
+
field: "orgCode",
|
|
40
|
+
width: 110,
|
|
41
|
+
title: "message.udp.orgCode"
|
|
42
|
+
}, {
|
|
43
|
+
field: "enabled",
|
|
44
|
+
width: 80,
|
|
45
|
+
cellRender: e.renderEnabled(d)
|
|
46
|
+
}];
|
|
47
|
+
async function d({
|
|
48
|
+
row: r
|
|
49
|
+
}) {
|
|
50
|
+
const [o] = await _(h().put(t, [r]));
|
|
51
|
+
!o && n.value.refreshData();
|
|
52
|
+
}
|
|
53
|
+
const s = c({
|
|
54
|
+
columns: a
|
|
55
|
+
});
|
|
56
|
+
return (r, o) => {
|
|
57
|
+
const l = g("ut-grid");
|
|
58
|
+
return p(), f(l, {
|
|
59
|
+
ref_key: "xgrid",
|
|
60
|
+
ref: n,
|
|
61
|
+
items: i,
|
|
62
|
+
"default-params": {
|
|
63
|
+
organizationId: "",
|
|
64
|
+
orgId: ""
|
|
65
|
+
},
|
|
66
|
+
columns: s.columns,
|
|
67
|
+
url: t
|
|
68
|
+
}, null, 8, ["columns"]);
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
export {
|
|
73
|
+
x as default
|
|
74
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { defineComponent as a, ref as m, resolveComponent as u, openBlock as c, createBlock as g } from "vue";
|
|
2
|
+
import { t as p } from "./await-to-js.es5-Bv3Eu4mi.js";
|
|
3
|
+
import { clone as f } from "xe-utils";
|
|
4
|
+
import { useRender as _ } from "@utogether/utils";
|
|
5
|
+
import { n as h } from "./index-C5WRTwvI.js";
|
|
6
|
+
const C = { name: "OrgUnit" }, N = /* @__PURE__ */ a({
|
|
7
|
+
...C,
|
|
8
|
+
setup(k) {
|
|
9
|
+
const t = "/uums/org", r = m(null), i = _(), d = [
|
|
10
|
+
{ field: "orgCode", title: "message.udp.orgCode" },
|
|
11
|
+
{ field: "orgName", title: "message.udp.orgName" },
|
|
12
|
+
{ field: "orgAlias", title: "message.udp.orgAlias" }
|
|
13
|
+
], s = [
|
|
14
|
+
{ type: "checkbox", width: 50, align: "center" },
|
|
15
|
+
{ field: "orgCode", title: "message.udp.orgCode", required: !0, editRender: { name: "$input" } },
|
|
16
|
+
{ field: "orgName", title: "message.udp.orgName", required: !0, minWidth: 200, editRender: { name: "$input" } },
|
|
17
|
+
{ field: "orgAlias", title: "message.udp.orgAlias", editRender: { name: "$input" } },
|
|
18
|
+
{ field: "orgDesc", title: "message.udp.orgDesc", editRender: { name: "$input" } },
|
|
19
|
+
{ field: "enabled", width: 80, cellRender: i.renderEnabled(l) }
|
|
20
|
+
];
|
|
21
|
+
async function l({ row: o }) {
|
|
22
|
+
const n = f(o, !0), [e] = await p(h().put(t, [n]));
|
|
23
|
+
!e && r.value.refreshData();
|
|
24
|
+
}
|
|
25
|
+
return (o, n) => {
|
|
26
|
+
const e = u("ut-grid");
|
|
27
|
+
return c(), g(e, {
|
|
28
|
+
ref_key: "xgrid",
|
|
29
|
+
ref: r,
|
|
30
|
+
items: d,
|
|
31
|
+
columns: s,
|
|
32
|
+
url: t
|
|
33
|
+
}, null, 512);
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
export {
|
|
38
|
+
N as default
|
|
39
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { defineComponent as w, ref as o, resolveComponent as u, openBlock as h, createElementBlock as x, createVNode as c, withCtx as p, createElementVNode as g, nextTick as V } from "vue";
|
|
2
|
+
import { _ as k } from "./index-C5WRTwvI.js";
|
|
3
|
+
const P = { class: "ut-preview-contain" }, C = /* @__PURE__ */ w({
|
|
4
|
+
__name: "Preview",
|
|
5
|
+
setup(T, { expose: d }) {
|
|
6
|
+
const n = o(!1), l = o(!1), r = o(null), s = o(null), i = o(220), v = (t, e) => {
|
|
7
|
+
l.value = !0, r.value = t, s.value = e, V(() => {
|
|
8
|
+
$("#preview_content").html(t.getHtml(e)), l.value = !1;
|
|
9
|
+
});
|
|
10
|
+
}, m = () => {
|
|
11
|
+
r.value.print(s.value, {});
|
|
12
|
+
};
|
|
13
|
+
return d({
|
|
14
|
+
show: (t, e, a = 220) => {
|
|
15
|
+
n.value = !0, i.value = a, v(t, e);
|
|
16
|
+
}
|
|
17
|
+
}), (t, e) => {
|
|
18
|
+
const a = u("ut-button"), _ = u("vxe-modal");
|
|
19
|
+
return h(), x("div", P, [
|
|
20
|
+
c(_, {
|
|
21
|
+
modelValue: n.value,
|
|
22
|
+
"onUpdate:modelValue": e[0] || (e[0] = (f) => n.value = f),
|
|
23
|
+
loading: l.value,
|
|
24
|
+
width: i.value + "mm",
|
|
25
|
+
"min-height": "480",
|
|
26
|
+
"lock-scroll": !1,
|
|
27
|
+
"show-footer": !1
|
|
28
|
+
}, {
|
|
29
|
+
title: p(() => [
|
|
30
|
+
c(a, {
|
|
31
|
+
status: "u-cyan",
|
|
32
|
+
icon: "ri-printer-line",
|
|
33
|
+
content: "print",
|
|
34
|
+
onTap: m
|
|
35
|
+
})
|
|
36
|
+
]),
|
|
37
|
+
default: p(() => [...e[1] || (e[1] = [
|
|
38
|
+
g("div", { id: "preview_content" }, null, -1)
|
|
39
|
+
])]),
|
|
40
|
+
_: 1
|
|
41
|
+
}, 8, ["modelValue", "loading", "width"])
|
|
42
|
+
]);
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
}), N = /* @__PURE__ */ k(C, [["__scopeId", "data-v-e51c0962"]]);
|
|
46
|
+
export {
|
|
47
|
+
N as default
|
|
48
|
+
};
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { defineComponent as A, ref as s, createVNode as n, Fragment as I, resolveComponent as o, nextTick as b, openBlock as u, createElementBlock as q, withDirectives as x, vShow as E, createBlock as m, createCommentVNode as c } from "vue";
|
|
2
|
+
import { useRender as S, successMessage as $ } from "@utogether/utils";
|
|
3
|
+
import { useClipboard as V } from "@vueuse/core";
|
|
4
|
+
import { t as B } from "./await-to-js.es5-Bv3Eu4mi.js";
|
|
5
|
+
import { _ as M } from "./DesignPanel.vue_vue_type_style_index_0_lang-BjtYyEw7.js";
|
|
6
|
+
import { n as U } from "./index-C5WRTwvI.js";
|
|
7
|
+
const f = "/urpt/v1/printTemplate", K = /* @__PURE__ */ A({
|
|
8
|
+
name: "ReportDesign",
|
|
9
|
+
__name: "ReportDesign",
|
|
10
|
+
setup(F) {
|
|
11
|
+
const a = s(null), l = s(!1), i = s(!1), r = S(), t = s({}), {
|
|
12
|
+
copy: v
|
|
13
|
+
} = V(), g = U(), h = [{
|
|
14
|
+
field: "templateCode",
|
|
15
|
+
title: "message.urpt.templateCode"
|
|
16
|
+
}, {
|
|
17
|
+
field: "templateName",
|
|
18
|
+
title: "message.urpt.templateName"
|
|
19
|
+
}], d = [
|
|
20
|
+
{
|
|
21
|
+
type: "checkbox",
|
|
22
|
+
width: 50,
|
|
23
|
+
align: "center"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
field: "templateCode",
|
|
27
|
+
title: "message.urpt.templateCode",
|
|
28
|
+
required: !0,
|
|
29
|
+
width: 150,
|
|
30
|
+
editRender: r.renderInput()
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
field: "templateName",
|
|
34
|
+
title: "message.urpt.templateName",
|
|
35
|
+
required: !0,
|
|
36
|
+
width: 240,
|
|
37
|
+
editRender: r.renderInput()
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
field: "paperType",
|
|
41
|
+
title: "message.urpt.paperType",
|
|
42
|
+
width: 120,
|
|
43
|
+
required: !0,
|
|
44
|
+
editRender: r.renderDict({
|
|
45
|
+
code: "SU.PRINT.PAPER",
|
|
46
|
+
defaultValue: "A4"
|
|
47
|
+
}),
|
|
48
|
+
formatter: ["formatDict", "SU.PRINT.PAPER"]
|
|
49
|
+
},
|
|
50
|
+
// { field: 'createdByName', width: 120 },
|
|
51
|
+
{
|
|
52
|
+
field: "remarks",
|
|
53
|
+
title: "message.remark",
|
|
54
|
+
minWidth: 120,
|
|
55
|
+
editRender: r.renderInput()
|
|
56
|
+
},
|
|
57
|
+
// { field: 'enabled', width: 55, formatter: ['formatDict', 'SU.ENABLE'] },
|
|
58
|
+
{
|
|
59
|
+
field: "operate",
|
|
60
|
+
width: 200,
|
|
61
|
+
slots: {
|
|
62
|
+
default: ({
|
|
63
|
+
row: e
|
|
64
|
+
}) => e.id ? n(I, null, [n(o("ut-button"), {
|
|
65
|
+
content: "design",
|
|
66
|
+
icon: "ri-quill-pen-line",
|
|
67
|
+
onTap: () => k(e)
|
|
68
|
+
}, null), n(o("ut-button"), {
|
|
69
|
+
content: "copy",
|
|
70
|
+
status: "warning",
|
|
71
|
+
icon: "ri-file-copy-2-fill",
|
|
72
|
+
onTap: () => R(e)
|
|
73
|
+
}, null), n(o("ut-button"), {
|
|
74
|
+
content: "export",
|
|
75
|
+
status: "u-cyan",
|
|
76
|
+
icon: "ri-folder-download-fill",
|
|
77
|
+
onTap: () => y(e)
|
|
78
|
+
}, null)]) : null
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
], C = [{
|
|
82
|
+
field: "templateCode",
|
|
83
|
+
title: "message.urpt.templateCode",
|
|
84
|
+
required: !0,
|
|
85
|
+
itemRender: {
|
|
86
|
+
name: "$input"
|
|
87
|
+
},
|
|
88
|
+
span: 24
|
|
89
|
+
}, {
|
|
90
|
+
field: "templateName",
|
|
91
|
+
title: "message.urpt.templateName",
|
|
92
|
+
required: !0,
|
|
93
|
+
itemRender: {
|
|
94
|
+
name: "$input"
|
|
95
|
+
},
|
|
96
|
+
span: 24
|
|
97
|
+
}, {
|
|
98
|
+
field: "paperType",
|
|
99
|
+
title: "message.urpt.paperType",
|
|
100
|
+
width: 100,
|
|
101
|
+
required: !0,
|
|
102
|
+
itemRender: r.renderDict({
|
|
103
|
+
code: "SU.PRINT.PAPER",
|
|
104
|
+
defaultValue: "A4"
|
|
105
|
+
})
|
|
106
|
+
}, {
|
|
107
|
+
field: "remarks",
|
|
108
|
+
title: "message.remark",
|
|
109
|
+
itemRender: {
|
|
110
|
+
name: "$input"
|
|
111
|
+
},
|
|
112
|
+
span: 24
|
|
113
|
+
}], R = (e) => {
|
|
114
|
+
t.value.templateContent = e.templateContent, t.value.paperType = e.paperType, i.value = !0;
|
|
115
|
+
}, y = (e) => {
|
|
116
|
+
v(e.templateContent), $("复制成功,快试试右键粘贴吧");
|
|
117
|
+
}, _ = async () => {
|
|
118
|
+
const [e] = await B(g.post(f, [t.value]));
|
|
119
|
+
!e && a.value.refreshData(), i.value = !1;
|
|
120
|
+
}, k = (e) => {
|
|
121
|
+
t.value = e, b(() => {
|
|
122
|
+
l.value = !0;
|
|
123
|
+
});
|
|
124
|
+
}, T = {
|
|
125
|
+
editActived({
|
|
126
|
+
row: e
|
|
127
|
+
}) {
|
|
128
|
+
d[1].editRender.props.disabled = !!e.id, a.value.getInstance().refreshColumn();
|
|
129
|
+
}
|
|
130
|
+
}, N = ({
|
|
131
|
+
row: e
|
|
132
|
+
}) => e?.enabled !== "1", w = () => {
|
|
133
|
+
t.value = {}, l.value = !1, a.value.refreshData();
|
|
134
|
+
};
|
|
135
|
+
return (e, p) => {
|
|
136
|
+
const D = o("ut-grid"), P = o("ut-modal-form");
|
|
137
|
+
return u(), q("div", null, [x(n(D, {
|
|
138
|
+
ref_key: "xgrid",
|
|
139
|
+
ref: a,
|
|
140
|
+
items: h,
|
|
141
|
+
columns: d,
|
|
142
|
+
"check-method": N,
|
|
143
|
+
url: f,
|
|
144
|
+
events: T
|
|
145
|
+
}, null, 512), [[E, !l.value]]), l.value ? (u(), m(M, {
|
|
146
|
+
key: 0,
|
|
147
|
+
record: t.value,
|
|
148
|
+
onOnClose: w
|
|
149
|
+
}, null, 8, ["record"])) : c("", !0), i.value ? (u(), m(P, {
|
|
150
|
+
key: 1,
|
|
151
|
+
record: t.value,
|
|
152
|
+
items: C,
|
|
153
|
+
width: "40%",
|
|
154
|
+
height: 290,
|
|
155
|
+
"data-status": "update",
|
|
156
|
+
title: "复制模板",
|
|
157
|
+
onConfirm: _,
|
|
158
|
+
onClose: p[0] || (p[0] = (G) => i.value = !1)
|
|
159
|
+
}, null, 8, ["record"])) : c("", !0)]);
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
export {
|
|
164
|
+
K as default
|
|
165
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { defineComponent as s, reactive as m, watch as c, ref as f, onMounted as u, resolveComponent as p, openBlock as o, createElementBlock as h, withDirectives as _, createVNode as w, vShow as x, createBlock as D, createCommentVNode as R } from "vue";
|
|
2
|
+
import { useRoute as C } from "vue-router";
|
|
3
|
+
import { _ as S } from "./ReportQueryFrom.vue_vue_type_style_index_0_lang-Dj9ne87n.js";
|
|
4
|
+
import { useRender as g } from "@utogether/utils";
|
|
5
|
+
const N = { name: "ReportQuery" }, O = /* @__PURE__ */ s({
|
|
6
|
+
...N,
|
|
7
|
+
setup(T) {
|
|
8
|
+
const e = m({
|
|
9
|
+
record: {},
|
|
10
|
+
showChild: !1,
|
|
11
|
+
loading: !1,
|
|
12
|
+
dataStatus: ""
|
|
13
|
+
}), t = C(), r = g();
|
|
14
|
+
c(
|
|
15
|
+
() => t.path,
|
|
16
|
+
() => {
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
const a = [
|
|
20
|
+
{ field: "templateName" },
|
|
21
|
+
{ field: "createdByName" },
|
|
22
|
+
{ field: "exportResult", itemRender: r.renderDict("SU.REPORT.EXPORT_STATUS") },
|
|
23
|
+
{
|
|
24
|
+
field: "exportDate",
|
|
25
|
+
itemRender: { name: "#SuDateRange" },
|
|
26
|
+
fromField: "exportDateFrom",
|
|
27
|
+
toField: "exportDateTo"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
field: "creationDate",
|
|
31
|
+
itemRender: { name: "#SuDateRange" },
|
|
32
|
+
fromField: "createDateFrom",
|
|
33
|
+
toField: "createDateTo"
|
|
34
|
+
}
|
|
35
|
+
], d = [
|
|
36
|
+
{ field: "exportNo", title: "message.reportCode", width: 100 },
|
|
37
|
+
{ field: "templateName", width: 150 },
|
|
38
|
+
{ field: "fileName", width: 150 },
|
|
39
|
+
{ field: "exportStatus", width: 90 },
|
|
40
|
+
{ field: "exportResult", width: 70 },
|
|
41
|
+
{ field: "fileType", width: 80 },
|
|
42
|
+
{ field: "exportMsg", minWidth: 100 },
|
|
43
|
+
{ field: "createdByName", width: 100 },
|
|
44
|
+
{ field: "exportDate", width: 100 },
|
|
45
|
+
{ field: "creationDate", width: 100, formatter: ["formatDate"] }
|
|
46
|
+
], i = f(null), l = () => {
|
|
47
|
+
e.showChild = !1;
|
|
48
|
+
};
|
|
49
|
+
return u(() => {
|
|
50
|
+
t?.params?.isJump && (e.dataStatus = "add", e.showChild = !0);
|
|
51
|
+
}), (k, y) => {
|
|
52
|
+
const n = p("ut-grid");
|
|
53
|
+
return o(), h("div", null, [
|
|
54
|
+
_(w(n, {
|
|
55
|
+
ref_key: "xgrid",
|
|
56
|
+
ref: i,
|
|
57
|
+
tems: a,
|
|
58
|
+
columns: d
|
|
59
|
+
}, null, 512), [
|
|
60
|
+
[x, !e.showChild]
|
|
61
|
+
]),
|
|
62
|
+
e.showChild ? (o(), D(S, {
|
|
63
|
+
key: 0,
|
|
64
|
+
record: e.record,
|
|
65
|
+
"data-status": e.dataStatus,
|
|
66
|
+
onOnClose: l
|
|
67
|
+
}, null, 8, ["record", "data-status"])) : R("", !0)
|
|
68
|
+
]);
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
export {
|
|
73
|
+
O as default
|
|
74
|
+
};
|