@utogether/udp-core 2.0.0-beta.27 → 2.0.0-beta.28
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 → 403-CyoOD-Ik.js} +1 -1
- package/dist/{404-Se2SF97M.js → 404-Ch_OHTw0.js} +1 -1
- package/dist/{500-B6j9AqLo.js → 500-Cf9am7HK.js} +1 -1
- package/dist/{AuthorityInfo-CQ8ydZvr.js → AuthorityInfo-BJ427cqG.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-C4NRvS8p.js → AuthorityInfo.vue_vue_type_style_index_0_lang-D9y7AwbB.js} +11 -12
- package/dist/{Company-BzSVBSC4.js → Company-qo-lKPkv.js} +3 -3
- package/dist/{CompanyPanel-DBjZB4aJ.js → CompanyPanel-DkKWAKvY.js} +7 -7
- package/dist/{Department-BkgseHo8.js → Department-CHUQByKX.js} +3 -3
- package/dist/{DepartmentPanel-Sen93_2M.js → DepartmentPanel-C742dfOO.js} +27 -28
- package/dist/{DesignPanel-pqDcwaFC.js → DesignPanel-D9oE5R7m.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-BjtYyEw7.js → DesignPanel.vue_vue_type_style_index_0_lang-hYldVEbo.js} +192 -108
- package/dist/{DictView-CJLG4LlE.js → DictView-CrFXprP9.js} +1 -1
- package/dist/{InvOrganization-D0Jq1IAa.js → InvOrganization-Cz8SzIgs.js} +6 -7
- package/dist/{Org-CO_1WT39.js → Org-Bzt6yKox.js} +9 -10
- package/dist/{Preview-DLI4Bwel.js → Preview-jonigfMQ.js} +1 -1
- package/dist/{ReportDefine-Cw46OnJ_.js → ReportDefine-BpiM5Ovq.js} +1 -1
- package/dist/{ReportDesign-D4sHTXT7.js → ReportDesign-fp09cXJ7.js} +24 -25
- package/dist/{ReportQuery-DtOCvQSN.js → ReportQuery-52ZP1PYP.js} +1 -1
- package/dist/{ReportQueryFrom-QjL-ETPq.js → ReportQueryFrom-DSYavJb1.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-Dj9ne87n.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-DBGYEp0u.js} +4 -4
- package/dist/{ReportTemplate-BxAgc_Aj.js → ReportTemplate-CA_UW0eD.js} +3 -3
- package/dist/{Role-Df77BBD-.js → Role-DqOt8Bk0.js} +3 -3
- package/dist/{RoleAssign-BrunouML.js → RoleAssign-BdxhefhQ.js} +3 -3
- package/dist/{RolePanel-HLA7XBlN.js → RolePanel-2gZ3H0ET.js} +1 -1
- package/dist/{RolePanel-DSVwqhiD.js → RolePanel-BsNd0svJ.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CN0rUxKz.js → RolePanel.vue_vue_type_script_setup_true_lang-DLOwgF99.js} +9 -9
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CKlbqRa5.js → RolePanel.vue_vue_type_script_setup_true_lang-DmzD9kab.js} +26 -27
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-D_FeSXKv.js → ScrollPanel.vue_vue_type_style_index_0_lang-B9ptUMeI.js} +7 -7
- package/dist/{Staff-BeL1xcRf.js → Staff-D3L8fEoY.js} +3 -3
- package/dist/{StaffInfo-CIfnltyX.js → StaffInfo-DYRw6ZYJ.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-DbLFwWfG.js → StaffInfo.vue_vue_type_script_setup_true_lang-xqEOQnMs.js} +1 -1
- package/dist/{StaffPanel-BV2CHWac.js → StaffPanel-DkrNH6Px.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-CvT-Vp2G.js → StaffPanel.vue_vue_type_script_setup_true_lang-BPBMnliy.js} +8 -9
- package/dist/{SysUser-DPfNvthk.js → SysUser-Bl1-cIpJ.js} +2 -2
- package/dist/{SysUserPanel-CoLKYlQE.js → SysUserPanel-yxNLaBwt.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-lcO3Cjbq.js → SysUserPanel.vue_vue_type_script_setup_true_lang-BDcsgSl5.js} +11 -12
- package/dist/{SystemMenu-sdj1dRDA.js → SystemMenu-C4_Arn12.js} +9 -10
- package/dist/{UserInfo-CTX4hhFl.js → UserInfo-QcNwJCUR.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-ClhCd_8z.js → UserInfo.vue_vue_type_style_index_0_lang-DLIeUphX.js} +5 -6
- package/dist/{childView-BDmWwJO5.js → childView-B23DEO2u.js} +1 -1
- package/dist/{childView-Dx3ACtHa.js → childView-saDZQv9x.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-CfKq_0FN.js → childView.vue_vue_type_style_index_0_lang-RsKR6CAC.js} +14 -15
- package/dist/{childView.vue_vue_type_style_index_0_lang-DxZNtkhd.js → childView.vue_vue_type_style_index_0_lang-ZFEfavUY.js} +11 -12
- package/dist/{code-rule-cvN4gYC_.js → code-rule-2_Ihx_by.js} +12 -13
- package/dist/core.es.js +21 -19
- package/dist/{cron-task-B0TkxFdp.js → cron-task-BFOPJQIk.js} +3 -4
- package/dist/{frameView-5cy5BSgS.js → frameView-f7Ya0Knj.js} +1 -1
- package/dist/img/minicolors.png +0 -0
- package/dist/{index-C5WRTwvI.js → index-BpdTDaTk.js} +811 -604
- package/dist/{layout-home-DrARg-3o.js → layout-home-v3DPJ7rB.js} +12 -13
- package/dist/{layoutView-25v_ngk5.js → layoutView-DZHoQDH1.js} +186 -187
- package/dist/{log-in-Bmz5Uhbt.js → log-in-BPAMJTwH.js} +4 -5
- package/dist/{log-out-B-8m3oNj.js → log-out-DZACF0jg.js} +8 -9
- package/dist/{login-Cmp2RvvW.js → login-B8cwozax.js} +22 -23
- package/dist/{lov-view-BATtzw2X.js → lov-view-Ba7Y7xy0.js} +4 -5
- package/dist/{menuInfo-BIvrE7nm.js → menuInfo-BpRKFYK8.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-B6USomit.js → menuInfo.vue_vue_type_style_index_0_lang-DJ5sUC6m.js} +17 -18
- package/dist/{pda-app-CzHVyeEa.js → pda-app-C0jJecrL.js} +7 -8
- package/dist/{resource-Y5lGB38n.js → resource-BG22Cw4P.js} +4 -4
- package/dist/su-welcome-DaxhbrC6.js +879 -0
- package/dist/{sys-config-CqO03LeC.js → sys-config-CG2fMtak.js} +22 -23
- package/dist/udp-core.css +1 -1
- package/dist/{useNav-C-rCgubt.js → useNav-_u2UAQWk.js} +24 -24
- package/index.ts +54 -51
- package/package.json +21 -21
- package/src/api/http.ts +10 -4
- package/src/api/index.ts +51 -51
- package/src/api/user.ts +64 -64
- package/src/components/udp/content/index.vue +93 -93
- package/src/components/udp/form-upload/form-upload.vue +496 -496
- package/src/components/udp/grid/index.vue +643 -544
- package/src/components/udp/index.ts +2 -1
- package/src/components/udp/modal-form/index.vue +326 -0
- package/src/components/udp/utils.ts +420 -420
- package/src/layout/components/lay-navbar/index.vue +240 -240
- package/src/layout/components/lay-search/components/SearchModal.vue +185 -185
- package/src/layout/components/lay-sidebar/mixNav.vue +261 -261
- package/src/layout/components/lay-sidebar/sidebarItem.vue +199 -195
- package/src/layout/components/lay-sidebar/vertical.vue +92 -92
- package/src/layout/layoutView.vue +1 -0
- package/src/main.ts +111 -111
- package/src/plugins/i18n/zh.ts +5 -1
- package/src/plugins/vxe-table/index.ts +116 -116
- package/src/router/index.ts +158 -156
- package/src/router/utils.ts +434 -430
- package/src/store/modules/permission.ts +1 -1
- package/src/store/modules/system.ts +193 -193
- package/src/style/print-lock.css +380 -375
- package/src/style/suprint.css +990 -985
- package/src/utils/authority/index.ts +46 -46
- package/src/utils/dataFormat/index.ts +309 -222
- package/src/utils/udp/http/index.ts +19 -11
- package/src/views/uhome/components/home-todo.vue +15 -3
- package/src/views/uhome/dynamic-card.vue +31 -31
- package/src/views/uhome/su-welcome.vue +310 -310
- package/src/views/ulogin/login.vue +292 -292
- package/src/views/urpt/design/DesignPanel.vue +538 -507
- package/src/views/urpt/design/print-data.ts +39 -59
- package/dist/await-to-js.es5-Bv3Eu4mi.js +0 -10
- package/dist/su-welcome-CXA6OzBw.js +0 -878
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { VxeUI as
|
|
3
|
-
import { useGlobal as
|
|
4
|
-
import {
|
|
5
|
-
import { clone as
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
const xt = {
|
|
1
|
+
import { defineComponent as nt, ref as g, reactive as q, onMounted as ot, onBeforeUnmount as pt, resolveComponent as r, resolveDirective as at, withDirectives as rt, openBlock as T, createElementBlock as J, createVNode as l, withCtx as i, createElementVNode as e, Fragment as st, renderList as dt, unref as ct, createBlock as A, toDisplayString as B, withModifiers as ut, createCommentVNode as R, createTextVNode as j, nextTick as ht } from "vue";
|
|
2
|
+
import { VxeUI as I } from "vxe-pc-ui";
|
|
3
|
+
import { useGlobal as mt } from "@utogether/utils";
|
|
4
|
+
import { h as ft, i as gt, j as yt } from "./index-BpdTDaTk.js";
|
|
5
|
+
import { clone as vt } from "xe-utils";
|
|
6
|
+
import xt from "./Preview-jonigfMQ.js";
|
|
7
|
+
const wt = {
|
|
9
8
|
panels: [
|
|
10
9
|
{
|
|
11
10
|
index: 0,
|
|
@@ -480,68 +479,106 @@ const xt = {
|
|
|
480
479
|
paperNumberDisabled: !0
|
|
481
480
|
}
|
|
482
481
|
]
|
|
483
|
-
},
|
|
482
|
+
}, Tt = () => {
|
|
483
|
+
const b = {
|
|
484
|
+
name: "深圳友聚信息技术有限公司",
|
|
485
|
+
barcode: "https://www.u-together.cn/",
|
|
486
|
+
qrcode: "https://www.u-together.cn/",
|
|
487
|
+
date: E("1949-10-01", "2100-12-31"),
|
|
488
|
+
t1: "文本标题",
|
|
489
|
+
t2: "文本内容123456789",
|
|
490
|
+
lt1: "长文本内容1234567890qwertyuiopasdfghjklzxcvbnm",
|
|
491
|
+
list: [],
|
|
492
|
+
signature: "张三丰"
|
|
493
|
+
};
|
|
494
|
+
for (let m = 0; m < 30; m++)
|
|
495
|
+
b.list.push({
|
|
496
|
+
id: m,
|
|
497
|
+
name: "王小可",
|
|
498
|
+
date: E("1949-10-01", "2100-12-31"),
|
|
499
|
+
number: Math.floor(Math.random() * 1e3 + 100)
|
|
500
|
+
});
|
|
501
|
+
function E(m, u) {
|
|
502
|
+
const C = new Date(m).getTime(), z = new Date(u).getTime(), V = C + Math.random() * (z - C);
|
|
503
|
+
return new Date(V);
|
|
504
|
+
}
|
|
505
|
+
return b;
|
|
506
|
+
}, bt = { class: "ut-design-panel" }, Et = { class: "flex justify-between" }, St = { style: { float: "left" } }, _t = { style: { float: "right", "font-size": "13px", color: "var(--el-text-color-secondary)" } }, Ct = {
|
|
484
507
|
class: "flex justify-center mb-1",
|
|
485
508
|
style: { width: "100%" }
|
|
486
|
-
},
|
|
509
|
+
}, kt = /* @__PURE__ */ nt({
|
|
487
510
|
__name: "DesignPanel",
|
|
488
511
|
props: {
|
|
489
512
|
record: { default: () => ({}) }
|
|
490
513
|
},
|
|
491
514
|
emits: ["onClose"],
|
|
492
|
-
setup(
|
|
493
|
-
const
|
|
494
|
-
let { $printPlugin: u } =
|
|
495
|
-
const
|
|
515
|
+
setup(b, { emit: E }) {
|
|
516
|
+
const m = b;
|
|
517
|
+
let { $printPlugin: u } = mt();
|
|
518
|
+
const z = ft().getDataDict, V = yt();
|
|
496
519
|
let s = null;
|
|
497
|
-
const
|
|
498
|
-
|
|
499
|
-
},
|
|
500
|
-
const t =
|
|
501
|
-
let p =
|
|
520
|
+
const N = g(!1), y = g(!1), v = g(!1), x = g(!1), k = g(null), S = g(""), f = g({}), d = q({}), h = q({ max: 5, min: 0.5, value: 1, ration: "100%" }), L = () => {
|
|
521
|
+
y.value = !1, s.setPaper(d.width || 210, d.height || 296.6);
|
|
522
|
+
}, H = async (o) => {
|
|
523
|
+
const t = f.value;
|
|
524
|
+
let p = S.value;
|
|
502
525
|
if (!p) {
|
|
503
|
-
const
|
|
504
|
-
p = JSON.stringify(
|
|
526
|
+
const w = s.getJson();
|
|
527
|
+
p = JSON.stringify(w);
|
|
505
528
|
}
|
|
506
|
-
t.templateContent = p,
|
|
507
|
-
const [
|
|
508
|
-
|
|
509
|
-
},
|
|
510
|
-
|
|
511
|
-
},
|
|
529
|
+
t.templateContent = p, x.value = !0;
|
|
530
|
+
const [M, P] = await gt(V.put("/urpt/v1/printTemplate", [t]));
|
|
531
|
+
x.value = !1, M || (S.value = "", f.value = P[0]), o && o();
|
|
532
|
+
}, D = () => {
|
|
533
|
+
W("onClose");
|
|
534
|
+
}, W = E, O = (o) => {
|
|
512
535
|
let t = h.value;
|
|
513
|
-
|
|
514
|
-
},
|
|
515
|
-
await
|
|
516
|
-
}, L = async () => {
|
|
517
|
-
y.value = !0;
|
|
536
|
+
o === "Y" ? (t += 0.1, t > h.max && (t = 5)) : (t -= 0.1, t < h.min && (t = 0.5)), s && (s.zoom(t), h.value = t, h.ration = `${(t * 100).toFixed(0)}%`);
|
|
537
|
+
}, F = async () => {
|
|
538
|
+
await I.modal.confirm("重绘操作不可逆,您确定继续吗?", "温馨提示") === "confirm" && s.clear();
|
|
518
539
|
}, Y = async () => {
|
|
519
|
-
|
|
540
|
+
v.value = !0;
|
|
520
541
|
}, G = async () => {
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
ht(() => {
|
|
524
|
-
|
|
542
|
+
await I.modal.confirm("导入后将覆盖原有的模板,您确定继续吗?", "温馨提示") === "confirm" && (H(D), v.value = !1);
|
|
543
|
+
}, K = async () => {
|
|
544
|
+
N.value = !0, ht(() => {
|
|
545
|
+
k.value.show(s, Tt(), d.width || 220);
|
|
525
546
|
});
|
|
526
|
-
},
|
|
527
|
-
if (
|
|
528
|
-
const { width: t, height: p } =
|
|
547
|
+
}, Q = (o) => {
|
|
548
|
+
if (o !== "customize") {
|
|
549
|
+
const { width: t, height: p } = X(o);
|
|
529
550
|
d.width = t, d.height = p, s.setPaper(d.width, d.height);
|
|
530
551
|
} else
|
|
531
|
-
|
|
532
|
-
},
|
|
552
|
+
y.value = !0;
|
|
553
|
+
}, X = (o) => ({
|
|
533
554
|
A3: { width: 420, height: 296.6 },
|
|
534
555
|
A4: { width: 210, height: 296.6 },
|
|
535
556
|
A5: { width: 210, height: 147.6 },
|
|
536
557
|
bisect: { width: 241, height: 140 },
|
|
537
558
|
trisection: { width: 241, height: 93 }
|
|
538
|
-
})[
|
|
559
|
+
})[o];
|
|
539
560
|
return ot(() => {
|
|
540
|
-
const { record:
|
|
541
|
-
|
|
542
|
-
const t =
|
|
561
|
+
const { record: o } = m;
|
|
562
|
+
x.value = !0, f.value = vt(o, !0);
|
|
563
|
+
const t = o.templateContent ? JSON.parse(o.templateContent) : wt;
|
|
543
564
|
$("#hiprint-printTemplate").empty(), u.print.init({
|
|
544
|
-
providers: [new u.provider()]
|
|
565
|
+
providers: [new u.provider()],
|
|
566
|
+
// host: 'http://localhost:17521', // 可在此处设置连接地址与端口号
|
|
567
|
+
// token: 'token', // 可在此处设置连接 token
|
|
568
|
+
// lang: 'en',
|
|
569
|
+
fontList: [
|
|
570
|
+
// { title: '微软雅黑', value: 'Microsoft YaHei' },
|
|
571
|
+
{ title: "黑体", value: "STHeitiSC-Light" },
|
|
572
|
+
{ title: "思源黑体", value: "SourceHanSansCN-Normal" },
|
|
573
|
+
{ title: "王羲之书法体", value: "王羲之书法体" },
|
|
574
|
+
{ title: "宋体", value: "SimSun" },
|
|
575
|
+
{ title: "华为楷体", value: "STKaiti" },
|
|
576
|
+
{ title: "cursive", value: "cursive" }
|
|
577
|
+
],
|
|
578
|
+
willOutOfBounds: !0,
|
|
579
|
+
// 是否允许组件内的控件超出范围
|
|
580
|
+
qtDesigner: !0
|
|
581
|
+
// 是否开启类似QT Designer的唯一field生成模式
|
|
545
582
|
}), u.print.setConfig(), u.print.setConfig({
|
|
546
583
|
movingDistance: 2.5,
|
|
547
584
|
text: {
|
|
@@ -556,54 +593,54 @@ const xt = {
|
|
|
556
593
|
paginationContainer: ".hiprint-printPagination",
|
|
557
594
|
history: !1
|
|
558
595
|
// 是否需要 撤销重做功能
|
|
559
|
-
}), s.design("#hiprint-printTemplate", { grid: !0 }), h.value = s.editingPanel.scale || 1,
|
|
560
|
-
}),
|
|
596
|
+
}), s.design("#hiprint-printTemplate", { grid: !0 }), h.value = s.editingPanel.scale || 1, x.value = !1;
|
|
597
|
+
}), pt(() => {
|
|
561
598
|
u = null, s = null;
|
|
562
|
-
}), (
|
|
563
|
-
const p = r("ut-button"),
|
|
564
|
-
return
|
|
565
|
-
l(
|
|
599
|
+
}), (o, t) => {
|
|
600
|
+
const p = r("ut-button"), M = r("el-option"), P = r("el-select"), w = r("vxe-input"), Z = r("el-popover"), U = r("vxe-button"), tt = r("el-space"), c = r("el-row"), a = r("el-col"), _ = r("el-card"), et = r("vxe-textarea"), lt = r("vxe-modal"), it = at("spinning");
|
|
601
|
+
return rt((T(), J("div", bt, [
|
|
602
|
+
l(_, { class: "design-panel-contain" }, {
|
|
566
603
|
default: i(() => [
|
|
567
|
-
l(
|
|
604
|
+
l(tt, {
|
|
568
605
|
style: { "margin-bottom": "10px" },
|
|
569
606
|
fill: ""
|
|
570
607
|
}, {
|
|
571
608
|
default: i(() => [
|
|
572
|
-
e("div",
|
|
609
|
+
e("div", Et, [
|
|
573
610
|
e("div", null, [
|
|
574
611
|
l(p, {
|
|
575
612
|
icon: "ri-eye-line ri-1x",
|
|
576
613
|
content: "preview",
|
|
577
|
-
onTap:
|
|
614
|
+
onTap: K
|
|
578
615
|
}),
|
|
579
|
-
l(
|
|
580
|
-
modelValue:
|
|
581
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
616
|
+
l(P, {
|
|
617
|
+
modelValue: f.value.paperType,
|
|
618
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => f.value.paperType = n),
|
|
582
619
|
size: "small",
|
|
583
620
|
placeholder: "Select Paper",
|
|
584
621
|
class: "ml-1 mr-1",
|
|
585
622
|
style: { width: "100px !important" },
|
|
586
|
-
onChange: t[1] || (t[1] = (
|
|
623
|
+
onChange: t[1] || (t[1] = (n) => Q(f.value.paperType))
|
|
587
624
|
}, {
|
|
588
625
|
default: i(() => [
|
|
589
|
-
(
|
|
590
|
-
key:
|
|
591
|
-
label:
|
|
592
|
-
value:
|
|
626
|
+
(T(!0), J(st, null, dt(ct(z)["SU.PRINT.PAPER"].children, (n) => (T(), A(M, {
|
|
627
|
+
key: n.dictCode,
|
|
628
|
+
label: n.dictName,
|
|
629
|
+
value: n.dictCode
|
|
593
630
|
}, {
|
|
594
631
|
default: i(() => [
|
|
595
|
-
e("span",
|
|
596
|
-
e("span",
|
|
632
|
+
e("span", St, B(n.dictName), 1),
|
|
633
|
+
e("span", _t, B(n.dictDesc), 1)
|
|
597
634
|
]),
|
|
598
635
|
_: 2
|
|
599
636
|
}, 1032, ["label", "value"]))), 128))
|
|
600
637
|
]),
|
|
601
638
|
_: 1
|
|
602
639
|
}, 8, ["modelValue"]),
|
|
603
|
-
|
|
640
|
+
f.value.paperType === "customize" ? (T(), A(Z, {
|
|
604
641
|
key: 0,
|
|
605
|
-
visible:
|
|
606
|
-
"onUpdate:visible": t[5] || (t[5] = (
|
|
642
|
+
visible: y.value,
|
|
643
|
+
"onUpdate:visible": t[5] || (t[5] = (n) => y.value = n),
|
|
607
644
|
title: "设置纸张宽高(mm)",
|
|
608
645
|
width: "300",
|
|
609
646
|
size: "small",
|
|
@@ -614,23 +651,23 @@ const xt = {
|
|
|
614
651
|
l(p, {
|
|
615
652
|
icon: "ri-font-size",
|
|
616
653
|
content: "customSize",
|
|
617
|
-
onTap: t[4] || (t[4] =
|
|
654
|
+
onTap: t[4] || (t[4] = ut((n) => y.value = !0, ["stop"]))
|
|
618
655
|
})
|
|
619
656
|
]),
|
|
620
657
|
default: i(() => [
|
|
621
658
|
e("div", null, [
|
|
622
|
-
e("div",
|
|
623
|
-
l(
|
|
659
|
+
e("div", Ct, [
|
|
660
|
+
l(w, {
|
|
624
661
|
modelValue: d.width,
|
|
625
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
662
|
+
"onUpdate:modelValue": t[2] || (t[2] = (n) => d.width = n),
|
|
626
663
|
type: "number",
|
|
627
664
|
class: "w-40",
|
|
628
665
|
placeholder: "宽(mm)"
|
|
629
666
|
}, null, 8, ["modelValue"]),
|
|
630
667
|
t[15] || (t[15] = e("div", { class: "flex items-center justify-center w-8" }, "~", -1)),
|
|
631
|
-
l(
|
|
668
|
+
l(w, {
|
|
632
669
|
modelValue: d.height,
|
|
633
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
670
|
+
"onUpdate:modelValue": t[3] || (t[3] = (n) => d.height = n),
|
|
634
671
|
type: "number",
|
|
635
672
|
class: "w-40",
|
|
636
673
|
placeholder: "高(mm)"
|
|
@@ -639,55 +676,55 @@ const xt = {
|
|
|
639
676
|
l(p, {
|
|
640
677
|
style: { width: "100%" },
|
|
641
678
|
content: "confirm",
|
|
642
|
-
onTap:
|
|
679
|
+
onTap: L
|
|
643
680
|
})
|
|
644
681
|
])
|
|
645
682
|
]),
|
|
646
683
|
_: 1
|
|
647
|
-
}, 8, ["visible"])) :
|
|
684
|
+
}, 8, ["visible"])) : R("", !0),
|
|
648
685
|
l(p, {
|
|
649
686
|
status: "u-cyan",
|
|
650
687
|
icon: "ri-upload-2-line",
|
|
651
688
|
content: "importJSON",
|
|
652
689
|
auth: "import",
|
|
653
|
-
onTap: t[6] || (t[6] = (
|
|
690
|
+
onTap: t[6] || (t[6] = (n) => Y())
|
|
654
691
|
}),
|
|
655
|
-
l(
|
|
692
|
+
l(U, {
|
|
656
693
|
icon: "ri-indeterminate-circle-line ",
|
|
657
694
|
class: "design-custom-button",
|
|
658
|
-
onClick: t[7] || (t[7] = (
|
|
695
|
+
onClick: t[7] || (t[7] = (n) => O("N"))
|
|
659
696
|
}),
|
|
660
|
-
l(
|
|
697
|
+
l(w, {
|
|
661
698
|
modelValue: h.ration,
|
|
662
|
-
"onUpdate:modelValue": t[8] || (t[8] = (
|
|
699
|
+
"onUpdate:modelValue": t[8] || (t[8] = (n) => h.ration = n),
|
|
663
700
|
disabled: "",
|
|
664
701
|
align: "center",
|
|
665
702
|
style: { width: "70px", "margin-left": "10px" }
|
|
666
703
|
}, null, 8, ["modelValue"]),
|
|
667
|
-
l(
|
|
704
|
+
l(U, {
|
|
668
705
|
icon: "ri-add-circle-fill ",
|
|
669
706
|
class: "design-custom-button",
|
|
670
|
-
onClick: t[9] || (t[9] = (
|
|
707
|
+
onClick: t[9] || (t[9] = (n) => O("Y"))
|
|
671
708
|
}),
|
|
672
709
|
l(p, {
|
|
673
710
|
status: "danger",
|
|
674
711
|
icon: "ri-delete-bin-5-fill",
|
|
675
712
|
content: "repaint",
|
|
676
713
|
auth: "repaint",
|
|
677
|
-
onTap: t[10] || (t[10] = (
|
|
714
|
+
onTap: t[10] || (t[10] = (n) => F())
|
|
678
715
|
})
|
|
679
716
|
]),
|
|
680
717
|
e("div", null, [
|
|
681
718
|
l(p, {
|
|
682
719
|
icon: "ri-save-3-fill",
|
|
683
720
|
content: "save",
|
|
684
|
-
onTap: t[11] || (t[11] = (
|
|
721
|
+
onTap: t[11] || (t[11] = (n) => H())
|
|
685
722
|
}),
|
|
686
723
|
l(p, {
|
|
687
724
|
status: "info",
|
|
688
725
|
icon: "ri-reply-fill",
|
|
689
726
|
content: "back",
|
|
690
|
-
onTap:
|
|
727
|
+
onTap: D
|
|
691
728
|
})
|
|
692
729
|
])
|
|
693
730
|
]),
|
|
@@ -699,7 +736,7 @@ const xt = {
|
|
|
699
736
|
default: i(() => [
|
|
700
737
|
l(a, { span: 3 }, {
|
|
701
738
|
default: i(() => [
|
|
702
|
-
l(
|
|
739
|
+
l(_, { class: "ut-design-item" }, {
|
|
703
740
|
default: i(() => [
|
|
704
741
|
l(c, null, {
|
|
705
742
|
default: i(() => [
|
|
@@ -710,7 +747,7 @@ const xt = {
|
|
|
710
747
|
default: i(() => [
|
|
711
748
|
l(c, { class: "drag_item_title" }, {
|
|
712
749
|
default: i(() => [...t[17] || (t[17] = [
|
|
713
|
-
|
|
750
|
+
j("拖拽组件列表", -1)
|
|
714
751
|
])]),
|
|
715
752
|
_: 1
|
|
716
753
|
}),
|
|
@@ -807,7 +844,7 @@ const xt = {
|
|
|
807
844
|
}),
|
|
808
845
|
l(c, { class: "drag_item_title" }, {
|
|
809
846
|
default: i(() => [...t[22] || (t[22] = [
|
|
810
|
-
|
|
847
|
+
j("辅助", -1)
|
|
811
848
|
])]),
|
|
812
849
|
_: 1
|
|
813
850
|
}),
|
|
@@ -904,6 +941,53 @@ const xt = {
|
|
|
904
941
|
})
|
|
905
942
|
]),
|
|
906
943
|
_: 1
|
|
944
|
+
}),
|
|
945
|
+
l(c, { style: { height: "60px" } }, {
|
|
946
|
+
default: i(() => [
|
|
947
|
+
l(a, {
|
|
948
|
+
span: 12,
|
|
949
|
+
class: "drag_item_box",
|
|
950
|
+
tid: "defaultModule.barcode"
|
|
951
|
+
}, {
|
|
952
|
+
default: i(() => [...t[27] || (t[27] = [
|
|
953
|
+
e("div", null, [
|
|
954
|
+
e("a", {
|
|
955
|
+
class: "ep-draggable-item",
|
|
956
|
+
tid: "defaultModule.barcode"
|
|
957
|
+
}, [
|
|
958
|
+
e("span", {
|
|
959
|
+
class: "ri-barcode-line",
|
|
960
|
+
"ariel-hidden": "true"
|
|
961
|
+
}),
|
|
962
|
+
e("p", { class: "glyphicon-class" }, "条形码")
|
|
963
|
+
])
|
|
964
|
+
], -1)
|
|
965
|
+
])]),
|
|
966
|
+
_: 1
|
|
967
|
+
}),
|
|
968
|
+
l(a, {
|
|
969
|
+
span: 12,
|
|
970
|
+
class: "drag_item_box",
|
|
971
|
+
tid: "defaultModule.qrcode"
|
|
972
|
+
}, {
|
|
973
|
+
default: i(() => [...t[28] || (t[28] = [
|
|
974
|
+
e("div", null, [
|
|
975
|
+
e("a", {
|
|
976
|
+
class: "ep-draggable-item",
|
|
977
|
+
tid: "defaultModule.qrcode"
|
|
978
|
+
}, [
|
|
979
|
+
e("span", {
|
|
980
|
+
class: "ri-qr-code-line",
|
|
981
|
+
"ariel-hidden": "true"
|
|
982
|
+
}),
|
|
983
|
+
e("p", { class: "glyphicon-class" }, "二维码")
|
|
984
|
+
])
|
|
985
|
+
], -1)
|
|
986
|
+
])]),
|
|
987
|
+
_: 1
|
|
988
|
+
})
|
|
989
|
+
]),
|
|
990
|
+
_: 1
|
|
907
991
|
})
|
|
908
992
|
]),
|
|
909
993
|
_: 1
|
|
@@ -925,8 +1009,8 @@ const xt = {
|
|
|
925
1009
|
xl: 18
|
|
926
1010
|
}, {
|
|
927
1011
|
default: i(() => [
|
|
928
|
-
l(
|
|
929
|
-
default: i(() => [...t[
|
|
1012
|
+
l(_, { class: "card-design" }, {
|
|
1013
|
+
default: i(() => [...t[29] || (t[29] = [
|
|
930
1014
|
e("div", {
|
|
931
1015
|
id: "hiprint-printTemplate",
|
|
932
1016
|
class: "hiprint-printTemplate"
|
|
@@ -945,10 +1029,10 @@ const xt = {
|
|
|
945
1029
|
xl: 3
|
|
946
1030
|
}, {
|
|
947
1031
|
default: i(() => [
|
|
948
|
-
l(
|
|
1032
|
+
l(_, { class: "design-setting-panel" }, {
|
|
949
1033
|
default: i(() => [
|
|
950
1034
|
l(c, { class: "hinnn-layout-sider" }, {
|
|
951
|
-
default: i(() => [...t[
|
|
1035
|
+
default: i(() => [...t[30] || (t[30] = [
|
|
952
1036
|
e("div", { id: "PrintElementOptionSetting" }, null, -1)
|
|
953
1037
|
])]),
|
|
954
1038
|
_: 1
|
|
@@ -965,19 +1049,19 @@ const xt = {
|
|
|
965
1049
|
]),
|
|
966
1050
|
_: 1
|
|
967
1051
|
}),
|
|
968
|
-
l(
|
|
969
|
-
modelValue:
|
|
970
|
-
"onUpdate:modelValue": t[14] || (t[14] = (
|
|
1052
|
+
l(lt, {
|
|
1053
|
+
modelValue: v.value,
|
|
1054
|
+
"onUpdate:modelValue": t[14] || (t[14] = (n) => v.value = n),
|
|
971
1055
|
title: "导入模板JSON数据",
|
|
972
1056
|
height: "320",
|
|
973
1057
|
width: "450",
|
|
974
1058
|
"show-footer": ""
|
|
975
1059
|
}, {
|
|
976
1060
|
default: i(() => [
|
|
977
|
-
t[
|
|
978
|
-
l(
|
|
979
|
-
modelValue:
|
|
980
|
-
"onUpdate:modelValue": t[12] || (t[12] = (
|
|
1061
|
+
t[31] || (t[31] = e("p", { style: { color: "red" } }, "切勿随意修改JSON数据,可能导致模板加载出错", -1)),
|
|
1062
|
+
l(et, {
|
|
1063
|
+
modelValue: S.value,
|
|
1064
|
+
"onUpdate:modelValue": t[12] || (t[12] = (n) => S.value = n),
|
|
981
1065
|
rows: 10,
|
|
982
1066
|
size: "mini"
|
|
983
1067
|
}, null, 8, ["modelValue"])
|
|
@@ -986,28 +1070,28 @@ const xt = {
|
|
|
986
1070
|
l(p, {
|
|
987
1071
|
icon: "ri-close-fill",
|
|
988
1072
|
content: "cancel",
|
|
989
|
-
onTap: t[13] || (t[13] = (
|
|
1073
|
+
onTap: t[13] || (t[13] = (n) => v.value = !1)
|
|
990
1074
|
}),
|
|
991
1075
|
l(p, {
|
|
992
1076
|
icon: "ri-save-3-fill",
|
|
993
1077
|
status: "u-cyan",
|
|
994
1078
|
content: "confirm",
|
|
995
|
-
onTap:
|
|
1079
|
+
onTap: G
|
|
996
1080
|
})
|
|
997
1081
|
]),
|
|
998
1082
|
_: 1
|
|
999
1083
|
}, 8, ["modelValue"]),
|
|
1000
|
-
|
|
1084
|
+
N.value ? (T(), A(xt, {
|
|
1001
1085
|
key: 0,
|
|
1002
1086
|
ref_key: "previewRef",
|
|
1003
|
-
ref:
|
|
1004
|
-
}, null, 512)) :
|
|
1087
|
+
ref: k
|
|
1088
|
+
}, null, 512)) : R("", !0)
|
|
1005
1089
|
])), [
|
|
1006
|
-
[
|
|
1090
|
+
[it, x.value]
|
|
1007
1091
|
]);
|
|
1008
1092
|
};
|
|
1009
1093
|
}
|
|
1010
1094
|
});
|
|
1011
1095
|
export {
|
|
1012
|
-
|
|
1096
|
+
kt as _
|
|
1013
1097
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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-
|
|
2
|
+
import { _ as T } from "./childView.vue_vue_type_style_index_0_lang-RsKR6CAC.js";
|
|
3
3
|
import { useRender as k } from "@utogether/utils";
|
|
4
4
|
const E = {
|
|
5
5
|
name: "DictView"
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { defineComponent as u, ref as m, reactive as c, resolveComponent as g, openBlock as p, createBlock as f } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { useRender as
|
|
4
|
-
import { n as h } from "./index-C5WRTwvI.js";
|
|
2
|
+
import { i as _, j as z } from "./index-BpdTDaTk.js";
|
|
3
|
+
import { useRender as h } from "@utogether/utils";
|
|
5
4
|
const C = {
|
|
6
5
|
name: "InvOrganization"
|
|
7
|
-
},
|
|
6
|
+
}, w = /* @__PURE__ */ u({
|
|
8
7
|
...C,
|
|
9
8
|
setup(k) {
|
|
10
|
-
const t = "/uums/cusOrganization", n = m(null), e =
|
|
9
|
+
const t = "/uums/cusOrganization", n = m(null), e = h(), i = [{
|
|
11
10
|
field: "organizationCode",
|
|
12
11
|
title: "message.udp.organizationCode"
|
|
13
12
|
}, {
|
|
@@ -47,7 +46,7 @@ const C = {
|
|
|
47
46
|
async function d({
|
|
48
47
|
row: r
|
|
49
48
|
}) {
|
|
50
|
-
const [o] = await _(
|
|
49
|
+
const [o] = await _(z().put(t, [r]));
|
|
51
50
|
!o && n.value.refreshData();
|
|
52
51
|
}
|
|
53
52
|
const s = c({
|
|
@@ -70,5 +69,5 @@ const C = {
|
|
|
70
69
|
}
|
|
71
70
|
});
|
|
72
71
|
export {
|
|
73
|
-
|
|
72
|
+
w as default
|
|
74
73
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { defineComponent as a, ref as m, resolveComponent as u, openBlock as c, createBlock as g } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { clone as
|
|
4
|
-
import { useRender as
|
|
5
|
-
|
|
6
|
-
const C = { name: "OrgUnit" }, N = /* @__PURE__ */ a({
|
|
2
|
+
import { i as p, j as f } from "./index-BpdTDaTk.js";
|
|
3
|
+
import { clone as _ } from "xe-utils";
|
|
4
|
+
import { useRender as h } from "@utogether/utils";
|
|
5
|
+
const C = { name: "OrgUnit" }, y = /* @__PURE__ */ a({
|
|
7
6
|
...C,
|
|
8
7
|
setup(k) {
|
|
9
|
-
const t = "/uums/org", r = m(null),
|
|
8
|
+
const t = "/uums/org", r = m(null), n = h(), d = [
|
|
10
9
|
{ field: "orgCode", title: "message.udp.orgCode" },
|
|
11
10
|
{ field: "orgName", title: "message.udp.orgName" },
|
|
12
11
|
{ field: "orgAlias", title: "message.udp.orgAlias" }
|
|
@@ -16,13 +15,13 @@ const C = { name: "OrgUnit" }, N = /* @__PURE__ */ a({
|
|
|
16
15
|
{ field: "orgName", title: "message.udp.orgName", required: !0, minWidth: 200, editRender: { name: "$input" } },
|
|
17
16
|
{ field: "orgAlias", title: "message.udp.orgAlias", editRender: { name: "$input" } },
|
|
18
17
|
{ field: "orgDesc", title: "message.udp.orgDesc", editRender: { name: "$input" } },
|
|
19
|
-
{ field: "enabled", width: 80, cellRender:
|
|
18
|
+
{ field: "enabled", width: 80, cellRender: n.renderEnabled(l) }
|
|
20
19
|
];
|
|
21
20
|
async function l({ row: o }) {
|
|
22
|
-
const
|
|
21
|
+
const i = _(o, !0), [e] = await p(f().put(t, [i]));
|
|
23
22
|
!e && r.value.refreshData();
|
|
24
23
|
}
|
|
25
|
-
return (o,
|
|
24
|
+
return (o, i) => {
|
|
26
25
|
const e = u("ut-grid");
|
|
27
26
|
return c(), g(e, {
|
|
28
27
|
ref_key: "xgrid",
|
|
@@ -35,5 +34,5 @@ const C = { name: "OrgUnit" }, N = /* @__PURE__ */ a({
|
|
|
35
34
|
}
|
|
36
35
|
});
|
|
37
36
|
export {
|
|
38
|
-
|
|
37
|
+
y as default
|
|
39
38
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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-
|
|
2
|
+
import { _ as k } from "./index-BpdTDaTk.js";
|
|
3
3
|
const P = { class: "ut-preview-contain" }, C = /* @__PURE__ */ w({
|
|
4
4
|
__name: "Preview",
|
|
5
5
|
setup(T, { expose: d }) {
|