2026-05-28 09:48:42 +08:00

139 lines
12 KiB
JavaScript

"use strict";
const common_vendor = require("../../../common/vendor.js");
const ME_emergency_show_model = require("./model.js");
const ME_emergency_show_method = require("./method.js");
const gen_Enums = require("../../../gen/Enums.js");
require("../../../common/libraries/apiLoading.js");
require("../../../gen/Apis.js");
require("../../../common/libraries/request.js");
require("../../../common/store/useWeAppAuthStore.js");
require("../../../common/store/useWatermarkStore.js");
require("../../../common/store/useWorkStore.js");
if (!Array) {
const _easycom_hs_enum_tag2 = common_vendor.resolveComponent("hs-enum-tag");
const _easycom_cc_scroll_loading2 = common_vendor.resolveComponent("cc-scroll-loading");
const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
const _easycom_hs_footer2 = common_vendor.resolveComponent("hs-footer");
(_easycom_hs_enum_tag2 + _easycom_cc_scroll_loading2 + _easycom_uni_icons2 + _easycom_hs_footer2)();
}
const _easycom_hs_enum_tag = () => "../../../components/hs-enum-tag/hs-enum-tag.js";
const _easycom_cc_scroll_loading = () => "../../../common/components/cc-scroll-loading/cc-scroll-loading.js";
const _easycom_uni_icons = () => "../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
const _easycom_hs_footer = () => "../../../components/hs-footer/hs-footer.js";
if (!Math) {
(_easycom_hs_enum_tag + MyProcessLogs + _easycom_cc_scroll_loading + _easycom_uni_icons + _easycom_hs_footer)();
}
const MyProcessLogs = () => "./components/ProcessLogs.js";
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "index",
setup(__props) {
common_vendor.onLoad((e) => {
var _a;
ME_emergency_show_model.useModel.logsData.value = [];
ME_emergency_show_model.useModel.formData.value = { id: e == null ? void 0 : e.id };
(_a = ME_emergency_show_method.method) == null ? void 0 : _a.getShow();
});
common_vendor.onShow(() => {
var _a, _b, _c, _d;
if ((_c = (_b = (_a = ME_emergency_show_model.useModel) == null ? void 0 : _a.showData) == null ? void 0 : _b.value) == null ? void 0 : _c.id) {
ME_emergency_show_model.useModel.logsData.value = [];
ME_emergency_show_model.useModel.formDataLogs.value.page = 1;
(_d = ME_emergency_show_method.method) == null ? void 0 : _d.getShow();
}
});
common_vendor.onUnload(() => {
ME_emergency_show_model.useModel.showData.value = {};
ME_emergency_show_model.useModel.formData.value = {};
ME_emergency_show_model.useModel.metaData.value = {};
ME_emergency_show_model.useModel.logsData.value = [];
ME_emergency_show_model.useModel.formDataLogs.value = {};
});
return (_ctx, _cache) => {
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja, _ka, _la, _ma, _na, _oa, _pa, _qa, _ra, _sa, _ta, _ua, _va, _wa, _xa, _ya, _za, _Aa, _Ba, _Ca, _Da, _Ea, _Fa, _Ga, _Ha, _Ia, _Ja, _Ka, _La, _Ma, _Na, _Oa, _Pa, _Qa, _Ra, _Sa, _Ta, _Ua, _Va, _Wa;
return common_vendor.e({
a: common_vendor.t((_c = (_b = (_a = common_vendor.unref(ME_emergency_show_model.useModel)) == null ? void 0 : _a.showData) == null ? void 0 : _b.value) == null ? void 0 : _c.emergency_event_levels_name),
b: common_vendor.p({
value: (_f = (_e = (_d = common_vendor.unref(ME_emergency_show_model.useModel)) == null ? void 0 : _d.showData) == null ? void 0 : _e.value) == null ? void 0 : _f.status,
Enums: common_vendor.unref(gen_Enums.EmergencyEventsStatusEnum)
}),
c: common_vendor.n(`status status_${(_i = (_h = (_g = common_vendor.unref(ME_emergency_show_model.useModel)) == null ? void 0 : _g.showData) == null ? void 0 : _h.value) == null ? void 0 : _i.status}`),
d: common_vendor.t((_l = (_k = (_j = common_vendor.unref(ME_emergency_show_model.useModel)) == null ? void 0 : _j.showData) == null ? void 0 : _k.value) == null ? void 0 : _l.name),
e: common_vendor.t((_o = (_n = (_m = common_vendor.unref(ME_emergency_show_model.useModel)) == null ? void 0 : _m.showData) == null ? void 0 : _n.value) == null ? void 0 : _o.one_emergency_categories_name),
f: common_vendor.t((_r = (_q = (_p = common_vendor.unref(ME_emergency_show_model.useModel)) == null ? void 0 : _p.showData) == null ? void 0 : _q.value) == null ? void 0 : _r.two_emergency_categories_name),
g: common_vendor.t(((_v = (_u = (_t = (_s = common_vendor.unref(ME_emergency_show_model.useModel)) == null ? void 0 : _s.showData) == null ? void 0 : _t.value) == null ? void 0 : _u.asset_project) == null ? void 0 : _v.name) || ""),
h: common_vendor.t(((_y = (_x = (_w = common_vendor.unref(ME_emergency_show_model.useModel)) == null ? void 0 : _w.showData) == null ? void 0 : _x.value) == null ? void 0 : _y.created_at) || ""),
i: (_B = (_A = (_z = common_vendor.unref(ME_emergency_show_model.useModel)) == null ? void 0 : _z.showData) == null ? void 0 : _A.value) == null ? void 0 : _B.emergency_location
}, ((_E = (_D = (_C = common_vendor.unref(ME_emergency_show_model.useModel)) == null ? void 0 : _C.showData) == null ? void 0 : _D.value) == null ? void 0 : _E.emergency_location) ? {
j: common_vendor.t((_H = (_G = (_F = common_vendor.unref(ME_emergency_show_model.useModel)) == null ? void 0 : _F.showData) == null ? void 0 : _G.value) == null ? void 0 : _H.emergency_location)
} : {}, {
k: (_K = (_J = (_I = common_vendor.unref(ME_emergency_show_model.useModel)) == null ? void 0 : _I.showData) == null ? void 0 : _J.value) == null ? void 0 : _K.emergency_description
}, ((_N = (_M = (_L = common_vendor.unref(ME_emergency_show_model.useModel)) == null ? void 0 : _L.showData) == null ? void 0 : _M.value) == null ? void 0 : _N.emergency_description) ? {
l: common_vendor.t((_Q = (_P = (_O = common_vendor.unref(ME_emergency_show_model.useModel)) == null ? void 0 : _O.showData) == null ? void 0 : _P.value) == null ? void 0 : _Q.emergency_description)
} : {}, {
m: (_T = (_S = (_R = common_vendor.unref(ME_emergency_show_model.useModel)) == null ? void 0 : _R.showData) == null ? void 0 : _S.value) == null ? void 0 : _T.emergency_cause
}, ((_W = (_V = (_U = common_vendor.unref(ME_emergency_show_model.useModel)) == null ? void 0 : _U.showData) == null ? void 0 : _V.value) == null ? void 0 : _W.emergency_cause) ? {
n: common_vendor.t((_Z = (_Y = (_X = common_vendor.unref(ME_emergency_show_model.useModel)) == null ? void 0 : _X.showData) == null ? void 0 : _Y.value) == null ? void 0 : _Z.emergency_cause)
} : {}, {
o: (_aa = (_$ = (__ = common_vendor.unref(ME_emergency_show_model.useModel)) == null ? void 0 : __.showData) == null ? void 0 : _$.value) == null ? void 0 : _aa.cause_result
}, ((_da = (_ca = (_ba = common_vendor.unref(ME_emergency_show_model.useModel)) == null ? void 0 : _ba.showData) == null ? void 0 : _ca.value) == null ? void 0 : _da.cause_result) ? {
p: common_vendor.t((_ga = (_fa = (_ea = common_vendor.unref(ME_emergency_show_model.useModel)) == null ? void 0 : _ea.showData) == null ? void 0 : _fa.value) == null ? void 0 : _ga.cause_result)
} : {}, {
q: (_ja = (_ia = (_ha = common_vendor.unref(ME_emergency_show_model.useModel)) == null ? void 0 : _ha.showData) == null ? void 0 : _ia.value) == null ? void 0 : _ja.supplement
}, ((_ma = (_la = (_ka = common_vendor.unref(ME_emergency_show_model.useModel)) == null ? void 0 : _ka.showData) == null ? void 0 : _la.value) == null ? void 0 : _ma.supplement) ? {
r: common_vendor.t((_pa = (_oa = (_na = common_vendor.unref(ME_emergency_show_model.useModel)) == null ? void 0 : _na.showData) == null ? void 0 : _oa.value) == null ? void 0 : _pa.supplement)
} : {}, {
s: (_sa = (_ra = (_qa = common_vendor.unref(ME_emergency_show_model.useModel)) == null ? void 0 : _qa.showData) == null ? void 0 : _ra.value) == null ? void 0 : _sa.related_person
}, ((_va = (_ua = (_ta = common_vendor.unref(ME_emergency_show_model.useModel)) == null ? void 0 : _ta.showData) == null ? void 0 : _ua.value) == null ? void 0 : _va.related_person) ? {
t: common_vendor.t((_ya = (_xa = (_wa = common_vendor.unref(ME_emergency_show_model.useModel)) == null ? void 0 : _wa.showData) == null ? void 0 : _xa.value) == null ? void 0 : _ya.related_person)
} : {}, {
v: common_vendor.f((_Ba = (_Aa = (_za = common_vendor.unref(ME_emergency_show_model.useModel)) == null ? void 0 : _za.showData) == null ? void 0 : _Aa.value) == null ? void 0 : _Ba.emergency_images, (i, index, i0) => {
return {
a: i == null ? void 0 : i.url,
b: `item_${index}`,
c: common_vendor.o(($event) => {
var _a2;
return (_a2 = common_vendor.unref(ME_emergency_show_method.method)) == null ? void 0 : _a2.handlePreview(index);
}, `item_${index}`)
};
}),
w: common_vendor.o((_Ca = common_vendor.unref(ME_emergency_show_method.method)) == null ? void 0 : _Ca.handleLoad),
x: common_vendor.p({
meta: (_Ea = (_Da = common_vendor.unref(ME_emergency_show_model.useModel)) == null ? void 0 : _Da.metaData) == null ? void 0 : _Ea.value,
emptyShow: false
}),
y: ((_Ha = (_Ga = (_Fa = common_vendor.unref(ME_emergency_show_model.useModel)) == null ? void 0 : _Fa.showData) == null ? void 0 : _Ga.value) == null ? void 0 : _Ha.status) === "PendingFollowUp" || ((_Ka = (_Ja = (_Ia = common_vendor.unref(ME_emergency_show_model.useModel)) == null ? void 0 : _Ia.showData) == null ? void 0 : _Ja.value) == null ? void 0 : _Ka.status) === "InProgress"
}, ((_Na = (_Ma = (_La = common_vendor.unref(ME_emergency_show_model.useModel)) == null ? void 0 : _La.showData) == null ? void 0 : _Ma.value) == null ? void 0 : _Na.status) === "PendingFollowUp" || ((_Qa = (_Pa = (_Oa = common_vendor.unref(ME_emergency_show_model.useModel)) == null ? void 0 : _Oa.showData) == null ? void 0 : _Pa.value) == null ? void 0 : _Qa.status) === "InProgress" ? {
z: common_vendor.p({
type: "compose",
size: "24"
}),
A: common_vendor.o(
//@ts-ignore
(...args) => {
var _a2, _b2;
return ((_a2 = common_vendor.unref(ME_emergency_show_method.method)) == null ? void 0 : _a2.handleUpdateFollow) && ((_b2 = common_vendor.unref(ME_emergency_show_method.method)) == null ? void 0 : _b2.handleUpdateFollow(...args));
}
),
B: common_vendor.o(
//@ts-ignore
(...args) => {
var _a2, _b2;
return ((_a2 = common_vendor.unref(ME_emergency_show_method.method)) == null ? void 0 : _a2.handleClose) && ((_b2 = common_vendor.unref(ME_emergency_show_method.method)) == null ? void 0 : _b2.handleClose(...args));
}
),
C: common_vendor.o(
//@ts-ignore
(...args) => {
var _a2, _b2;
return ((_a2 = common_vendor.unref(ME_emergency_show_method.method)) == null ? void 0 : _a2.handleUpdate) && ((_b2 = common_vendor.unref(ME_emergency_show_method.method)) == null ? void 0 : _b2.handleUpdate(...args));
}
)
} : {}, {
D: common_vendor.n(((_Ta = (_Sa = (_Ra = common_vendor.unref(ME_emergency_show_model.useModel)) == null ? void 0 : _Ra.showData) == null ? void 0 : _Sa.value) == null ? void 0 : _Ta.status) === "PendingFollowUp" || ((_Wa = (_Va = (_Ua = common_vendor.unref(ME_emergency_show_model.useModel)) == null ? void 0 : _Ua.showData) == null ? void 0 : _Va.value) == null ? void 0 : _Wa.status) === "InProgress" ? "emergency_show" : "")
});
};
}
});
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/ME/emergency/show/index.vue"]]);
wx.createPage(MiniProgramPage);