"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"); const common_libraries_day = require("../../common/libraries/day.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_footer2 = common_vendor.resolveComponent("hs-footer"); const _easycom_hs_popup_evaluate2 = common_vendor.resolveComponent("hs-popup-evaluate"); (_easycom_hs_enum_tag2 + _easycom_hs_footer2 + _easycom_hs_popup_evaluate2)(); } const _easycom_hs_enum_tag = () => "../../components/hs-enum-tag/hs-enum-tag.js"; const _easycom_hs_footer = () => "../../components/hs-footer/hs-footer.js"; const _easycom_hs_popup_evaluate = () => "../../components/hs-popup-evaluate/hs-popup-evaluate.js"; if (!Math) { (_easycom_hs_enum_tag + _easycom_hs_footer + _easycom_hs_popup_evaluate)(); } const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ __name: "index", setup(__props) { common_vendor.onLoad((e) => { WORKORDER_show_method.method.getShow(e == null ? void 0 : e.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; 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.location, Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersLocationEnum) }), c: common_vendor.p({ value: (_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, Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersStatusEnum) }), 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(common_vendor.unref(common_libraries_day.getTimeRangeDisplay)((_B = (_A = (_z = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _z.dataShow) == null ? void 0 : _A.value) == null ? void 0 : _B.expect_start_time, (_E = (_D = (_C = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _C.dataShow) == null ? void 0 : _D.value) == null ? void 0 : _E.expect_end_time)), j: common_vendor.t((_H = (_G = (_F = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _F.dataShow) == null ? void 0 : _G.value) == null ? void 0 : _H.created_at), k: common_vendor.o((_I = common_vendor.unref(WORKORDER_show_method.method)) == null ? void 0 : _I.handlePhoneCall), l: common_vendor.o((_J = common_vendor.unref(WORKORDER_show_method.method)) == null ? void 0 : _J.handleEvaluate), m: common_vendor.p({ btnOtherShow: ((_M = (_L = (_K = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _K.dataShow) == null ? void 0 : _L.value) == null ? void 0 : _M.status) === "Completed" ? true : false, btnParimaryName: "联系处理人", btnOtherName: "工单评价" }), n: common_vendor.o((_N = common_vendor.unref(WORKORDER_show_method.method)) == null ? void 0 : _N.handlepopupClose), o: common_vendor.o(($event) => common_vendor.unref(WORKORDER_show_model.useModel).showEvaluate.value = false), p: common_vendor.p({ show: (_P = (_O = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _O.showEvaluate) == null ? void 0 : _P.value, mode: "bottom", closeable: true, round: 20 }) }; }; } }); 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);