提交 0699f4a4 编写于 作者: jlj05024111@163.com's avatar jlj05024111@163.com

feat: 更新插件包sy-dsf-web

上级 d2748d12
var de = Object.defineProperty; var fe = Object.defineProperty;
var ue = (s, a, e) => a in s ? de(s, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[a] = e; var ve = (a, e, s) => e in a ? fe(a, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : a[e] = s;
var P = (s, a, e) => (ue(s, typeof a != "symbol" ? a + "" : a, e), e); var b = (a, e, s) => (ve(a, typeof e != "symbol" ? e + "" : e, s), s);
import { EditFormModel as me, FormMDCtrlModel as pe, DefectModelError as he, AppEntityModel as H } from "@ibiz-template/model"; import { EditFormModel as re, FormMDCtrlModel as ye, DefectModelError as ge, AppEntityModel as J } from "@ibiz-template/model";
import { useNamespace as B, useControlController as fe, usePropsWatch as ve, getDatePickerProps as ye, getEditorEmits as G, useController as ge, getDataPickerProps as se, useViewController as we } from "@ibiz-template/vue-util"; import { useNamespace as M, useControlController as oe, usePropsWatch as Y, getDatePickerProps as we, getEditorEmits as G, useController as De, getDataPickerProps as ne, useViewController as Ce, getDropdownProps as Ee } from "@ibiz-template/vue-util";
import { defineComponent as M, getCurrentInstance as W, ref as A, watch as V, h as r, onMounted as De, computed as j } from "vue"; import { defineComponent as k, getCurrentInstance as q, ref as P, watch as L, h as o, onMounted as be, computed as j } from "vue";
import { createUUID as te } from "qx-util"; import { createUUID as se } from "qx-util";
import { ViewMode as ae, PluginStaticResource as Ce, OpenAppViewCommand as q, UIActionHandler as Ee, FrontUIActionHandler as re } from "@ibiz-template/runtime"; import { ViewMode as ae, PluginStaticResource as Pe, OpenAppViewCommand as W, UIActionHandler as xe, FrontUIActionHandler as ie } from "@ibiz-template/runtime";
import { EditFormController as be, FormMDCtrlController as Pe, FormDRUIPartController as Ae, EditViewController as Fe, DatePickerEditorController as Ie, UploadEditorController as Se, PickerEditorController as oe } from "@ibiz-template/controller"; import { EditFormController as le, FormMDCtrlController as Ae, FormDRUIPartController as Se, EditViewController as Ie, FormNotifyState as Fe, DatePickerEditorController as Ne, UploadEditorController as Oe, PickerEditorController as ce, DropDownListEditorController as Te } from "@ibiz-template/controller";
import { ControlVO as ke, calcResPath as K } from "@ibiz-template/service"; import { ControlVO as ke, calcResPath as K } from "@ibiz-template/service";
import $ from "dayjs"; import H from "dayjs";
import { RuntimeError as xe, StringUtil as ne } from "@ibiz-template/core"; import { RuntimeError as de, awaitTimeout as Me, StringUtil as ue } from "@ibiz-template/core";
class Ne extends be { import { isNil as Re } from "ramda";
import { cloneDeep as Le } from "lodash-es";
class Ue extends le {
constructor() { constructor() {
super(...arguments); super(...arguments);
/** /**
...@@ -20,7 +22,7 @@ class Ne extends be { ...@@ -20,7 +22,7 @@ class Ne extends be {
* @date 2024-04-26 17:04:49 * @date 2024-04-26 17:04:49
* @type {IData} * @type {IData}
*/ */
P(this, "baseResData", []); b(this, "baseResData", []);
/** /**
* 对比数据 * 对比数据
* *
...@@ -28,7 +30,7 @@ class Ne extends be { ...@@ -28,7 +30,7 @@ class Ne extends be {
* @date 2024-04-26 17:04:49 * @date 2024-04-26 17:04:49
* @type {IData} * @type {IData}
*/ */
P(this, "compareResData", []); b(this, "compareResData", []);
/** /**
* 表单旧数据 * 表单旧数据
* *
...@@ -38,7 +40,7 @@ class Ne extends be { ...@@ -38,7 +40,7 @@ class Ne extends be {
* @type {IData} * @type {IData}
* @memberof FormController * @memberof FormController
*/ */
P(this, "oldData", new ke()); b(this, "oldData", new ke());
/** /**
* version数据 * version数据
* *
...@@ -46,7 +48,7 @@ class Ne extends be { ...@@ -46,7 +48,7 @@ class Ne extends be {
* @date 2024-04-26 16:04:37 * @date 2024-04-26 16:04:37
* @type {IData[]} * @type {IData[]}
*/ */
P(this, "versionData", []); b(this, "versionData", []);
/** /**
* 对比数据 * 对比数据
* *
...@@ -54,7 +56,7 @@ class Ne extends be { ...@@ -54,7 +56,7 @@ class Ne extends be {
* @date 2024-04-26 16:04:37 * @date 2024-04-26 16:04:37
* @type {IData[]} * @type {IData[]}
*/ */
P(this, "comparisonArr", {}); b(this, "comparisonArr", {});
/** /**
* 基础表格数据 * 基础表格数据
* *
...@@ -62,7 +64,7 @@ class Ne extends be { ...@@ -62,7 +64,7 @@ class Ne extends be {
* @date 2024-05-06 11:05:57 * @date 2024-05-06 11:05:57
* @type {IData[]} * @type {IData[]}
*/ */
P(this, "gridData", []); b(this, "gridData", []);
/** /**
* 展示完全数据 * 展示完全数据
* *
...@@ -70,7 +72,7 @@ class Ne extends be { ...@@ -70,7 +72,7 @@ class Ne extends be {
* @date 2024-05-06 11:05:04 * @date 2024-05-06 11:05:04
* @type {IData[]} * @type {IData[]}
*/ */
P(this, "AllGridData", []); b(this, "AllGridData", []);
/** /**
* 去除相同数据 * 去除相同数据
* *
...@@ -78,7 +80,7 @@ class Ne extends be { ...@@ -78,7 +80,7 @@ class Ne extends be {
* @date 2024-05-06 11:05:15 * @date 2024-05-06 11:05:15
* @type {IData[]} * @type {IData[]}
*/ */
P(this, "removeSameGridData", []); b(this, "removeSameGridData", []);
/** /**
* 关系界面数据 * 关系界面数据
* *
...@@ -86,7 +88,7 @@ class Ne extends be { ...@@ -86,7 +88,7 @@ class Ne extends be {
* @date 2024-04-30 10:04:33 * @date 2024-04-30 10:04:33
* @type {IData} * @type {IData}
*/ */
P(this, "AlldruipartData", /* @__PURE__ */ new Map()); b(this, "AlldruipartData", /* @__PURE__ */ new Map());
/** /**
* 关系界面数据长度 * 关系界面数据长度
* *
...@@ -94,7 +96,7 @@ class Ne extends be { ...@@ -94,7 +96,7 @@ class Ne extends be {
* @date 2024-05-06 11:05:56 * @date 2024-05-06 11:05:56
* @type {number} * @type {number}
*/ */
P(this, "druipartDataSize", 0); b(this, "druipartDataSize", 0);
/** /**
* 关系界面实际数据 * 关系界面实际数据
* *
...@@ -102,7 +104,7 @@ class Ne extends be { ...@@ -102,7 +104,7 @@ class Ne extends be {
* @date 2024-05-06 11:05:13 * @date 2024-05-06 11:05:13
* @type {IData} * @type {IData}
*/ */
P(this, "newDruipartData", {}); b(this, "newDruipartData", {});
} }
/** /**
* 加载数据 * 加载数据
...@@ -112,18 +114,18 @@ class Ne extends be { ...@@ -112,18 +114,18 @@ class Ne extends be {
*/ */
async loadGridData() { async loadGridData() {
await this.startLoading(); await this.startLoading();
const e = this.model.source.M.getPSControlParam.ctrlParams, { BASEENTITY: t, COMPAREENTITY: i } = e, n = await ibiz.entityService.getService(t), c = await ibiz.entityService.getService(i), g = Object.assign({}, this.context.clone(), { const s = this.model.source.M.getPSControlParam.ctrlParams, { BASEENTITY: t, COMPAREENTITY: r } = s, n = await ibiz.entityService.getService(t), l = await ibiz.entityService.getService(r), w = Object.assign({}, this.context.clone(), {
[t.toLowerCase()]: this.params.base_version [t.toLowerCase()]: this.params.base_version
}), u = Object.assign({}, this.context.clone(), { }), d = Object.assign({}, this.context.clone(), {
[i.toLowerCase()]: this.params.compare_version [r.toLowerCase()]: this.params.compare_version
}), m = await n.exec("Get", g, this.params), w = await c.exec( }), h = await n.exec("Get", w, this.params), y = await l.exec(
"Get", "Get",
u, d,
this.params this.params
); );
return this.isLoaded = !0, { return this.isLoaded = !0, {
baseData: m.data.data, baseData: h.data.data,
compareData: w.data.data compareData: y.data.data
}; };
} }
/** /**
...@@ -133,8 +135,8 @@ class Ne extends be { ...@@ -133,8 +135,8 @@ class Ne extends be {
* @return {*} * @return {*}
* @memberof FormDataComparisonController * @memberof FormDataComparisonController
*/ */
isFalseyButNotEmpty(e) { isFalseyButNotEmpty(s) {
return e == null || typeof e == "string" && e === "" || Array.isArray(e) && e.length === 0 || typeof e == "object" && Object.keys(e).length === 0; return s == null || typeof s == "string" && s === "" || Array.isArray(s) && s.length === 0 || typeof s == "object" && Object.keys(s).length === 0;
} }
/** /**
* 比较两个值 * 比较两个值
...@@ -144,15 +146,15 @@ class Ne extends be { ...@@ -144,15 +146,15 @@ class Ne extends be {
* @return {*} * @return {*}
* @memberof FormDataComparisonController * @memberof FormDataComparisonController
*/ */
compareObjectValues(e, t) { compareObjectValues(s, t) {
return JSON.stringify(e) !== JSON.stringify(t); return JSON.stringify(s) !== JSON.stringify(t);
} }
} }
const Oe = M({ const Ve = k({
name: "IBizFormDataComparison", name: "IBizFormDataComparison",
props: { props: {
modelData: { modelData: {
type: me, type: re,
required: !0 required: !0
}, },
context: { context: {
...@@ -168,280 +170,280 @@ const Oe = M({ ...@@ -168,280 +170,280 @@ const Oe = M({
required: !1 required: !1
} }
}, },
setup(s) { setup(a) {
const a = B("form-data-comparison"), { const e = M("form-data-comparison"), {
proxy: e proxy: s
} = W(), t = fe(e, () => { } = q(), t = oe(s, () => {
const o = new Ne(s.modelData, s.context, s.params); const i = new Ue(a.modelData, a.context, a.params);
return ve(e, "enableAutoSave", o.setEnableAutoSave.bind(o)), o; return Y(s, "enableAutoSave", i.setEnableAutoSave.bind(i)), i;
}), i = A(!0), n = A(!1), c = A({}), g = A({}), u = A([]), m = [], w = A([]), l = A([]), v = A([]), f = /* @__PURE__ */ new Map(), C = A(0), h = (o) => { }), r = P(!0), n = P(!1), l = P({}), w = P({}), d = P([]), h = [], y = P([]), c = P([]), D = P([]), g = /* @__PURE__ */ new Map(), p = P(0), u = (i) => {
const d = []; const f = [];
if (d.push(o), o && o.children) { if (f.push(i), i && i.children) {
const b = []; const A = [];
o.children.forEach((S) => { i.children.forEach((I) => {
const x = h(S); const N = u(I);
b.push(...x); A.push(...N);
}), d.push(...b); }), f.push(...A);
} }
return d; return f;
}, p = h(s.modelData); }, m = u(a.modelData);
m.push(...p); h.push(...m);
const y = (o) => { const v = (i) => {
const d = t.details[o.source.name], b = r("not-supported-editor", { const f = t.details[i.source.name], A = o("not-supported-editor", {
attrs: { attrs: {
modelData: o.editor modelData: i.editor
} }
}); });
return r("div", { return o("div", {
class: [a.e("form-grid-item"), a.is("add", w.value.includes(o.source.name)), a.is("update", v.value.includes(o.source.name)), a.is("delete", l.value.includes(o.source.name))] class: [e.e("form-grid-item"), e.is("add", y.value.includes(i.source.name)), e.is("update", D.value.includes(i.source.name)), e.is("delete", c.value.includes(i.source.name))]
}, [r("div", { }, [o("div", {
class: a.em("form-grid-item", "name") class: e.em("form-grid-item", "name")
}, [o.source.caption]), r("div", { }, [i.source.caption]), o("div", {
class: a.em("form-grid-item", "left") class: e.em("form-grid-item", "left")
}, [d.editorProvider ? r(d.editorProvider.formEditor, { }, [f.editorProvider ? o(f.editorProvider.formEditor, {
props: { props: {
value: g.value[o.source.name], value: w.value[i.source.name],
data: d.data, data: f.data,
controller: d.editor, controller: f.editor,
disabled: d.disabled, disabled: f.disabled,
readonly: !0 readonly: !0
} }
}) : b]), r("div", { }) : A]), o("div", {
class: a.em("form-grid-item", "right") class: e.em("form-grid-item", "right")
}, [d.editorProvider ? r(d.editorProvider.formEditor, { }, [f.editorProvider ? o(f.editorProvider.formEditor, {
props: { props: {
value: c.value[o.source.name], value: l.value[i.source.name],
data: d.data, data: f.data,
controller: d.editor, controller: f.editor,
disabled: d.disabled, disabled: f.disabled,
readonly: !0 readonly: !0
} }
}) : b])]); }) : A])]);
}, F = (o, d) => { }, E = (i, f) => {
f.set(o.source.id, d), d.evt.on("mounted", () => { g.set(i.source.id, f), f.evt.on("mounted", () => {
i.value && t.startLoading(), C.value += 1, d.call.refresh(); r.value && t.startLoading(), p.value += 1, f.call.refresh();
}), d.evt.on("refreshed", () => { }), f.evt.on("refreshed", () => {
C.value -= 1, setTimeout(() => { p.value -= 1, setTimeout(() => {
i.value && t.endLoading(); r.value && t.endLoading();
}, 500); }, 500);
}); });
}, I = (o) => { }, S = (i) => {
const d = m.find((L) => L.id === `${o.source.id}_srfcopy`), b = o.embedView.source.modelPath, S = d == null ? void 0 : d.embedView.source.modelPath, x = t.context.clone(), N = { const f = h.find((_) => _.id === `${i.source.id}_srfcopy`), A = i.embedView.source.modelPath, I = f == null ? void 0 : f.embedView.source.modelPath, N = t.context.clone(), O = {
base_version: s.params.base_version base_version: a.params.base_version
}, T = t.context.clone(); }, R = t.context.clone();
Object.assign(T, { Object.assign(R, {
gysrlzy_info: s.params.compare_version, gysrlzy_info: a.params.compare_version,
compare_version: s.params.compare_version compare_version: a.params.compare_version
}); });
const _ = { const B = {
compare_version: s.params.compare_version compare_version: a.params.compare_version
}, R = c.value[o.source.userTag], U = g.value[d == null ? void 0 : d.source.userTag]; }, U = l.value[i.source.userTag], V = w.value[f == null ? void 0 : f.source.userTag];
let J = !1, z = !1, X = !1; let X = !1, z = !1, Z = !1;
if (o.source.userTag2) { if (i.source.userTag2) {
const L = JSON.parse(o.source.userTag2), { const _ = JSON.parse(i.source.userTag2), {
comparekey: Z, comparekey: Q,
comparelist: ce comparelist: he
} = L; } = _;
R && U && Array.isArray(R) && Array.isArray(U) && (R.length === 0 && U.length !== 0 ? X = !0 : R.length !== 0 && U.length === 0 ? J = !0 : R.length !== 0 && U.length !== 0 && (R.length !== U.length ? z = !0 : R.some((Q) => { U && V && Array.isArray(U) && Array.isArray(V) && (U.length === 0 && V.length !== 0 ? Z = !0 : U.length !== 0 && V.length === 0 ? X = !0 : U.length !== 0 && V.length !== 0 && (U.length !== V.length ? z = !0 : U.some((ee) => {
const ee = U.find((Y) => Q[Z] === Y[Z]); const te = V.find(($) => ee[Q] === $[Q]);
return ee ? ce.some((Y) => Q[Y] !== ee[Y] ? (z = !0, !0) : !1) : (z = !0, !0); return te ? he.some(($) => ee[$] !== te[$] ? (z = !0, !0) : !1) : (z = !0, !0);
}))); })));
} }
return r("div", { return o("div", {
class: [a.e("druipart"), a.is("add", J), a.is("update", z), a.is("delete", X)] class: [e.e("druipart"), e.is("add", X), e.is("update", z), e.is("delete", Z)]
}, [r("div", { }, [o("div", {
class: a.em("druipart", "caption") class: e.em("druipart", "caption")
}, [o.source.caption]), r("div", { }, [i.source.caption]), o("div", {
class: a.em("druipart", "left") class: e.em("druipart", "left")
}, [S && r("ViewShell", { }, [I && o("ViewShell", {
attrs: { attrs: {
context: T, context: R,
params: _, params: B,
modal: { modal: {
mode: ae.EMBED mode: ae.EMBED
}, },
modelPath: S, modelPath: I,
noLoadDefault: !0, noLoadDefault: !0,
name: d == null ? void 0 : d.source.id name: f == null ? void 0 : f.source.id
}, },
key: te(), key: se(),
on: { on: {
neuronInit: (L) => F(d, L) neuronInit: (_) => E(f, _)
} }
})]), r("div", { })]), o("div", {
class: a.em("druipart", "right") class: e.em("druipart", "right")
}, [b && r("ViewShell", { }, [A && o("ViewShell", {
attrs: { attrs: {
context: x, context: N,
params: N, params: O,
modal: { modal: {
mode: ae.EMBED mode: ae.EMBED
}, },
modelPath: b, modelPath: A,
noLoadDefault: !0, noLoadDefault: !0,
name: o.source.id name: i.source.id
}, },
key: te(), key: se(),
on: { on: {
neuronInit: (L) => F(o, L) neuronInit: (_) => E(i, _)
} }
})])]); })])]);
}, D = (o) => { }, C = (i) => {
const d = { const f = {
modelData: o, modelData: i,
controller: t.details[o.source.name] controller: t.details[i.source.name]
}, b = t.providers[o.source.name], S = r(b.component, { }, A = t.providers[i.source.name], I = o(A.component, {
props: { props: {
...d ...f
}, },
key: o.id key: i.id
}), x = r(b.component, { }), N = o(A.component, {
props: { props: {
...d ...f
}, },
key: `compare_${o.id}` key: `compare_${i.id}`
}); });
return r("div", { return o("div", {
class: a.e("mdctrl") class: e.e("mdctrl")
}, [r("div", { }, [o("div", {
class: a.em("mdctrl", "caption") class: e.em("mdctrl", "caption")
}, [o.source.caption]), r("div", { }, [i.source.caption]), o("div", {
class: a.em("mdctrl", "left") class: e.em("mdctrl", "left")
}, [S]), r("div", { }, [I]), o("div", {
class: a.em("mdctrl", "right") class: e.em("mdctrl", "right")
}, [x])]); }, [N])]);
}, E = (o) => { }, x = (i) => {
i.value = !1; r.value = !1;
const d = u.value.findIndex((b) => b === o.source.name); const f = d.value.findIndex((A) => A === i.source.name);
d > -1 ? u.value.splice(d, 1) : u.value.push(o.source.name); f > -1 ? d.value.splice(f, 1) : d.value.push(i.source.name);
}, k = (o) => { }, F = (i) => {
if (!o.source.hidden) { if (!i.source.hidden) {
if (o.source.detailType === "FORMPAGE") if (i.source.detailType === "FORMPAGE")
return r("div", { return o("div", {
class: a.e("form-page") class: e.e("form-page")
}, [o.children.map((d) => k(d))]); }, [i.children.map((f) => F(f))]);
if (o.source.detailType === "FORMITEM") { if (i.source.detailType === "FORMITEM") {
const d = w.value.includes(o.source.name), b = l.value.includes(o.source.name), S = v.value.includes(o.source.name); const f = y.value.includes(i.source.name), A = c.value.includes(i.source.name), I = D.value.includes(i.source.name);
return n.value && !d && !b && !S ? null : y(o); return n.value && !f && !A && !I ? null : v(i);
} }
if (o.source.detailType === "GROUPPANEL") { if (i.source.detailType === "GROUPPANEL") {
const d = u.value.includes(o.source.name); const f = d.value.includes(i.source.name);
return r("div", { return o("div", {
class: a.b("group") class: e.b("group")
}, [r("div", { }, [o("div", {
class: [a.be("group", "header"), a.is("hide-caption", !o.source.showCaption)] class: [e.be("group", "header"), e.is("hide-caption", !i.source.showCaption)]
}, [r("div", { }, [o("div", {
class: a.bem("group", "header", "name") class: e.bem("group", "header", "name")
}, [d ? r("i-icon", { }, [f ? o("i-icon", {
class: a.bem("group", "header", "icon"), class: e.bem("group", "header", "icon"),
attrs: { attrs: {
type: "ios-arrow-forward", type: "ios-arrow-forward",
title: "展开" title: "展开"
}, },
on: { on: {
click: () => E(o) click: () => x(i)
} }
}) : r("i-icon", { }) : o("i-icon", {
class: a.bem("group", "header", "icon"), class: e.bem("group", "header", "icon"),
attrs: { attrs: {
type: "ios-arrow-down", type: "ios-arrow-down",
title: "收缩" title: "收缩"
}, },
on: { on: {
click: () => E(o) click: () => x(i)
} }
}), r("span", { }), o("span", {
class: a.bem("group", "header", "name-text") class: e.bem("group", "header", "name-text")
}, [o.source.caption || o.source.title])]), r("div", ["---"]), r("div", ["---"])]), r("div", { }, [i.source.caption || i.source.title])]), o("div", ["---"]), o("div", ["---"])]), o("div", {
class: [a.be("group", "content"), a.is("collapse", d)] class: [e.be("group", "content"), e.is("collapse", f)]
}, [o.children.map((b) => k(b))])]); }, [i.children.map((A) => F(A))])]);
} }
return o.source.detailType === "DRUIPART" && !o.source.name.endsWith("_srfcopy") ? I(o) : o.source.detailType === "MDCTRL" ? D(o) : null; return i.source.detailType === "DRUIPART" && !i.source.name.endsWith("_srfcopy") ? S(i) : i.source.detailType === "MDCTRL" ? C(i) : null;
} }
}, O = (o, d) => { }, T = (i, f) => {
const b = [], S = [], x = []; const A = [], I = [], N = [];
return Object.keys(d).forEach((N) => { return Object.keys(f).forEach((O) => {
const T = o[N], _ = d[N]; const R = i[O], B = f[O];
t.isFalseyButNotEmpty(T) && !t.isFalseyButNotEmpty(_) && b.push(N), !t.isFalseyButNotEmpty(T) && !t.isFalseyButNotEmpty(_) && t.compareObjectValues(T, _) && S.push(N); t.isFalseyButNotEmpty(R) && !t.isFalseyButNotEmpty(B) && A.push(O), !t.isFalseyButNotEmpty(R) && !t.isFalseyButNotEmpty(B) && t.compareObjectValues(R, B) && I.push(O);
}), Object.keys(o).forEach((N) => { }), Object.keys(i).forEach((O) => {
if (!Object.prototype.hasOwnProperty.call(d, N) || t.isFalseyButNotEmpty(d[N])) { if (!Object.prototype.hasOwnProperty.call(f, O) || t.isFalseyButNotEmpty(f[O])) {
const T = o[N]; const R = i[O];
t.isFalseyButNotEmpty(T) || x.push(N); t.isFalseyButNotEmpty(R) || N.push(O);
} }
}), { }), {
added: b, added: A,
modified: S, modified: I,
deleted: x deleted: N
}; };
}; };
return V(() => s.params, async () => { return L(() => a.params, async () => {
const o = await t.loadGridData(); const i = await t.loadGridData();
c.value = o.baseData, g.value = o.compareData; l.value = i.baseData, w.value = i.compareData;
const { const {
added: d, added: f,
modified: b, modified: A,
deleted: S deleted: I
} = O(g.value, c.value); } = T(w.value, l.value);
w.value = d, v.value = b, l.value = S; y.value = f, D.value = A, c.value = I;
}, { }, {
immediate: !0 immediate: !0
}), { }), {
ns: a, ns: e,
c: t, c: t,
switchValue: n, switchValue: n,
druipartNum: C, druipartNum: p,
renderEditor: y, renderEditor: v,
renderByDetailType: k renderByDetailType: F
}; };
}, },
render() { render() {
return this.c.complete ? r("control-layout", { return this.c.complete ? o("control-layout", {
attrs: { attrs: {
modelData: this.c.model modelData: this.c.model
} }
}, [r("div", { }, [o("div", {
class: this.ns.b() class: this.ns.b()
}, [r("div", { }, [o("div", {
class: this.ns.e("top") class: this.ns.e("top")
}, [r("div", { }, [o("div", {
class: this.ns.e("top-hidesame-content") class: this.ns.e("top-hidesame-content")
}, [r("div", { }, [o("div", {
class: this.ns.e("top-hidesame-content-left") class: this.ns.e("top-hidesame-content-left")
}, ["隐藏相同项 ", r("i-switch", { }, ["隐藏相同项 ", o("i-switch", {
model: { model: {
value: this.switchValue, value: this.switchValue,
callback: (s) => { callback: (a) => {
this.switchValue = s; this.switchValue = a;
} }
} }
})]), r("div", { })]), o("div", {
class: this.ns.e("top-hidesame-content-right") class: this.ns.e("top-hidesame-content-right")
}, [r("div", { }, [o("div", {
class: this.ns.e("top-hidesame-content-right-item") class: this.ns.e("top-hidesame-content-right-item")
}, ["新增", r("div", { }, ["新增", o("div", {
class: this.ns.e("top-hidesame-content-right-item-add") class: this.ns.e("top-hidesame-content-right-item-add")
})]), r("div", { })]), o("div", {
class: this.ns.e("top-hidesame-content-right-item") class: this.ns.e("top-hidesame-content-right-item")
}, ["修改", r("div", { }, ["修改", o("div", {
class: this.ns.e("top-hidesame-content-right-item-change") class: this.ns.e("top-hidesame-content-right-item-change")
})]), r("div", { })]), o("div", {
class: this.ns.e("top-hidesame-content-right-item") class: this.ns.e("top-hidesame-content-right-item")
}, ["删除", r("div", { }, ["删除", o("div", {
class: this.ns.e("top-hidesame-content-right-item-delete") class: this.ns.e("top-hidesame-content-right-item-delete")
})])])]), r("div", { })])])]), o("div", {
class: this.ns.e("top-content") class: this.ns.e("top-content")
}, [r("div", { }, [o("div", {
class: this.ns.em("top-content", "attr") class: this.ns.em("top-content", "attr")
}, ["信息项"]), r("div", { }, ["信息项"]), o("div", {
class: [this.ns.em("top-content", "left")] class: [this.ns.em("top-content", "left")]
}, ["更新前内容"]), r("div", { }, ["更新前内容"]), o("div", {
class: [this.ns.em("top-content", "right")] class: [this.ns.em("top-content", "right")]
}, ["更新后内容"])])]), r("div", { }, ["更新后内容"])])]), o("div", {
class: this.ns.e("content") class: this.ns.e("content")
}, [this.modelData.children.map((s) => this.renderByDetailType(s))])])]) : null; }, [this.modelData.children.map((a) => this.renderByDetailType(a))])])]) : null;
} }
}); });
const Te = M({ const _e = k({
name: "CustomDataImport", name: "CustomDataImport",
props: { props: {
templateUrl: { templateUrl: {
...@@ -456,87 +458,87 @@ const Te = M({ ...@@ -456,87 +458,87 @@ const Te = M({
type: Function type: Function
} }
}, },
setup(s, { setup(a, {
emit: a emit: e
}) { }) {
const e = B("data-import"), t = A(), i = A({ const s = M("data-import"), t = P(), r = P({
state: "ready", state: "ready",
message: "", message: "",
rowError: [] rowError: []
}), n = A(""), c = async (l) => { }), n = P(""), l = async (c) => {
const v = new FormData(), f = $(n.value).format("YYYY-MM"); const D = new FormData(), g = H(n.value).format("YYYY-MM");
v.append("file", l), v.append("ny", f); D.append("file", c), D.append("ny", g);
try { try {
const C = await ibiz.net.request(s.importUrl, { const p = await ibiz.net.request(a.importUrl, {
method: "post", method: "post",
data: v, data: D,
headers: { headers: {
"Content-Type": "multipart/form-data" "Content-Type": "multipart/form-data"
} }
}); });
i.value.state = "success", i.value.message = "导入成功"; r.value.state = "success", r.value.message = "导入成功";
const { const {
errorinfo: h, errorinfo: u,
success: p, success: m,
total: y total: v
} = C.data, F = y ? Number(y) : 0, I = p ? Number(p) : 0, D = y - p; } = p.data, E = v ? Number(v) : 0, S = m ? Number(m) : 0, C = v - m;
i.value.message = `共计导入数据 ${F} 条,错误[${D}],成功[${I}]`, h && Object.keys(h).length > 0 && (i.value.rowError = [], Object.keys(h).forEach((E) => { r.value.message = `共计导入数据 ${E} 条,错误[${C}],成功[${S}]`, u && Object.keys(u).length > 0 && (r.value.rowError = [], Object.keys(u).forEach((x) => {
i.value.rowError.push({ r.value.rowError.push({
index: Number(E) + 1, index: Number(x) + 1,
info: h[E].errorInfo info: u[x].errorInfo
}); });
})); }));
} catch (C) { } catch (p) {
i.value.state = "fail", i.value.message = `导入失败!${C.message}`; r.value.state = "fail", r.value.message = `导入失败!${p.message}`;
} }
}, g = (l) => { }, w = (c) => {
const v = l.target; const D = c.target;
if (!v.files) if (!D.files)
return; return;
const f = v.files[0]; const g = D.files[0];
v.value = null, c(f); D.value = null, l(g);
}, u = async () => { }, d = async () => {
var v; var D;
const l = await ibiz.net.request(s.templateUrl, { const c = await ibiz.net.request(a.templateUrl, {
responseType: "blob" responseType: "blob"
}); });
if (l.status === 200) { if (c.status === 200) {
let f = ((v = l.headers["content-disposition"].split(";").find((p) => p.indexOf("filename=") !== -1)) == null ? void 0 : v.slice(9)) || ""; let g = ((D = c.headers["content-disposition"].split(";").find((m) => m.indexOf("filename=") !== -1)) == null ? void 0 : D.slice(9)) || "";
f = decodeURIComponent(f); g = decodeURIComponent(g);
const C = new Blob([l.data], { const p = new Blob([c.data], {
type: "application/vnd.ms-excel" type: "application/vnd.ms-excel"
}), h = document.createElement("a"); }), u = document.createElement("a");
h.download = f, h.style.display = "none", h.href = URL.createObjectURL(C), document.body.appendChild(h), h.click(), URL.revokeObjectURL(h.href), document.body.removeChild(h); u.download = g, u.style.display = "none", u.href = URL.createObjectURL(p), document.body.appendChild(u), u.click(), URL.revokeObjectURL(u.href), document.body.removeChild(u);
} }
}, m = () => { }, h = () => {
t.value.click(); t.value.click();
}, w = () => { }, y = () => {
var l; var c;
a("close", { e("close", {
ok: !1, ok: !1,
data: {} data: {}
}), (l = s.dismiss) == null || l.call(s, { }), (c = a.dismiss) == null || c.call(a, {
ok: !1, ok: !1,
data: {} data: {}
}); });
}; };
return De(() => { return be(() => {
n.value = $().format("YYYY年MM月"); n.value = H().format("YYYY年MM月");
}), { }), {
ns: e, ns: s,
curDate: n, curDate: n,
onLinkClick: u, onLinkClick: d,
selectFile: m, selectFile: h,
onCancelButtonClick: w, onCancelButtonClick: y,
onFileChange: g, onFileChange: w,
inputUpLoad: t, inputUpLoad: t,
message: i message: r
}; };
}, },
render() { render() {
return r("div", { return o("div", {
class: [this.ns.b(), this.ns.is("custom", !0)] class: [this.ns.b(), this.ns.is("custom", !0)]
}, [r("input", { }, [o("input", {
ref: "inputUpLoad", ref: "inputUpLoad",
attrs: { attrs: {
type: "file", type: "file",
...@@ -546,11 +548,11 @@ const Te = M({ ...@@ -546,11 +548,11 @@ const Te = M({
on: { on: {
change: this.onFileChange change: this.onFileChange
} }
}), r("div", { }), o("div", {
class: this.ns.e("caption") class: this.ns.e("caption")
}, ["导入数据"]), r("div", { }, ["导入数据"]), o("div", {
class: this.ns.e("date") class: this.ns.e("date")
}, [r("span", ["导入数据所属月份"]), r("i-datePicker", { }, [o("span", ["导入数据所属月份"]), o("i-datePicker", {
attrs: { attrs: {
format: "yyyy年MM月", format: "yyyy年MM月",
type: "month", type: "month",
...@@ -558,70 +560,70 @@ const Te = M({ ...@@ -558,70 +560,70 @@ const Te = M({
}, },
model: { model: {
value: this.curDate, value: this.curDate,
callback: (s) => { callback: (a) => {
this.curDate = s; this.curDate = a;
} }
} }
})]), this.message.state === "ready" ? r("div", { })]), this.message.state === "ready" ? o("div", {
class: this.ns.b("upload"), class: this.ns.b("upload"),
on: { on: {
click: this.selectFile click: this.selectFile
} }
}, [r("img", { }, [o("img", {
class: this.ns.be("upload", "img"), class: this.ns.be("upload", "img"),
attrs: { attrs: {
src: "./assets/img/icon-import.svg" src: "./assets/img/icon-import.svg"
} }
}), r("span", { }), o("span", {
class: this.ns.be("upload", "text") class: this.ns.be("upload", "text")
}, ["单击此区域进行上传"])]) : r("div", { }, ["单击此区域进行上传"])]) : o("div", {
class: this.ns.b("message") class: this.ns.b("message")
}, [r("div", { }, [o("div", {
class: this.ns.be("message", "title") class: this.ns.be("message", "title")
}, ["导入结果"]), r("div", { }, ["导入结果"]), o("div", {
class: this.ns.be("message", "content") class: this.ns.be("message", "content")
}, [this.message.message]), this.message.rowError.length > 0 && [r("div", { }, [this.message.message]), this.message.rowError.length > 0 && [o("div", {
class: this.ns.be("message", "title") class: this.ns.be("message", "title")
}, ["错误信息"]), r("div", { }, ["错误信息"]), o("div", {
class: this.ns.be("message", "content") class: this.ns.be("message", "content")
}, [this.message.rowError.map((s) => r("div", [`第 ${s.index} 行:${s.info}`]))])]]), r("div", { }, [this.message.rowError.map((a) => o("div", [`第 ${a.index} 行:${a.info}`]))])]]), o("div", {
class: this.ns.e("template-container") class: this.ns.e("template-container")
}, [r("div", { }, [o("div", {
class: this.ns.e("template-description") class: this.ns.e("template-description")
}, ["下载导入模版,并按要求填写:"]), r("div", { }, ["下载导入模版,并按要求填写:"]), o("div", {
class: this.ns.e("template-link"), class: this.ns.e("template-link"),
on: { on: {
click: this.onLinkClick click: this.onLinkClick
} }
}, [r("i-icon", { }, [o("i-icon", {
attrs: { attrs: {
type: "ios-link" type: "ios-link"
} }
}), "数据导入模板文件"])]), r("div", { }), "数据导入模板文件"])]), o("div", {
class: this.ns.e("button-bar") class: this.ns.e("button-bar")
}, [this.message.state !== "ready" && r("i-button", { }, [this.message.state !== "ready" && o("i-button", {
on: { on: {
click: this.selectFile click: this.selectFile
} }
}, ["重新上传"])])]); }, ["重新上传"])])]);
} }
}); });
const Me = M({ const je = k({
name: "YearMonthPicker", name: "YearMonthPicker",
props: ye(), props: we(),
emits: G(), emits: G(),
setup(s, { setup(a, {
emit: a emit: e
}) { }) {
const e = B("date-picker"), t = s.controller, i = t.model, n = A("date"), c = A("yyyy-MM-dd"), g = A(!1); const s = M("date-picker"), t = a.controller, r = t.model, n = P("date"), l = P("yyyy-MM-dd"), w = P(!1);
switch (i.editorType) { switch (r.editorType) {
case "DATEPICKEREX": case "DATEPICKEREX":
case "DATEPICKEREX_NOTIME": case "DATEPICKEREX_NOTIME":
n.value = "date"; n.value = "date";
break; break;
case "DATEPICKEREX_NODAY": case "DATEPICKEREX_NODAY":
case "DATEPICKEREX_NODAY_NOSECOND": case "DATEPICKEREX_NODAY_NOSECOND":
g.value = !0, n.value = "time"; w.value = !0, n.value = "time";
break; break;
case "DATEPICKEREX_HOUR": case "DATEPICKEREX_HOUR":
case "DATEPICKEREX_MINUTE": case "DATEPICKEREX_MINUTE":
...@@ -631,47 +633,47 @@ const Me = M({ ...@@ -631,47 +633,47 @@ const Me = M({
default: default:
n.value = "datetime"; n.value = "datetime";
} }
const u = t.valueFormat; const d = t.valueFormat;
if (u) { if (d) {
u === "YYYY-MM" ? n.value = "month" : u === "YYYY" && (n.value = "year"); d === "YYYY-MM" ? n.value = "month" : d === "YYYY" && (n.value = "year");
const f = u.replace("YYYY", "yyyy").replace("DD", "dd"); const g = d.replace("YYYY", "yyyy").replace("DD", "dd");
c.value = f; l.value = g;
} }
i.editorParams.formatText && (c.value = i.editorParams.formatText.replace("YYYY", "yyyy").replace("DD", "dd")); r.editorParams.formatText && (l.value = r.editorParams.formatText.replace("YYYY", "yyyy").replace("DD", "dd"));
const m = A(); const h = P();
V(() => s.value, (f, C) => { L(() => a.value, (g, p) => {
f && f !== C && (m.value = $(f).format(u)); g && g !== p && (h.value = H(g).format(d));
}, { }, {
immediate: !0 immediate: !0
}); });
const w = (f, C) => { const y = (g, p) => {
if (f) { if (g) {
const h = $(f.replace(/[年月]/g, "-")).format(u); const u = H(g.replace(/[年月]/g, "-")).format(d);
a("change", h); e("change", u);
} else } else
a("change", f); e("change", g);
}, l = (f) => { }, c = (g) => {
a("operate", f); e("operate", g);
}, v = A(); }, D = P();
return s.autoFocus && V(v, (f) => { return a.autoFocus && L(D, (g) => {
f && f.$el.getElementsByTagName("input")[0].click(); g && g.$el.getElementsByTagName("input")[0].click();
}), { }), {
ns: e, ns: s,
c: t, c: t,
editorModel: i, editorModel: r,
type: n, type: n,
format: c, format: l,
formatValue: m, formatValue: h,
handleChange: w, handleChange: y,
onOpenChange: l, onOpenChange: c,
inputRef: v, inputRef: D,
isTimePicker: g isTimePicker: w
}; };
}, },
render(s) { render(a) {
return s("div", { return a("div", {
class: [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : ""] class: [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : ""]
}, [[this.readonly && this.formatValue, !this.readonly && this.isTimePicker && s("ITimePicker", { }, [[this.readonly && this.formatValue, !this.readonly && this.isTimePicker && a("ITimePicker", {
ref: "inputRef", ref: "inputRef",
props: { props: {
...this.c.customProps, ...this.c.customProps,
...@@ -686,7 +688,7 @@ const Me = M({ ...@@ -686,7 +688,7 @@ const Me = M({
"on-change": this.handleChange, "on-change": this.handleChange,
"on-open-change": this.onOpenChange "on-open-change": this.onOpenChange
} }
}), !this.readonly && !this.isTimePicker && s("ICalendarPicker", { }), !this.readonly && !this.isTimePicker && a("ICalendarPicker", {
ref: "inputRef", ref: "inputRef",
props: { props: {
...this.c.customProps, ...this.c.customProps,
...@@ -704,20 +706,20 @@ const Me = M({ ...@@ -704,20 +706,20 @@ const Me = M({
})]]); })]]);
} }
}); });
const ie = new Ce(import.meta.url), Re = M({ const me = new Pe(import.meta.url), Be = k({
name: "DownLoadSafeFile", name: "DownLoadSafeFile",
props: {}, props: {},
setup() { setup() {
const s = B("download-safe-file"), a = ie.dir("/assets/doc/safe-file.doc"); const a = M("download-safe-file"), e = me.dir("/assets/doc/safe-file.doc");
return { return {
ns: s, ns: a,
url: a url: e
}; };
}, },
render() { render() {
return r("div", { return o("div", {
class: this.ns.b() class: this.ns.b()
}, [r("a", { }, [o("a", {
attrs: { attrs: {
download: "网络信息安全承诺书.doc", download: "网络信息安全承诺书.doc",
href: this.url href: this.url
...@@ -725,7 +727,7 @@ const ie = new Ce(import.meta.url), Re = M({ ...@@ -725,7 +727,7 @@ const ie = new Ce(import.meta.url), Re = M({
}, ["网络信息安全承诺书.doc"])]); }, ["网络信息安全承诺书.doc"])]);
} }
}); });
class le extends Pe { class pe extends Ae {
constructor() { constructor() {
super(...arguments); super(...arguments);
/** /**
...@@ -734,7 +736,7 @@ class le extends Pe { ...@@ -734,7 +736,7 @@ class le extends Pe {
* @type {number} * @type {number}
* @memberof FormMDCtrlFormStyle2Controller * @memberof FormMDCtrlFormStyle2Controller
*/ */
P(this, "active", 0); b(this, "active", 0);
} }
/** /**
* 计算表单更新项信息 * 计算表单更新项信息
...@@ -743,39 +745,39 @@ class le extends Pe { ...@@ -743,39 +745,39 @@ class le extends Pe {
* @return {*} * @return {*}
* @memberof FormMDCtrlFormStyle2Controller * @memberof FormMDCtrlFormStyle2Controller
*/ */
calcFormUpdateItem(e) { calcFormUpdateItem(s) {
var t, i; var t, r;
return { return {
methodName: ((t = e.getPSAppDEMethod()) == null ? void 0 : t.codeName) || "", methodName: ((t = s.getPSAppDEMethod()) == null ? void 0 : t.codeName) || "",
itemNames: (i = e.getPSDEFIUpdateDetails()) == null ? void 0 : i.map((n) => n.name), itemNames: (r = s.getPSDEFIUpdateDetails()) == null ? void 0 : r.map((n) => n.name),
model: { model: {
customCode: e.customCode, customCode: s.customCode,
scriptCode: e.scriptCode scriptCode: s.scriptCode
} }
}; };
} }
connect(e, t) { connect(s, t) {
this.formNeurons.get(e) || (this.formNeurons.set(e, t), t.evt.on("mounted", () => { this.formNeurons.get(s) || (this.formNeurons.set(s, t), t.evt.on("mounted", () => {
t.call.load(); t.call.load();
}), t.evt.on("destroyed", () => { }), t.evt.on("destroyed", () => {
this.formNeurons.delete(e); this.formNeurons.delete(s);
}), t.evt.on("valueChange", (i) => { }), t.evt.on("valueChange", (r) => {
if (i) { if (r) {
const n = this.contentCtrlData.find((c) => c.srfkey === i.srfkey); const n = this.contentCtrlData.find((l) => l.srfkey === r.srfkey);
n && Object.assign(n, i), this.force(); n && Object.assign(n, r), this.force();
} }
}), t.evt.on("afterSave", async () => { }), t.evt.on("afterSave", async () => {
const i = this.model.source.M.getPSAppDEField; const r = this.model.source.M.getPSAppDEField;
i && await this.form.setDataValue(i.codeName.toLowerCase(), [ r && await this.form.setDataValue(r.codeName.toLowerCase(), [
...this.contentCtrlData ...this.contentCtrlData
]); ]);
const n = this.model.source.getPSDEFormItemUpdate(); const n = this.model.source.getPSDEFormItemUpdate();
if (n) { if (n) {
const { methodName: c, itemNames: g, model: u } = this.calcFormUpdateItem(n); const { methodName: l, itemNames: w, model: d } = this.calcFormUpdateItem(n);
await this.form.updateFormItem( await this.form.updateFormItem(
c, l,
g, w,
u d
); );
} }
})); }));
...@@ -787,23 +789,23 @@ class le extends Pe { ...@@ -787,23 +789,23 @@ class le extends Pe {
* @memberof FormMDCtrlFormStyle2Controller * @memberof FormMDCtrlFormStyle2Controller
*/ */
async validate() { async validate() {
const e = []; const s = [];
this.formNeurons.forEach((n, c) => { this.formNeurons.forEach((n, l) => {
const g = n.call.getFormController(); const w = n.call.getFormController();
e.push({ key: c, controller: g }); s.push({ key: l, controller: w });
}); });
let t = ""; let t = "";
const i = await Promise.all( const r = await Promise.all(
e.map(async (n) => { s.map(async (n) => {
const c = await n.controller.validate(); const l = await n.controller.validate();
return !t && !c && (t = n.key), c; return !t && !l && (t = n.key), l;
}) })
); );
if (t) { if (t) {
const n = this.contentCtrlData.findIndex((c) => c.srfkey === t); const n = this.contentCtrlData.findIndex((l) => l.srfkey === t);
n > -1 && (this.active = n); n > -1 && (this.active = n);
} }
return i.findIndex((n) => !n) === -1; return r.findIndex((n) => !n) === -1;
} }
/** /**
* 静默校验 * 静默校验
...@@ -812,248 +814,248 @@ class le extends Pe { ...@@ -812,248 +814,248 @@ class le extends Pe {
* @memberof FormMDCtrlFormStyle2Controller * @memberof FormMDCtrlFormStyle2Controller
*/ */
async silentValidate() { async silentValidate() {
const e = []; const s = [];
this.formNeurons.forEach((n, c) => { this.formNeurons.forEach((n, l) => {
const g = n.call.getFormController(); const w = n.call.getFormController();
e.push({ key: c, controller: g }); s.push({ key: l, controller: w });
}); });
let t = ""; let t = "";
const i = await Promise.all( const r = await Promise.all(
e.map(async (n) => { s.map(async (n) => {
const c = await n.controller.silentValidate(); const l = await n.controller.silentValidate();
return !t && !c && (t = n.key), c; return !t && !l && (t = n.key), l;
}) })
); );
if (t) { if (t) {
const n = this.contentCtrlData.findIndex((c) => c.srfkey === t); const n = this.contentCtrlData.findIndex((l) => l.srfkey === t);
n > -1 && (this.active = n); n > -1 && (this.active = n);
} }
return i.findIndex((n) => !n) === -1; return r.findIndex((n) => !n) === -1;
} }
} }
const Ue = M({ const ze = k({
name: "FormMDCtrlFormStyle2", name: "FormMDCtrlFormStyle2",
props: { props: {
controller: { controller: {
type: le, type: pe,
required: !0 required: !0
}, },
modelData: { modelData: {
type: pe, type: ye,
required: !0 required: !0
} }
}, },
setup(s) { setup(a) {
const a = B("form-mdctrl-form-style2"), e = s.controller, { const e = M("form-mdctrl-form-style2"), s = a.controller, {
proxy: t proxy: t
} = W(); } = q();
ge(t, s.controller); De(t, a.controller);
const i = async (m, w, l) => { const r = async (h, y, c) => {
l.stopPropagation(), l.preventDefault(); c.stopPropagation(), c.preventDefault();
const v = e.contentCtrlData.length; const D = s.contentCtrlData.length;
await e.handleRemove(m, w), v !== e.contentCtrlData.length && w <= e.active && e.active !== 0 && (e.active -= 1); await s.handleRemove(h, y), D !== s.contentCtrlData.length && y <= s.active && s.active !== 0 && (s.active -= 1);
}, n = (m) => { }, n = (h) => {
e.active = m, e.force(); s.active = h, s.force();
}, c = async () => { }, l = async () => {
const m = JSON.parse(JSON.stringify(e.contentCtrlData)).length; const h = JSON.parse(JSON.stringify(s.contentCtrlData)).length;
await e.handleAdd(), m < e.contentCtrlData.length && (e.active = e.contentCtrlData.length - 1); await s.handleAdd(), h < s.contentCtrlData.length && (s.active = s.contentCtrlData.length - 1);
}, g = () => { }, w = () => {
const m = s.modelData.source.userTag; const h = a.modelData.source.userTag;
let w = {}; let y = {};
m && (w = JSON.parse(m)); h && (y = JSON.parse(h));
const { const {
tabtitle: l, tabtitle: c,
addtitle: v, addtitle: D,
usermode: f usermode: g
} = w; } = y;
return f === "user1" && e.contentCtrlData.some((h) => h.rcrylx === "system") ? r("div", { return g === "user1" && s.contentCtrlData.some((u) => u.rcrylx === "system") ? o("div", {
class: a.e("header") class: e.e("header")
}, [e.contentCtrlData.map((h, p) => { }, [s.contentCtrlData.map((u, m) => {
let y = ""; let v = "";
h.srfmajortext ? y = h.srfmajortext : l && h[l] && (y = h[l]); u.srfmajortext ? v = u.srfmajortext : c && u[c] && (v = u[c]);
let F = "待确认"; let E = "待确认";
return h.is_rc === 1 ? F = "确认入场" : h.is_rc === 0 && (F = "放弃入场"), r("div", { return u.is_rc === 1 ? E = "确认入场" : u.is_rc === 0 && (E = "放弃入场"), o("div", {
class: [a.e("header-item"), a.is("actived", p === e.active)], class: [e.e("header-item"), e.is("actived", m === s.active)],
on: { on: {
click: () => n(p) click: () => n(m)
} }
}, [r("div", { }, [o("div", {
class: a.em("header-item", "title") class: e.em("header-item", "title")
}, [y, "(", F, ")"])]); }, [v, "(", E, ")"])]);
})]) : r("div", { })]) : o("div", {
class: a.e("header") class: e.e("header")
}, [e.contentCtrlData.map((C, h) => { }, [s.contentCtrlData.map((p, u) => {
let p = `新建${h + 1}`; let m = `新建${u + 1}`;
return C.srfmajortext ? p = C.srfmajortext : l && C[l] ? p = C[l] : v && (p = `${v}${h + 1}`), r("div", { return p.srfmajortext ? m = p.srfmajortext : c && p[c] ? m = p[c] : D && (m = `${D}${u + 1}`), o("div", {
class: [a.e("header-item"), a.is("actived", h === e.active)], class: [e.e("header-item"), e.is("actived", u === s.active)],
on: { on: {
click: () => n(h) click: () => n(u)
} }
}, [r("div", { }, [o("div", {
class: a.em("header-item", "title") class: e.em("header-item", "title")
}, [p]), e.enableDelete && r("div", { }, [m]), s.enableDelete && o("div", {
class: a.em("header-item", "delete"), class: e.em("header-item", "delete"),
attrs: { attrs: {
title: "移除" title: "移除"
}, },
on: { on: {
click: (y) => i(C, h, y) click: (v) => r(p, u, v)
} }
}, [r("i", { }, [o("i", {
class: "fa fa-close" class: "fa fa-close"
})])]); })])]);
}), e.enableCreate && r("div", { }), s.enableCreate && o("div", {
class: [a.e("header-item"), a.e("add")], class: [e.e("header-item"), e.e("add")],
attrs: { attrs: {
title: "添加" title: "添加"
}, },
on: { on: {
click: () => c() click: () => l()
} }
}, [r("span", ["添加"]), r("i", { }, [o("span", ["添加"]), o("i", {
class: "fa fa-plus" class: "fa fa-plus"
})])]); })])]);
}; };
return V(() => e.form.isLoaded, (m, w) => { return L(() => s.form.isLoaded, (h, y) => {
m !== w && m === !0 && e.loadData(); h !== y && h === !0 && s.loadData();
}), { }), {
ns: a, ns: e,
rendertanHeader: g, rendertanHeader: w,
renderTabs: () => e.contentCtrlData.map((m, w) => { renderTabs: () => s.contentCtrlData.map((h, y) => {
var f; var g;
let l = null; let c = null;
const { const {
form: v form: D
} = e.model; } = s.model;
if (v && e.providers[v.name] && e.model.appEntity) { if (D && s.providers[D.name] && s.model.appEntity) {
const C = Object.assign(e.form.context.clone(), { const p = Object.assign(s.form.context.clone(), {
[(f = e.model.appEntity.codeName) == null ? void 0 : f.toLowerCase()]: m[e.model.appEntity.keyName] [(g = s.model.appEntity.codeName) == null ? void 0 : g.toLowerCase()]: h[s.model.appEntity.keyName]
}); });
l = r(e.providers[v.name].component, { c = o(s.providers[D.name].component, {
props: { props: {
modelData: v, modelData: D,
context: C, context: p,
params: e.form.params, params: s.form.params,
enableAutoSave: !0, enableAutoSave: !0,
silentVerify: !0 silentVerify: !0
}, },
on: { on: {
neuronInit: e.onNeuronInit(m.srfkey) neuronInit: s.onNeuronInit(h.srfkey)
} }
}); });
} }
return r("div", { return o("div", {
class: [a.e("content"), a.is("actived", w === e.active)], class: [e.e("content"), e.is("actived", y === s.active)],
key: m.srfkey key: h.srfkey
}, [l]); }, [c]);
}) })
}; };
}, },
render() { render() {
return r("div", { return o("div", {
class: this.ns.b() class: this.ns.b()
}, [this.rendertanHeader(), this.renderTabs()]); }, [this.rendertanHeader(), this.renderTabs()]);
} }
}), Le = M({ }), $e = k({
name: "AutoSelectAll", name: "AutoSelectAll",
props: se(), props: ne(),
emits: G(), emits: G(),
setup(s, { setup(a, {
emit: a emit: e
}) { }) {
const e = B("mpicker"), t = s.controller, i = A([]), n = A([]), c = A([]), g = A(!1), u = A(!1), m = A(null), w = A([]), l = A(!0), v = j(() => { const s = M("mpicker"), t = a.controller, r = P([]), n = P([]), l = P([]), w = P(!1), d = P(!1), h = P(null), y = P([]), c = P(!0), D = j(() => {
const D = t.editorParams.followitem; const C = t.editorParams.followitem;
return D ? s.data[D] : ""; return C ? a.data[C] : "";
}); });
V(() => s.value, (D) => { L(() => a.value, (C) => {
i.value = [], c.value = [], D && (c.value = JSON.parse(D), c.value.length > 0 && c.value.forEach((E) => { r.value = [], l.value = [], C && (l.value = JSON.parse(C), l.value.length > 0 && l.value.forEach((x) => {
n.value.findIndex((O) => Object.is(O.srfkey, E.srfkey)) < 0 && (n.value.push(E), w.value.push(E.srfmajortext)), i.value.push(E.srfkey); n.value.findIndex((T) => Object.is(T.srfkey, x.srfkey)) < 0 && (n.value.push(x), y.value.push(x.srfmajortext)), r.value.push(x.srfkey);
})); }));
}, { }, {
immediate: !0, immediate: !0,
deep: !0 deep: !0
}); });
const f = async (D) => { const g = async (C) => {
const E = []; const x = [];
if (D && Array.isArray(D)) if (C && Array.isArray(C))
for (let O = 0; O < D.length; O++) { for (let T = 0; T < C.length; T++) {
const o = D[O], d = { const i = C[T], f = {
srfkey: o[t.keyName] || o.srfkey, srfkey: i[t.keyName] || i.srfkey,
srfmajortext: o[t.textName] || o.srfmajortext srfmajortext: i[t.textName] || i.srfmajortext
}, b = await t.calcFillDataItems(o); }, A = await t.calcFillDataItems(i);
b.length > 0 && b.forEach((x) => { A.length > 0 && A.forEach((N) => {
Object.assign(d, { Object.assign(f, {
[x.name]: x.value [N.name]: N.value
}); });
}), E.push(d), n.value.findIndex((x) => Object.is(x[t.keyName], o[t.keyName])) < 0 && n.value.push(d); }), x.push(f), n.value.findIndex((N) => Object.is(N[t.keyName], i[t.keyName])) < 0 && n.value.push(f);
} }
const k = E.length > 0 ? JSON.stringify(E) : ""; const F = x.length > 0 ? JSON.stringify(x) : "";
a("change", k); e("change", F);
}, C = async () => { }, p = async () => {
let D; let C;
c.value.length && (D = JSON.stringify(c.value)); l.value.length && (C = JSON.stringify(l.value));
const E = await t.openPickUpView(s.data, D); const x = await t.openPickUpView(a.data, C);
E && f(E); x && g(x);
}, h = (D) => { }, u = (C) => {
const E = []; const x = [];
if (D.length > 0) { if (C.length > 0) {
D.forEach((O) => { C.forEach((T) => {
let o = n.value.findIndex((b) => Object.is(b.srfkey, O)), d = null; let i = n.value.findIndex((A) => Object.is(A.srfkey, T)), f = null;
o >= 0 ? d = n.value[o] : (o = c.value.findIndex((b) => Object.is(b.srfkey, O)), o >= 0 && (d = c.value[o])), d && E.push(d); i >= 0 ? f = n.value[i] : (i = l.value.findIndex((A) => Object.is(A.srfkey, T)), i >= 0 && (f = l.value[i])), f && x.push(f);
}); });
const k = E.length > 0 ? JSON.stringify(E) : ""; const F = x.length > 0 ? JSON.stringify(x) : "";
a("change", k); e("change", F);
} else } else
a("change", ""); e("change", "");
}, p = async (D) => { }, m = async (C) => {
if (t.model.appDataEntity) { if (t.model.appDataEntity) {
u.value = !0; d.value = !0;
try { try {
const E = await t.getServiceData(D, s.data); const x = await t.getServiceData(C, a.data);
u.value = !1, n.value = [], E.data.length > 0 && (n.value = E.data.map((k) => ({ d.value = !1, n.value = [], x.data.length > 0 && (n.value = x.data.map((F) => ({
srfkey: k[t.keyName], srfkey: F[t.keyName],
srfmajortext: k[t.textName] srfmajortext: F[t.textName]
}))); })));
} catch (E) { } catch (x) {
u.value = !1; d.value = !1;
} }
} }
}, y = (D) => { }, v = (C) => {
g.value = D, a("operate", D), g.value && p(""); w.value = C, e("operate", C), w.value && m("");
}, F = j(() => c.value.map((D) => D.srfmajortext).join("、")), I = (D) => { }, E = j(() => l.value.map((C) => C.srfmajortext).join("、")), S = (C) => {
n.value = D; n.value = C;
}; };
return V(() => v.value, async (D) => { return L(() => D.value, async (C) => {
if (D) { if (C) {
await p(""); await m("");
const E = n.value.map((k) => k.srfkey); const x = n.value.map((F) => F.srfkey);
if (l.value && (l.value = !1, s.value)) if (c.value && (c.value = !1, a.value))
return; return;
h(E); u(x);
} else } else
n.value = [], a("change", ""); n.value = [], e("change", "");
}, { }, {
immediate: !0 immediate: !0
}), { }), {
ns: e, ns: s,
c: t, c: t,
selectRef: m, selectRef: h,
curValue: i, curValue: r,
loading: u, loading: d,
items: n, items: n,
defaultLabel: w, defaultLabel: y,
valueText: F, valueText: E,
onSearch: p, onSearch: m,
onOpenChange: y, onOpenChange: v,
onSelect: h, onSelect: u,
openPickUpView: C, openPickUpView: p,
setDefaultOptions: I setDefaultOptions: S
}; };
}, },
render(s) { render(a) {
return s("div", { return a("div", {
class: [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : ""] class: [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : ""]
}, [this.readonly && this.valueText, !this.readonly && s("iSelect", { }, [this.readonly && this.valueText, !this.readonly && a("iSelect", {
ref: "selectRef", ref: "selectRef",
props: { props: {
...this.c.customProps, ...this.c.customProps,
...@@ -1071,17 +1073,17 @@ const Ue = M({ ...@@ -1071,17 +1073,17 @@ const Ue = M({
"on-change": this.onSelect, "on-change": this.onSelect,
"on-open-change": this.onOpenChange "on-open-change": this.onOpenChange
} }
}, [this.items.map((a) => s("i-option", { }, [this.items.map((e) => a("i-option", {
key: a.srfkey, key: e.srfkey,
attrs: { attrs: {
value: a.srfkey, value: e.srfkey,
label: a.srfmajortext label: e.srfmajortext
} }
}, [a.srfmajortext]))]), !this.readonly && s("div", { }, [e.srfmajortext]))]), !this.readonly && a("div", {
class: this.ns.e("buns-position") class: this.ns.e("buns-position")
}, [s("div", { }, [a("div", {
class: this.ns.e("btns") class: this.ns.e("btns")
}, [this.c.pickupView ? s("i-button", { }, [this.c.pickupView ? a("i-button", {
attrs: { attrs: {
icon: "ios-search", icon: "ios-search",
type: "text" type: "text"
...@@ -1092,86 +1094,86 @@ const Ue = M({ ...@@ -1092,86 +1094,86 @@ const Ue = M({
}) : null])])]); }) : null])])]);
} }
}); });
const Ve = M({ const Ye = k({
name: "MPickerCheckbox", name: "MPickerCheckbox",
props: se(), props: ne(),
emits: G(), emits: G(),
setup(s, { setup(a, {
emit: a emit: e
}) { }) {
const e = B("checkbox"), t = s.controller, i = A([]), n = A([]), c = A(!0), g = ",", u = t.editorParams.emptyClearItems, m = j({ const s = M("checkbox"), t = a.controller, r = P([]), n = P([]), l = P(!0), w = ",", d = t.editorParams.emptyClearItems, h = j({
get() { get() {
var p; var m;
return ((p = s.value) == null ? void 0 : p.split(",")) || []; return ((m = a.value) == null ? void 0 : m.split(",")) || [];
}, },
set(p) { set(m) {
let y = null; let v = null;
const F = []; const E = [];
if (i.value.length > 0 && (i.value.forEach((I) => { if (r.value.length > 0 && (r.value.forEach((S) => {
p.findIndex((E) => Object.is(I.value, E)) !== -1 && F.push(I.value); m.findIndex((x) => Object.is(S.value, x)) !== -1 && E.push(S.value);
}), y = F.join(g)), a("change", y), !y && u) { }), v = E.join(w)), e("change", v), !v && d) {
const I = JSON.parse(u); const S = JSON.parse(d);
for (let D = 0; D < I.length; D++) for (let C = 0; C < S.length; C++)
a("change", I[D].value, I[D].key); e("change", S[C].value, S[C].key);
} }
} }
}), w = async (p) => { }), y = async (m) => {
const { const {
context: y, context: v,
params: F params: E
} = t.handlePublicParams(p, t.context, t.params); } = t.handlePublicParams(m, t.context, t.params);
if (t.editorParams.codeTag) { if (t.editorParams.codeTag) {
let I = []; let S = [];
const D = t.editorParams.codeTag; const C = t.editorParams.codeTag;
return I = await ibiz.codeListService.get(D, y, F), I; return S = await ibiz.codeListService.get(C, v, E), S;
} }
throw new he(t.model.source, "请配置代码表"); throw new ge(t.model.source, "请配置代码表");
}, l = (p) => { }, c = (m) => {
m.value = p; h.value = m;
}, v = j(() => { }, D = j(() => {
const p = Array.isArray(m.value) ? m.value : [m.value]; const m = Array.isArray(h.value) ? h.value : [h.value];
return i.value.filter((y) => p.includes(y.srfkey)).map((y) => y.srfmajortext).join("、"); return r.value.filter((v) => m.includes(v.srfkey)).map((v) => v.srfmajortext).join("、");
}), f = async (p) => { }), g = async (m) => {
if (t.model.appDataEntity) if (t.model.appDataEntity)
try { try {
const y = await t.getServiceData(p, s.data); const v = await t.getServiceData(m, a.data);
n.value = [], y.data.length > 0 && (n.value = y.data.map((F) => ({ n.value = [], v.data.length > 0 && (n.value = v.data.map((E) => ({
srfkey: F[t.keyName], srfkey: E[t.keyName],
srfmajortext: F[t.textName] srfmajortext: E[t.textName]
}))); })));
} catch (y) { } catch (v) {
console.error(y); console.error(v);
} }
}, C = j(() => { }, p = j(() => {
const p = t.editorParams.followitem; const m = t.editorParams.followitem;
return p ? s.data[p] : ""; return m ? a.data[m] : "";
}), h = () => { }), u = () => {
const p = []; const m = [];
i.value.forEach((y) => { r.value.forEach((v) => {
n.value.findIndex((I) => I.srfkey === y.value) > -1 && p.push(y.value); n.value.findIndex((S) => S.srfkey === v.value) > -1 && m.push(v.value);
}), l(p); }), c(m);
}; };
return V(() => C, async (p) => { return L(() => p, async (m) => {
await w(p).then((y) => { await y(m).then((v) => {
i.value = y; r.value = v;
}), await f(""), !(c.value && (c.value = !1, s.value)) && h(); }), await g(""), !(l.value && (l.value = !1, a.value)) && u();
}, { }, {
immediate: !0, immediate: !0,
deep: !0 deep: !0
}), { }), {
ns: e, ns: s,
c: t, c: t,
valueText: v, valueText: D,
selectArray: m, selectArray: h,
items: i, items: r,
onSearch: f, onSearch: g,
onSelectArrayChange: l onSelectArrayChange: c
}; };
}, },
render(s) { render(a) {
return s("div", { return a("div", {
class: [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : ""] class: [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : ""]
}, [this.readonly && this.valueText, !this.readonly && s("ICheckboxGroup", { }, [this.readonly && this.valueText, !this.readonly && a("ICheckboxGroup", {
props: { props: {
...this.c.customProps, ...this.c.customProps,
value: this.selectArray value: this.selectArray
...@@ -1179,18 +1181,18 @@ const Ve = M({ ...@@ -1179,18 +1181,18 @@ const Ve = M({
on: { on: {
"on-change": this.onSelectArrayChange "on-change": this.onSelectArrayChange
} }
}, [this.items.map((a, e) => s("i-checkbox", { }, [this.items.map((e, s) => a("i-checkbox", {
key: e, key: s,
attrs: { attrs: {
label: a.value, label: e.value,
disabled: this.disabled disabled: this.disabled
} }
}, [s("span", { }, [a("span", {
class: this.ns.e("text") class: this.ns.e("text")
}, [a.text])]))])]); }, [e.text])]))])]);
} }
}); });
class Be extends Ae { class He extends Se {
/** /**
* 设置嵌入视图的神经元 * 设置嵌入视图的神经元
* *
...@@ -1198,25 +1200,25 @@ class Be extends Ae { ...@@ -1198,25 +1200,25 @@ class Be extends Ae {
* @date 2022-09-15 10:09:22 * @date 2022-09-15 10:09:22
* @param {ViewNeuron} neuron * @param {ViewNeuron} neuron
*/ */
setViewNeuron(a) { setViewNeuron(e) {
this.neuron = a, this.neuron.evt.on("refreshed", (e) => { this.neuron = e, this.neuron.evt.on("refreshed", (s) => {
if (ibiz.log.debug("接收到关系界面的刷新变更事件", e), this.model.formItemUpdate) { if (ibiz.log.debug("接收到关系界面的刷新变更事件", s), this.model.formItemUpdate) {
const { methodName: t, itemNames: i, model: n } = this.model.formItemUpdate; const { methodName: t, itemNames: r, model: n } = this.model.formItemUpdate;
this.form.updateFormItem( this.form.updateFormItem(
t, t,
i, r,
n n
); );
} }
}), this.neuron.evt.on("mounted", () => { }), this.neuron.evt.on("mounted", () => {
this.neuron.call.refresh(); this.neuron.call.refresh();
}), this.neuron.evt.on("viewDataChange", async (e) => { }), this.neuron.evt.on("viewDataChange", async (s) => {
if (!["LOAD", "LOADDRAFT"].includes(e.type) && (ibiz.log.debug("接收到关系界面的数据变更事件", e.data), this.model.formItemUpdate)) { if (!["LOAD", "LOADDRAFT"].includes(s.type) && (ibiz.log.debug("接收到关系界面的数据变更事件", s.data), this.model.formItemUpdate)) {
const { methodName: t, itemNames: i, model: n } = this.model.formItemUpdate; const { methodName: t, itemNames: r, model: n } = this.model.formItemUpdate;
try { try {
this.processState.formItemUpdate = !0, await this.form.updateFormItem( this.processState.formItemUpdate = !0, await this.form.updateFormItem(
t, t,
i, r,
n n
); );
} finally { } finally {
...@@ -1224,8 +1226,8 @@ class Be extends Ae { ...@@ -1224,8 +1226,8 @@ class Be extends Ae {
} }
} }
}), this.neuron.evt.on("destroyed", () => { }), this.neuron.evt.on("destroyed", () => {
Object.keys(this.processState).forEach((e) => { Object.keys(this.processState).forEach((s) => {
this.processState[e] = !1; this.processState[s] = !1;
}); });
}), this.neuron.evt.on("viewSaveStart", () => { }), this.neuron.evt.on("viewSaveStart", () => {
this.processState.viewSave = !0; this.processState.viewSave = !0;
...@@ -1234,7 +1236,7 @@ class Be extends Ae { ...@@ -1234,7 +1236,7 @@ class Be extends Ae {
}); });
} }
} }
class _e extends Fe { class Ge extends Ie {
constructor() { constructor() {
super(...arguments); super(...arguments);
/** /**
...@@ -1243,7 +1245,7 @@ class _e extends Fe { ...@@ -1243,7 +1245,7 @@ class _e extends Fe {
* @type {string} * @type {string}
* @memberof WfEditViewController * @memberof WfEditViewController
*/ */
P(this, "userAction"); b(this, "userAction");
} }
async onInit() { async onInit() {
await super.onInit(), this.getUserAction(); await super.onInit(), this.getUserAction();
...@@ -1256,25 +1258,25 @@ class _e extends Fe { ...@@ -1256,25 +1258,25 @@ class _e extends Fe {
* @returns {*} {Promise<void>} * @returns {*} {Promise<void>}
*/ */
async wfStart() { async wfStart() {
var m; var h;
await this.save(), await this.execUserAction(); await this.save(), await this.execUserAction();
const e = await this.entityService.wf.getWFVersion(); const s = await this.entityService.wf.getWFVersion();
if (e.data.length === 0) if (s.data.length === 0)
throw new xe("当前工作流版本不存在"); throw new de("当前工作流版本不存在");
const t = e.data[0], i = `WFSTART@${t.wfversion}`, n = Object.assign(this.context.clone(), { const t = s.data[0], r = `WFSTART@${t.wfversion}`, n = Object.assign(this.context.clone(), {
activeForm: t["process-form"] activeForm: t["process-form"]
}), c = { }), l = {
processDefinitionKey: t.definitionkey processDefinitionKey: t.definitionkey
}, g = (m = this.model.source.findPSAppViewRef(i)) == null ? void 0 : m.getRefPSAppView(); }, w = (h = this.model.source.findPSAppViewRef(r)) == null ? void 0 : h.getRefPSAppView();
if (!g) { if (!w) {
await this.nerve.form.call.wfStart(c), await this.closeView(); await this.nerve.form.call.wfStart(l), await this.closeView();
return; return;
} }
(await ibiz.commands.execute( (await ibiz.commands.execute(
q.TAG, W.TAG,
g, w,
n, n,
c l
)).ok && await this.closeView(); )).ok && await this.closeView();
} }
/** /**
...@@ -1283,10 +1285,10 @@ class _e extends Fe { ...@@ -1283,10 +1285,10 @@ class _e extends Fe {
* @memberof EditViewController * @memberof EditViewController
*/ */
getUserAction() { getUserAction() {
const { form: e } = this.model, t = e.source.getPSControlHandler(); const { form: s } = this.model, t = s.source.getPSControlHandler();
if (t) { if (t) {
const i = t.findPSControlHandlerAction("user"); const r = t.findPSControlHandlerAction("user");
i && i.getPSAppDEMethod() && (this.userAction = i.getPSAppDEMethod().codeName); r && r.getPSAppDEMethod() && (this.userAction = r.getPSAppDEMethod().codeName);
} }
} }
/** /**
...@@ -1296,18 +1298,18 @@ class _e extends Fe { ...@@ -1296,18 +1298,18 @@ class _e extends Fe {
*/ */
async execUserAction() { async execUserAction() {
if (this.userAction) { if (this.userAction) {
const e = this.getData(); const s = this.getData();
await this.entityService.exec(this.userAction, this.context, e[0]); await this.entityService.exec(this.userAction, this.context, s[0]);
} }
} }
} }
function je(s, a) { function qe(a, e) {
return we( return Ce(
s, a,
(e, t) => new _e(a, e, t) (s, t) => new Ge(e, s, t)
); );
} }
const ze = M({ const Je = k({
props: { props: {
context: Object, context: Object,
params: { params: {
...@@ -1325,69 +1327,277 @@ const ze = M({ ...@@ -1325,69 +1327,277 @@ const ze = M({
required: !1 required: !1
} }
}, },
setup(s) { setup(a) {
const { const {
proxy: a proxy: e
} = W(); } = q();
return { return {
c: je(a, s.modelPath) c: qe(e, a.modelPath)
}; };
}, },
render(s) { render(a) {
let a = null; let e = null;
if (this.c.complete) { if (this.c.complete) {
const { const {
form: e form: s
} = this.c.model; } = this.c.model;
this.c.providers[e.name] && (a = s(this.c.providers[e.name].component, { this.c.providers[s.name] && (e = a(this.c.providers[s.name].component, {
props: { props: {
modelData: e, modelData: s,
context: this.c.context, context: this.c.context,
params: this.c.params params: this.c.params
}, },
on: { on: {
neuronInit: this.c.nerve.onNeuronInit(e.name) neuronInit: this.c.nerve.onNeuronInit(s.name)
} }
})); }));
} }
return s("view-base", { return a("view-base", {
attrs: { attrs: {
controller: this.c controller: this.c
} }
}, [a]); }, [e]);
}
});
class We extends le {
async save() {
var t;
if (this.processing || (t = this.formDruipart) != null && t.some((r) => r.processing))
return await Me(500, this.save.bind(this));
const e = this.controlParams.SILENT === "true";
if (this.silentVerify) {
if (!await this.silentValidate())
return this.data;
} else if (!await this.validate())
throw new de("请检查表单填写!");
await this.startLoading();
let s;
try {
s = this.isNewData ? await this.service.create(this.context, this.data) : await this.service.update(this.context, this.data);
} finally {
await this.endLoading();
}
if (s.data)
for (const r of Object.keys(s.data))
Re(s.data[r]) || (this.data[r] = s.data[r]);
if (await this.nerve.self.evt.asyncEmit("afterSave", this.isNewData, this.data), this.isNewData = !1, this.formStateNotify(Fe.SAVE), !e) {
let r = this.data.srfmajortext;
if (this.controlParams.CONVERSIONCODETAG) {
const n = await ibiz.codeListService.get(
this.controlParams.CONVERSIONCODETAG,
this.context,
this.params
), l = this.data.srfmajortext.split("_");
if (l && l.length > 1) {
const w = this.loopCodeList(n);
r = l.map((h) => {
const y = w.find((c) => c.value === h);
return (y == null ? void 0 : y.text) || "";
}).filter((h) => !!h).join("_");
}
}
ibiz.message.success(`${r || ""}保存成功`);
}
return this.isDirty = !1, this.force(), this.data;
}
loopCodeList(e) {
const s = [];
return e.forEach((t) => {
s.push(t), t.children && s.push(...this.loopCodeList(t.children));
}), s;
}
}
const Ke = k({
name: "ConversionTextEditFormControl",
props: {
modelData: {
type: re,
required: !0
},
context: {
type: Object,
required: !0
},
params: {
type: Object,
default: () => ({})
},
enableAutoSave: {
type: Boolean,
required: !1
},
silentVerify: {
type: Boolean,
required: !1
},
simpleDataIndex: {
type: Number,
required: !1
}
},
setup(a) {
const {
proxy: e
} = q();
return {
c: oe(e, () => {
const t = new We(a.modelData, a.context, a.params);
return Y(e, "enableAutoSave", t.setEnableAutoSave.bind(t)), Y(e, "silentVerify", t.setSilentVerify.bind(t)), Y(e, "simpleDataIndex", t.setSimpleDataIndex.bind(t)), t;
})
};
},
render() {
return this.c.complete ? o("form-control", {
attrs: {
"model-data": this.modelData,
context: this.context,
controller: this.c
}
}) : null;
}
});
const Xe = k({
name: "DropdownListJoin",
props: Ee(),
emits: G(),
setup(a, {
emit: e
}) {
const s = M("dropdown"), t = M("dropdown-join"), r = a.controller, n = P(!1), l = P([]), w = (p, u) => {
const m = [];
return p.forEach((v) => {
if (v.children) {
const E = w(v.children, v);
m.push(...E);
}
if (u) {
const E = {
...Le(v),
parent: u
};
m.push(E);
}
}), m;
};
r.loadCodeList(a.data).then((p) => {
l.value = w(p, null);
});
const d = j({
get() {
var p;
if (a.value) {
if (r.multiple)
return ((p = a.value) == null ? void 0 : p.split(",")).map((v) => {
const E = v.split("_");
return E.length > 1 ? E[1] : E[0];
});
const u = a.value.split("_");
return u.length > 1 ? u[1] : u[0];
}
return a.value;
},
set(p) {
if (Array.isArray(p)) {
const u = p.map((m) => `${l.value.find((E) => E.value === m).parentId}_${m}`);
e("change", u.length === 0 ? null : u.join(","));
} else {
const u = l.value.find((m) => m.value === p);
e("change", `${u.parentId}_${p}`);
}
}
}), h = j(() => {
const p = Array.isArray(d.value) ? d.value : [d.value];
return l.value.filter((u) => p.includes(u.value)).map((u) => u.text).join(",");
}), y = P();
return a.autoFocus && L(y, (p) => {
p && p.toggleMenu();
}), {
ns: s,
ns1: t,
c: r,
curValue: d,
items: l,
valueText: h,
hasChildren: n,
onOpenChange: (p) => {
e("operate", p);
},
inputRef: y,
onSelect: (p) => {
d.value = p;
},
customItemText: (p) => p && Object.keys(p).length > 0 ? r.customLabel.replace(/\$\{([^}]+)\}/g, (u, m) => Object.hasOwnProperty.call(p, m) ? p[m] : "") : ""
};
},
render(a) {
return a("div", {
class: [this.ns.b(), this.ns1.b(), this.c.model.editorType === "DROPDOWNLIST_100" ? this.ns.m("width_100") : "", this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : ""]
}, [[this.readonly && this.valueText, !this.readonly && this.hasChildren && a("app-select-tree", {
class: [this.ns.e("tree-select")],
attrs: {
value: this.curValue,
"nodes-data": this.items,
disabled: this.disabled,
multiple: this.c.multiple
}
}), !this.readonly && !this.hasChildren && a("iSelect", {
ref: "inputRef",
class: this.ns.e("select"),
props: {
...this.c.customProps,
value: this.curValue,
allowClear: !0,
transfer: !0,
filterable: !0,
clearable: !0,
multiple: this.c.multiple,
placeholder: this.c.placeHolder,
disabled: this.disabled
},
on: {
"on-change": this.onSelect,
"on-open-change": this.onOpenChange
}
}, [this.items.map((e) => a("i-option", {
attrs: {
value: e.value,
tag: e.text,
label: `${e.parent.text}_${e.text}`
}
}, [this.c.customLabel ? this.customItemText(e.data) : `${e.parent.text}_${e.text}`]))])]]);
} }
}); });
class Ye { class Ze {
constructor() { constructor() {
P(this, "component", "IBizFormDataComparison"); b(this, "component", "IBizFormDataComparison");
} }
} }
class $e extends Ee { class Qe extends xe {
async execAction(a, e, t, i) { async execAction(e, s, t, r) {
const n = {}, c = a.getPSAppDataEntity(); const n = {}, l = e.getPSAppDataEntity();
if (c) { if (l) {
c.isFill === !1 && await c.fill(!0); l.isFill === !1 && await l.fill(!0);
const g = new H(c); const w = new J(l);
await g.init(); await w.init();
const { resultContext: u } = await this.handleParams( const { resultContext: d } = await this.handleParams(
a,
e, e,
s,
t, t,
i r
), m = ibiz.resourcePathUtil.calcPaths( ), h = ibiz.resourcePathUtil.calcPaths(
u, d,
g.codeName w.codeName
), w = K(u, m); ), y = K(d, h);
let l = `${w}/${g.deNamePlural}/importtemplate`, v = `${w}/${g.deNamePlural}/importdata2`; let c = `${y}/${w.deNamePlural}/importtemplate`, D = `${y}/${w.deNamePlural}/importdata2`;
const f = a.getPSAppDEDataImport(); const g = e.getPSAppDEDataImport();
f && (l += `?srfimporttag=${f.codeName}`, v += `?srfimporttag=${f.codeName}`); g && (c += `?srfimporttag=${g.codeName}`, D += `?srfimporttag=${g.codeName}`);
const C = ibiz.overlay.createModal( const p = ibiz.overlay.createModal(
"CustomDataImport", "CustomDataImport",
{ {
templateUrl: l, templateUrl: c,
importUrl: v, importUrl: D,
dismiss: (h) => { dismiss: (u) => {
C.dismiss(h); p.dismiss(u);
} }
}, },
{ {
...@@ -1395,73 +1605,73 @@ class $e extends Ee { ...@@ -1395,73 +1605,73 @@ class $e extends Ee {
placement: "center" placement: "center"
} }
); );
return C.present(), await C.onWillDismiss(), { return p.present(), await p.onWillDismiss(), {
refresh: !0 refresh: !0
}; };
} }
return n; return n;
} }
} }
class He { class et {
constructor() { constructor() {
P(this, "handler"); b(this, "handler");
} }
async getHandler() { async getHandler() {
return this.handler || (this.handler = new $e()), this.handler; return this.handler || (this.handler = new Qe()), this.handler;
} }
} }
class Ge { class tt {
constructor() { constructor() {
P(this, "gridEditor", "YearMonthPicker"); b(this, "gridEditor", "YearMonthPicker");
P(this, "formEditor", "YearMonthPicker"); b(this, "formEditor", "YearMonthPicker");
} }
async createController(a, e) { async createController(e, s) {
const t = new Ie(a, e); const t = new Ne(e, s);
return await t.init(), t; return await t.init(), t;
} }
} }
class We { class st {
constructor() { constructor() {
P(this, "formEditor", "DownLoadSafeFile"); b(this, "formEditor", "DownLoadSafeFile");
P(this, "gridEditor", "DownLoadSafeFile"); b(this, "gridEditor", "DownLoadSafeFile");
} }
async createController(a, e) { async createController(e, s) {
const t = new Se(a, e); const t = new Oe(e, s);
return await t.init(), t; return await t.init(), t;
} }
} }
class qe extends re { class at extends ie {
async execAction(a, e, t, i, n) { async execAction(e, s, t, r, n) {
const c = {}, { frontProcessType: g } = a; const l = {}, { frontProcessType: w } = e;
if (g === "OPENHTMLPAGE") { if (w === "OPENHTMLPAGE") {
const u = ne.fill(a.htmlPageUrl, e, t == null ? void 0 : t[0]); const d = ue.fill(e.htmlPageUrl, s, t == null ? void 0 : t[0]);
window.open(u, "_blank"); window.open(d, "_blank");
} }
if (g === "DATAIMP") { if (w === "DATAIMP") {
const u = a.getPSAppDataEntity(); const d = e.getPSAppDataEntity();
if (u) { if (d) {
u.isFill === !1 && await u.fill(!0); d.isFill === !1 && await d.fill(!0);
const m = new H(u); const h = new J(d);
await m.init(); await h.init();
const { resultContext: w } = await this.handleParams( const { resultContext: y } = await this.handleParams(
a,
e, e,
s,
t, t,
i r
), l = ibiz.resourcePathUtil.calcPaths( ), c = ibiz.resourcePathUtil.calcPaths(
w, y,
m.codeName h.codeName
), v = K(w, l); ), D = K(y, c);
let f = `${v}/${m.deNamePlural}/importtemplate`, C = `${v}/${m.deNamePlural}/importdata2`; let g = `${D}/${h.deNamePlural}/importtemplate`, p = `${D}/${h.deNamePlural}/importdata2`;
const h = a.getPSAppDEDataImport(); const u = e.getPSAppDEDataImport();
h && (f += `?srfimporttag=${h.codeName}`, C += `?srfimporttag=${h.codeName}`); u && (g += `?srfimporttag=${u.codeName}`, p += `?srfimporttag=${u.codeName}`);
const p = ibiz.overlay.createModal( const m = ibiz.overlay.createModal(
"DataImport", "DataImport",
{ {
templateUrl: f, templateUrl: g,
importUrl: C, importUrl: p,
dismiss: (y) => { dismiss: (v) => {
p.dismiss(y); m.dismiss(v);
} }
}, },
{ {
...@@ -1469,126 +1679,126 @@ class qe extends re { ...@@ -1469,126 +1679,126 @@ class qe extends re {
placement: "center" placement: "center"
} }
); );
return p.present(), await p.onWillDismiss(), { return m.present(), await m.onWillDismiss(), {
refresh: !0 refresh: !0
}; };
} }
} }
if (["TOP", "WIZARD"].includes(g)) { if (["TOP", "WIZARD"].includes(w)) {
const u = a.getFrontPSAppView(); const d = e.getFrontPSAppView();
if (!u) if (!d)
throw new Error("未配置打开视图"); throw new Error("未配置打开视图");
await u.fill(!0); await d.fill(!0);
const { resultContext: m, resultParams: w } = await this.handleParams( const { resultContext: h, resultParams: y } = await this.handleParams(
a,
e, e,
s,
t, t,
i r
), l = await ibiz.commands.execute( ), c = await ibiz.commands.execute(
q.TAG, W.TAG,
u, d,
m, h,
w, y,
n n
); );
(l == null ? void 0 : l.ok) === !1 && (c.closeView = !1, c.refresh = !1, c.cancel = !0), l != null && l.ok && l.data && (c.data = l.data); (c == null ? void 0 : c.ok) === !1 && (l.closeView = !1, l.refresh = !1, l.cancel = !0), c != null && c.ok && c.data && (l.data = c.data);
} else if (n) { } else if (n) {
const { neuron: u } = n, w = u.call.getFormController().call.getFormController(), { druipart1: l, druipart2: v, druipart3: f } = w.details; const { neuron: d } = n, y = d.call.getFormController().call.getFormController(), { druipart1: c, druipart2: D, druipart3: g } = y.details;
[ [
{ {
message: "服务履历为空", message: "服务履历为空",
neuron: l neuron: c
}, },
{ {
message: "教育经验为空", message: "教育经验为空",
neuron: v neuron: D
}, },
{ {
message: "项目经验为空", message: "项目经验为空",
neuron: f neuron: g
} }
].some((p) => { ].some((m) => {
const y = p.neuron.neuron.call.getGridController(); const v = m.neuron.neuron.call.getGridController();
if (y) { if (v) {
const F = y.call.getGridController(); const E = v.call.getGridController();
if (F && F.items && F.items.length > 0) if (E && E.items && E.items.length > 0)
return !1; return !1;
} }
return ibiz.message.error(`${p.message}`, 1.5, !0), !0; return ibiz.message.error(`${m.message}`, 1.5, !0), !0;
}) || await u.call.wfStart(); }) || await d.call.wfStart();
} }
return c; return l;
} }
} }
class Ke { class rt {
constructor() { constructor() {
P(this, "handler"); b(this, "handler");
} }
async getHandler() { async getHandler() {
return this.handler || (this.handler = new qe()), this.handler; return this.handler || (this.handler = new at()), this.handler;
} }
} }
class Je { class ot {
constructor() { constructor() {
P(this, "component", "FormMDCtrlFormStyle2"); b(this, "component", "FormMDCtrlFormStyle2");
} }
async createController(a, e, t) { async createController(e, s, t) {
const i = new le(a, e, t); const r = new pe(e, s, t);
return await i.init(), i; return await r.init(), r;
} }
} }
class Xe { class nt {
constructor() { constructor() {
P(this, "formEditor", "AutoSelectAll"); b(this, "formEditor", "AutoSelectAll");
P(this, "gridEditor", "AutoSelectAll"); b(this, "gridEditor", "AutoSelectAll");
} }
async createController(a, e) { async createController(e, s) {
const t = new oe(a, e); const t = new ce(e, s);
return await t.init(), t; return await t.init(), t;
} }
} }
class Ze { class it {
constructor() { constructor() {
P(this, "formEditor", "MPickerCheckbox"); b(this, "formEditor", "MPickerCheckbox");
P(this, "gridEditor", "IBizGridPicker"); b(this, "gridEditor", "IBizGridPicker");
} }
async createController(a, e) { async createController(e, s) {
const t = new oe(a, e); const t = new ce(e, s);
return await t.init(), t; return await t.init(), t;
} }
} }
class Qe extends re { class lt extends ie {
async execAction(a, e, t, i, n) { async execAction(e, s, t, r, n) {
const c = {}, { frontProcessType: g } = a; const l = {}, { frontProcessType: w } = e;
if (g === "OPENHTMLPAGE") { if (w === "OPENHTMLPAGE") {
const u = ne.fill(a.htmlPageUrl, e, t == null ? void 0 : t[0]); const d = ue.fill(e.htmlPageUrl, s, t == null ? void 0 : t[0]);
window.open(u, "_blank"); window.open(d, "_blank");
} }
if (g === "DATAIMP") { if (w === "DATAIMP") {
const u = a.getPSAppDataEntity(); const d = e.getPSAppDataEntity();
if (u) { if (d) {
u.isFill === !1 && await u.fill(!0); d.isFill === !1 && await d.fill(!0);
const m = new H(u); const h = new J(d);
await m.init(); await h.init();
const { resultContext: w } = await this.handleParams( const { resultContext: y } = await this.handleParams(
a,
e, e,
s,
t, t,
i r
), l = ibiz.resourcePathUtil.calcPaths( ), c = ibiz.resourcePathUtil.calcPaths(
w, y,
m.codeName h.codeName
), v = K(w, l); ), D = K(y, c);
let f = `${v}/${m.deNamePlural}/importtemplate`, C = `${v}/${m.deNamePlural}/importdata2`; let g = `${D}/${h.deNamePlural}/importtemplate`, p = `${D}/${h.deNamePlural}/importdata2`;
const h = a.getPSAppDEDataImport(); const u = e.getPSAppDEDataImport();
h && (f += `?srfimporttag=${h.codeName}`, C += `?srfimporttag=${h.codeName}`); u && (g += `?srfimporttag=${u.codeName}`, p += `?srfimporttag=${u.codeName}`);
const p = ibiz.overlay.createModal( const m = ibiz.overlay.createModal(
"DataImport", "DataImport",
{ {
templateUrl: f, templateUrl: g,
importUrl: C, importUrl: p,
dismiss: (y) => { dismiss: (v) => {
p.dismiss(y); m.dismiss(v);
} }
}, },
{ {
...@@ -1596,97 +1806,121 @@ class Qe extends re { ...@@ -1596,97 +1806,121 @@ class Qe extends re {
placement: "center" placement: "center"
} }
); );
return p.present(), await p.onWillDismiss(), { return m.present(), await m.onWillDismiss(), {
refresh: !0 refresh: !0
}; };
} }
} }
if (["TOP", "WIZARD"].includes(g)) { if (["TOP", "WIZARD"].includes(w)) {
const u = a.getFrontPSAppView(); const d = e.getFrontPSAppView();
if (!u) if (!d)
throw new Error("未配置打开视图"); throw new Error("未配置打开视图");
await u.fill(!0); await d.fill(!0);
const { resultContext: m, resultParams: w } = await this.handleParams( const { resultContext: h, resultParams: y } = await this.handleParams(
a,
e, e,
s,
t, t,
i r
), l = await ibiz.commands.execute( ), c = await ibiz.commands.execute(
q.TAG, W.TAG,
u, d,
m, h,
w, y,
n n
); );
(l == null ? void 0 : l.ok) === !1 && (c.closeView = !1, c.refresh = !1, c.cancel = !0), l != null && l.ok && l.data && (c.data = l.data); (c == null ? void 0 : c.ok) === !1 && (l.closeView = !1, l.refresh = !1, l.cancel = !0), c != null && c.ok && c.data && (l.data = c.data);
} else if (t && t.length > 0 && n) { } else if (t && t.length > 0 && n) {
const { neuron: u } = n, l = await u.call.getFormController().call.getFormController().autoSave(); const { neuron: d } = n, c = await d.call.getFormController().call.getFormController().autoSave();
l && l.rcryqd && Array.isArray(l.rcryqd) && l.rcryqd.length > 0 ? await u.call.wfStart() : ibiz.message.error("入场信息为空"); c && c.rcryqd && Array.isArray(c.rcryqd) && c.rcryqd.length > 0 ? await d.call.wfStart() : ibiz.message.error("入场信息为空");
} }
return c; return l;
} }
} }
class et { class ct {
constructor() { constructor() {
P(this, "handler"); b(this, "handler");
} }
async getHandler() { async getHandler() {
return this.handler || (this.handler = new Qe()), this.handler; return this.handler || (this.handler = new lt()), this.handler;
} }
} }
class tt { class dt {
constructor() {
b(this, "component", "FormDruipart");
}
async createController(e, s, t) {
const r = new He(e, s, t);
return await r.init(), r;
}
}
class ut {
constructor() { constructor() {
P(this, "component", "FormDruipart"); b(this, "component", "WfEditView");
} }
async createController(a, e, t) { }
const i = new Be(a, e, t); class mt {
return await i.init(), i; constructor() {
b(this, "component", "ConversionTextEditFormControl");
} }
} }
class at { class pt {
constructor() { constructor() {
P(this, "component", "WfEditView"); b(this, "formEditor", "DropdownListJoin");
b(this, "gridEditor", "DropdownListJoin");
}
async createController(e, s) {
const t = new Te(e, s);
return await t.init(), t;
} }
} }
const pt = { const At = {
mateUrl: import.meta.url, mateUrl: import.meta.url,
install(s) { install(a) {
ie.loadStyle(["/style.css"]), s.component("IBizFormDataComparison", Oe), s.component("CustomDataImport", Te), s.component("YearMonthPicker", Me), s.component("DownLoadSafeFile", Re), s.component("FormMDCtrlFormStyle2", Ue), s.component("AutoSelectAll", Le), s.component("MPickerCheckbox", Ve), s.component("WfEditView", ze), ibiz.register.control.register( me.loadStyle(["/style.css"]), a.component("IBizFormDataComparison", Ve), a.component("CustomDataImport", _e), a.component("YearMonthPicker", je), a.component("DownLoadSafeFile", Be), a.component("FormMDCtrlFormStyle2", ze), a.component("AutoSelectAll", $e), a.component("MPickerCheckbox", Ye), a.component("WfEditView", Je), a.component(
"ConversionTextEditFormControl",
Ke
), a.component("DropdownListJoin", Xe), ibiz.register.editor.register(
"EDITOR_CUSTOMSTYLE_JOIN_PARENT_CHILD",
new pt()
), ibiz.register.control.register(
"EDITFORM_RENDER_CONVERSION_TEXT",
new mt()
), ibiz.register.control.register(
"EDITFORM_RENDER_FORM_DATA_COMPARISON", "EDITFORM_RENDER_FORM_DATA_COMPARISON",
new Ye() new Ze()
), ibiz.register.uiAction.register( ), ibiz.register.uiAction.register(
"DEUIACTION_CUSTOM_IMPORT", "DEUIACTION_CUSTOM_IMPORT",
new He() new et()
), ibiz.register.editor.register( ), ibiz.register.editor.register(
"DATEPICKEREX_NOTIME_YEAR_MONTH_PICKER", "DATEPICKEREX_NOTIME_YEAR_MONTH_PICKER",
new Ge() new tt()
), ibiz.register.editor.register( ), ibiz.register.editor.register(
"FILEUPLOADER_ONE_DOWNLOAD_FILE", "FILEUPLOADER_ONE_DOWNLOAD_FILE",
new We() new st()
), ibiz.register.uiAction.register( ), ibiz.register.uiAction.register(
"DEUIACTION_JUDEG_ENABLE_UPDATE", "DEUIACTION_JUDEG_ENABLE_UPDATE",
new Ke() new rt()
), ibiz.register.formDetail.register( ), ibiz.register.formDetail.register(
"FORM_USERCONTROL_MUL_FORM_CARD", "FORM_USERCONTROL_MUL_FORM_CARD",
new Je() new ot()
), ibiz.register.editor.register( ), ibiz.register.editor.register(
"EDITOR_CUSTOMSTYLE_AUTO_SELECT_ALL", "EDITOR_CUSTOMSTYLE_AUTO_SELECT_ALL",
new Xe() new nt()
), ibiz.register.editor.register( ), ibiz.register.editor.register(
"EDITOR_CUSTOMSTYLE_MULTIPLE_CHECKBOX", "EDITOR_CUSTOMSTYLE_MULTIPLE_CHECKBOX",
new Ze() new it()
), ibiz.register.uiAction.register( ), ibiz.register.uiAction.register(
"DEUIACTION_check_rcxx", "DEUIACTION_check_rcxx",
new et() new ct()
), ibiz.register.formDetail.register( ), ibiz.register.formDetail.register(
"FORM_USERCONTROL_DRUIPART_ENABLEINITLOAD", "FORM_USERCONTROL_DRUIPART_ENABLEINITLOAD",
new tt() new dt()
), ibiz.register.view.register( ), ibiz.register.view.register(
"VIEW_CUSTOM_CUSTOM_WF", "VIEW_CUSTOM_CUSTOM_WF",
new at() new ut()
); );
} }
}; };
export { export {
pt as default At as default
}; };
@charset "UTF-8";.ibiz-form-data-comparison{height:calc(100% - 20px);overflow:auto}.ibiz-form-data-comparison *{animation:none!important;transition:none!important;transform:none!important;will-change:unset!important}.ibiz-form-data-comparison__content{display:flex}.ibiz-form-data-comparison__top-hidesame-content{display:flex;place-content:center space-between;align-items:center;height:50px;margin-bottom:10px}.ibiz-form-data-comparison__top-content{display:flex;width:100%;text-align:center;background-color:#f2f2f2;border-left:1px solid lightgray}.ibiz-form-data-comparison__top-content--attr{width:200px;border:1px solid lightgray;padding:5px 10px}.ibiz-form-data-comparison__top-content--left{flex:1;width:calc(100% - 100px);border:1px solid lightgray;padding:5px 10px}.ibiz-form-data-comparison__top-content--right{flex:1;border:1px solid lightgray;width:calc(100% - 100px);padding:5px 10px}.ibiz-form-data-comparison__top-hidesame-content-right{display:flex;flex-flow:row nowrap;place-content:center center;align-items:center}.ibiz-form-data-comparison__top-hidesame-content-right-item{display:flex;flex-direction:row;place-content:center space-around;align-items:center;width:60px;height:30px}.ibiz-form-data-comparison__top-hidesame-content-right-item-add{width:16px;height:16px;background:#d5f3e0}.ibiz-form-data-comparison__top-hidesame-content-right-item-change{width:16px;height:16px;background:#fceecd}.ibiz-form-data-comparison__top-hidesame-content-right-item-delete{width:16px;height:16px;background:#ffd5d5}.ibiz-form-data-comparison__form-grid-item{--ibiz-text-color-readonly: black;display:flex;width:100%}.ibiz-form-data-comparison__form-grid-item--name{border:1px solid lightgray;padding:5px 10px;width:200px;text-align:center}.ibiz-form-data-comparison__form-grid-item--left,.ibiz-form-data-comparison__form-grid-item--right{border:1px solid lightgray;padding:5px 10px;flex:1;text-align:center}.ibiz-form-data-comparison__form-grid-item.is-add .ibiz-form-data-comparison__form-grid-item--left,.ibiz-form-data-comparison__form-grid-item.is-add .ibiz-form-data-comparison__form-grid-item--right{background-color:#d5f3e0}.ibiz-form-data-comparison__form-grid-item.is-update .ibiz-form-data-comparison__form-grid-item--left,.ibiz-form-data-comparison__form-grid-item.is-update .ibiz-form-data-comparison__form-grid-item--right{background-color:#fceecd}.ibiz-form-data-comparison__form-grid-item.is-delete .ibiz-form-data-comparison__form-grid-item--left,.ibiz-form-data-comparison__form-grid-item.is-delete .ibiz-form-data-comparison__form-grid-item--right{background-color:#ffd5d5}.ibiz-form-data-comparison__form-page{width:100%}.ibiz-form-data-comparison__druipart{display:flex;max-height:360px}.ibiz-form-data-comparison__druipart--caption{width:200px;border:1px solid lightgray;display:flex;align-items:center;justify-content:center}.ibiz-form-data-comparison__druipart--left{border:1px solid lightgray;padding:16px;flex:1;width:calc(50% - 100px)}.ibiz-form-data-comparison__druipart--right{border:1px solid lightgray;flex:1;padding:16px;width:calc(50% - 100px)}.ibiz-form-data-comparison__druipart.is-add .ibiz-form-data-comparison__druipart--left,.ibiz-form-data-comparison__druipart.is-add .ibiz-form-data-comparison__druipart--right{background-color:#d5f3e0}.ibiz-form-data-comparison__druipart.is-update .ibiz-form-data-comparison__druipart--left,.ibiz-form-data-comparison__druipart.is-update .ibiz-form-data-comparison__druipart--right{background-color:#fceecd}.ibiz-form-data-comparison__druipart.is-delete .ibiz-form-data-comparison__druipart--left,.ibiz-form-data-comparison__druipart.is-delete .ibiz-form-data-comparison__druipart--right{background-color:#ffd5d5}.ibiz-form-data-comparison-group{width:100%}.ibiz-form-data-comparison-group__header{width:100%;border-left:1px solid lightgray;display:flex}.ibiz-form-data-comparison-group__header--name{width:200px;border:1px solid lightgray;max-width:200px;text-align:center;position:relative;font-size:14px;padding:4px}.ibiz-form-data-comparison-group__header div{flex:1;text-align:center;border:1px solid lightgray}.ibiz-form-data-comparison-group__header--icon{position:absolute;font-size:24px;left:4px;cursor:pointer}.ibiz-form-data-comparison-group__header--name-text{flex:1}.ibiz-form-data-comparison-group__header.is-hide-caption{display:none}.ibiz-form-data-comparison-group__content{border-left:1px solid lightgray}.ibiz-form-data-comparison-group__content.is-collapse{display:none}.ibiz-data-import.is-custom .ibiz-data-import__date{margin-bottom:16px}.ibiz-data-import.is-custom .ibiz-data-import__date span{margin-right:8px}.ibiz-data-import.is-custom .ibiz-data-import__date:before{content:"*";display:inline-block;margin-right:4px;line-height:1;font-family:SimSun;color:var(--ibiz-color-error)}.ibiz-date-picker{--ibiz-date-picker-font-size: var(--ibiz-font-size-base);--ibiz-date-picker-text-color: var(--ibiz-text-color);--ibiz-date-picker-border-color: var(--ibiz-border-color);--ibiz-date-picker-placeholder-color: var(--ibiz-text-color-placeholder);--ibiz-date-picker-disabled-text-color: var(--ibiz-disabled-text-color);--ibiz-date-picker-disabled-bg-color: var(--ibiz-disabled-bg-color);--ibiz-date-picker-disabled-border-color: var(--ibiz-disabled-border-color);--ibiz-date-picker-default-height: var(--ibiz-common-editor-size)}.ibiz-date-picker .ivu-date-picker{width:100%}.ibiz-date-picker .ivu-input{height:var(--ibiz-date-picker-default-height);border-radius:var(--ibiz-border-radius-small)}.ibiz-date-picker .ivu-input:hover{border-color:var(--ibiz-color-primary)}.ibiz-date-picker .ivu-input:focus{border-color:var(--ibiz-color-primary)}.ibiz-date-picker input{font-size:var(--ibiz-date-picker-font-size);color:var(--ibiz-date-picker-text-color);border-color:var(--ibiz-date-picker-border-color)}.ibiz-date-picker input::placeholder{color:var(--ibiz-date-picker-placeholder-color)}.ibiz-date-picker input[disabled]{color:var(--ibiz-date-picker-disabled-text-color);background-color:var(--ibiz-date-picker-disabled-bg-color);border-color:var(--ibiz-date-picker-disabled-border-color)}.ibiz-date-picker--readonly{color:var(--ibiz-text-color-readonly)}.ivu-date-picker-transfer .ivu-btn-default:hover{color:var(--ibiz-color-primary);border-color:var(--ibiz-color-priamry)}.ivu-date-picker-transfer .ivu-btn-text:hover{color:var(--ibiz-color-primary)}.ivu-date-picker-transfer .ivu-btn-primary{background-color:var(--ibiz-color-primary);border-color:var(--ibiz-color-primary)}.ibiz-download-safe-file a{text-decoration:underline}.ibiz-form-mdctrl-form-style2{width:100%}.ibiz-form-mdctrl-form-style2__header{display:flex;width:100%;border:1px solid #cccccc;background-color:#f9f9f9}.ibiz-form-mdctrl-form-style2__header-item{display:flex;gap:var(--ibiz-padding);align-items:center;padding:calc(var(--ibiz-padding) / 2) var(--ibiz-padding);border-right:1px solid #cccccc;cursor:pointer}.ibiz-form-mdctrl-form-style2__header-item--delete{display:flex;align-items:center}.ibiz-form-mdctrl-form-style2__header-item--delete:hover{color:var(--ibiz-color-primary)}.ibiz-form-mdctrl-form-style2__header-item.is-actived{background-color:#fff}.ibiz-form-mdctrl-form-style2__add{gap:4px}.ibiz-form-mdctrl-form-style2__add:hover{color:var(--ibiz-color-primary)}.ibiz-form-mdctrl-form-style2__content{display:none}.ibiz-form-mdctrl-form-style2__content.is-actived{display:block}.ibiz-form-mdctrl-form-style2 .ibiz-form .ibiz-form-page-item .ibiz-form-col__grouppanel .ibiz-form-group{margin:0;width:100%;height:100%;padding:0}.ibiz-mpicker{--ibiz-mpicker-font-size: var(--ibiz-font-size-base);--ibiz-mpicker-text-color: var(--ibiz-text-color);--ibiz-mpicker-border-color: var(--ibiz-border-color);--ibiz-mpicker-placeholder-color: var(--ibiz-text-color-placeholder);--ibiz-mpicker-default-height: var(--ibiz-common-editor-size);--ibiz-mpicker-default-input-height: var(--ibiz-common-editor-size-small);--ibiz-mpicker-border-radius: var(--ibiz-border-radius-small);--ibiz-mpicker-hover-color: var(--ibiz-color-primary);--ibiz-mpicker-tag-height: calc(var(--ibiz-common-editor-size-small) - 4px);display:flex;width:100%}.ibiz-mpicker input::placeholder{color:var(--ibiz-mpicker-placeholder-color)}.ibiz-mpicker .ivu-select-multiple .ivu-select-input{height:var(--ibiz-mpicker-default-input-height);line-height:var(--ibiz-mpicker-default-input-height)}.ibiz-mpicker .ivu-select{width:100%}.ibiz-mpicker .ivu-select .ivu-select-selection{min-height:var(--ibiz-mpicker-default-height);padding:0 var(--ibiz-padding-extra-tight);border-color:var(--ibiz-mpicker-border-color);border-radius:var(--ibiz-mpicker-border-radius)}.ibiz-mpicker .ivu-select .ivu-select-selection>div{display:flex;flex-wrap:wrap}.ibiz-mpicker .ivu-select .ivu-select-selection:hover,.ibiz-mpicker .ivu-select .ivu-select-selection-focused{border-color:var(--ibiz-color-primary)}.ibiz-mpicker .ivu-select .ivu-tag:hover{opacity:1}.ibiz-mpicker .ivu-select .ivu-tag.ivu-tag-checked{height:var(--ibiz-mpicker-tag-height);line-height:var(--ibiz-mpicker-tag-height)}.ibiz-mpicker .ivu-select .ivu-tag.ivu-tag-checked .ivu-tag-text{font-size:var(--ibiz-mpicker-font-size);color:var(--ibiz-mpicker-text-color)}.ibiz-mpicker .ivu-select .ivu-tag.ivu-tag-checked .ivu-tag-text:hover{color:var(--ibiz-mpicker-hover-color)}.ibiz-mpicker .ivu-select .ivu-tag.ivu-tag-checked .ivu-icon{top:calc(var(--ibiz-margin-tight) - 1px)}.ibiz-mpicker .ivu-select-arrow,.ibiz-mpicker .ivu-select-selection-focused .ivu-select-arrow,.ibiz-mpicker .ivu-select-selection:hover .ivu-select-arrow{display:none}.ibiz-mpicker__buns-position{position:relative;display:inline-block}.ibiz-mpicker__btns{position:absolute;right:0;height:var(--ibiz-mpicker-height);display:flex}.ibiz-mpicker__btns .ivu-btn{border:none}.ibiz-mpicker__btns .ivu-btn-text:hover{background-color:unset;border-color:unset}.ibiz-mpicker__btns .ivu-btn-text:focus{box-shadow:unset}.ibiz-mpicker--disabled .ivu-select-input[disabled]{color:var(--ibiz-text-color-disabled)}.ibiz-mpicker--readonly{color:var(--ibiz-text-color-readonly)} @charset "UTF-8";.ibiz-form-data-comparison{height:calc(100% - 20px);overflow:auto}.ibiz-form-data-comparison *{animation:none!important;transition:none!important;transform:none!important;will-change:unset!important}.ibiz-form-data-comparison__content{display:flex}.ibiz-form-data-comparison__top-hidesame-content{display:flex;place-content:center space-between;align-items:center;height:50px;margin-bottom:10px}.ibiz-form-data-comparison__top-content{display:flex;width:100%;text-align:center;background-color:#f2f2f2;border-left:1px solid lightgray}.ibiz-form-data-comparison__top-content--attr{width:200px;border:1px solid lightgray;padding:5px 10px}.ibiz-form-data-comparison__top-content--left{flex:1;width:calc(100% - 100px);border:1px solid lightgray;padding:5px 10px}.ibiz-form-data-comparison__top-content--right{flex:1;border:1px solid lightgray;width:calc(100% - 100px);padding:5px 10px}.ibiz-form-data-comparison__top-hidesame-content-right{display:flex;flex-flow:row nowrap;place-content:center center;align-items:center}.ibiz-form-data-comparison__top-hidesame-content-right-item{display:flex;flex-direction:row;place-content:center space-around;align-items:center;width:60px;height:30px}.ibiz-form-data-comparison__top-hidesame-content-right-item-add{width:16px;height:16px;background:#d5f3e0}.ibiz-form-data-comparison__top-hidesame-content-right-item-change{width:16px;height:16px;background:#fceecd}.ibiz-form-data-comparison__top-hidesame-content-right-item-delete{width:16px;height:16px;background:#ffd5d5}.ibiz-form-data-comparison__form-grid-item{--ibiz-text-color-readonly: black;display:flex;width:100%}.ibiz-form-data-comparison__form-grid-item--name{border:1px solid lightgray;padding:5px 10px;width:200px;text-align:center}.ibiz-form-data-comparison__form-grid-item--left,.ibiz-form-data-comparison__form-grid-item--right{border:1px solid lightgray;padding:5px 10px;flex:1;text-align:center}.ibiz-form-data-comparison__form-grid-item.is-add .ibiz-form-data-comparison__form-grid-item--left,.ibiz-form-data-comparison__form-grid-item.is-add .ibiz-form-data-comparison__form-grid-item--right{background-color:#d5f3e0}.ibiz-form-data-comparison__form-grid-item.is-update .ibiz-form-data-comparison__form-grid-item--left,.ibiz-form-data-comparison__form-grid-item.is-update .ibiz-form-data-comparison__form-grid-item--right{background-color:#fceecd}.ibiz-form-data-comparison__form-grid-item.is-delete .ibiz-form-data-comparison__form-grid-item--left,.ibiz-form-data-comparison__form-grid-item.is-delete .ibiz-form-data-comparison__form-grid-item--right{background-color:#ffd5d5}.ibiz-form-data-comparison__form-page{width:100%}.ibiz-form-data-comparison__druipart{display:flex;max-height:360px}.ibiz-form-data-comparison__druipart--caption{width:200px;border:1px solid lightgray;display:flex;align-items:center;justify-content:center}.ibiz-form-data-comparison__druipart--left{border:1px solid lightgray;padding:16px;flex:1;width:calc(50% - 100px)}.ibiz-form-data-comparison__druipart--right{border:1px solid lightgray;flex:1;padding:16px;width:calc(50% - 100px)}.ibiz-form-data-comparison__druipart.is-add .ibiz-form-data-comparison__druipart--left,.ibiz-form-data-comparison__druipart.is-add .ibiz-form-data-comparison__druipart--right{background-color:#d5f3e0}.ibiz-form-data-comparison__druipart.is-update .ibiz-form-data-comparison__druipart--left,.ibiz-form-data-comparison__druipart.is-update .ibiz-form-data-comparison__druipart--right{background-color:#fceecd}.ibiz-form-data-comparison__druipart.is-delete .ibiz-form-data-comparison__druipart--left,.ibiz-form-data-comparison__druipart.is-delete .ibiz-form-data-comparison__druipart--right{background-color:#ffd5d5}.ibiz-form-data-comparison-group{width:100%}.ibiz-form-data-comparison-group__header{width:100%;border-left:1px solid lightgray;display:flex}.ibiz-form-data-comparison-group__header--name{width:200px;border:1px solid lightgray;max-width:200px;text-align:center;position:relative;font-size:14px;padding:4px}.ibiz-form-data-comparison-group__header div{flex:1;text-align:center;border:1px solid lightgray}.ibiz-form-data-comparison-group__header--icon{position:absolute;font-size:24px;left:4px;cursor:pointer}.ibiz-form-data-comparison-group__header--name-text{flex:1}.ibiz-form-data-comparison-group__header.is-hide-caption{display:none}.ibiz-form-data-comparison-group__content{border-left:1px solid lightgray}.ibiz-form-data-comparison-group__content.is-collapse{display:none}.ibiz-data-import.is-custom .ibiz-data-import__date{margin-bottom:16px}.ibiz-data-import.is-custom .ibiz-data-import__date span{margin-right:8px}.ibiz-data-import.is-custom .ibiz-data-import__date:before{content:"*";display:inline-block;margin-right:4px;line-height:1;font-family:SimSun;color:var(--ibiz-color-error)}.ibiz-date-picker{--ibiz-date-picker-font-size: var(--ibiz-font-size-base);--ibiz-date-picker-text-color: var(--ibiz-text-color);--ibiz-date-picker-border-color: var(--ibiz-border-color);--ibiz-date-picker-placeholder-color: var(--ibiz-text-color-placeholder);--ibiz-date-picker-disabled-text-color: var(--ibiz-disabled-text-color);--ibiz-date-picker-disabled-bg-color: var(--ibiz-disabled-bg-color);--ibiz-date-picker-disabled-border-color: var(--ibiz-disabled-border-color);--ibiz-date-picker-default-height: var(--ibiz-common-editor-size)}.ibiz-date-picker .ivu-date-picker{width:100%}.ibiz-date-picker .ivu-input{height:var(--ibiz-date-picker-default-height);border-radius:var(--ibiz-border-radius-small)}.ibiz-date-picker .ivu-input:hover{border-color:var(--ibiz-color-primary)}.ibiz-date-picker .ivu-input:focus{border-color:var(--ibiz-color-primary)}.ibiz-date-picker input{font-size:var(--ibiz-date-picker-font-size);color:var(--ibiz-date-picker-text-color);border-color:var(--ibiz-date-picker-border-color)}.ibiz-date-picker input::placeholder{color:var(--ibiz-date-picker-placeholder-color)}.ibiz-date-picker input[disabled]{color:var(--ibiz-date-picker-disabled-text-color);background-color:var(--ibiz-date-picker-disabled-bg-color);border-color:var(--ibiz-date-picker-disabled-border-color)}.ibiz-date-picker--readonly{color:var(--ibiz-text-color-readonly)}.ibiz-date-picker--disabled .ivu-input:hover{border-color:#ccc}.ivu-date-picker-transfer .ivu-btn-default:hover{color:var(--ibiz-color-primary);border-color:var(--ibiz-color-priamry)}.ivu-date-picker-transfer .ivu-btn-text:hover{color:var(--ibiz-color-primary)}.ivu-date-picker-transfer .ivu-btn-primary{background-color:var(--ibiz-color-primary);border-color:var(--ibiz-color-primary)}.ivu-date-picker-transfer .ivu-date-picker-cells-cell-selected em{background-color:var(--ibiz-color-primary)}.ivu-date-picker-transfer .ivu-date-picker-cells-cell:hover em{background-color:#f5f8ff}.ivu-date-picker-transfer .ivu-date-picker-cells-cell.ivu-date-picker-cells-cell-selected:hover em{background-color:var(--ibiz-color-primary)}.ivu-date-picker-transfer .ivu-date-picker-cells-cell-today em:after{background-color:var(--ibiz-color-primary)}.ivu-date-picker-transfer .ivu-picker-panel-icon-btn:hover{color:var(--ibiz-color-primary)}.ibiz-download-safe-file a{text-decoration:underline}.ibiz-form-mdctrl-form-style2{width:100%}.ibiz-form-mdctrl-form-style2__header{display:flex;width:100%;border:1px solid #cccccc;background-color:#f9f9f9}.ibiz-form-mdctrl-form-style2__header-item{display:flex;gap:var(--ibiz-padding);align-items:center;padding:calc(var(--ibiz-padding) / 2) var(--ibiz-padding);border-right:1px solid #cccccc;cursor:pointer}.ibiz-form-mdctrl-form-style2__header-item--delete{display:flex;align-items:center}.ibiz-form-mdctrl-form-style2__header-item--delete:hover{color:var(--ibiz-color-primary)}.ibiz-form-mdctrl-form-style2__header-item.is-actived{background-color:#fff}.ibiz-form-mdctrl-form-style2__add{gap:4px}.ibiz-form-mdctrl-form-style2__add:hover{color:var(--ibiz-color-primary)}.ibiz-form-mdctrl-form-style2__content{display:none}.ibiz-form-mdctrl-form-style2__content.is-actived{display:block}.ibiz-form-mdctrl-form-style2 .ibiz-form .ibiz-form-page-item .ibiz-form-col__grouppanel .ibiz-form-group{margin:0;width:100%;height:100%;padding:0}.ibiz-mpicker{--ibiz-mpicker-font-size: var(--ibiz-font-size-base);--ibiz-mpicker-text-color: var(--ibiz-text-color);--ibiz-mpicker-border-color: var(--ibiz-border-color);--ibiz-mpicker-placeholder-color: var(--ibiz-text-color-placeholder);--ibiz-mpicker-default-height: var(--ibiz-common-editor-size);--ibiz-mpicker-default-input-height: var(--ibiz-common-editor-size-small);--ibiz-mpicker-border-radius: var(--ibiz-border-radius-small);--ibiz-mpicker-hover-color: var(--ibiz-color-primary);--ibiz-mpicker-tag-height: calc(var(--ibiz-common-editor-size-small) - 4px);display:flex;width:100%}.ibiz-mpicker input::placeholder{color:var(--ibiz-mpicker-placeholder-color)}.ibiz-mpicker .ivu-select-multiple .ivu-select-input{height:var(--ibiz-mpicker-default-input-height);line-height:var(--ibiz-mpicker-default-input-height)}.ibiz-mpicker .ivu-select{width:100%}.ibiz-mpicker .ivu-select .ivu-select-selection{min-height:var(--ibiz-mpicker-default-height);padding:0 var(--ibiz-padding-extra-tight);border-color:var(--ibiz-mpicker-border-color);border-radius:var(--ibiz-mpicker-border-radius)}.ibiz-mpicker .ivu-select .ivu-select-selection>div{display:flex;flex-wrap:wrap}.ibiz-mpicker .ivu-select .ivu-select-selection:hover,.ibiz-mpicker .ivu-select .ivu-select-selection-focused{border-color:var(--ibiz-color-primary)}.ibiz-mpicker .ivu-select .ivu-tag:hover{opacity:1}.ibiz-mpicker .ivu-select .ivu-tag.ivu-tag-checked{height:var(--ibiz-mpicker-tag-height);line-height:var(--ibiz-mpicker-tag-height)}.ibiz-mpicker .ivu-select .ivu-tag.ivu-tag-checked .ivu-tag-text{font-size:var(--ibiz-mpicker-font-size);color:var(--ibiz-mpicker-text-color)}.ibiz-mpicker .ivu-select .ivu-tag.ivu-tag-checked .ivu-tag-text:hover{color:var(--ibiz-mpicker-hover-color)}.ibiz-mpicker .ivu-select .ivu-tag.ivu-tag-checked .ivu-icon{top:calc(var(--ibiz-margin-tight) - 1px)}.ibiz-mpicker .ivu-select-arrow,.ibiz-mpicker .ivu-select-selection-focused .ivu-select-arrow,.ibiz-mpicker .ivu-select-selection:hover .ivu-select-arrow{display:none}.ibiz-mpicker__buns-position{position:relative;display:inline-block}.ibiz-mpicker__btns{position:absolute;right:0;height:var(--ibiz-mpicker-height);display:flex}.ibiz-mpicker__btns .ivu-btn{border:none}.ibiz-mpicker__btns .ivu-btn-text:hover{background-color:unset;border-color:unset}.ibiz-mpicker__btns .ivu-btn-text:focus{box-shadow:unset}.ibiz-mpicker--disabled .ivu-select-input[disabled]{color:var(--ibiz-text-color-disabled)}.ibiz-mpicker--disabled .ivu-select .ivu-select-selection:hover{border-color:#ccc}.ibiz-mpicker--disabled .ivu-select .ivu-tag.ivu-tag-checked .ivu-tag-text{font-size:var(--ibiz-mpicker-font-size);color:var(--ibiz-mpicker-text-color)}.ibiz-mpicker--disabled .ivu-select .ivu-tag.ivu-tag-checked .ivu-tag-text:hover{color:var(--ibiz-mpicker-text-color)}.ibiz-mpicker--readonly{color:var(--ibiz-text-color-readonly)}.ibiz-dropdown{--ibiz-dropdown-font-size: var(--ibiz-font-size-base);--ibiz-dropdown-text-color: var(--ibiz-text-color);--ibiz-dropdown-border-color: var(--ibiz-border-color);--ibiz-dropdown-placeholder-color: var(--ibiz-text-color-placeholder);--ibiz-dropdown-disabled-text-color: var(--ibiz-disabled-text-color);--ibiz-dropdown-hover-color: var(--ibiz-color-primary);--ibiz-dropdown-default-height: var(--ibiz-common-editor-size);--ibiz-dropdown-default-input-height: 30px;--ibiz-dropdown-disabled-bg-color: var(--ibiz-disabled-bg-color);--ibiz-dropdown-border-radius: var(--ibiz-border-radius-small)}.ibiz-dropdown .ivu-select-selection{border:1px solid var(--ibiz-dropdown-border-color);border-radius:var(--ibiz-dropdown-border-radius)}.ibiz-dropdown .ivu-select-selection .ivu-tag:hover{opacity:1}.ibiz-dropdown .ivu-select-selection .ivu-tag.ivu-tag-checked{height:var(--ibiz-dropdown-default-input-height);line-height:var(--ibiz-dropdown-default-input-height)}.ibiz-dropdown .ivu-select-selection .ivu-tag.ivu-tag-checked .ivu-tag-text{font-size:var(--ibiz-dropdown-font-size);color:var(--ibiz-dropdown-text-color)}.ibiz-dropdown .ivu-select-selection .ivu-tag.ivu-tag-checked .ivu-tag-text:hover{color:var(--ibiz-dropdown-hover-color)}.ibiz-dropdown .ivu-select-selection .ivu-tag.ivu-tag-checked .ivu-icon{top:var(--ibiz-padding-tight)}.ibiz-dropdown .ivu-select-selection:hover{border-color:var(--ibiz-dropdown-hover-color)}.ibiz-dropdown .ivu-select-selection.ivu-select-selection-focused{border:1px solid var(--ibiz-dropdown-hover-color)}.ibiz-dropdown .ivu-select-disabled .ivu-select-selection{background-color:var(--ibiz-dropdown-disabled-bg-color)}.ibiz-dropdown .ivu-select-input[disabled]{color:var(--ibiz-dropdown-text-color)}.ibiz-dropdown .ivu-select-selection .ivu-select-selected-value{font-size:var(--ibiz-dropdown-font-size);color:var(--ibiz-dropdown-text-color);border-color:var(--ibiz-dropdown-border-color)}.ibiz-dropdown .ivu-select-selection .ivu-select-placeholder{font-size:var(--ibiz-dropdown-font-size);color:var(--ibiz-dropdown-placeholder-color);border-color:var(--ibiz-dropdown-border-color)}.ibiz-dropdown .ivu-select-multiple.ivu-select-default .ivu-select-selection{min-height:var(--ibiz-dropdown-default-height)}.ibiz-dropdown .ivu-select-multiple.ivu-select-default .ivu-select-selection .ivu-select-input{height:var(--ibiz-dropdown-default-input-height);line-height:var(--ibiz-dropdown-default-input-height)}.ibiz-dropdown .ivu-select-single.ivu-select-default .ivu-select-selection{height:var(--ibiz-dropdown-default-height)}.ibiz-dropdown .ivu-select-single.ivu-select-default .ivu-select-selection .ivu-select-input{height:var(--ibiz-dropdown-default-height);line-height:var(--ibiz-dropdown-default-height);color:var(--ibiz-dropdown-text-color)}.ibiz-dropdown .ivu-select-input::placeholder{color:var(--ibiz-dropdown-placeholder-color)}.ibiz-dropdown--readonly{color:var(--ibiz-text-color-readonly)}.ibiz-dropdown--disabled{--ibiz-dropdown-text-color: var(--ibiz-text-color-disabled)}.ibiz-dropdown--disabled .ivu-select-selection:hover{border-color:#ccc}.ibiz-dropdown--width_100{width:100px}
...@@ -25,13 +25,13 @@ ...@@ -25,13 +25,13 @@
}, },
"dependencies": { "dependencies": {
"@ibiz-template/command": "^0.0.1-syui.1", "@ibiz-template/command": "^0.0.1-syui.1",
"@ibiz-template/controller": "^0.0.1-syui.3", "@ibiz-template/controller": "0.0.1-syui.19",
"@ibiz-template/core": "^0.0.1-syui.3", "@ibiz-template/core": "0.0.1-syui.18",
"@ibiz-template/model": "^0.0.1-syui.3", "@ibiz-template/model": "0.0.1-syui.19",
"@ibiz-template/runtime": "^0.0.1-syui.3", "@ibiz-template/runtime": "0.0.1-syui.19",
"@ibiz-template/service": "^0.0.1-syui.3", "@ibiz-template/service": "0.0.1-syui.19",
"@ibiz-template/theme": "^0.0.1-syui.4", "@ibiz-template/theme": "0.0.1-syui.19",
"@ibiz-template/vue-util": "^0.0.1-syui.3", "@ibiz-template/vue-util": "0.0.1-syui.19",
"async-validator": "^4.2.5", "async-validator": "^4.2.5",
"axios": "^1.1.3", "axios": "^1.1.3",
"core-js": "3", "core-js": "3",
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册