2025-08-29 09:51:02 +08:00
|
|
|
"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");
|
2026-01-14 15:43:09 +08:00
|
|
|
require("../../common/libraries/day.js");
|
2025-08-29 09:51:02 +08:00
|
|
|
if (!Array) {
|
|
|
|
|
const _easycom_hs_enum_tag2 = common_vendor.resolveComponent("hs-enum-tag");
|
|
|
|
|
const _easycom_hs_footer2 = common_vendor.resolveComponent("hs-footer");
|
2026-01-14 15:43:09 +08:00
|
|
|
(_easycom_hs_enum_tag2 + _easycom_hs_footer2)();
|
2025-08-29 09:51:02 +08:00
|
|
|
}
|
|
|
|
|
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) {
|
2026-01-14 15:43:09 +08:00
|
|
|
(_easycom_hs_enum_tag + _easycom_hs_footer)();
|
2025-08-29 09:51:02 +08:00
|
|
|
}
|
|
|
|
|
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
|
|
|
__name: "index",
|
|
|
|
|
setup(__props) {
|
|
|
|
|
common_vendor.onLoad((e) => {
|
2025-10-29 13:53:05 +08:00
|
|
|
var _a;
|
2025-08-29 09:51:02 +08:00
|
|
|
WORKORDER_show_method.method.getShow(e == null ? void 0 : e.id);
|
2025-10-29 13:53:05 +08:00
|
|
|
(_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;
|
2025-08-29 09:51:02 +08:00
|
|
|
});
|
|
|
|
|
return (_ctx, _cache) => {
|
2026-01-14 15:43:09 +08:00
|
|
|
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;
|
2025-08-29 09:51:02 +08:00
|
|
|
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({
|
2026-01-14 15:43:09 +08:00
|
|
|
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,
|
2025-08-29 09:51:02 +08:00
|
|
|
Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersStatusEnum)
|
|
|
|
|
}),
|
2026-01-14 15:43:09 +08:00
|
|
|
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}`),
|
2025-12-15 18:19:04 +08:00
|
|
|
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) => {
|
2025-08-29 09:51:02 +08:00
|
|
|
return {
|
|
|
|
|
a: k == null ? void 0 : k.url,
|
|
|
|
|
b: `img_${idx}`
|
|
|
|
|
};
|
|
|
|
|
}),
|
2025-12-15 18:19:04 +08:00
|
|
|
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),
|
2026-01-14 15:43:09 +08:00
|
|
|
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),
|
2025-12-15 18:19:04 +08:00
|
|
|
m: common_vendor.p({
|
2026-01-14 15:43:09 +08:00
|
|
|
btnOtherShow: true,
|
|
|
|
|
btnParimaryName: "联系维修管家",
|
|
|
|
|
btnOtherName: "关闭工单"
|
2025-08-29 09:51:02 +08:00
|
|
|
})
|
2026-01-14 15:43:09 +08:00
|
|
|
};
|
2025-08-29 09:51:02 +08:00
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
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);
|