"use strict";
const common_vendor = require("../../common/vendor.js");
const common_libraries_day = require("../../common/libraries/day.js");
const gen_Enums = require("../../gen/Enums.js");
const WORKORDER_show_method = require("./method.js");
const WORKORDER_show_model = require("./model.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_hs_level2 = common_vendor.resolveComponent("hs-level");
  const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
  const _easycom_hs_up_rate2 = common_vendor.resolveComponent("hs-up-rate");
  const _easycom_hs_footer2 = common_vendor.resolveComponent("hs-footer");
  (_easycom_hs_enum_tag2 + _easycom_hs_level2 + _easycom_up_icon2 + _easycom_hs_up_rate2 + _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_up_rate = () => "../../components/hs-up-rate/hs-up-rate.js";
const _easycom_hs_footer = () => "../../components/hs-footer/hs-footer.js";
if (!Math) {
  (_easycom_hs_enum_tag + _easycom_hs_level + _easycom_up_icon + _easycom_hs_up_rate + 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);
      }
    });
    common_vendor.onUnload(() => {
      WORKORDER_show_model.useModel.logsData.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, _Xa, _Ya, _Za, __a, _$a, _ab, _bb, _cb, _db, _eb, _fb, _gb, _hb, _ib, _jb, _kb, _lb, _mb, _nb, _ob, _pb, _qb, _rb, _sb, _tb, _ub, _vb, _wb, _xb, _yb, _zb, _Ab, _Bb, _Cb, _Db, _Eb, _Fb, _Gb, _Hb, _Ib, _Jb, _Kb, _Lb, _Mb, _Nb, _Ob, _Pb, _Qb, _Rb, _Sb, _Tb, _Ub, _Vb, _Wb, _Xb, _Yb, _Zb, __b, _$b, _ac, _bc, _cc, _dc, _ec, _fc, _gc, _hc, _ic, _jc, _kc, _lc, _mc, _nc, _oc, _pc, _qc, _rc, _sc, _tc, _uc, _vc, _wc, _xc, _yc, _zc, _Ac, _Bc, _Cc, _Dc, _Ec, _Fc, _Gc, _Hc, _Ic, _Jc, _Kc, _Lc, _Mc, _Nc, _Oc, _Pc, _Qc, _Rc;
      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: (_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
      }, ((_i = (_h = (_g = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _g.dataShow) == null ? void 0 : _h.value) == null ? void 0 : _i.location) ? {
        c: 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.location,
          Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersLocationEnum)
        })
      } : {}, {
        d: ((_o = (_n = (_m = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _m.dataShow) == null ? void 0 : _n.value) == null ? void 0 : _o.type) === "Repair" || ((_r = (_q = (_p = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _p.dataShow) == null ? void 0 : _q.value) == null ? void 0 : _r.type) === "Incident" || ((_u = (_t = (_s = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _s.dataShow) == null ? void 0 : _t.value) == null ? void 0 : _u.type) === "Complaint"
      }, ((_x = (_w = (_v = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _v.dataShow) == null ? void 0 : _w.value) == null ? void 0 : _x.type) === "Repair" || ((_A = (_z = (_y = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _y.dataShow) == null ? void 0 : _z.value) == null ? void 0 : _A.type) === "Incident" || ((_D = (_C = (_B = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _B.dataShow) == null ? void 0 : _C.value) == null ? void 0 : _D.type) === "Complaint" ? common_vendor.e({
        e: ((_G = (_F = (_E = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _E.dataShow) == null ? void 0 : _F.value) == null ? void 0 : _G.status) == "Processing"
      }, ((_J = (_I = (_H = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _H.dataShow) == null ? void 0 : _I.value) == null ? void 0 : _J.status) == "Processing" ? {
        f: common_vendor.p({
          level: (_M = (_L = (_K = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _K.dataShow) == null ? void 0 : _L.value) == null ? void 0 : _M.level
        })
      } : {}) : {}, {
        g: common_vendor.p({
          value: (_P = (_O = (_N = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _N.dataShow) == null ? void 0 : _O.value) == null ? void 0 : _P.status,
          Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersStatusEnum)
        }),
        h: common_vendor.n(`btn_status status_${(_S = (_R = (_Q = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Q.dataShow) == null ? void 0 : _R.value) == null ? void 0 : _S.status}`),
        i: ((_V = (_U = (_T = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _T.dataShow) == null ? void 0 : _U.value) == null ? void 0 : _V.status) === "Pending" && ((_Y = (_X = (_W = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _W.dataShow) == null ? void 0 : _X.value) == null ? void 0 : _Y.location) === "MyHome"
      }, ((_$ = (__ = (_Z = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Z.dataShow) == null ? void 0 : __.value) == null ? void 0 : _$.status) === "Pending" && ((_ca = (_ba = (_aa = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _aa.dataShow) == null ? void 0 : _ba.value) == null ? void 0 : _ca.location) === "MyHome" ? {
        j: common_vendor.p({
          name: "clock",
          color: ((_ga = common_vendor.unref(common_libraries_day.getTimeStatus)((_fa = (_ea = (_da = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _da.dataShow) == null ? void 0 : _ea.value) == null ? void 0 : _fa.expect_end_time)) == null ? void 0 : _ga.color) || "#000",
          size: "14"
        }),
        k: common_vendor.t((_ka = common_vendor.unref(common_libraries_day.getTimeStatus)((_ja = (_ia = (_ha = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _ha.dataShow) == null ? void 0 : _ia.value) == null ? void 0 : _ja.expect_end_time)) == null ? void 0 : _ka.label),
        l: common_vendor.n(`time_status status_${(_oa = common_vendor.unref(common_libraries_day.getTimeStatus)((_na = (_ma = (_la = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _la.dataShow) == null ? void 0 : _ma.value) == null ? void 0 : _na.expect_end_time)) == null ? void 0 : _oa.status}`)
      } : {}, {
        m: ((_ra = (_qa = (_pa = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _pa.dataShow) == null ? void 0 : _qa.value) == null ? void 0 : _ra.type) === "Repair" || ((_ua = (_ta = (_sa = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _sa.dataShow) == null ? void 0 : _ta.value) == null ? void 0 : _ua.type) === "Incident"
      }, ((_xa = (_wa = (_va = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _va.dataShow) == null ? void 0 : _wa.value) == null ? void 0 : _xa.type) === "Repair" || ((_Aa = (_za = (_ya = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _ya.dataShow) == null ? void 0 : _za.value) == null ? void 0 : _Aa.type) === "Incident" ? {
        n: common_vendor.t(((_Ea = (_Da = (_Ca = (_Ba = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Ba.dataShow) == null ? void 0 : _Ca.value) == null ? void 0 : _Da.asset_house) == null ? void 0 : _Ea.full_name) || ((_Ia = (_Ha = (_Ga = (_Fa = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Fa.dataShow) == null ? void 0 : _Ga.value) == null ? void 0 : _Ha.asset_project) == null ? void 0 : _Ia.name)),
        o: common_vendor.t((_La = (_Ka = (_Ja = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Ja.dataShow) == null ? void 0 : _Ka.value) == null ? void 0 : _La.title)
      } : {}, {
        p: common_vendor.t((_Oa = (_Na = (_Ma = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Ma.dataShow) == null ? void 0 : _Na.value) == null ? void 0 : _Oa.content),
        q: common_vendor.f((_Ra = (_Qa = (_Pa = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Pa.dataShow) == null ? void 0 : _Qa.value) == null ? void 0 : _Ra.attachments, (k, idx, i0) => {
          return {
            a: k == null ? void 0 : k.url,
            b: `img_${idx}`,
            c: common_vendor.o(($event) => {
              var _a2;
              return (_a2 = common_vendor.unref(WORKORDER_show_method.method)) == null ? void 0 : _a2.handlePreviewImage(idx);
            }, `img_${idx}`)
          };
        }),
        r: common_vendor.t((_Ua = (_Ta = (_Sa = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Sa.dataShow) == null ? void 0 : _Ta.value) == null ? void 0 : _Ua.code),
        s: ((_Xa = (_Wa = (_Va = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Va.dataShow) == null ? void 0 : _Wa.value) == null ? void 0 : _Xa.type) !== "RenovationInspection" && ((__a = (_Za = (_Ya = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Ya.dataShow) == null ? void 0 : _Za.value) == null ? void 0 : __a.type) !== "RenovationAcceptance"
      }, ((_bb = (_ab = (_$a = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _$a.dataShow) == null ? void 0 : _ab.value) == null ? void 0 : _bb.type) !== "RenovationInspection" && ((_eb = (_db = (_cb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _cb.dataShow) == null ? void 0 : _db.value) == null ? void 0 : _eb.type) !== "RenovationAcceptance" ? {
        t: common_vendor.t(((_ib = (_hb = (_gb = (_fb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _fb.dataShow) == null ? void 0 : _gb.value) == null ? void 0 : _hb.customer) == null ? void 0 : _ib.name) || ((_mb = (_lb = (_kb = (_jb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _jb.dataShow) == null ? void 0 : _kb.value) == null ? void 0 : _lb.company_employee) == null ? void 0 : _mb.name))
      } : {}, {
        v: (_pb = (_ob = (_nb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _nb.dataShow) == null ? void 0 : _ob.value) == null ? void 0 : _pb.reporter_name
      }, ((_sb = (_rb = (_qb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _qb.dataShow) == null ? void 0 : _rb.value) == null ? void 0 : _sb.reporter_name) ? {
        w: common_vendor.t((_vb = (_ub = (_tb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _tb.dataShow) == null ? void 0 : _ub.value) == null ? void 0 : _vb.reporter_name),
        x: common_vendor.t((_yb = (_xb = (_wb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _wb.dataShow) == null ? void 0 : _xb.value) == null ? void 0 : _yb.reporter_phone)
      } : {}, {
        y: common_vendor.t((_Bb = (_Ab = (_zb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _zb.dataShow) == null ? void 0 : _Ab.value) == null ? void 0 : _Bb.created_at),
        z: ((_Eb = (_Db = (_Cb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Cb.dataShow) == null ? void 0 : _Db.value) == null ? void 0 : _Eb.status) === "PendingPayment" && ((_Hb = (_Gb = (_Fb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Fb.dataShow) == null ? void 0 : _Gb.value) == null ? void 0 : _Hb.amount)
      }, ((_Kb = (_Jb = (_Ib = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Ib.dataShow) == null ? void 0 : _Jb.value) == null ? void 0 : _Kb.status) === "PendingPayment" && ((_Nb = (_Mb = (_Lb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Lb.dataShow) == null ? void 0 : _Mb.value) == null ? void 0 : _Nb.amount) ? {
        A: common_vendor.t((_Qb = (_Pb = (_Ob = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Ob.dataShow) == null ? void 0 : _Pb.value) == null ? void 0 : _Qb.amount)
      } : {}, {
        B: (_Tb = (_Sb = (_Rb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Rb.dataShow) == null ? void 0 : _Sb.value) == null ? void 0 : _Tb.evaluation_score
      }, ((_Wb = (_Vb = (_Ub = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Ub.dataShow) == null ? void 0 : _Vb.value) == null ? void 0 : _Wb.evaluation_score) ? {
        C: common_vendor.p({
          valueModel: (_Zb = (_Yb = (_Xb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Xb.dataShow) == null ? void 0 : _Yb.value) == null ? void 0 : _Zb.evaluation_score
        })
      } : {}, {
        D: common_vendor.n(`show_card ${((_ac = (_$b = (__b = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : __b.dataShow) == null ? void 0 : _$b.value) == null ? void 0 : _ac.status) === "Pending" ? `card_status_${(_ec = common_vendor.unref(common_libraries_day.getTimeStatus)((_dc = (_cc = (_bc = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _bc.dataShow) == null ? void 0 : _cc.value) == null ? void 0 : _dc.expect_end_time)) == null ? void 0 : _ec.status}` : ""}`),
        E: ((_hc = (_gc = (_fc = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _fc.dataShow) == null ? void 0 : _gc.value) == null ? void 0 : _hc.type) === "SecurityInspection" && ((_kc = (_jc = (_ic = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _ic.dataShow) == null ? void 0 : _jc.value) == null ? void 0 : _kc.status) === "Processing"
      }, ((_nc = (_mc = (_lc = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _lc.dataShow) == null ? void 0 : _mc.value) == null ? void 0 : _nc.type) === "SecurityInspection" && ((_qc = (_pc = (_oc = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _oc.dataShow) == null ? void 0 : _pc.value) == null ? void 0 : _qc.status) === "Processing" ? {
        F: common_vendor.o((_rc = common_vendor.unref(WORKORDER_show_method.method)) == null ? void 0 : _rc.toPageAddLogs),
        G: common_vendor.p({
          btnParimaryName: "前往完成"
        })
      } : common_vendor.e({
        H: ((_uc = (_tc = (_sc = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _sc.dataShow) == null ? void 0 : _tc.value) == null ? void 0 : _uc.status) === "Processing" || ((_xc = (_wc = (_vc = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _vc.dataShow) == null ? void 0 : _wc.value) == null ? void 0 : _xc.status) === "PendingPayment"
      }, ((_Ac = (_zc = (_yc = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _yc.dataShow) == null ? void 0 : _zc.value) == null ? void 0 : _Ac.status) === "Processing" || ((_Dc = (_Cc = (_Bc = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Bc.dataShow) == null ? void 0 : _Cc.value) == null ? void 0 : _Dc.status) === "PendingPayment" ? {
        I: common_vendor.o((_Ec = common_vendor.unref(WORKORDER_show_method.method)) == null ? void 0 : _Ec.toPageAddLogs),
        J: common_vendor.o((_Fc = common_vendor.unref(WORKORDER_show_method.method)) == null ? void 0 : _Fc.handleCopyPhone),
        K: common_vendor.p({
          btnOtherShow: ((_Ic = (_Hc = (_Gc = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Gc.dataShow) == null ? void 0 : _Hc.value) == null ? void 0 : _Ic.type) !== "RenovationInspection" && ((_Lc = (_Kc = (_Jc = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Jc.dataShow) == null ? void 0 : _Kc.value) == null ? void 0 : _Lc.type) !== "RenovationAcceptance",
          btnParimaryName: ((_Oc = (_Nc = (_Mc = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Mc.dataShow) == null ? void 0 : _Nc.value) == null ? void 0 : _Oc.status) === "Processing" ? "更新进度" : ((_Rc = (_Qc = (_Pc = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Pc.dataShow) == null ? void 0 : _Qc.value) == null ? void 0 : _Rc.status) === "PendingPayment" ? "出示付款二维码" : "",
          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);
