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

feat: 更新dsf插件包

上级 fe0d8583
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 b = (s, a, e) => (ue(s, typeof a != "symbol" ? a + "" : a, e), e);
var P = (s, a, e) => (ue(s, typeof a != "symbol" ? a + "" : a, e), e);
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 P, watch as V, h as r, onMounted as De, computed as j } from "vue";
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 Se, UploadEditorController as Ie, PickerEditorController as oe } from "@ibiz-template/controller";
import { ControlVO as xe, calcResPath as K } from "@ibiz-template/service";
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 $ from "dayjs";
import { RuntimeError as ke, StringUtil as ne } from "@ibiz-template/core";
import { RuntimeError as xe, StringUtil as ne } from "@ibiz-template/core";
class Ne extends be {
constructor() {
super(...arguments);
......@@ -20,7 +20,7 @@ class Ne extends be {
* @date 2024-04-26 17:04:49
* @type {IData}
*/
b(this, "baseResData", []);
P(this, "baseResData", []);
/**
* 对比数据
*
......@@ -28,7 +28,7 @@ class Ne extends be {
* @date 2024-04-26 17:04:49
* @type {IData}
*/
b(this, "compareResData", []);
P(this, "compareResData", []);
/**
* 表单旧数据
*
......@@ -38,7 +38,7 @@ class Ne extends be {
* @type {IData}
* @memberof FormController
*/
b(this, "oldData", new xe());
P(this, "oldData", new ke());
/**
* version数据
*
......@@ -46,7 +46,7 @@ class Ne extends be {
* @date 2024-04-26 16:04:37
* @type {IData[]}
*/
b(this, "versionData", []);
P(this, "versionData", []);
/**
* 对比数据
*
......@@ -54,7 +54,7 @@ class Ne extends be {
* @date 2024-04-26 16:04:37
* @type {IData[]}
*/
b(this, "comparisonArr", {});
P(this, "comparisonArr", {});
/**
* 基础表格数据
*
......@@ -62,7 +62,7 @@ class Ne extends be {
* @date 2024-05-06 11:05:57
* @type {IData[]}
*/
b(this, "gridData", []);
P(this, "gridData", []);
/**
* 展示完全数据
*
......@@ -70,7 +70,7 @@ class Ne extends be {
* @date 2024-05-06 11:05:04
* @type {IData[]}
*/
b(this, "AllGridData", []);
P(this, "AllGridData", []);
/**
* 去除相同数据
*
......@@ -78,7 +78,7 @@ class Ne extends be {
* @date 2024-05-06 11:05:15
* @type {IData[]}
*/
b(this, "removeSameGridData", []);
P(this, "removeSameGridData", []);
/**
* 关系界面数据
*
......@@ -86,7 +86,7 @@ class Ne extends be {
* @date 2024-04-30 10:04:33
* @type {IData}
*/
b(this, "AlldruipartData", /* @__PURE__ */ new Map());
P(this, "AlldruipartData", /* @__PURE__ */ new Map());
/**
* 关系界面数据长度
*
......@@ -94,7 +94,7 @@ class Ne extends be {
* @date 2024-05-06 11:05:56
* @type {number}
*/
b(this, "druipartDataSize", 0);
P(this, "druipartDataSize", 0);
/**
* 关系界面实际数据
*
......@@ -102,7 +102,7 @@ class Ne extends be {
* @date 2024-05-06 11:05:13
* @type {IData}
*/
b(this, "newDruipartData", {});
P(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), d = await ibiz.entityService.getService(i), g = Object.assign({}, this.context.clone(), {
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(), {
[i.toLowerCase()]: this.params.compare_version
}), p = await n.exec("Get", g, this.params), y = await d.exec(
}), m = await n.exec("Get", g, this.params), w = await c.exec(
"Get",
u,
this.params
);
return this.isLoaded = !0, {
baseData: p.data.data,
compareData: y.data.data
baseData: m.data.data,
compareData: w.data.data
};
}
/**
......@@ -174,59 +174,59 @@ const Oe = M({
} = W(), t = fe(e, () => {
const o = new Ne(s.modelData, s.context, s.params);
return ve(e, "enableAutoSave", o.setEnableAutoSave.bind(o)), o;
}), i = P(!0), n = P(!1), d = P({}), g = P({}), u = P([]), p = [], y = P([]), c = P([]), v = P([]), f = /* @__PURE__ */ new Map(), w = P(0), l = (o) => {
const m = [];
if (m.push(o), o && o.children) {
const E = [];
}), 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 = l(S);
E.push(...x);
}), m.push(...E);
}
return m;
}, h = l(s.modelData);
p.push(...h);
const C = (o) => {
const m = t.details[o.source.name], E = r("not-supported-editor", {
const x = h(S);
b.push(...x);
}), d.push(...b);
}
return d;
}, p = h(s.modelData);
m.push(...p);
const y = (o) => {
const d = t.details[o.source.name], b = r("not-supported-editor", {
attrs: {
modelData: o.editor
}
});
return r("div", {
class: [a.e("form-grid-item"), a.is("add", y.value.includes(o.source.name)), a.is("update", v.value.includes(o.source.name)), a.is("delete", c.value.includes(o.source.name))]
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", {
class: a.em("form-grid-item", "name")
}, [o.source.caption]), r("div", {
class: a.em("form-grid-item", "left")
}, [m.editorProvider ? r(m.editorProvider.formEditor, {
}, [d.editorProvider ? r(d.editorProvider.formEditor, {
props: {
value: g.value[o.source.name],
data: m.data,
controller: m.editor,
disabled: m.disabled,
data: d.data,
controller: d.editor,
disabled: d.disabled,
readonly: !0
}
}) : E]), r("div", {
}) : b]), r("div", {
class: a.em("form-grid-item", "right")
}, [m.editorProvider ? r(m.editorProvider.formEditor, {
}, [d.editorProvider ? r(d.editorProvider.formEditor, {
props: {
value: d.value[o.source.name],
data: m.data,
controller: m.editor,
disabled: m.disabled,
value: c.value[o.source.name],
data: d.data,
controller: d.editor,
disabled: d.disabled,
readonly: !0
}
}) : E])]);
}, F = (o, m) => {
f.set(o.source.id, m), m.evt.on("mounted", () => {
i.value && t.startLoading(), w.value += 1, m.call.refresh();
}), m.evt.on("refreshed", () => {
w.value -= 1, setTimeout(() => {
}) : 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();
}, 500);
});
}, O = (o) => {
const m = p.find((L) => L.id === `${o.source.id}_srfcopy`), E = o.embedView.source.modelPath, S = m == null ? void 0 : m.embedView.source.modelPath, x = t.context.clone(), k = {
}, 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 = {
base_version: s.params.base_version
}, T = t.context.clone();
Object.assign(T, {
......@@ -235,7 +235,7 @@ const Oe = M({
});
const _ = {
compare_version: s.params.compare_version
}, R = d.value[o.source.userTag], U = g.value[m == null ? void 0 : m.source.userTag];
}, R = c.value[o.source.userTag], U = g.value[d == null ? void 0 : d.source.userTag];
let J = !1, z = !1, X = !1;
if (o.source.userTag2) {
const L = JSON.parse(o.source.userTag2), {
......@@ -262,22 +262,22 @@ const Oe = M({
},
modelPath: S,
noLoadDefault: !0,
name: m == null ? void 0 : m.source.id
name: d == null ? void 0 : d.source.id
},
key: te(),
on: {
neuronInit: (L) => F(m, L)
neuronInit: (L) => F(d, L)
}
})]), r("div", {
class: a.em("druipart", "right")
}, [E && r("ViewShell", {
}, [b && r("ViewShell", {
attrs: {
context: x,
params: k,
params: N,
modal: {
mode: ae.EMBED
},
modelPath: E,
modelPath: b,
noLoadDefault: !0,
name: o.source.id
},
......@@ -287,17 +287,17 @@ const Oe = M({
}
})])]);
}, D = (o) => {
const m = {
const d = {
modelData: o,
controller: t.details[o.source.name]
}, E = t.providers[o.source.name], S = r(E.component, {
}, b = t.providers[o.source.name], S = r(b.component, {
props: {
...m
...d
},
key: o.id
}), x = r(E.component, {
}), x = r(b.component, {
props: {
...m
...d
},
key: `compare_${o.id}`
});
......@@ -310,36 +310,36 @@ const Oe = M({
}, [S]), r("div", {
class: a.em("mdctrl", "right")
}, [x])]);
}, A = (o) => {
}, E = (o) => {
i.value = !1;
const m = u.value.findIndex((E) => E === o.source.name);
m > -1 ? u.value.splice(m, 1) : u.value.push(o.source.name);
}, I = (o) => {
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", {
class: a.e("form-page")
}, [o.children.map((m) => I(m))]);
}, [o.children.map((d) => k(d))]);
if (o.source.detailType === "FORMITEM") {
const m = y.value.includes(o.source.name), E = c.value.includes(o.source.name), S = v.value.includes(o.source.name);
return n.value && !m && !E && !S ? null : C(o);
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);
}
if (o.source.detailType === "GROUPPANEL") {
const m = u.value.includes(o.source.name);
const d = u.value.includes(o.source.name);
return r("div", {
class: a.b("group")
}, [r("div", {
class: [a.be("group", "header"), a.is("hide-caption", !o.source.showCaption)]
}, [r("div", {
class: a.bem("group", "header", "name")
}, [m ? r("i-icon", {
}, [d ? r("i-icon", {
class: a.bem("group", "header", "icon"),
attrs: {
type: "ios-arrow-forward",
title: "展开"
},
on: {
click: () => A(o)
click: () => E(o)
}
}) : r("i-icon", {
class: a.bem("group", "header", "icon"),
......@@ -348,50 +348,50 @@ const Oe = M({
title: "收缩"
},
on: {
click: () => A(o)
click: () => E(o)
}
}), r("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", m)]
}, [o.children.map((E) => I(E))])]);
class: [a.be("group", "content"), a.is("collapse", d)]
}, [o.children.map((b) => k(b))])]);
}
return o.source.detailType === "DRUIPART" && !o.source.name.endsWith("_srfcopy") ? O(o) : o.source.detailType === "MDCTRL" ? D(o) : null;
return o.source.detailType === "DRUIPART" && !o.source.name.endsWith("_srfcopy") ? I(o) : o.source.detailType === "MDCTRL" ? D(o) : null;
}
}, N = (o, m) => {
const E = [], S = [], x = [];
return Object.keys(m).forEach((k) => {
const T = o[k], _ = m[k];
t.isFalseyButNotEmpty(T) && !t.isFalseyButNotEmpty(_) && E.push(k), !t.isFalseyButNotEmpty(T) && !t.isFalseyButNotEmpty(_) && t.compareObjectValues(T, _) && S.push(k);
}), Object.keys(o).forEach((k) => {
if (!Object.prototype.hasOwnProperty.call(m, k) || t.isFalseyButNotEmpty(m[k])) {
const T = o[k];
t.isFalseyButNotEmpty(T) || x.push(k);
}, 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);
}
}), {
added: E,
added: b,
modified: S,
deleted: x
};
};
return V(() => s.params, async () => {
const o = await t.loadGridData();
d.value = o.baseData, g.value = o.compareData;
c.value = o.baseData, g.value = o.compareData;
const {
added: m,
modified: E,
added: d,
modified: b,
deleted: S
} = N(g.value, d.value);
y.value = m, v.value = E, c.value = S;
} = O(g.value, c.value);
w.value = d, v.value = b, l.value = S;
}, {
immediate: !0
}), {
ns: a,
c: t,
switchValue: n,
druipartNum: w,
renderEditor: C,
renderByDetailType: I
druipartNum: C,
renderEditor: y,
renderByDetailType: k
};
},
render() {
......@@ -459,15 +459,15 @@ const Te = M({
setup(s, {
emit: a
}) {
const e = B("data-import"), t = P(), i = P({
const e = B("data-import"), t = A(), i = A({
state: "ready",
message: "",
rowError: []
}), n = P(""), d = async (c) => {
}), n = A(""), c = async (l) => {
const v = new FormData(), f = $(n.value).format("YYYY-MM");
v.append("file", c), v.append("ny", f);
v.append("file", l), v.append("ny", f);
try {
const w = await ibiz.net.request(s.importUrl, {
const C = await ibiz.net.request(s.importUrl, {
method: "post",
data: v,
headers: {
......@@ -476,46 +476,46 @@ const Te = M({
});
i.value.state = "success", i.value.message = "导入成功";
const {
errorinfo: l,
success: h,
total: C
} = w.data, F = C ? Number(C) : 0, O = h ? Number(h) : 0, D = C - h;
i.value.message = `共计导入数据 ${F} 条,错误[${D}],成功[${O}]`, l && Object.keys(l).length > 0 && (i.value.rowError = [], Object.keys(l).forEach((A) => {
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) => {
i.value.rowError.push({
index: Number(A) + 1,
info: l[A].errorInfo
index: Number(E) + 1,
info: h[E].errorInfo
});
}));
} catch (w) {
i.value.state = "fail", i.value.message = `导入失败!${w.message}`;
} catch (C) {
i.value.state = "fail", i.value.message = `导入失败!${C.message}`;
}
}, g = (c) => {
const v = c.target;
}, g = (l) => {
const v = l.target;
if (!v.files)
return;
const f = v.files[0];
v.value = null, d(f);
v.value = null, c(f);
}, u = async () => {
var v;
const c = await ibiz.net.request(s.templateUrl, {
const l = await ibiz.net.request(s.templateUrl, {
responseType: "blob"
});
if (c.status === 200) {
let f = ((v = c.headers["content-disposition"].split(";").find((h) => h.indexOf("filename=") !== -1)) == null ? void 0 : v.slice(9)) || "";
if (l.status === 200) {
let f = ((v = l.headers["content-disposition"].split(";").find((p) => p.indexOf("filename=") !== -1)) == null ? void 0 : v.slice(9)) || "";
f = decodeURIComponent(f);
const w = new Blob([c.data], {
const C = new Blob([l.data], {
type: "application/vnd.ms-excel"
}), l = document.createElement("a");
l.download = f, l.style.display = "none", l.href = URL.createObjectURL(w), document.body.appendChild(l), l.click(), URL.revokeObjectURL(l.href), document.body.removeChild(l);
}), 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 = () => {
}, m = () => {
t.value.click();
}, y = () => {
var c;
}, w = () => {
var l;
a("close", {
ok: !1,
data: {}
}), (c = s.dismiss) == null || c.call(s, {
}), (l = s.dismiss) == null || l.call(s, {
ok: !1,
data: {}
});
......@@ -526,8 +526,8 @@ const Te = M({
ns: e,
curDate: n,
onLinkClick: u,
selectFile: p,
onCancelButtonClick: y,
selectFile: m,
onCancelButtonClick: w,
onFileChange: g,
inputUpLoad: t,
message: i
......@@ -613,7 +613,7 @@ const Me = M({
setup(s, {
emit: a
}) {
const e = B("date-picker"), t = s.controller, i = t.model, n = P("date"), d = P("yyyy-MM-dd"), g = P(!1);
const e = B("date-picker"), t = s.controller, i = t.model, n = A("date"), c = A("yyyy-MM-dd"), g = A(!1);
switch (i.editorType) {
case "DATEPICKEREX":
case "DATEPICKEREX_NOTIME":
......@@ -635,24 +635,24 @@ const Me = M({
if (u) {
u === "YYYY-MM" ? n.value = "month" : u === "YYYY" && (n.value = "year");
const f = u.replace("YYYY", "yyyy").replace("DD", "dd");
d.value = f;
c.value = f;
}
i.editorParams.formatText && (d.value = i.editorParams.formatText.replace("YYYY", "yyyy").replace("DD", "dd"));
const p = P();
V(() => s.value, (f, w) => {
f && f !== w && (p.value = $(f).format(u));
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));
}, {
immediate: !0
});
const y = (f, w) => {
const w = (f, C) => {
if (f) {
const l = $(f.replace(/[年月]/g, "-")).format(u);
a("change", l);
const h = $(f.replace(/[年月]/g, "-")).format(u);
a("change", h);
} else
a("change", f);
}, c = (f) => {
}, l = (f) => {
a("operate", f);
}, v = P();
}, v = A();
return s.autoFocus && V(v, (f) => {
f && f.$el.getElementsByTagName("input")[0].click();
}), {
......@@ -660,10 +660,10 @@ const Me = M({
c: t,
editorModel: i,
type: n,
format: d,
formatValue: p,
handleChange: y,
onOpenChange: c,
format: c,
formatValue: m,
handleChange: w,
onOpenChange: l,
inputRef: v,
isTimePicker: g
};
......@@ -734,7 +734,7 @@ class le extends Pe {
* @type {number}
* @memberof FormMDCtrlFormStyle2Controller
*/
b(this, "active", 0);
P(this, "active", 0);
}
/**
* 计算表单更新项信息
......@@ -761,7 +761,7 @@ class le extends Pe {
this.formNeurons.delete(e);
}), t.evt.on("valueChange", (i) => {
if (i) {
const n = this.contentCtrlData.find((d) => d.srfkey === i.srfkey);
const n = this.contentCtrlData.find((c) => c.srfkey === i.srfkey);
n && Object.assign(n, i), this.force();
}
}), t.evt.on("afterSave", async () => {
......@@ -771,9 +771,9 @@ class le extends Pe {
]);
const n = this.model.source.getPSDEFormItemUpdate();
if (n) {
const { methodName: d, itemNames: g, model: u } = this.calcFormUpdateItem(n);
const { methodName: c, itemNames: g, model: u } = this.calcFormUpdateItem(n);
await this.form.updateFormItem(
d,
c,
g,
u
);
......@@ -788,19 +788,19 @@ class le extends Pe {
*/
async validate() {
const e = [];
this.formNeurons.forEach((n, d) => {
this.formNeurons.forEach((n, c) => {
const g = n.call.getFormController();
e.push({ key: d, controller: g });
e.push({ key: c, controller: g });
});
let t = "";
const i = await Promise.all(
e.map(async (n) => {
const d = await n.controller.validate();
return !t && !d && (t = n.key), d;
const c = await n.controller.validate();
return !t && !c && (t = n.key), c;
})
);
if (t) {
const n = this.contentCtrlData.findIndex((d) => d.srfkey === t);
const n = this.contentCtrlData.findIndex((c) => c.srfkey === t);
n > -1 && (this.active = n);
}
return i.findIndex((n) => !n) === -1;
......@@ -813,19 +813,19 @@ class le extends Pe {
*/
async silentValidate() {
const e = [];
this.formNeurons.forEach((n, d) => {
this.formNeurons.forEach((n, c) => {
const g = n.call.getFormController();
e.push({ key: d, controller: g });
e.push({ key: c, controller: g });
});
let t = "";
const i = await Promise.all(
e.map(async (n) => {
const d = await n.controller.silentValidate();
return !t && !d && (t = n.key), d;
const c = await n.controller.silentValidate();
return !t && !c && (t = n.key), c;
})
);
if (t) {
const n = this.contentCtrlData.findIndex((d) => d.srfkey === t);
const n = this.contentCtrlData.findIndex((c) => c.srfkey === t);
n > -1 && (this.active = n);
}
return i.findIndex((n) => !n) === -1;
......@@ -848,56 +848,56 @@ const Ue = M({
proxy: t
} = W();
ge(t, s.controller);
const i = async (p, y, c) => {
c.stopPropagation(), c.preventDefault();
const i = async (m, w, l) => {
l.stopPropagation(), l.preventDefault();
const v = e.contentCtrlData.length;
await e.handleRemove(p, y), v !== e.contentCtrlData.length && y <= e.active && e.active !== 0 && (e.active -= 1);
}, n = (p) => {
e.active = p, e.force();
}, d = async () => {
const p = JSON.parse(JSON.stringify(e.contentCtrlData)).length;
await e.handleAdd(), p < e.contentCtrlData.length && (e.active = e.contentCtrlData.length - 1);
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 = () => {
const p = s.modelData.source.userTag;
let y = {};
p && (y = JSON.parse(p));
const m = s.modelData.source.userTag;
let w = {};
m && (w = JSON.parse(m));
const {
tabtitle: c,
tabtitle: l,
addtitle: v,
usermode: f
} = y;
return f === "user1" && e.contentCtrlData.some((l) => l.rcrylx === "system") ? r("div", {
} = w;
return f === "user1" && e.contentCtrlData.some((h) => h.rcrylx === "system") ? r("div", {
class: a.e("header")
}, [e.contentCtrlData.map((l, h) => {
let C = "";
l.srfmajortext ? C = l.srfmajortext : c && l[c] && (C = l[c]);
}, [e.contentCtrlData.map((h, p) => {
let y = "";
h.srfmajortext ? y = h.srfmajortext : l && h[l] && (y = h[l]);
let F = "待确认";
return l.is_rc === 1 ? F = "确认入场" : l.is_rc === 0 && (F = "放弃入场"), r("div", {
class: [a.e("header-item"), a.is("actived", h === e.active)],
return h.is_rc === 1 ? F = "确认入场" : h.is_rc === 0 && (F = "放弃入场"), r("div", {
class: [a.e("header-item"), a.is("actived", p === e.active)],
on: {
click: () => n(h)
click: () => n(p)
}
}, [r("div", {
class: a.em("header-item", "title")
}, [C, "(", F, ")"])]);
}, [y, "(", F, ")"])]);
})]) : r("div", {
class: a.e("header")
}, [e.contentCtrlData.map((w, l) => {
let h = `新建${l + 1}`;
return w.srfmajortext ? h = w.srfmajortext : c && w[c] ? h = w[c] : v && (h = `${v}${l + 1}`), r("div", {
class: [a.e("header-item"), a.is("actived", l === e.active)],
}, [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)],
on: {
click: () => n(l)
click: () => n(h)
}
}, [r("div", {
class: a.em("header-item", "title")
}, [h]), e.enableDelete && r("div", {
}, [p]), e.enableDelete && r("div", {
class: a.em("header-item", "delete"),
attrs: {
title: "移除"
},
on: {
click: (C) => i(w, l, C)
click: (y) => i(C, h, y)
}
}, [r("i", {
class: "fa fa-close"
......@@ -908,44 +908,44 @@ const Ue = M({
title: "添加"
},
on: {
click: () => d()
click: () => c()
}
}, [r("span", ["添加"]), r("i", {
class: "fa fa-plus"
})])]);
};
return V(() => e.form.isLoaded, (p, y) => {
p !== y && p === !0 && e.loadData();
return V(() => e.form.isLoaded, (m, w) => {
m !== w && m === !0 && e.loadData();
}), {
ns: a,
rendertanHeader: g,
renderTabs: () => e.contentCtrlData.map((p, y) => {
renderTabs: () => e.contentCtrlData.map((m, w) => {
var f;
let c = null;
let l = null;
const {
form: v
} = e.model;
if (v && e.providers[v.name] && e.model.appEntity) {
const w = Object.assign(e.form.context.clone(), {
[(f = e.model.appEntity.codeName) == null ? void 0 : f.toLowerCase()]: p[e.model.appEntity.keyName]
const C = Object.assign(e.form.context.clone(), {
[(f = e.model.appEntity.codeName) == null ? void 0 : f.toLowerCase()]: m[e.model.appEntity.keyName]
});
c = r(e.providers[v.name].component, {
l = r(e.providers[v.name].component, {
props: {
modelData: v,
context: w,
context: C,
params: e.form.params,
enableAutoSave: !0,
silentVerify: !0
},
on: {
neuronInit: e.onNeuronInit(p.srfkey)
neuronInit: e.onNeuronInit(m.srfkey)
}
});
}
return r("div", {
class: [a.e("content"), a.is("actived", y === e.active)],
key: p.srfkey
}, [c]);
class: [a.e("content"), a.is("actived", w === e.active)],
key: m.srfkey
}, [l]);
})
};
},
......@@ -961,75 +961,75 @@ const Ue = M({
setup(s, {
emit: a
}) {
const e = B("mpicker"), t = s.controller, i = P([]), n = P([]), d = P([]), g = P(!1), u = P(!1), p = P(null), y = P([]), c = P(!0), v = j(() => {
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] : "";
});
V(() => s.value, (D) => {
i.value = [], d.value = [], D && (d.value = JSON.parse(D), d.value.length > 0 && d.value.forEach((A) => {
n.value.findIndex((N) => Object.is(N.srfkey, A.srfkey)) < 0 && (n.value.push(A), y.value.push(A.srfmajortext)), i.value.push(A.srfkey);
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);
}));
}, {
immediate: !0,
deep: !0
});
const f = async (D) => {
const A = [];
const E = [];
if (D && Array.isArray(D))
for (let N = 0; N < D.length; N++) {
const o = D[N], m = {
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
}, E = await t.calcFillDataItems(o);
E.length > 0 && E.forEach((x) => {
Object.assign(m, {
}, b = await t.calcFillDataItems(o);
b.length > 0 && b.forEach((x) => {
Object.assign(d, {
[x.name]: x.value
});
}), A.push(m), n.value.findIndex((x) => Object.is(x[t.keyName], o[t.keyName])) < 0 && n.value.push(m);
}), E.push(d), n.value.findIndex((x) => Object.is(x[t.keyName], o[t.keyName])) < 0 && n.value.push(d);
}
const I = A.length > 0 ? JSON.stringify(A) : "";
a("change", I);
}, w = async () => {
const k = E.length > 0 ? JSON.stringify(E) : "";
a("change", k);
}, C = async () => {
let D;
d.value.length && (D = JSON.stringify(d.value));
const A = await t.openPickUpView(s.data, D);
A && f(A);
}, l = (D) => {
const A = [];
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((N) => {
let o = n.value.findIndex((E) => Object.is(E.srfkey, N)), m = null;
o >= 0 ? m = n.value[o] : (o = d.value.findIndex((E) => Object.is(E.srfkey, N)), o >= 0 && (m = d.value[o])), m && A.push(m);
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 I = A.length > 0 ? JSON.stringify(A) : "";
a("change", I);
const k = E.length > 0 ? JSON.stringify(E) : "";
a("change", k);
} else
a("change", "");
}, h = async (D) => {
}, p = async (D) => {
if (t.model.appDataEntity) {
u.value = !0;
try {
const A = await t.getServiceData(D, s.data);
u.value = !1, n.value = [], A.data.length > 0 && (n.value = A.data.map((I) => ({
srfkey: I[t.keyName],
srfmajortext: I[t.textName]
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]
})));
} catch (A) {
} catch (E) {
u.value = !1;
}
}
}, C = (D) => {
g.value = D, a("operate", D), g.value && h("");
}, F = j(() => d.value.map((D) => D.srfmajortext).join("、")), O = (D) => {
}, 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;
};
return V(() => v.value, async (D) => {
if (D) {
await h("");
const A = n.value.map((I) => I.srfkey);
if (c.value && (c.value = !1, s.value))
await p("");
const E = n.value.map((k) => k.srfkey);
if (l.value && (l.value = !1, s.value))
return;
l(A);
h(E);
} else
n.value = [], a("change", "");
}, {
......@@ -1037,17 +1037,17 @@ const Ue = M({
}), {
ns: e,
c: t,
selectRef: p,
selectRef: m,
curValue: i,
loading: u,
items: n,
defaultLabel: y,
defaultLabel: w,
valueText: F,
onSearch: h,
onOpenChange: C,
onSelect: l,
openPickUpView: w,
setDefaultOptions: O
onSearch: p,
onOpenChange: y,
onSelect: h,
openPickUpView: C,
setDefaultOptions: I
};
},
render(s) {
......@@ -1099,69 +1099,73 @@ const Ve = M({
setup(s, {
emit: a
}) {
const e = B("checkbox"), t = s.controller, i = P([]), n = P([]), d = P(!0), g = ",", u = j({
const e = B("checkbox"), t = s.controller, i = A([]), n = A([]), c = A(!0), g = ",", u = t.editorParams.emptyClearItems, m = j({
get() {
var l;
return ((l = s.value) == null ? void 0 : l.split(",")) || [];
var p;
return ((p = s.value) == null ? void 0 : p.split(",")) || [];
},
set(l) {
let h = null;
const C = [];
i.value.length > 0 && (i.value.forEach((F) => {
l.findIndex((D) => Object.is(F.value, D)) !== -1 && C.push(F.value);
}), h = C.join(g)), a("change", h);
}
}), p = async (l) => {
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);
}
}
}), w = async (p) => {
const {
context: h,
params: C
} = t.handlePublicParams(l, t.context, t.params);
context: y,
params: F
} = t.handlePublicParams(p, t.context, t.params);
if (t.editorParams.codeTag) {
let F = [];
const O = t.editorParams.codeTag;
return F = await ibiz.codeListService.get(O, h, C), F;
let I = [];
const D = t.editorParams.codeTag;
return I = await ibiz.codeListService.get(D, y, F), I;
}
throw new he(t.model.source, "请配置代码表");
}, y = (l) => {
u.value = l;
}, c = j(() => {
const l = Array.isArray(u.value) ? u.value : [u.value];
return i.value.filter((h) => l.includes(h.srfkey)).map((h) => h.srfmajortext).join("、");
}), v = async (l) => {
}, 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)
try {
const h = await t.getServiceData(l, s.data);
n.value = [], h.data.length > 0 && (n.value = h.data.map((C) => ({
srfkey: C[t.keyName],
srfmajortext: C[t.textName]
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]
})));
} catch (h) {
console.error(h);
}
}, f = j(() => {
const l = t.editorParams.followitem;
return l ? s.data[l] : "";
}), w = () => {
const l = [];
i.value.forEach((h) => {
n.value.findIndex((F) => F.srfkey === h.value) > -1 && l.push(h.value);
}), y(l);
} catch (y) {
console.error(y);
}
}, 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);
};
return V(() => f, async (l) => {
await p(l).then((h) => {
i.value = h;
}), await v(""), !(d.value && (d.value = !1, s.value)) && w();
return V(() => C, async (p) => {
await w(p).then((y) => {
i.value = y;
}), await f(""), !(c.value && (c.value = !1, s.value)) && h();
}, {
immediate: !0,
deep: !0
}), {
ns: e,
c: t,
valueText: c,
selectArray: u,
valueText: v,
selectArray: m,
items: i,
onSearch: v,
onSelectArrayChange: y
onSearch: f,
onSelectArrayChange: l
};
},
render(s) {
......@@ -1239,7 +1243,7 @@ class _e extends Fe {
* @type {string}
* @memberof WfEditViewController
*/
b(this, "userAction");
P(this, "userAction");
}
async onInit() {
await super.onInit(), this.getUserAction();
......@@ -1252,25 +1256,25 @@ class _e extends Fe {
* @returns {*} {Promise<void>}
*/
async wfStart() {
var p;
var m;
await this.save(), await this.execUserAction();
const e = await this.entityService.wf.getWFVersion();
if (e.data.length === 0)
throw new ke("当前工作流版本不存在");
throw new xe("当前工作流版本不存在");
const t = e.data[0], i = `WFSTART@${t.wfversion}`, n = Object.assign(this.context.clone(), {
activeForm: t["process-form"]
}), d = {
}), c = {
processDefinitionKey: t.definitionkey
}, g = (p = this.model.source.findPSAppViewRef(i)) == null ? void 0 : p.getRefPSAppView();
}, g = (m = this.model.source.findPSAppViewRef(i)) == null ? void 0 : m.getRefPSAppView();
if (!g) {
await this.nerve.form.call.wfStart(d), await this.closeView();
await this.nerve.form.call.wfStart(c), await this.closeView();
return;
}
(await ibiz.commands.execute(
q.TAG,
g,
n,
d
c
)).ok && await this.closeView();
}
/**
......@@ -1355,35 +1359,35 @@ const ze = M({
});
class Ye {
constructor() {
b(this, "component", "IBizFormDataComparison");
P(this, "component", "IBizFormDataComparison");
}
}
class $e extends Ee {
async execAction(a, e, t, i) {
const n = {}, d = a.getPSAppDataEntity();
if (d) {
d.isFill === !1 && await d.fill(!0);
const g = new H(d);
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(
a,
e,
t,
i
), p = ibiz.resourcePathUtil.calcPaths(
), m = ibiz.resourcePathUtil.calcPaths(
u,
g.codeName
), y = K(u, p);
let c = `${y}/${g.deNamePlural}/importtemplate`, v = `${y}/${g.deNamePlural}/importdata2`;
), w = K(u, m);
let l = `${w}/${g.deNamePlural}/importtemplate`, v = `${w}/${g.deNamePlural}/importdata2`;
const f = a.getPSAppDEDataImport();
f && (c += `?srfimporttag=${f.codeName}`, v += `?srfimporttag=${f.codeName}`);
const w = ibiz.overlay.createModal(
f && (l += `?srfimporttag=${f.codeName}`, v += `?srfimporttag=${f.codeName}`);
const C = ibiz.overlay.createModal(
"CustomDataImport",
{
templateUrl: c,
templateUrl: l,
importUrl: v,
dismiss: (l) => {
w.dismiss(l);
dismiss: (h) => {
C.dismiss(h);
}
},
{
......@@ -1391,7 +1395,7 @@ class $e extends Ee {
placement: "center"
}
);
return w.present(), await w.onWillDismiss(), {
return C.present(), await C.onWillDismiss(), {
refresh: !0
};
}
......@@ -1400,7 +1404,7 @@ class $e extends Ee {
}
class He {
constructor() {
b(this, "handler");
P(this, "handler");
}
async getHandler() {
return this.handler || (this.handler = new $e()), this.handler;
......@@ -1408,27 +1412,27 @@ class He {
}
class Ge {
constructor() {
b(this, "gridEditor", "YearMonthPicker");
b(this, "formEditor", "YearMonthPicker");
P(this, "gridEditor", "YearMonthPicker");
P(this, "formEditor", "YearMonthPicker");
}
async createController(a, e) {
const t = new Se(a, e);
const t = new Ie(a, e);
return await t.init(), t;
}
}
class We {
constructor() {
b(this, "formEditor", "DownLoadSafeFile");
b(this, "gridEditor", "DownLoadSafeFile");
P(this, "formEditor", "DownLoadSafeFile");
P(this, "gridEditor", "DownLoadSafeFile");
}
async createController(a, e) {
const t = new Ie(a, e);
const t = new Se(a, e);
return await t.init(), t;
}
}
class qe extends re {
async execAction(a, e, t, i, n) {
const d = {}, { frontProcessType: g } = a;
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");
......@@ -1437,27 +1441,27 @@ class qe extends re {
const u = a.getPSAppDataEntity();
if (u) {
u.isFill === !1 && await u.fill(!0);
const p = new H(u);
await p.init();
const { resultContext: y } = await this.handleParams(
const m = new H(u);
await m.init();
const { resultContext: w } = await this.handleParams(
a,
e,
t,
i
), c = ibiz.resourcePathUtil.calcPaths(
y,
p.codeName
), v = K(y, c);
let f = `${v}/${p.deNamePlural}/importtemplate`, w = `${v}/${p.deNamePlural}/importdata2`;
const l = a.getPSAppDEDataImport();
l && (f += `?srfimporttag=${l.codeName}`, w += `?srfimporttag=${l.codeName}`);
const h = ibiz.overlay.createModal(
), l = ibiz.resourcePathUtil.calcPaths(
w,
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(
"DataImport",
{
templateUrl: f,
importUrl: w,
dismiss: (C) => {
h.dismiss(C);
importUrl: C,
dismiss: (y) => {
p.dismiss(y);
}
},
{
......@@ -1465,7 +1469,7 @@ class qe extends re {
placement: "center"
}
);
return h.present(), await h.onWillDismiss(), {
return p.present(), await p.onWillDismiss(), {
refresh: !0
};
}
......@@ -1475,25 +1479,25 @@ class qe extends re {
if (!u)
throw new Error("未配置打开视图");
await u.fill(!0);
const { resultContext: p, resultParams: y } = await this.handleParams(
const { resultContext: m, resultParams: w } = await this.handleParams(
a,
e,
t,
i
), c = await ibiz.commands.execute(
), l = await ibiz.commands.execute(
q.TAG,
u,
p,
y,
m,
w,
n
);
(c == null ? void 0 : c.ok) === !1 && (d.closeView = !1, d.refresh = !1, d.cancel = !0), c != null && c.ok && c.data && (d.data = c.data);
(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, y = u.call.getFormController().call.getFormController(), { druipart1: c, druipart2: v, druipart3: f } = y.details;
const { neuron: u } = n, w = u.call.getFormController().call.getFormController(), { druipart1: l, druipart2: v, druipart3: f } = w.details;
[
{
message: "服务履历为空",
neuron: c
neuron: l
},
{
message: "教育经验为空",
......@@ -1503,22 +1507,22 @@ class qe extends re {
message: "项目经验为空",
neuron: f
}
].some((h) => {
const C = h.neuron.neuron.call.getGridController();
if (C) {
const F = C.call.getGridController();
].some((p) => {
const y = p.neuron.neuron.call.getGridController();
if (y) {
const F = y.call.getGridController();
if (F && F.items && F.items.length > 0)
return !1;
}
return ibiz.message.error(`${h.message}`, 1.5, !0), !0;
return ibiz.message.error(`${p.message}`, 1.5, !0), !0;
}) || await u.call.wfStart();
}
return d;
return c;
}
}
class Ke {
constructor() {
b(this, "handler");
P(this, "handler");
}
async getHandler() {
return this.handler || (this.handler = new qe()), this.handler;
......@@ -1526,7 +1530,7 @@ class Ke {
}
class Je {
constructor() {
b(this, "component", "FormMDCtrlFormStyle2");
P(this, "component", "FormMDCtrlFormStyle2");
}
async createController(a, e, t) {
const i = new le(a, e, t);
......@@ -1535,8 +1539,8 @@ class Je {
}
class Xe {
constructor() {
b(this, "formEditor", "AutoSelectAll");
b(this, "gridEditor", "AutoSelectAll");
P(this, "formEditor", "AutoSelectAll");
P(this, "gridEditor", "AutoSelectAll");
}
async createController(a, e) {
const t = new oe(a, e);
......@@ -1545,8 +1549,8 @@ class Xe {
}
class Ze {
constructor() {
b(this, "formEditor", "MPickerCheckbox");
b(this, "gridEditor", "IBizGridPicker");
P(this, "formEditor", "MPickerCheckbox");
P(this, "gridEditor", "IBizGridPicker");
}
async createController(a, e) {
const t = new oe(a, e);
......@@ -1555,7 +1559,7 @@ class Ze {
}
class Qe extends re {
async execAction(a, e, t, i, n) {
const d = {}, { frontProcessType: g } = a;
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");
......@@ -1564,27 +1568,27 @@ class Qe extends re {
const u = a.getPSAppDataEntity();
if (u) {
u.isFill === !1 && await u.fill(!0);
const p = new H(u);
await p.init();
const { resultContext: y } = await this.handleParams(
const m = new H(u);
await m.init();
const { resultContext: w } = await this.handleParams(
a,
e,
t,
i
), c = ibiz.resourcePathUtil.calcPaths(
y,
p.codeName
), v = K(y, c);
let f = `${v}/${p.deNamePlural}/importtemplate`, w = `${v}/${p.deNamePlural}/importdata2`;
const l = a.getPSAppDEDataImport();
l && (f += `?srfimporttag=${l.codeName}`, w += `?srfimporttag=${l.codeName}`);
const h = ibiz.overlay.createModal(
), l = ibiz.resourcePathUtil.calcPaths(
w,
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(
"DataImport",
{
templateUrl: f,
importUrl: w,
dismiss: (C) => {
h.dismiss(C);
importUrl: C,
dismiss: (y) => {
p.dismiss(y);
}
},
{
......@@ -1592,7 +1596,7 @@ class Qe extends re {
placement: "center"
}
);
return h.present(), await h.onWillDismiss(), {
return p.present(), await p.onWillDismiss(), {
refresh: !0
};
}
......@@ -1602,29 +1606,29 @@ class Qe extends re {
if (!u)
throw new Error("未配置打开视图");
await u.fill(!0);
const { resultContext: p, resultParams: y } = await this.handleParams(
const { resultContext: m, resultParams: w } = await this.handleParams(
a,
e,
t,
i
), c = await ibiz.commands.execute(
), l = await ibiz.commands.execute(
q.TAG,
u,
p,
y,
m,
w,
n
);
(c == null ? void 0 : c.ok) === !1 && (d.closeView = !1, d.refresh = !1, d.cancel = !0), c != null && c.ok && c.data && (d.data = c.data);
(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, c = await u.call.getFormController().call.getFormController().autoSave();
c && c.rcryqd && Array.isArray(c.rcryqd) && c.rcryqd.length > 0 ? await u.call.wfStart() : ibiz.message.error("入场信息为空");
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("入场信息为空");
}
return d;
return c;
}
}
class et {
constructor() {
b(this, "handler");
P(this, "handler");
}
async getHandler() {
return this.handler || (this.handler = new Qe()), this.handler;
......@@ -1632,7 +1636,7 @@ class et {
}
class tt {
constructor() {
b(this, "component", "FormDruipart");
P(this, "component", "FormDruipart");
}
async createController(a, e, t) {
const i = new Be(a, e, t);
......@@ -1641,7 +1645,7 @@ class tt {
}
class at {
constructor() {
b(this, "component", "WfEditView");
P(this, "component", "WfEditView");
}
}
const pt = {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册