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

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

上级 df4a178c
var de = 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 P = (s, a, e) => (ue(s, typeof a != "symbol" ? a + "" : a, e), e);
var ue = (s, a, t) => a in s ? de(s, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[a] = t;
var C = (s, a, t) => (ue(s, typeof a != "symbol" ? a + "" : a, t), t);
import { EditFormModel as me, FormMDCtrlModel as pe, DefectModelError as he, AppEntityModel as H } 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 { defineComponent as M, getCurrentInstance as W, ref as A, watch as V, h as r, onMounted as De, computed as j } from "vue";
import { createUUID as te } from "qx-util";
import { ViewMode as ae, PluginStaticResource as Ce, OpenAppViewCommand as q, UIActionHandler as Ee, FrontUIActionHandler as re } 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 { ControlVO as ke, calcResPath as K } from "@ibiz-template/service";
import { useNamespace as R, useControlController as fe, usePropsWatch as ve, getDatePickerProps as ye, getEditorEmits as G, useController as ge, getDataPickerProps as se, useViewController as be, getInputNumberProps as De, getGridInputNumberProps as we, getGridEditorEmits as Ce, useGridCellEditor as Ee } from "@ibiz-template/vue-util";
import { defineComponent as M, getCurrentInstance as W, ref as E, watch as T, h as o, onMounted as Pe, computed as _ } from "vue";
import { createUUID as te, isNilOrEmpty as Ie } from "qx-util";
import { ViewMode as ae, PluginStaticResource as Ne, OpenAppViewCommand as q, UIActionHandler as Ae, FrontUIActionHandler as re } from "@ibiz-template/runtime";
import { EditFormController as Fe, FormMDCtrlController as xe, FormDRUIPartController as Se, EditViewController as ke, TextBoxEditorController as Oe, DatePickerEditorController as Te, UploadEditorController as Me, PickerEditorController as oe } from "@ibiz-template/controller";
import { ControlVO as Re, calcResPath as K } from "@ibiz-template/service";
import $ from "dayjs";
import { RuntimeError as xe, StringUtil as ne } from "@ibiz-template/core";
class Ne extends be {
import { RuntimeError as Ue, StringUtil as ne } from "@ibiz-template/core";
class Le extends Fe {
constructor() {
super(...arguments);
/**
......@@ -20,7 +20,7 @@ class Ne extends be {
* @date 2024-04-26 17:04:49
* @type {IData}
*/
P(this, "baseResData", []);
C(this, "baseResData", []);
/**
* 对比数据
*
......@@ -28,7 +28,7 @@ class Ne extends be {
* @date 2024-04-26 17:04:49
* @type {IData}
*/
P(this, "compareResData", []);
C(this, "compareResData", []);
/**
* 表单旧数据
*
......@@ -38,7 +38,7 @@ class Ne extends be {
* @type {IData}
* @memberof FormController
*/
P(this, "oldData", new ke());
C(this, "oldData", new Re());
/**
* version数据
*
......@@ -46,7 +46,7 @@ class Ne extends be {
* @date 2024-04-26 16:04:37
* @type {IData[]}
*/
P(this, "versionData", []);
C(this, "versionData", []);
/**
* 对比数据
*
......@@ -54,7 +54,7 @@ class Ne extends be {
* @date 2024-04-26 16:04:37
* @type {IData[]}
*/
P(this, "comparisonArr", {});
C(this, "comparisonArr", {});
/**
* 基础表格数据
*
......@@ -62,7 +62,7 @@ class Ne extends be {
* @date 2024-05-06 11:05:57
* @type {IData[]}
*/
P(this, "gridData", []);
C(this, "gridData", []);
/**
* 展示完全数据
*
......@@ -70,7 +70,7 @@ class Ne extends be {
* @date 2024-05-06 11:05:04
* @type {IData[]}
*/
P(this, "AllGridData", []);
C(this, "AllGridData", []);
/**
* 去除相同数据
*
......@@ -78,7 +78,7 @@ class Ne extends be {
* @date 2024-05-06 11:05:15
* @type {IData[]}
*/
P(this, "removeSameGridData", []);
C(this, "removeSameGridData", []);
/**
* 关系界面数据
*
......@@ -86,7 +86,7 @@ class Ne extends be {
* @date 2024-04-30 10:04:33
* @type {IData}
*/
P(this, "AlldruipartData", /* @__PURE__ */ new Map());
C(this, "AlldruipartData", /* @__PURE__ */ new Map());
/**
* 关系界面数据长度
*
......@@ -94,7 +94,7 @@ class Ne extends be {
* @date 2024-05-06 11:05:56
* @type {number}
*/
P(this, "druipartDataSize", 0);
C(this, "druipartDataSize", 0);
/**
* 关系界面实际数据
*
......@@ -102,7 +102,7 @@ class Ne extends be {
* @date 2024-05-06 11:05:13
* @type {IData}
*/
P(this, "newDruipartData", {});
C(this, "newDruipartData", {});
}
/**
* 加载数据
......@@ -112,18 +112,18 @@ class Ne extends be {
*/
async loadGridData() {
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(), {
[t.toLowerCase()]: this.params.base_version
}), u = Object.assign({}, this.context.clone(), {
const t = this.model.source.M.getPSControlParam.ctrlParams, { BASEENTITY: e, COMPAREENTITY: i } = t, r = await ibiz.entityService.getService(e), l = await ibiz.entityService.getService(i), v = Object.assign({}, this.context.clone(), {
[e.toLowerCase()]: this.params.base_version
}), d = Object.assign({}, this.context.clone(), {
[i.toLowerCase()]: this.params.compare_version
}), m = await n.exec("Get", g, this.params), w = await c.exec(
}), m = await r.exec("Get", v, this.params), b = await l.exec(
"Get",
u,
d,
this.params
);
return this.isLoaded = !0, {
baseData: m.data.data,
compareData: w.data.data
compareData: b.data.data
};
}
/**
......@@ -133,8 +133,8 @@ class Ne extends be {
* @return {*}
* @memberof FormDataComparisonController
*/
isFalseyButNotEmpty(e) {
return e == null || typeof e == "string" && e === "" || Array.isArray(e) && e.length === 0 || typeof e == "object" && Object.keys(e).length === 0;
isFalseyButNotEmpty(t) {
return t == null || typeof t == "string" && t === "" || Array.isArray(t) && t.length === 0 || typeof t == "object" && Object.keys(t).length === 0;
}
/**
* 比较两个值
......@@ -144,11 +144,11 @@ class Ne extends be {
* @return {*}
* @memberof FormDataComparisonController
*/
compareObjectValues(e, t) {
return JSON.stringify(e) !== JSON.stringify(t);
compareObjectValues(t, e) {
return JSON.stringify(t) !== JSON.stringify(e);
}
}
const Oe = M({
const Ve = M({
name: "IBizFormDataComparison",
props: {
modelData: {
......@@ -169,279 +169,279 @@ const Oe = M({
}
},
setup(s) {
const a = B("form-data-comparison"), {
proxy: e
} = W(), t = fe(e, () => {
const o = new Ne(s.modelData, s.context, s.params);
return ve(e, "enableAutoSave", o.setEnableAutoSave.bind(o)), o;
}), 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) => {
const d = [];
if (d.push(o), o && o.children) {
const b = [];
o.children.forEach((S) => {
const x = h(S);
b.push(...x);
}), d.push(...b);
const a = R("form-data-comparison"), {
proxy: t
} = W(), e = fe(t, () => {
const n = new Le(s.modelData, s.context, s.params);
return ve(t, "enableAutoSave", n.setEnableAutoSave.bind(n)), n;
}), i = E(!0), r = E(!1), l = E({}), v = E({}), d = E([]), m = [], b = E([]), c = E([]), y = E([]), f = /* @__PURE__ */ new Map(), D = E(0), p = (n) => {
const u = [];
if (u.push(n), n && n.children) {
const I = [];
n.children.forEach((F) => {
const S = p(F);
I.push(...S);
}), u.push(...I);
}
return d;
}, p = h(s.modelData);
m.push(...p);
const y = (o) => {
const d = t.details[o.source.name], b = r("not-supported-editor", {
return u;
}, h = p(s.modelData);
m.push(...h);
const g = (n) => {
const u = e.details[n.source.name], I = o("not-supported-editor", {
attrs: {
modelData: o.editor
modelData: n.editor
}
});
return r("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))]
}, [r("div", {
return o("div", {
class: [a.e("form-grid-item"), a.is("add", b.value.includes(n.source.name)), a.is("update", y.value.includes(n.source.name)), a.is("delete", c.value.includes(n.source.name))]
}, [o("div", {
class: a.em("form-grid-item", "name")
}, [o.source.caption]), r("div", {
}, [n.source.caption]), o("div", {
class: a.em("form-grid-item", "left")
}, [d.editorProvider ? r(d.editorProvider.formEditor, {
}, [u.editorProvider ? o(u.editorProvider.formEditor, {
props: {
value: g.value[o.source.name],
data: d.data,
controller: d.editor,
disabled: d.disabled,
value: v.value[n.source.name],
data: u.data,
controller: u.editor,
disabled: u.disabled,
readonly: !0
}
}) : b]), r("div", {
}) : I]), o("div", {
class: a.em("form-grid-item", "right")
}, [d.editorProvider ? r(d.editorProvider.formEditor, {
}, [u.editorProvider ? o(u.editorProvider.formEditor, {
props: {
value: c.value[o.source.name],
data: d.data,
controller: d.editor,
disabled: d.disabled,
value: l.value[n.source.name],
data: u.data,
controller: u.editor,
disabled: u.disabled,
readonly: !0
}
}) : b])]);
}, F = (o, d) => {
f.set(o.source.id, d), d.evt.on("mounted", () => {
i.value && t.startLoading(), C.value += 1, d.call.refresh();
}), d.evt.on("refreshed", () => {
C.value -= 1, setTimeout(() => {
i.value && t.endLoading();
}) : I])]);
}, N = (n, u) => {
f.set(n.source.id, u), u.evt.on("mounted", () => {
i.value && e.startLoading(), D.value += 1, u.call.refresh();
}), u.evt.on("refreshed", () => {
D.value -= 1, setTimeout(() => {
i.value && e.endLoading();
}, 500);
});
}, I = (o) => {
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 = {
}, A = (n) => {
const u = m.find((B) => B.id === `${n.source.id}_srfcopy`), I = n.embedView.source.modelPath, F = u == null ? void 0 : u.embedView.source.modelPath, S = e.context.clone(), k = {
base_version: s.params.base_version
}, T = t.context.clone();
Object.assign(T, {
}, U = e.context.clone();
Object.assign(U, {
gysrlzy_info: s.params.compare_version,
compare_version: s.params.compare_version
});
const _ = {
const j = {
compare_version: s.params.compare_version
}, R = c.value[o.source.userTag], U = g.value[d == null ? void 0 : d.source.userTag];
}, L = l.value[n.source.userTag], V = v.value[u == null ? void 0 : u.source.userTag];
let J = !1, z = !1, X = !1;
if (o.source.userTag2) {
const L = JSON.parse(o.source.userTag2), {
if (n.source.userTag2) {
const B = JSON.parse(n.source.userTag2), {
comparekey: Z,
comparelist: ce
} = 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) => {
const ee = U.find((Y) => Q[Z] === Y[Z]);
} = B;
L && V && Array.isArray(L) && Array.isArray(V) && (L.length === 0 && V.length !== 0 ? X = !0 : L.length !== 0 && V.length === 0 ? J = !0 : L.length !== 0 && V.length !== 0 && (L.length !== V.length ? z = !0 : L.some((Q) => {
const ee = V.find((Y) => Q[Z] === Y[Z]);
return ee ? ce.some((Y) => Q[Y] !== ee[Y] ? (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)]
}, [r("div", {
}, [o("div", {
class: a.em("druipart", "caption")
}, [o.source.caption]), r("div", {
}, [n.source.caption]), o("div", {
class: a.em("druipart", "left")
}, [S && r("ViewShell", {
}, [F && o("ViewShell", {
attrs: {
context: T,
params: _,
context: U,
params: j,
modal: {
mode: ae.EMBED
},
modelPath: S,
modelPath: F,
noLoadDefault: !0,
name: d == null ? void 0 : d.source.id
name: u == null ? void 0 : u.source.id
},
key: te(),
on: {
neuronInit: (L) => F(d, L)
neuronInit: (B) => N(u, B)
}
})]), r("div", {
})]), o("div", {
class: a.em("druipart", "right")
}, [b && r("ViewShell", {
}, [I && o("ViewShell", {
attrs: {
context: x,
params: N,
context: S,
params: k,
modal: {
mode: ae.EMBED
},
modelPath: b,
modelPath: I,
noLoadDefault: !0,
name: o.source.id
name: n.source.id
},
key: te(),
on: {
neuronInit: (L) => F(o, L)
neuronInit: (B) => N(n, B)
}
})])]);
}, D = (o) => {
const d = {
modelData: o,
controller: t.details[o.source.name]
}, b = t.providers[o.source.name], S = r(b.component, {
}, w = (n) => {
const u = {
modelData: n,
controller: e.details[n.source.name]
}, I = e.providers[n.source.name], F = o(I.component, {
props: {
...d
...u
},
key: o.id
}), x = r(b.component, {
key: n.id
}), S = o(I.component, {
props: {
...d
...u
},
key: `compare_${o.id}`
key: `compare_${n.id}`
});
return r("div", {
return o("div", {
class: a.e("mdctrl")
}, [r("div", {
}, [o("div", {
class: a.em("mdctrl", "caption")
}, [o.source.caption]), r("div", {
}, [n.source.caption]), o("div", {
class: a.em("mdctrl", "left")
}, [S]), r("div", {
}, [F]), o("div", {
class: a.em("mdctrl", "right")
}, [x])]);
}, E = (o) => {
}, [S])]);
}, P = (n) => {
i.value = !1;
const d = u.value.findIndex((b) => b === o.source.name);
d > -1 ? u.value.splice(d, 1) : u.value.push(o.source.name);
}, k = (o) => {
if (!o.source.hidden) {
if (o.source.detailType === "FORMPAGE")
return r("div", {
const u = d.value.findIndex((I) => I === n.source.name);
u > -1 ? d.value.splice(u, 1) : d.value.push(n.source.name);
}, x = (n) => {
if (!n.source.hidden) {
if (n.source.detailType === "FORMPAGE")
return o("div", {
class: a.e("form-page")
}, [o.children.map((d) => k(d))]);
if (o.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);
return n.value && !d && !b && !S ? null : y(o);
}, [n.children.map((u) => x(u))]);
if (n.source.detailType === "FORMITEM") {
const u = b.value.includes(n.source.name), I = c.value.includes(n.source.name), F = y.value.includes(n.source.name);
return r.value && !u && !I && !F ? null : g(n);
}
if (o.source.detailType === "GROUPPANEL") {
const d = u.value.includes(o.source.name);
return r("div", {
if (n.source.detailType === "GROUPPANEL") {
const u = d.value.includes(n.source.name);
return o("div", {
class: a.b("group")
}, [r("div", {
class: [a.be("group", "header"), a.is("hide-caption", !o.source.showCaption)]
}, [r("div", {
}, [o("div", {
class: [a.be("group", "header"), a.is("hide-caption", !n.source.showCaption)]
}, [o("div", {
class: a.bem("group", "header", "name")
}, [d ? r("i-icon", {
}, [u ? o("i-icon", {
class: a.bem("group", "header", "icon"),
attrs: {
type: "ios-arrow-forward",
title: "展开"
},
on: {
click: () => E(o)
click: () => P(n)
}
}) : r("i-icon", {
}) : o("i-icon", {
class: a.bem("group", "header", "icon"),
attrs: {
type: "ios-arrow-down",
title: "收缩"
},
on: {
click: () => E(o)
click: () => P(n)
}
}), r("span", {
}), o("span", {
class: a.bem("group", "header", "name-text")
}, [o.source.caption || o.source.title])]), r("div", ["---"]), r("div", ["---"])]), r("div", {
class: [a.be("group", "content"), a.is("collapse", d)]
}, [o.children.map((b) => k(b))])]);
}, [n.source.caption || n.source.title])]), o("div", ["---"]), o("div", ["---"])]), o("div", {
class: [a.be("group", "content"), a.is("collapse", u)]
}, [n.children.map((I) => x(I))])]);
}
return o.source.detailType === "DRUIPART" && !o.source.name.endsWith("_srfcopy") ? I(o) : o.source.detailType === "MDCTRL" ? D(o) : null;
return n.source.detailType === "DRUIPART" && !n.source.name.endsWith("_srfcopy") ? A(n) : n.source.detailType === "MDCTRL" ? w(n) : null;
}
}, O = (o, d) => {
const b = [], S = [], x = [];
return Object.keys(d).forEach((N) => {
const T = o[N], _ = d[N];
t.isFalseyButNotEmpty(T) && !t.isFalseyButNotEmpty(_) && b.push(N), !t.isFalseyButNotEmpty(T) && !t.isFalseyButNotEmpty(_) && t.compareObjectValues(T, _) && S.push(N);
}), Object.keys(o).forEach((N) => {
if (!Object.prototype.hasOwnProperty.call(d, N) || t.isFalseyButNotEmpty(d[N])) {
const T = o[N];
t.isFalseyButNotEmpty(T) || x.push(N);
}, O = (n, u) => {
const I = [], F = [], S = [];
return Object.keys(u).forEach((k) => {
const U = n[k], j = u[k];
e.isFalseyButNotEmpty(U) && !e.isFalseyButNotEmpty(j) && I.push(k), !e.isFalseyButNotEmpty(U) && !e.isFalseyButNotEmpty(j) && e.compareObjectValues(U, j) && F.push(k);
}), Object.keys(n).forEach((k) => {
if (!Object.prototype.hasOwnProperty.call(u, k) || e.isFalseyButNotEmpty(u[k])) {
const U = n[k];
e.isFalseyButNotEmpty(U) || S.push(k);
}
}), {
added: b,
modified: S,
deleted: x
added: I,
modified: F,
deleted: S
};
};
return V(() => s.params, async () => {
const o = await t.loadGridData();
c.value = o.baseData, g.value = o.compareData;
return T(() => s.params, async () => {
const n = await e.loadGridData();
l.value = n.baseData, v.value = n.compareData;
const {
added: d,
modified: b,
deleted: S
} = O(g.value, c.value);
w.value = d, v.value = b, l.value = S;
added: u,
modified: I,
deleted: F
} = O(v.value, l.value);
b.value = u, y.value = I, c.value = F;
}, {
immediate: !0
}), {
ns: a,
c: t,
switchValue: n,
druipartNum: C,
renderEditor: y,
renderByDetailType: k
c: e,
switchValue: r,
druipartNum: D,
renderEditor: g,
renderByDetailType: x
};
},
render() {
return this.c.complete ? r("control-layout", {
return this.c.complete ? o("control-layout", {
attrs: {
modelData: this.c.model
}
}, [r("div", {
}, [o("div", {
class: this.ns.b()
}, [r("div", {
}, [o("div", {
class: this.ns.e("top")
}, [r("div", {
}, [o("div", {
class: this.ns.e("top-hidesame-content")
}, [r("div", {
}, [o("div", {
class: this.ns.e("top-hidesame-content-left")
}, ["隐藏相同项 ", r("i-switch", {
}, ["隐藏相同项 ", o("i-switch", {
model: {
value: this.switchValue,
callback: (s) => {
this.switchValue = s;
}
}
})]), r("div", {
})]), o("div", {
class: this.ns.e("top-hidesame-content-right")
}, [r("div", {
}, [o("div", {
class: this.ns.e("top-hidesame-content-right-item")
}, ["新增", r("div", {
}, ["新增", o("div", {
class: this.ns.e("top-hidesame-content-right-item-add")
})]), r("div", {
})]), o("div", {
class: this.ns.e("top-hidesame-content-right-item")
}, ["修改", r("div", {
}, ["修改", o("div", {
class: this.ns.e("top-hidesame-content-right-item-change")
})]), r("div", {
})]), o("div", {
class: this.ns.e("top-hidesame-content-right-item")
}, ["删除", r("div", {
}, ["删除", o("div", {
class: this.ns.e("top-hidesame-content-right-item-delete")
})])])]), r("div", {
})])])]), o("div", {
class: this.ns.e("top-content")
}, [r("div", {
}, [o("div", {
class: this.ns.em("top-content", "attr")
}, ["信息项"]), r("div", {
}, ["信息项"]), o("div", {
class: [this.ns.em("top-content", "left")]
}, ["更新前内容"]), r("div", {
}, ["更新前内容"]), o("div", {
class: [this.ns.em("top-content", "right")]
}, ["更新后内容"])])]), r("div", {
}, ["更新后内容"])])]), o("div", {
class: this.ns.e("content")
}, [this.modelData.children.map((s) => this.renderByDetailType(s))])])]) : null;
}
});
const Te = M({
const Be = M({
name: "CustomDataImport",
props: {
templateUrl: {
......@@ -459,84 +459,84 @@ const Te = M({
setup(s, {
emit: a
}) {
const e = B("data-import"), t = A(), i = A({
const t = R("data-import"), e = E(), i = E({
state: "ready",
message: "",
rowError: []
}), n = A(""), c = async (l) => {
const v = new FormData(), f = $(n.value).format("YYYY-MM");
v.append("file", l), v.append("ny", f);
}), r = E(""), l = async (c) => {
const y = new FormData(), f = $(r.value).format("YYYY-MM");
y.append("file", c), y.append("ny", f);
try {
const C = await ibiz.net.request(s.importUrl, {
const D = await ibiz.net.request(s.importUrl, {
method: "post",
data: v,
data: y,
headers: {
"Content-Type": "multipart/form-data"
}
});
i.value.state = "success", i.value.message = "导入成功";
const {
errorinfo: h,
success: p,
total: y
} = C.data, F = y ? Number(y) : 0, I = p ? Number(p) : 0, D = y - p;
i.value.message = `共计导入数据 ${F} 条,错误[${D}],成功[${I}]`, h && Object.keys(h).length > 0 && (i.value.rowError = [], Object.keys(h).forEach((E) => {
errorinfo: p,
success: h,
total: g
} = D.data, N = g ? Number(g) : 0, A = h ? Number(h) : 0, w = g - h;
i.value.message = `共计导入数据 ${N} 条,错误[${w}],成功[${A}]`, p && Object.keys(p).length > 0 && (i.value.rowError = [], Object.keys(p).forEach((P) => {
i.value.rowError.push({
index: Number(E) + 1,
info: h[E].errorInfo
index: Number(P) + 1,
info: p[P].errorInfo
});
}));
} catch (C) {
i.value.state = "fail", i.value.message = `导入失败!${C.message}`;
} catch (D) {
i.value.state = "fail", i.value.message = `导入失败!${D.message}`;
}
}, g = (l) => {
const v = l.target;
if (!v.files)
}, v = (c) => {
const y = c.target;
if (!y.files)
return;
const f = v.files[0];
v.value = null, c(f);
}, u = async () => {
var v;
const l = await ibiz.net.request(s.templateUrl, {
const f = y.files[0];
y.value = null, l(f);
}, d = async () => {
var y;
const c = await ibiz.net.request(s.templateUrl, {
responseType: "blob"
});
if (l.status === 200) {
let f = ((v = l.headers["content-disposition"].split(";").find((p) => p.indexOf("filename=") !== -1)) == null ? void 0 : v.slice(9)) || "";
if (c.status === 200) {
let f = ((y = c.headers["content-disposition"].split(";").find((h) => h.indexOf("filename=") !== -1)) == null ? void 0 : y.slice(9)) || "";
f = decodeURIComponent(f);
const C = new Blob([l.data], {
const D = new Blob([c.data], {
type: "application/vnd.ms-excel"
}), h = 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);
}), p = document.createElement("a");
p.download = f, p.style.display = "none", p.href = URL.createObjectURL(D), document.body.appendChild(p), p.click(), URL.revokeObjectURL(p.href), document.body.removeChild(p);
}
}, m = () => {
t.value.click();
}, w = () => {
var l;
e.value.click();
}, b = () => {
var c;
a("close", {
ok: !1,
data: {}
}), (l = s.dismiss) == null || l.call(s, {
}), (c = s.dismiss) == null || c.call(s, {
ok: !1,
data: {}
});
};
return De(() => {
n.value = $().format("YYYY年MM月");
return Pe(() => {
r.value = $().format("YYYY年MM月");
}), {
ns: e,
curDate: n,
onLinkClick: u,
ns: t,
curDate: r,
onLinkClick: d,
selectFile: m,
onCancelButtonClick: w,
onFileChange: g,
inputUpLoad: t,
onCancelButtonClick: b,
onFileChange: v,
inputUpLoad: e,
message: i
};
},
render() {
return r("div", {
return o("div", {
class: [this.ns.b(), this.ns.is("custom", !0)]
}, [r("input", {
}, [o("input", {
ref: "inputUpLoad",
attrs: {
type: "file",
......@@ -546,11 +546,11 @@ const Te = M({
on: {
change: this.onFileChange
}
}), r("div", {
}), o("div", {
class: this.ns.e("caption")
}, ["导入数据"]), r("div", {
}, ["导入数据"]), o("div", {
class: this.ns.e("date")
}, [r("span", ["导入数据所属月份"]), r("i-datePicker", {
}, [o("span", ["导入数据所属月份"]), o("i-datePicker", {
attrs: {
format: "yyyy年MM月",
type: "month",
......@@ -562,66 +562,66 @@ const Te = M({
this.curDate = s;
}
}
})]), this.message.state === "ready" ? r("div", {
})]), this.message.state === "ready" ? o("div", {
class: this.ns.b("upload"),
on: {
click: this.selectFile
}
}, [r("img", {
}, [o("img", {
class: this.ns.be("upload", "img"),
attrs: {
src: "./assets/img/icon-import.svg"
}
}), r("span", {
}), o("span", {
class: this.ns.be("upload", "text")
}, ["单击此区域进行上传"])]) : r("div", {
}, ["单击此区域进行上传"])]) : o("div", {
class: this.ns.b("message")
}, [r("div", {
}, [o("div", {
class: this.ns.be("message", "title")
}, ["导入结果"]), r("div", {
}, ["导入结果"]), o("div", {
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")
}, ["错误信息"]), r("div", {
}, ["错误信息"]), o("div", {
class: this.ns.be("message", "content")
}, [this.message.rowError.map((s) => r("div", [`第 ${s.index} 行:${s.info}`]))])]]), r("div", {
}, [this.message.rowError.map((s) => o("div", [`第 ${s.index} 行:${s.info}`]))])]]), o("div", {
class: this.ns.e("template-container")
}, [r("div", {
}, [o("div", {
class: this.ns.e("template-description")
}, ["下载导入模版,并按要求填写:"]), r("div", {
}, ["下载导入模版,并按要求填写:"]), o("div", {
class: this.ns.e("template-link"),
on: {
click: this.onLinkClick
}
}, [r("i-icon", {
}, [o("i-icon", {
attrs: {
type: "ios-link"
}
}), "数据导入模板文件"])]), r("div", {
}), "数据导入模板文件"])]), o("div", {
class: this.ns.e("button-bar")
}, [this.message.state !== "ready" && r("i-button", {
}, [this.message.state !== "ready" && o("i-button", {
on: {
click: this.selectFile
}
}, ["重新上传"])])]);
}
});
const Me = M({
const _e = M({
name: "YearMonthPicker",
props: ye(),
emits: G(),
setup(s, {
emit: a
}) {
const e = B("date-picker"), t = s.controller, i = t.model, n = A("date"), c = A("yyyy-MM-dd"), g = A(!1);
const t = R("date-picker"), e = s.controller, i = e.model, r = E("date"), l = E("yyyy-MM-dd"), v = E(!1);
switch (i.editorType) {
case "DATEPICKEREX":
case "DATEPICKEREX_NOTIME":
n.value = "date";
r.value = "date";
break;
case "DATEPICKEREX_NODAY":
case "DATEPICKEREX_NODAY_NOSECOND":
g.value = !0, n.value = "time";
v.value = !0, r.value = "time";
break;
case "DATEPICKEREX_HOUR":
case "DATEPICKEREX_MINUTE":
......@@ -629,43 +629,43 @@ const Me = M({
case "DATEPICKEREX_NOSECOND":
case "DATEPICKER":
default:
n.value = "datetime";
r.value = "datetime";
}
const u = t.valueFormat;
if (u) {
u === "YYYY-MM" ? n.value = "month" : u === "YYYY" && (n.value = "year");
const f = u.replace("YYYY", "yyyy").replace("DD", "dd");
c.value = f;
const d = e.valueFormat;
if (d) {
d === "YYYY-MM" ? r.value = "month" : d === "YYYY" && (r.value = "year");
const f = d.replace("YYYY", "yyyy").replace("DD", "dd");
l.value = f;
}
i.editorParams.formatText && (c.value = i.editorParams.formatText.replace("YYYY", "yyyy").replace("DD", "dd"));
const m = A();
V(() => s.value, (f, C) => {
f && f !== C && (m.value = $(f).format(u));
i.editorParams.formatText && (l.value = i.editorParams.formatText.replace("YYYY", "yyyy").replace("DD", "dd"));
const m = E();
T(() => s.value, (f, D) => {
f && f !== D && (m.value = $(f).format(d));
}, {
immediate: !0
});
const w = (f, C) => {
const b = (f, D) => {
if (f) {
const h = $(f.replace(/[年月]/g, "-")).format(u);
a("change", h);
const p = $(f.replace(/[年月]/g, "-")).format(d);
a("change", p);
} else
a("change", f);
}, l = (f) => {
}, c = (f) => {
a("operate", f);
}, v = A();
return s.autoFocus && V(v, (f) => {
}, y = E();
return s.autoFocus && T(y, (f) => {
f && f.$el.getElementsByTagName("input")[0].click();
}), {
ns: e,
c: t,
ns: t,
c: e,
editorModel: i,
type: n,
format: c,
type: r,
format: l,
formatValue: m,
handleChange: w,
onOpenChange: l,
inputRef: v,
isTimePicker: g
handleChange: b,
onOpenChange: c,
inputRef: y,
isTimePicker: v
};
},
render(s) {
......@@ -704,20 +704,20 @@ const Me = M({
})]]);
}
});
const ie = new Ce(import.meta.url), Re = M({
const ie = new Ne(import.meta.url), je = M({
name: "DownLoadSafeFile",
props: {},
setup() {
const s = B("download-safe-file"), a = ie.dir("/assets/doc/safe-file.doc");
const s = R("download-safe-file"), a = ie.dir("/assets/doc/safe-file.doc");
return {
ns: s,
url: a
};
},
render() {
return r("div", {
return o("div", {
class: this.ns.b()
}, [r("a", {
}, [o("a", {
attrs: {
download: "网络信息安全承诺书.doc",
href: this.url
......@@ -725,7 +725,7 @@ const ie = new Ce(import.meta.url), Re = M({
}, ["网络信息安全承诺书.doc"])]);
}
});
class le extends Pe {
class le extends xe {
constructor() {
super(...arguments);
/**
......@@ -734,7 +734,7 @@ class le extends Pe {
* @type {number}
* @memberof FormMDCtrlFormStyle2Controller
*/
P(this, "active", 0);
C(this, "active", 0);
}
/**
* 计算表单更新项信息
......@@ -743,39 +743,39 @@ class le extends Pe {
* @return {*}
* @memberof FormMDCtrlFormStyle2Controller
*/
calcFormUpdateItem(e) {
var t, i;
calcFormUpdateItem(t) {
var e, i;
return {
methodName: ((t = e.getPSAppDEMethod()) == null ? void 0 : t.codeName) || "",
itemNames: (i = e.getPSDEFIUpdateDetails()) == null ? void 0 : i.map((n) => n.name),
methodName: ((e = t.getPSAppDEMethod()) == null ? void 0 : e.codeName) || "",
itemNames: (i = t.getPSDEFIUpdateDetails()) == null ? void 0 : i.map((r) => r.name),
model: {
customCode: e.customCode,
scriptCode: e.scriptCode
customCode: t.customCode,
scriptCode: t.scriptCode
}
};
}
connect(e, t) {
this.formNeurons.get(e) || (this.formNeurons.set(e, t), t.evt.on("mounted", () => {
t.call.load();
}), t.evt.on("destroyed", () => {
this.formNeurons.delete(e);
}), t.evt.on("valueChange", (i) => {
connect(t, e) {
this.formNeurons.get(t) || (this.formNeurons.set(t, e), e.evt.on("mounted", () => {
e.call.load();
}), e.evt.on("destroyed", () => {
this.formNeurons.delete(t);
}), e.evt.on("valueChange", (i) => {
if (i) {
const n = this.contentCtrlData.find((c) => c.srfkey === i.srfkey);
n && Object.assign(n, i), this.force();
const r = this.contentCtrlData.find((l) => l.srfkey === i.srfkey);
r && Object.assign(r, i), this.force();
}
}), t.evt.on("afterSave", async () => {
}), e.evt.on("afterSave", async () => {
const i = this.model.source.M.getPSAppDEField;
i && await this.form.setDataValue(i.codeName.toLowerCase(), [
...this.contentCtrlData
]);
const n = this.model.source.getPSDEFormItemUpdate();
if (n) {
const { methodName: c, itemNames: g, model: u } = this.calcFormUpdateItem(n);
const r = this.model.source.getPSDEFormItemUpdate();
if (r) {
const { methodName: l, itemNames: v, model: d } = this.calcFormUpdateItem(r);
await this.form.updateFormItem(
c,
g,
u
l,
v,
d
);
}
}));
......@@ -787,23 +787,23 @@ class le extends Pe {
* @memberof FormMDCtrlFormStyle2Controller
*/
async validate() {
const e = [];
this.formNeurons.forEach((n, c) => {
const g = n.call.getFormController();
e.push({ key: c, controller: g });
const t = [];
this.formNeurons.forEach((r, l) => {
const v = r.call.getFormController();
t.push({ key: l, controller: v });
});
let t = "";
let e = "";
const i = await Promise.all(
e.map(async (n) => {
const c = await n.controller.validate();
return !t && !c && (t = n.key), c;
t.map(async (r) => {
const l = await r.controller.validate();
return !e && !l && (e = r.key), l;
})
);
if (t) {
const n = this.contentCtrlData.findIndex((c) => c.srfkey === t);
n > -1 && (this.active = n);
if (e) {
const r = this.contentCtrlData.findIndex((l) => l.srfkey === e);
r > -1 && (this.active = r);
}
return i.findIndex((n) => !n) === -1;
return i.findIndex((r) => !r) === -1;
}
/**
* 静默校验
......@@ -812,26 +812,26 @@ class le extends Pe {
* @memberof FormMDCtrlFormStyle2Controller
*/
async silentValidate() {
const e = [];
this.formNeurons.forEach((n, c) => {
const g = n.call.getFormController();
e.push({ key: c, controller: g });
const t = [];
this.formNeurons.forEach((r, l) => {
const v = r.call.getFormController();
t.push({ key: l, controller: v });
});
let t = "";
let e = "";
const i = await Promise.all(
e.map(async (n) => {
const c = await n.controller.silentValidate();
return !t && !c && (t = n.key), c;
t.map(async (r) => {
const l = await r.controller.silentValidate();
return !e && !l && (e = r.key), l;
})
);
if (t) {
const n = this.contentCtrlData.findIndex((c) => c.srfkey === t);
n > -1 && (this.active = n);
if (e) {
const r = this.contentCtrlData.findIndex((l) => l.srfkey === e);
r > -1 && (this.active = r);
}
return i.findIndex((n) => !n) === -1;
return i.findIndex((r) => !r) === -1;
}
}
const Ue = M({
const ze = M({
name: "FormMDCtrlFormStyle2",
props: {
controller: {
......@@ -844,210 +844,210 @@ const Ue = M({
}
},
setup(s) {
const a = B("form-mdctrl-form-style2"), e = s.controller, {
proxy: t
const a = R("form-mdctrl-form-style2"), t = s.controller, {
proxy: e
} = W();
ge(t, s.controller);
const i = async (m, w, l) => {
l.stopPropagation(), l.preventDefault();
const v = e.contentCtrlData.length;
await e.handleRemove(m, w), v !== e.contentCtrlData.length && w <= e.active && e.active !== 0 && (e.active -= 1);
}, n = (m) => {
e.active = m, e.force();
}, c = async () => {
const m = JSON.parse(JSON.stringify(e.contentCtrlData)).length;
await e.handleAdd(), m < e.contentCtrlData.length && (e.active = e.contentCtrlData.length - 1);
}, g = () => {
ge(e, s.controller);
const i = async (m, b, c) => {
c.stopPropagation(), c.preventDefault();
const y = t.contentCtrlData.length;
await t.handleRemove(m, b), y !== t.contentCtrlData.length && b <= t.active && t.active !== 0 && (t.active -= 1);
}, r = (m) => {
t.active = m, t.force();
}, l = async () => {
const m = JSON.parse(JSON.stringify(t.contentCtrlData)).length;
await t.handleAdd(), m < t.contentCtrlData.length && (t.active = t.contentCtrlData.length - 1);
}, v = () => {
const m = s.modelData.source.userTag;
let w = {};
m && (w = JSON.parse(m));
let b = {};
m && (b = JSON.parse(m));
const {
tabtitle: l,
addtitle: v,
tabtitle: c,
addtitle: y,
usermode: f
} = w;
return f === "user1" && e.contentCtrlData.some((h) => h.rcrylx === "system") ? r("div", {
} = b;
return f === "user1" && t.contentCtrlData.some((p) => p.rcrylx === "system") ? o("div", {
class: a.e("header")
}, [e.contentCtrlData.map((h, p) => {
let y = "";
h.srfmajortext ? y = h.srfmajortext : l && h[l] && (y = h[l]);
let F = "待确认";
return h.is_rc === 1 ? F = "确认入场" : h.is_rc === 0 && (F = "放弃入场"), r("div", {
class: [a.e("header-item"), a.is("actived", p === e.active)],
}, [t.contentCtrlData.map((p, h) => {
let g = "";
p.srfmajortext ? g = p.srfmajortext : c && p[c] && (g = p[c]);
let N = "待确认";
return p.is_rc === 1 ? N = "确认入场" : p.is_rc === 0 && (N = "放弃入场"), o("div", {
class: [a.e("header-item"), a.is("actived", h === t.active)],
on: {
click: () => n(p)
click: () => r(h)
}
}, [r("div", {
}, [o("div", {
class: a.em("header-item", "title")
}, [y, "(", F, ")"])]);
})]) : r("div", {
}, [g, "(", N, ")"])]);
})]) : o("div", {
class: a.e("header")
}, [e.contentCtrlData.map((C, h) => {
let p = `新建${h + 1}`;
return C.srfmajortext ? p = C.srfmajortext : l && C[l] ? p = C[l] : v && (p = `${v}${h + 1}`), r("div", {
class: [a.e("header-item"), a.is("actived", h === e.active)],
}, [t.contentCtrlData.map((D, p) => {
let h = `新建${p + 1}`;
return D.srfmajortext ? h = D.srfmajortext : c && D[c] ? h = D[c] : y && (h = `${y}${p + 1}`), o("div", {
class: [a.e("header-item"), a.is("actived", p === t.active)],
on: {
click: () => n(h)
click: () => r(p)
}
}, [r("div", {
}, [o("div", {
class: a.em("header-item", "title")
}, [p]), e.enableDelete && r("div", {
}, [h]), t.enableDelete && o("div", {
class: a.em("header-item", "delete"),
attrs: {
title: "移除"
},
on: {
click: (y) => i(C, h, y)
click: (g) => i(D, p, g)
}
}, [r("i", {
}, [o("i", {
class: "fa fa-close"
})])]);
}), e.enableCreate && r("div", {
}), t.enableCreate && o("div", {
class: [a.e("header-item"), a.e("add")],
attrs: {
title: "添加"
},
on: {
click: () => c()
click: () => l()
}
}, [r("span", ["添加"]), r("i", {
}, [o("span", ["添加"]), o("i", {
class: "fa fa-plus"
})])]);
};
return V(() => e.form.isLoaded, (m, w) => {
m !== w && m === !0 && e.loadData();
return T(() => t.form.isLoaded, (m, b) => {
m !== b && m === !0 && t.loadData();
}), {
ns: a,
rendertanHeader: g,
renderTabs: () => e.contentCtrlData.map((m, w) => {
rendertanHeader: v,
renderTabs: () => t.contentCtrlData.map((m, b) => {
var f;
let l = null;
let c = null;
const {
form: v
} = e.model;
if (v && e.providers[v.name] && e.model.appEntity) {
const C = Object.assign(e.form.context.clone(), {
[(f = e.model.appEntity.codeName) == null ? void 0 : f.toLowerCase()]: m[e.model.appEntity.keyName]
form: y
} = t.model;
if (y && t.providers[y.name] && t.model.appEntity) {
const D = Object.assign(t.form.context.clone(), {
[(f = t.model.appEntity.codeName) == null ? void 0 : f.toLowerCase()]: m[t.model.appEntity.keyName]
});
l = r(e.providers[v.name].component, {
c = o(t.providers[y.name].component, {
props: {
modelData: v,
context: C,
params: e.form.params,
modelData: y,
context: D,
params: t.form.params,
enableAutoSave: !0,
silentVerify: !0
},
on: {
neuronInit: e.onNeuronInit(m.srfkey)
neuronInit: t.onNeuronInit(m.srfkey)
}
});
}
return r("div", {
class: [a.e("content"), a.is("actived", w === e.active)],
return o("div", {
class: [a.e("content"), a.is("actived", b === t.active)],
key: m.srfkey
}, [l]);
}, [c]);
})
};
},
render() {
return r("div", {
return o("div", {
class: this.ns.b()
}, [this.rendertanHeader(), this.renderTabs()]);
}
}), Le = M({
}), Ye = M({
name: "AutoSelectAll",
props: se(),
emits: G(),
setup(s, {
emit: a
}) {
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 D = t.editorParams.followitem;
return D ? s.data[D] : "";
const t = R("mpicker"), e = s.controller, i = E([]), r = E([]), l = E([]), v = E(!1), d = E(!1), m = E(null), b = E([]), c = E(!0), y = _(() => {
const w = e.editorParams.followitem;
return w ? s.data[w] : "";
});
V(() => s.value, (D) => {
i.value = [], c.value = [], D && (c.value = JSON.parse(D), c.value.length > 0 && c.value.forEach((E) => {
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);
T(() => s.value, (w) => {
i.value = [], l.value = [], w && (l.value = JSON.parse(w), l.value.length > 0 && l.value.forEach((P) => {
r.value.findIndex((O) => Object.is(O.srfkey, P.srfkey)) < 0 && (r.value.push(P), b.value.push(P.srfmajortext)), i.value.push(P.srfkey);
}));
}, {
immediate: !0,
deep: !0
});
const f = async (D) => {
const E = [];
if (D && Array.isArray(D))
for (let O = 0; O < D.length; O++) {
const o = D[O], d = {
srfkey: o[t.keyName] || o.srfkey,
srfmajortext: o[t.textName] || o.srfmajortext
}, b = await t.calcFillDataItems(o);
b.length > 0 && b.forEach((x) => {
Object.assign(d, {
[x.name]: x.value
const f = async (w) => {
const P = [];
if (w && Array.isArray(w))
for (let O = 0; O < w.length; O++) {
const n = w[O], u = {
srfkey: n[e.keyName] || n.srfkey,
srfmajortext: n[e.textName] || n.srfmajortext
}, I = await e.calcFillDataItems(n);
I.length > 0 && I.forEach((S) => {
Object.assign(u, {
[S.name]: S.value
});
}), E.push(d), n.value.findIndex((x) => Object.is(x[t.keyName], o[t.keyName])) < 0 && n.value.push(d);
}), P.push(u), r.value.findIndex((S) => Object.is(S[e.keyName], n[e.keyName])) < 0 && r.value.push(u);
}
const k = E.length > 0 ? JSON.stringify(E) : "";
a("change", k);
}, C = async () => {
let D;
c.value.length && (D = JSON.stringify(c.value));
const E = await t.openPickUpView(s.data, D);
E && f(E);
}, h = (D) => {
const E = [];
if (D.length > 0) {
D.forEach((O) => {
let o = n.value.findIndex((b) => Object.is(b.srfkey, O)), d = 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);
const x = P.length > 0 ? JSON.stringify(P) : "";
a("change", x);
}, D = async () => {
let w;
l.value.length && (w = JSON.stringify(l.value));
const P = await e.openPickUpView(s.data, w);
P && f(P);
}, p = (w) => {
const P = [];
if (w.length > 0) {
w.forEach((O) => {
let n = r.value.findIndex((I) => Object.is(I.srfkey, O)), u = null;
n >= 0 ? u = r.value[n] : (n = l.value.findIndex((I) => Object.is(I.srfkey, O)), n >= 0 && (u = l.value[n])), u && P.push(u);
});
const k = E.length > 0 ? JSON.stringify(E) : "";
a("change", k);
const x = P.length > 0 ? JSON.stringify(P) : "";
a("change", x);
} else
a("change", "");
}, p = async (D) => {
if (t.model.appDataEntity) {
u.value = !0;
}, h = async (w) => {
if (e.model.appDataEntity) {
d.value = !0;
try {
const E = await t.getServiceData(D, s.data);
u.value = !1, n.value = [], E.data.length > 0 && (n.value = E.data.map((k) => ({
srfkey: k[t.keyName],
srfmajortext: k[t.textName]
const P = await e.getServiceData(w, s.data);
d.value = !1, r.value = [], P.data.length > 0 && (r.value = P.data.map((x) => ({
srfkey: x[e.keyName],
srfmajortext: x[e.textName]
})));
} catch (E) {
u.value = !1;
} catch (P) {
d.value = !1;
}
}
}, y = (D) => {
g.value = D, a("operate", D), g.value && p("");
}, F = j(() => c.value.map((D) => D.srfmajortext).join("、")), I = (D) => {
n.value = D;
}, g = (w) => {
v.value = w, a("operate", w), v.value && h("");
}, N = _(() => l.value.map((w) => w.srfmajortext).join("、")), A = (w) => {
r.value = w;
};
return V(() => v.value, async (D) => {
if (D) {
await p("");
const E = n.value.map((k) => k.srfkey);
if (l.value && (l.value = !1, s.value))
return T(() => y.value, async (w) => {
if (w) {
await h("");
const P = r.value.map((x) => x.srfkey);
if (c.value && (c.value = !1, s.value))
return;
h(E);
p(P);
} else
n.value = [], a("change", "");
r.value = [], a("change", "");
}, {
immediate: !0
}), {
ns: e,
c: t,
ns: t,
c: e,
selectRef: m,
curValue: i,
loading: u,
items: n,
defaultLabel: w,
valueText: F,
onSearch: p,
onOpenChange: y,
onSelect: h,
openPickUpView: C,
setDefaultOptions: I
loading: d,
items: r,
defaultLabel: b,
valueText: N,
onSearch: h,
onOpenChange: g,
onSelect: p,
openPickUpView: D,
setDefaultOptions: A
};
},
render(s) {
......@@ -1092,80 +1092,80 @@ const Ue = M({
}) : null])])]);
}
});
const Ve = M({
const $e = M({
name: "MPickerCheckbox",
props: se(),
emits: G(),
setup(s, {
emit: a
}) {
const e = B("checkbox"), t = s.controller, i = A([]), n = A([]), c = A(!0), g = ",", u = t.editorParams.emptyClearItems, m = j({
const t = R("checkbox"), e = s.controller, i = E([]), r = E([]), l = E(!0), v = ",", d = e.editorParams.emptyClearItems, m = _({
get() {
var p;
return ((p = s.value) == null ? void 0 : p.split(",")) || [];
var h;
return ((h = s.value) == null ? void 0 : h.split(",")) || [];
},
set(p) {
let y = null;
const F = [];
if (i.value.length > 0 && (i.value.forEach((I) => {
p.findIndex((E) => Object.is(I.value, E)) !== -1 && F.push(I.value);
}), y = F.join(g)), a("change", y), !y && u) {
const I = JSON.parse(u);
for (let D = 0; D < I.length; D++)
a("change", I[D].value, I[D].key);
set(h) {
let g = null;
const N = [];
if (i.value.length > 0 && (i.value.forEach((A) => {
h.findIndex((P) => Object.is(A.value, P)) !== -1 && N.push(A.value);
}), g = N.join(v)), a("change", g), !g && d) {
const A = JSON.parse(d);
for (let w = 0; w < A.length; w++)
a("change", A[w].value, A[w].key);
}
}
}), w = async (p) => {
}), b = async (h) => {
const {
context: y,
params: F
} = t.handlePublicParams(p, t.context, t.params);
if (t.editorParams.codeTag) {
let I = [];
const D = t.editorParams.codeTag;
return I = await ibiz.codeListService.get(D, y, F), I;
context: g,
params: N
} = e.handlePublicParams(h, e.context, e.params);
if (e.editorParams.codeTag) {
let A = [];
const w = e.editorParams.codeTag;
return A = await ibiz.codeListService.get(w, g, N), A;
}
throw new he(t.model.source, "请配置代码表");
}, l = (p) => {
m.value = p;
}, v = j(() => {
const p = Array.isArray(m.value) ? m.value : [m.value];
return i.value.filter((y) => p.includes(y.srfkey)).map((y) => y.srfmajortext).join("、");
}), f = async (p) => {
if (t.model.appDataEntity)
throw new he(e.model.source, "请配置代码表");
}, c = (h) => {
m.value = h;
}, y = _(() => {
const h = Array.isArray(m.value) ? m.value : [m.value];
return i.value.filter((g) => h.includes(g.srfkey)).map((g) => g.srfmajortext).join("、");
}), f = async (h) => {
if (e.model.appDataEntity)
try {
const y = await t.getServiceData(p, s.data);
n.value = [], y.data.length > 0 && (n.value = y.data.map((F) => ({
srfkey: F[t.keyName],
srfmajortext: F[t.textName]
const g = await e.getServiceData(h, s.data);
r.value = [], g.data.length > 0 && (r.value = g.data.map((N) => ({
srfkey: N[e.keyName],
srfmajortext: N[e.textName]
})));
} catch (y) {
console.error(y);
} catch (g) {
console.error(g);
}
}, C = j(() => {
const p = t.editorParams.followitem;
return p ? s.data[p] : "";
}), h = () => {
const p = [];
i.value.forEach((y) => {
n.value.findIndex((I) => I.srfkey === y.value) > -1 && p.push(y.value);
}), l(p);
}, D = _(() => {
const h = e.editorParams.followitem;
return h ? s.data[h] : "";
}), p = () => {
const h = [];
i.value.forEach((g) => {
r.value.findIndex((A) => A.srfkey === g.value) > -1 && h.push(g.value);
}), c(h);
};
return V(() => C, async (p) => {
await w(p).then((y) => {
i.value = y;
}), await f(""), !(c.value && (c.value = !1, s.value)) && h();
return T(() => D.value, async (h, g) => {
await b({}).then((N) => {
i.value = N;
}), await f(""), !((l.value || h === g) && (l.value = !1, s.value)) && p();
}, {
immediate: !0,
deep: !0
}), {
ns: e,
c: t,
valueText: v,
ns: t,
c: e,
valueText: y,
selectArray: m,
items: i,
onSearch: f,
onSelectArrayChange: l
onSelectArrayChange: c
};
},
render(s) {
......@@ -1179,8 +1179,8 @@ const Ve = M({
on: {
"on-change": this.onSelectArrayChange
}
}, [this.items.map((a, e) => s("i-checkbox", {
key: e,
}, [this.items.map((a, t) => s("i-checkbox", {
key: t,
attrs: {
label: a.value,
disabled: this.disabled
......@@ -1190,7 +1190,7 @@ const Ve = M({
}, [a.text])]))])]);
}
});
class Be extends Ae {
class Ge extends Se {
/**
* 设置嵌入视图的神经元
*
......@@ -1199,33 +1199,33 @@ class Be extends Ae {
* @param {ViewNeuron} neuron
*/
setViewNeuron(a) {
this.neuron = a, this.neuron.evt.on("refreshed", (e) => {
if (ibiz.log.debug("接收到关系界面的刷新变更事件", e), this.model.formItemUpdate) {
const { methodName: t, itemNames: i, model: n } = this.model.formItemUpdate;
this.neuron = a, this.neuron.evt.on("refreshed", (t) => {
if (ibiz.log.debug("接收到关系界面的刷新变更事件", t), this.model.formItemUpdate) {
const { methodName: e, itemNames: i, model: r } = this.model.formItemUpdate;
this.form.updateFormItem(
t,
e,
i,
n
r
);
}
}), this.neuron.evt.on("mounted", () => {
this.neuron.call.refresh();
}), this.neuron.evt.on("viewDataChange", async (e) => {
if (!["LOAD", "LOADDRAFT"].includes(e.type) && (ibiz.log.debug("接收到关系界面的数据变更事件", e.data), this.model.formItemUpdate)) {
const { methodName: t, itemNames: i, model: n } = this.model.formItemUpdate;
}), this.neuron.evt.on("viewDataChange", async (t) => {
if (!["LOAD", "LOADDRAFT"].includes(t.type) && (ibiz.log.debug("接收到关系界面的数据变更事件", t.data), this.model.formItemUpdate)) {
const { methodName: e, itemNames: i, model: r } = this.model.formItemUpdate;
try {
this.processState.formItemUpdate = !0, await this.form.updateFormItem(
t,
e,
i,
n
r
);
} finally {
this.processState.formItemUpdate = !1;
}
}
}), this.neuron.evt.on("destroyed", () => {
Object.keys(this.processState).forEach((e) => {
this.processState[e] = !1;
Object.keys(this.processState).forEach((t) => {
this.processState[t] = !1;
});
}), this.neuron.evt.on("viewSaveStart", () => {
this.processState.viewSave = !0;
......@@ -1234,7 +1234,7 @@ class Be extends Ae {
});
}
}
class _e extends Fe {
class He extends ke {
constructor() {
super(...arguments);
/**
......@@ -1243,7 +1243,7 @@ class _e extends Fe {
* @type {string}
* @memberof WfEditViewController
*/
P(this, "userAction");
C(this, "userAction");
}
async onInit() {
await super.onInit(), this.getUserAction();
......@@ -1258,23 +1258,23 @@ class _e extends Fe {
async wfStart() {
var m;
await this.save(), await this.execUserAction();
const e = await this.entityService.wf.getWFVersion();
if (e.data.length === 0)
throw new xe("当前工作流版本不存在");
const t = e.data[0], i = `WFSTART@${t.wfversion}`, n = Object.assign(this.context.clone(), {
activeForm: t["process-form"]
}), c = {
processDefinitionKey: t.definitionkey
}, g = (m = this.model.source.findPSAppViewRef(i)) == null ? void 0 : m.getRefPSAppView();
if (!g) {
await this.nerve.form.call.wfStart(c), await this.closeView();
const t = await this.entityService.wf.getWFVersion();
if (t.data.length === 0)
throw new Ue("当前工作流版本不存在");
const e = t.data[0], i = `WFSTART@${e.wfversion}`, r = Object.assign(this.context.clone(), {
activeForm: e["process-form"]
}), l = {
processDefinitionKey: e.definitionkey
}, v = (m = this.model.source.findPSAppViewRef(i)) == null ? void 0 : m.getRefPSAppView();
if (!v) {
await this.nerve.form.call.wfStart(l), await this.closeView();
return;
}
(await ibiz.commands.execute(
q.TAG,
g,
n,
c
v,
r,
l
)).ok && await this.closeView();
}
/**
......@@ -1283,9 +1283,9 @@ class _e extends Fe {
* @memberof EditViewController
*/
getUserAction() {
const { form: e } = this.model, t = e.source.getPSControlHandler();
if (t) {
const i = t.findPSControlHandlerAction("user");
const { form: t } = this.model, e = t.source.getPSControlHandler();
if (e) {
const i = e.findPSControlHandlerAction("user");
i && i.getPSAppDEMethod() && (this.userAction = i.getPSAppDEMethod().codeName);
}
}
......@@ -1296,18 +1296,18 @@ class _e extends Fe {
*/
async execUserAction() {
if (this.userAction) {
const e = this.getData();
await this.entityService.exec(this.userAction, this.context, e[0]);
const t = this.getData();
await this.entityService.exec(this.userAction, this.context, t[0]);
}
}
}
function je(s, a) {
return we(
function We(s, a) {
return be(
s,
(e, t) => new _e(a, e, t)
(t, e) => new He(a, t, e)
);
}
const ze = M({
const qe = M({
props: {
context: Object,
params: {
......@@ -1330,23 +1330,23 @@ const ze = M({
proxy: a
} = W();
return {
c: je(a, s.modelPath)
c: We(a, s.modelPath)
};
},
render(s) {
let a = null;
if (this.c.complete) {
const {
form: e
form: t
} = this.c.model;
this.c.providers[e.name] && (a = s(this.c.providers[e.name].component, {
this.c.providers[t.name] && (a = s(this.c.providers[t.name].component, {
props: {
modelData: e,
modelData: t,
context: this.c.context,
params: this.c.params
},
on: {
neuronInit: this.c.nerve.onNeuronInit(e.name)
neuronInit: this.c.nerve.onNeuronInit(t.name)
}
}));
}
......@@ -1357,37 +1357,186 @@ const ze = M({
}, [a]);
}
});
class Ye {
const Ke = M({
name: "DynamicLimitNumberInput",
props: De(),
emits: G(),
setup(s, {
emit: a
}) {
const t = R("input-number"), e = s.controller, i = E(-1 / 0), r = E(1 / 0), l = E(""), v = E(), d = E(!1);
T(() => s.value, (p, h) => {
if (p !== h) {
const g = Ie(p) ? null : Number(p);
l.value = Number.isNaN(g) ? null : g;
}
}, {
immediate: !0
});
let m = !1;
if (e.editorParams && e.editorParams.hiddenupdownbutton)
try {
m = JSON.parse(e.editorParams.hiddenupdownbutton);
} catch (p) {
m = !1;
}
const b = (p) => {
a("change", p);
};
s.autoFocus && T(v, (p) => {
p && p.$el.getElementsByTagName("input")[0].focus();
}), T(() => s.data, () => {
s.data && (e.maxValue && (r.value = Number(s.data[e.maxValue])), e.minValue && (i.value = Number(s.data[e.minValue])));
}, {
immediate: !0,
deep: !0
});
const c = _(() => e.model.precision === -1 || d.value ? void 0 : e.model.precision), y = () => {
d.value = !1;
}, f = () => {
d.value = !0;
}, D = _(() => e.model.precision && e.model.precision !== -1 ? l.value && Number(l.value).toFixed(e.model.precision) : l.value);
return {
ns: t,
c: e,
currentVal: l,
handleChange: b,
inputRef: v,
hiddenupdownbutton: m,
minValue: i,
maxValue: r,
handleBluer: y,
handleFocus: f,
precision: c,
readOnlyText: D
};
},
render(s) {
return s("div", {
class: [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : "", this.hiddenupdownbutton ? this.ns.m("hiddenupdownbutton") : "", this.controller.model.unitName ? this.ns.m("showUnitName") : ""]
}, [[this.readonly && this.readOnlyText, !this.readonly && s("IInputNumber", {
ref: "inputRef",
props: {
min: this.minValue,
max: this.maxValue,
...this.c.customProps,
value: this.currentVal,
placeholder: this.controller.placeHolder,
precision: this.precision,
disabled: this.disabled
},
on: {
"on-change": this.handleChange,
"on-blur": this.handleBluer,
"on-focus": this.handleFocus
}
}), this.controller.model.unitName && s("i", {
class: this.ns.e("unit"),
slot: "suffix"
}, [this.controller.model.unitName])]]);
}
});
class Je extends Oe {
constructor() {
super(...arguments);
/**
* 最大值字段
*
* @type {string}
* @memberof DynamicLimitNumberInputController
*/
C(this, "maxValue", "");
/**
* 最小值字段
*
* @type {string}
* @memberof DynamicLimitNumberInputController
*/
C(this, "minValue", "");
}
async onInit() {
var t, e;
await super.onInit(), (t = this.editorParams) != null && t.maxvalueproperty && (this.maxValue = this.editorParams.maxvalueproperty), (e = this.editorParams) != null && e.minvalueproperty && (this.minValue = this.editorParams.minvalueproperty);
}
}
const Xe = M({
name: "DynamicLimitGridInputNumber",
props: we(),
emits: Ce(),
setup(s, {
emit: a
}) {
const t = R("grid-input-number"), {
isInfoMode: e,
autoFocus: i,
componentRef: r,
onOperateChange: l,
onChange: v
} = Ee(s, {
emit: a
});
return {
ns: t,
isInfoMode: e,
autoFocus: i,
componentRef: r,
onOperateChange: l,
onChange: v
};
},
render(s) {
return s("grid-editor", {
attrs: {
disabled: this.disabled,
readonly: this.readonly
},
ref: "componentRef",
class: `${this.ns.b()}`
}, [s("DynamicLimitNumberInput", {
props: {
...this.$props,
readonly: this.isInfoMode,
disabled: this.disabled,
autoFocus: this.autoFocus
},
on: {
change: this.onChange,
operate: this.onOperateChange
}
})]);
}
});
class Ze {
constructor() {
P(this, "component", "IBizFormDataComparison");
C(this, "component", "IBizFormDataComparison");
}
}
class $e extends Ee {
async execAction(a, e, t, i) {
const n = {}, c = a.getPSAppDataEntity();
if (c) {
c.isFill === !1 && await c.fill(!0);
const g = new H(c);
await g.init();
const { resultContext: u } = await this.handleParams(
class Qe extends Ae {
async execAction(a, t, e, i) {
const r = {}, l = a.getPSAppDataEntity();
if (l) {
l.isFill === !1 && await l.fill(!0);
const v = new H(l);
await v.init();
const { resultContext: d } = await this.handleParams(
a,
e,
t,
e,
i
), m = ibiz.resourcePathUtil.calcPaths(
u,
g.codeName
), w = K(u, m);
let l = `${w}/${g.deNamePlural}/importtemplate`, v = `${w}/${g.deNamePlural}/importdata2`;
d,
v.codeName
), b = K(d, m);
let c = `${b}/${v.deNamePlural}/importtemplate`, y = `${b}/${v.deNamePlural}/importdata2`;
const f = a.getPSAppDEDataImport();
f && (l += `?srfimporttag=${f.codeName}`, v += `?srfimporttag=${f.codeName}`);
const C = ibiz.overlay.createModal(
f && (c += `?srfimporttag=${f.codeName}`, y += `?srfimporttag=${f.codeName}`);
const D = ibiz.overlay.createModal(
"CustomDataImport",
{
templateUrl: l,
importUrl: v,
dismiss: (h) => {
C.dismiss(h);
templateUrl: c,
importUrl: y,
dismiss: (p) => {
D.dismiss(p);
}
},
{
......@@ -1395,73 +1544,73 @@ class $e extends Ee {
placement: "center"
}
);
return C.present(), await C.onWillDismiss(), {
return D.present(), await D.onWillDismiss(), {
refresh: !0
};
}
return n;
return r;
}
}
class He {
class et {
constructor() {
P(this, "handler");
C(this, "handler");
}
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() {
P(this, "gridEditor", "YearMonthPicker");
P(this, "formEditor", "YearMonthPicker");
C(this, "gridEditor", "YearMonthPicker");
C(this, "formEditor", "YearMonthPicker");
}
async createController(a, e) {
const t = new Ie(a, e);
return await t.init(), t;
async createController(a, t) {
const e = new Te(a, t);
return await e.init(), e;
}
}
class We {
class at {
constructor() {
P(this, "formEditor", "DownLoadSafeFile");
P(this, "gridEditor", "DownLoadSafeFile");
C(this, "formEditor", "DownLoadSafeFile");
C(this, "gridEditor", "DownLoadSafeFile");
}
async createController(a, e) {
const t = new Se(a, e);
return await t.init(), t;
async createController(a, t) {
const e = new Me(a, t);
return await e.init(), e;
}
}
class qe extends re {
async execAction(a, e, t, i, n) {
const c = {}, { frontProcessType: g } = a;
if (g === "OPENHTMLPAGE") {
const u = ne.fill(a.htmlPageUrl, e, t == null ? void 0 : t[0]);
window.open(u, "_blank");
class st extends re {
async execAction(a, t, e, i, r) {
const l = {}, { frontProcessType: v } = a;
if (v === "OPENHTMLPAGE") {
const d = ne.fill(a.htmlPageUrl, t, e == null ? void 0 : e[0]);
window.open(d, "_blank");
}
if (g === "DATAIMP") {
const u = a.getPSAppDataEntity();
if (u) {
u.isFill === !1 && await u.fill(!0);
const m = new H(u);
if (v === "DATAIMP") {
const d = a.getPSAppDataEntity();
if (d) {
d.isFill === !1 && await d.fill(!0);
const m = new H(d);
await m.init();
const { resultContext: w } = await this.handleParams(
const { resultContext: b } = await this.handleParams(
a,
e,
t,
e,
i
), l = ibiz.resourcePathUtil.calcPaths(
w,
), c = ibiz.resourcePathUtil.calcPaths(
b,
m.codeName
), v = K(w, l);
let f = `${v}/${m.deNamePlural}/importtemplate`, C = `${v}/${m.deNamePlural}/importdata2`;
const h = a.getPSAppDEDataImport();
h && (f += `?srfimporttag=${h.codeName}`, C += `?srfimporttag=${h.codeName}`);
const p = ibiz.overlay.createModal(
), y = K(b, c);
let f = `${y}/${m.deNamePlural}/importtemplate`, D = `${y}/${m.deNamePlural}/importdata2`;
const p = a.getPSAppDEDataImport();
p && (f += `?srfimporttag=${p.codeName}`, D += `?srfimporttag=${p.codeName}`);
const h = ibiz.overlay.createModal(
"DataImport",
{
templateUrl: f,
importUrl: C,
dismiss: (y) => {
p.dismiss(y);
importUrl: D,
dismiss: (g) => {
h.dismiss(g);
}
},
{
......@@ -1469,126 +1618,126 @@ class qe extends re {
placement: "center"
}
);
return p.present(), await p.onWillDismiss(), {
return h.present(), await h.onWillDismiss(), {
refresh: !0
};
}
}
if (["TOP", "WIZARD"].includes(g)) {
const u = a.getFrontPSAppView();
if (!u)
if (["TOP", "WIZARD"].includes(v)) {
const d = a.getFrontPSAppView();
if (!d)
throw new Error("未配置打开视图");
await u.fill(!0);
const { resultContext: m, resultParams: w } = await this.handleParams(
await d.fill(!0);
const { resultContext: m, resultParams: b } = await this.handleParams(
a,
e,
t,
e,
i
), l = await ibiz.commands.execute(
), c = await ibiz.commands.execute(
q.TAG,
u,
d,
m,
w,
n
b,
r
);
(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);
} else if (n) {
const { neuron: u } = n, w = u.call.getFormController().call.getFormController(), { druipart1: l, druipart2: v, druipart3: f } = w.details;
(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 (r) {
const { neuron: d } = r, b = d.call.getFormController().call.getFormController(), { druipart1: c, druipart2: y, druipart3: f } = b.details;
[
{
message: "服务履历为空",
neuron: l
neuron: c
},
{
message: "教育经验为空",
neuron: v
neuron: y
},
{
message: "项目经验为空",
neuron: f
}
].some((p) => {
const y = p.neuron.neuron.call.getGridController();
if (y) {
const F = y.call.getGridController();
if (F && F.items && F.items.length > 0)
].some((h) => {
const g = h.neuron.neuron.call.getGridController();
if (g) {
const N = g.call.getGridController();
if (N && N.items && N.items.length > 0)
return !1;
}
return ibiz.message.error(`${p.message}`, 1.5, !0), !0;
}) || await u.call.wfStart();
return ibiz.message.error(`${h.message}`, 1.5, !0), !0;
}) || await d.call.wfStart();
}
return c;
return l;
}
}
class Ke {
class rt {
constructor() {
P(this, "handler");
C(this, "handler");
}
async getHandler() {
return this.handler || (this.handler = new qe()), this.handler;
return this.handler || (this.handler = new st()), this.handler;
}
}
class Je {
class ot {
constructor() {
P(this, "component", "FormMDCtrlFormStyle2");
C(this, "component", "FormMDCtrlFormStyle2");
}
async createController(a, e, t) {
const i = new le(a, e, t);
async createController(a, t, e) {
const i = new le(a, t, e);
return await i.init(), i;
}
}
class Xe {
class nt {
constructor() {
P(this, "formEditor", "AutoSelectAll");
P(this, "gridEditor", "AutoSelectAll");
C(this, "formEditor", "AutoSelectAll");
C(this, "gridEditor", "AutoSelectAll");
}
async createController(a, e) {
const t = new oe(a, e);
return await t.init(), t;
async createController(a, t) {
const e = new oe(a, t);
return await e.init(), e;
}
}
class Ze {
class it {
constructor() {
P(this, "formEditor", "MPickerCheckbox");
P(this, "gridEditor", "IBizGridPicker");
C(this, "formEditor", "MPickerCheckbox");
C(this, "gridEditor", "IBizGridPicker");
}
async createController(a, e) {
const t = new oe(a, e);
return await t.init(), t;
async createController(a, t) {
const e = new oe(a, t);
return await e.init(), e;
}
}
class Qe extends re {
async execAction(a, e, t, i, n) {
const c = {}, { frontProcessType: g } = a;
if (g === "OPENHTMLPAGE") {
const u = ne.fill(a.htmlPageUrl, e, t == null ? void 0 : t[0]);
window.open(u, "_blank");
class lt extends re {
async execAction(a, t, e, i, r) {
const l = {}, { frontProcessType: v } = a;
if (v === "OPENHTMLPAGE") {
const d = ne.fill(a.htmlPageUrl, t, e == null ? void 0 : e[0]);
window.open(d, "_blank");
}
if (g === "DATAIMP") {
const u = a.getPSAppDataEntity();
if (u) {
u.isFill === !1 && await u.fill(!0);
const m = new H(u);
if (v === "DATAIMP") {
const d = a.getPSAppDataEntity();
if (d) {
d.isFill === !1 && await d.fill(!0);
const m = new H(d);
await m.init();
const { resultContext: w } = await this.handleParams(
const { resultContext: b } = await this.handleParams(
a,
e,
t,
e,
i
), l = ibiz.resourcePathUtil.calcPaths(
w,
), c = ibiz.resourcePathUtil.calcPaths(
b,
m.codeName
), v = K(w, l);
let f = `${v}/${m.deNamePlural}/importtemplate`, C = `${v}/${m.deNamePlural}/importdata2`;
const h = a.getPSAppDEDataImport();
h && (f += `?srfimporttag=${h.codeName}`, C += `?srfimporttag=${h.codeName}`);
const p = ibiz.overlay.createModal(
), y = K(b, c);
let f = `${y}/${m.deNamePlural}/importtemplate`, D = `${y}/${m.deNamePlural}/importdata2`;
const p = a.getPSAppDEDataImport();
p && (f += `?srfimporttag=${p.codeName}`, D += `?srfimporttag=${p.codeName}`);
const h = ibiz.overlay.createModal(
"DataImport",
{
templateUrl: f,
importUrl: C,
dismiss: (y) => {
p.dismiss(y);
importUrl: D,
dismiss: (g) => {
h.dismiss(g);
}
},
{
......@@ -1596,97 +1745,114 @@ class Qe extends re {
placement: "center"
}
);
return p.present(), await p.onWillDismiss(), {
return h.present(), await h.onWillDismiss(), {
refresh: !0
};
}
}
if (["TOP", "WIZARD"].includes(g)) {
const u = a.getFrontPSAppView();
if (!u)
if (["TOP", "WIZARD"].includes(v)) {
const d = a.getFrontPSAppView();
if (!d)
throw new Error("未配置打开视图");
await u.fill(!0);
const { resultContext: m, resultParams: w } = await this.handleParams(
await d.fill(!0);
const { resultContext: m, resultParams: b } = await this.handleParams(
a,
e,
t,
e,
i
), l = await ibiz.commands.execute(
), c = await ibiz.commands.execute(
q.TAG,
u,
d,
m,
w,
n
b,
r
);
(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);
} else if (t && t.length > 0 && n) {
const { neuron: u } = n, l = await u.call.getFormController().call.getFormController().autoSave();
l && l.rcryqd && Array.isArray(l.rcryqd) && l.rcryqd.length > 0 ? await u.call.wfStart() : ibiz.message.error("入场信息为空");
(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 (e && e.length > 0 && r) {
const { neuron: d } = r, c = await d.call.getFormController().call.getFormController().autoSave();
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() {
P(this, "handler");
C(this, "handler");
}
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() {
P(this, "component", "FormDruipart");
C(this, "component", "FormDruipart");
}
async createController(a, e, t) {
const i = new Be(a, e, t);
async createController(a, t, e) {
const i = new Ge(a, t, e);
return await i.init(), i;
}
}
class at {
class ut {
constructor() {
P(this, "component", "WfEditView");
C(this, "component", "WfEditView");
}
}
const pt = {
class mt {
constructor(a) {
C(this, "formEditor", "IBizInput");
C(this, "gridEditor", "DynamicLimitGridInputNumber");
a === "NUMBER" && (this.formEditor = "IBizInputNumber", this.gridEditor = "DynamicLimitGridInputNumber");
}
async createController(a, t) {
const e = new Je(
a,
t
);
return await e.init(), e;
}
}
const Et = {
mateUrl: import.meta.url,
install(s) {
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(
ie.loadStyle(["/style.css"]), s.component("IBizFormDataComparison", Ve), s.component("CustomDataImport", Be), s.component("YearMonthPicker", _e), s.component("DownLoadSafeFile", je), s.component("FormMDCtrlFormStyle2", ze), s.component("AutoSelectAll", Ye), s.component("MPickerCheckbox", $e), s.component("WfEditView", qe), s.component("DynamicLimitNumberInput", Ke), s.component("DynamicLimitGridInputNumber", Xe), ibiz.register.editor.register(
"EDITOR_CUSTOMSTYLE_DYNAMIC_LIMIT_NUMBER_INPUT",
new mt()
), ibiz.register.control.register(
"EDITFORM_RENDER_FORM_DATA_COMPARISON",
new Ye()
new Ze()
), ibiz.register.uiAction.register(
"DEUIACTION_CUSTOM_IMPORT",
new He()
new et()
), ibiz.register.editor.register(
"DATEPICKEREX_NOTIME_YEAR_MONTH_PICKER",
new Ge()
new tt()
), ibiz.register.editor.register(
"FILEUPLOADER_ONE_DOWNLOAD_FILE",
new We()
new at()
), ibiz.register.uiAction.register(
"DEUIACTION_JUDEG_ENABLE_UPDATE",
new Ke()
new rt()
), ibiz.register.formDetail.register(
"FORM_USERCONTROL_MUL_FORM_CARD",
new Je()
new ot()
), ibiz.register.editor.register(
"EDITOR_CUSTOMSTYLE_AUTO_SELECT_ALL",
new Xe()
new nt()
), ibiz.register.editor.register(
"EDITOR_CUSTOMSTYLE_MULTIPLE_CHECKBOX",
new Ze()
new it()
), ibiz.register.uiAction.register(
"DEUIACTION_check_rcxx",
new et()
new ct()
), ibiz.register.formDetail.register(
"FORM_USERCONTROL_DRUIPART_ENABLEINITLOAD",
new tt()
new dt()
), ibiz.register.view.register(
"VIEW_CUSTOM_CUSTOM_WF",
new at()
new ut()
);
}
};
export {
pt as default
Et 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{width:100%;border:1px solid #cccccc;background-color:#f9f9f9;overflow:auto;white-space:nowrap}.ibiz-form-mdctrl-form-style2__header-item{display:inline-flex;gap:var(--ibiz-padding);align-items:center;padding:calc(var(--ibiz-padding) / 2) var(--ibiz-padding);border-right:1px solid #cccccc;cursor:pointer;border-bottom:1px solid #cccccc}.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-input-number{--ibiz-input-number-font-size: var(--ibiz-font-size-base);--ibiz-input-number-text-color: var(--ibiz-text-color);--ibiz-input-number-border-color: var(--ibiz-border-color);--ibiz-input-number-placeholder-color: var(--ibiz-text-color-placeholder);--ibiz-input-number-disabled-text-color: var(--ibiz-disabled-text-color);--ibiz-input-number-disabled-bg-color: var(--ibiz-disabled-bg-color);--ibiz-input-number-disabled-border-color: var(--ibiz-disabled-border-color);--ibiz-input-number-default-height: var(--ibiz-common-editor-size);--ibiz-input-number-border-radius: var(--ibiz-border-radius-small);--ibiz-input-number-textarea-disabled-bg-color: #fafafa;position:relative}.ibiz-input-number .ivu-input-number{width:100%;height:var(--ibiz-input-number-default-height);border-radius:var(--ibiz-input-number-border-radius)}.ibiz-input-number .ivu-input-number:hover{border-color:var(--ibiz-color-primary)}.ibiz-input-number .ivu-input-number-handler{height:calc(var(--ibiz-input-number-default-height) / 2)}.ibiz-input-number .ivu-input-number-handler .ivu-input-number-handler-down-inner,.ibiz-input-number .ivu-input-number-handler .ivu-input-number-handler-up-inner{line-height:calc(var(--ibiz-input-number-default-height) / 2 - 2px)}.ibiz-input-number .ivu-input-number-input-wrap,.ibiz-input-number .ivu-input-number-input{height:var(--ibiz-input-number-default-height)}.ibiz-input-number input{font-size:var(--ibiz-input-number-font-size);color:var(--ibiz-input-number-text-color);border-color:var(--ibiz-input-number-border-color)}.ibiz-input-number input::placeholder{color:var(--ibiz-input-number-placeholder-color)}.ibiz-input-number input[disabled]{color:var(--ibiz-input-number-disabled-text-color);background-color:var(--ibiz-input-number-disabled-bg-color);border-color:var(--ibiz-input-number-disabled-border-color)}.ibiz-input-number--readonly{color:var(--ibiz-text-color-readonly);word-break:break-word;white-space:pre-wrap}.ibiz-input-number--hiddenupdownbutton .ivu-input-number-handler-wrap{display:none}.ibiz-input-number--showUnitName .ivu-input-number-input{padding-right:27px}.ibiz-input-number--showUnitName .ibiz-input-number__unit{position:absolute;top:2px;right:0;z-index:1;width:32px;height:100%;font-size:var(--ibiz-input-number-font-size);font-style:normal;text-align:center}
......@@ -24,14 +24,14 @@
"publish:local": "npm run build && npm publish --access public --registry=http://172.16.240.221:8081/repository/local/"
},
"dependencies": {
"@ibiz-template/command": "^0.0.1-syui.1",
"@ibiz-template/controller": "^0.0.1-syui.3",
"@ibiz-template/core": "^0.0.1-syui.3",
"@ibiz-template/model": "^0.0.1-syui.3",
"@ibiz-template/runtime": "^0.0.1-syui.3",
"@ibiz-template/service": "^0.0.1-syui.3",
"@ibiz-template/theme": "^0.0.1-syui.4",
"@ibiz-template/vue-util": "^0.0.1-syui.3",
"@ibiz-template/command": "0.0.1-syui.1",
"@ibiz-template/controller": "0.0.1-syuifix.11",
"@ibiz-template/core": "0.0.1-syuifix.11",
"@ibiz-template/model": "0.0.1-syuifix.9",
"@ibiz-template/runtime": "0.0.1-syuifix.11",
"@ibiz-template/service": "0.0.1-syuifix.11",
"@ibiz-template/theme": "0.0.1-syuifix.11",
"@ibiz-template/vue-util": "0.0.1-syuifix.11",
"async-validator": "^4.2.5",
"axios": "^1.1.3",
"core-js": "3",
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册