"use strict"; const common_vendor = require("../../common/vendor.js"); const common_libraries_day = require("../../common/libraries/day.js"); const WORKORDER_show_method = require("./method.js"); const WORKORDER_show_model = require("./model.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/useWorkStore.js"); if (!Array) { const _easycom_hs_enum_tag2 = common_vendor.resolveComponent("hs-enum-tag"); const _easycom_hs_level2 = common_vendor.resolveComponent("hs-level"); const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon"); const _easycom_hs_footer2 = common_vendor.resolveComponent("hs-footer"); (_easycom_hs_enum_tag2 + _easycom_hs_level2 + _easycom_up_icon2 + _easycom_hs_footer2)(); } const _easycom_hs_enum_tag = () => "../../components/hs-enum-tag/hs-enum-tag.js"; const _easycom_hs_level = () => "../../components/hs-level/hs-level.js"; const _easycom_up_icon = () => "../../node-modules/uview-plus/components/u-icon/u-icon.js"; const _easycom_hs_footer = () => "../../components/hs-footer/hs-footer.js"; if (!Math) { (_easycom_hs_enum_tag + _easycom_hs_level + _easycom_up_icon + MyProcessLogs + _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, _b; WORKORDER_show_model.useModel.dataShow.value = {}; (_a = WORKORDER_show_method.method) == null ? void 0 : _a.getShow(e == null ? void 0 : e.id); (_b = WORKORDER_show_method.method) == null ? void 0 : _b.getHouseWorkLogs(e == null ? void 0 : e.id); }); common_vendor.onShow(() => { var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k; if ((_c = (_b = (_a = WORKORDER_show_model.useModel) == null ? void 0 : _a.dataShow) == null ? void 0 : _b.value) == null ? void 0 : _c.id) { (_g = WORKORDER_show_method.method) == null ? void 0 : _g.getShow((_f = (_e = (_d = WORKORDER_show_model.useModel) == null ? void 0 : _d.dataShow) == null ? void 0 : _e.value) == null ? void 0 : _f.id); (_k = WORKORDER_show_method.method) == null ? void 0 : _k.getHouseWorkLogs((_j = (_i = (_h = WORKORDER_show_model.useModel) == null ? void 0 : _h.dataShow) == null ? void 0 : _i.value) == null ? void 0 : _j.id); } }); 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; return common_vendor.e({ a: common_vendor.p({ value: (_c = (_b = (_a = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _a.dataShow) == null ? void 0 : _b.value) == null ? void 0 : _c.type, Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersTypeEnum) }), b: common_vendor.p({ value: (_f = (_e = (_d = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _d.dataShow) == null ? void 0 : _e.value) == null ? void 0 : _f.location, Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersLocationEnum) }), c: common_vendor.p({ level: (_i = (_h = (_g = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _g.dataShow) == null ? void 0 : _h.value) == null ? void 0 : _i.level }), d: common_vendor.p({ value: (_l = (_k = (_j = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _j.dataShow) == null ? void 0 : _k.value) == null ? void 0 : _l.status, Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersStatusEnum) }), e: common_vendor.n(`btn_status status_${(_o = (_n = (_m = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _m.dataShow) == null ? void 0 : _n.value) == null ? void 0 : _o.status}`), f: ((_r = (_q = (_p = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _p.dataShow) == null ? void 0 : _q.value) == null ? void 0 : _r.status) === "Pending" && ((_u = (_t = (_s = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _s.dataShow) == null ? void 0 : _t.value) == null ? void 0 : _u.location) === "MyHome" }, ((_x = (_w = (_v = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _v.dataShow) == null ? void 0 : _w.value) == null ? void 0 : _x.status) === "Pending" && ((_A = (_z = (_y = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _y.dataShow) == null ? void 0 : _z.value) == null ? void 0 : _A.location) === "MyHome" ? { g: common_vendor.p({ name: "clock", color: ((_E = common_vendor.unref(common_libraries_day.getTimeStatus)((_D = (_C = (_B = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _B.dataShow) == null ? void 0 : _C.value) == null ? void 0 : _D.expect_end_time)) == null ? void 0 : _E.color) || "#000", size: "14" }), h: common_vendor.t((_I = common_vendor.unref(common_libraries_day.getTimeStatus)((_H = (_G = (_F = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _F.dataShow) == null ? void 0 : _G.value) == null ? void 0 : _H.expect_end_time)) == null ? void 0 : _I.label), i: common_vendor.n(`time_status status_${(_M = common_vendor.unref(common_libraries_day.getTimeStatus)((_L = (_K = (_J = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _J.dataShow) == null ? void 0 : _K.value) == null ? void 0 : _L.expect_end_time)) == null ? void 0 : _M.status}`) } : {}, { j: ((_P = (_O = (_N = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _N.dataShow) == null ? void 0 : _O.value) == null ? void 0 : _P.location) === "MyHome" }, ((_S = (_R = (_Q = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Q.dataShow) == null ? void 0 : _R.value) == null ? void 0 : _S.location) === "MyHome" ? { k: common_vendor.t((_W = (_V = (_U = (_T = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _T.dataShow) == null ? void 0 : _U.value) == null ? void 0 : _V.asset_house) == null ? void 0 : _W.full_name), l: common_vendor.t((_Z = (_Y = (_X = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _X.dataShow) == null ? void 0 : _Y.value) == null ? void 0 : _Z.title) } : {}, { m: common_vendor.t((_aa = (_$ = (__ = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : __.dataShow) == null ? void 0 : _$.value) == null ? void 0 : _aa.content), n: common_vendor.f((_da = (_ca = (_ba = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _ba.dataShow) == null ? void 0 : _ca.value) == null ? void 0 : _da.attachments, (k, idx, i0) => { return { a: k == null ? void 0 : k.url, b: `img_${idx}` }; }), o: common_vendor.t((_ga = (_fa = (_ea = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _ea.dataShow) == null ? void 0 : _fa.value) == null ? void 0 : _ga.code), p: common_vendor.t((_ja = (_ia = (_ha = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _ha.dataShow) == null ? void 0 : _ia.value) == null ? void 0 : _ja.reporter_phone), q: common_vendor.t((_ma = (_la = (_ka = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _ka.dataShow) == null ? void 0 : _la.value) == null ? void 0 : _ma.created_at), r: common_vendor.n(`show_card ${((_pa = (_oa = (_na = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _na.dataShow) == null ? void 0 : _oa.value) == null ? void 0 : _pa.status) === "Pending" ? `card_status_${(_ta = common_vendor.unref(common_libraries_day.getTimeStatus)((_sa = (_ra = (_qa = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _qa.dataShow) == null ? void 0 : _ra.value) == null ? void 0 : _sa.expect_end_time)) == null ? void 0 : _ta.status}` : ""}`), s: common_vendor.o((_ua = common_vendor.unref(WORKORDER_show_method.method)) == null ? void 0 : _ua.toPageAddLogs), t: common_vendor.o(($event) => { var _a2, _b2, _c2, _d2; return (_d2 = common_vendor.unref(WORKORDER_show_method.method)) == null ? void 0 : _d2.handleCopyPhone((_c2 = (_b2 = (_a2 = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _a2.dataShow) == null ? void 0 : _b2.value) == null ? void 0 : _c2.contact_phone); }), v: common_vendor.p({ btnOtherShow: true, btnParimaryName: "更新进度", btnOtherName: "联系客户" }) }); }; } }); const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/WORKORDER/show/index.vue"]]); wx.createPage(MiniProgramPage);