"use strict"; const common_vendor = require("../../common/vendor.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"); require("../../common/libraries/day.js"); if (!Array) { const _easycom_hs_enum_tag2 = common_vendor.resolveComponent("hs-enum-tag"); const _easycom_hs_footer2 = common_vendor.resolveComponent("hs-footer"); (_easycom_hs_enum_tag2 + _easycom_hs_footer2)(); } const _easycom_hs_enum_tag = () => "../../components/hs-enum-tag/hs-enum-tag.js"; const _easycom_hs_footer = () => "../../components/hs-footer/hs-footer.js"; if (!Math) { (_easycom_hs_enum_tag + _easycom_hs_footer)(); } const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ __name: "index", setup(__props) { common_vendor.onLoad((e) => { var _a; WORKORDER_show_method.method.getShow(e == null ? void 0 : e.id); (_a = WORKORDER_show_method.method) == null ? void 0 : _a.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); } }); common_vendor.onUnload(() => { WORKORDER_show_model.useModel.dataShow.value = void 0; }); 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; return { 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.status, Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersStatusEnum) }), c: common_vendor.n(`btn_status btn_status_${(_i = (_h = (_g = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _g.dataShow) == null ? void 0 : _h.value) == null ? void 0 : _i.status}`), d: common_vendor.t((_m = (_l = (_k = (_j = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _j.dataShow) == null ? void 0 : _k.value) == null ? void 0 : _l.asset_house) == null ? void 0 : _m.full_name), e: common_vendor.t((_p = (_o = (_n = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _n.dataShow) == null ? void 0 : _o.value) == null ? void 0 : _p.title), f: common_vendor.t((_s = (_r = (_q = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _q.dataShow) == null ? void 0 : _r.value) == null ? void 0 : _s.content), g: common_vendor.f((_v = (_u = (_t = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _t.dataShow) == null ? void 0 : _u.value) == null ? void 0 : _v.attachments, (k, idx, i0) => { return { a: k == null ? void 0 : k.url, b: `img_${idx}` }; }), h: common_vendor.t((_y = (_x = (_w = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _w.dataShow) == null ? void 0 : _x.value) == null ? void 0 : _y.code), i: common_vendor.t((_C = (_B = (_A = (_z = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _z.dataShow) == null ? void 0 : _A.value) == null ? void 0 : _B.asset_house) == null ? void 0 : _C.full_name), j: common_vendor.t((_F = (_E = (_D = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _D.dataShow) == null ? void 0 : _E.value) == null ? void 0 : _F.reporter_name), k: common_vendor.t((_I = (_H = (_G = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _G.dataShow) == null ? void 0 : _H.value) == null ? void 0 : _I.reporter_phone), l: common_vendor.t((_L = (_K = (_J = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _J.dataShow) == null ? void 0 : _K.value) == null ? void 0 : _L.created_at), m: common_vendor.p({ btnOtherShow: true, btnParimaryName: "联系维修管家", btnOtherName: "关闭工单" }) }; }; } }); const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-customer/src/WORKORDER/show/index.vue"]]); wx.createPage(MiniProgramPage);