"use strict";
const common_vendor = require("../../common/vendor.js");
const common_libraries_day = require("../../common/libraries/day.js");
const WORKORDER_show_log_method = require("./method.js");
const WORKORDER_show_log_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/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_log_model.useModel.dataShow.value = {};
      (_a = WORKORDER_show_log_method.method) == null ? void 0 : _a.getShow(e == null ? void 0 : e.id);
      (_b = WORKORDER_show_log_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_log_model.useModel) == null ? void 0 : _a.dataShow) == null ? void 0 : _b.value) == null ? void 0 : _c.id) {
        (_g = WORKORDER_show_log_method.method) == null ? void 0 : _g.getShow((_f = (_e = (_d = WORKORDER_show_log_model.useModel) == null ? void 0 : _d.dataShow) == null ? void 0 : _e.value) == null ? void 0 : _f.id);
        (_k = WORKORDER_show_log_method.method) == null ? void 0 : _k.getHouseWorkLogs((_j = (_i = (_h = WORKORDER_show_log_model.useModel) == null ? void 0 : _h.dataShow) == null ? void 0 : _i.value) == null ? void 0 : _j.id);
      }
    });
    common_vendor.onUnload(() => {
      WORKORDER_show_log_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;
      return common_vendor.e({
        a: common_vendor.p({
          value: (_c = (_b = (_a = common_vendor.unref(WORKORDER_show_log_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_log_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_log_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_log_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: common_vendor.p({
          level: (_o = (_n = (_m = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _m.dataShow) == null ? void 0 : _n.value) == null ? void 0 : _o.level
        }),
        e: common_vendor.p({
          value: (_r = (_q = (_p = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _p.dataShow) == null ? void 0 : _q.value) == null ? void 0 : _r.status,
          Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersStatusEnum)
        }),
        f: common_vendor.n(`btn_status status_${(_u = (_t = (_s = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _s.dataShow) == null ? void 0 : _t.value) == null ? void 0 : _u.status}`),
        g: ((_x = (_w = (_v = common_vendor.unref(WORKORDER_show_log_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_log_model.useModel)) == null ? void 0 : _y.dataShow) == null ? void 0 : _z.value) == null ? void 0 : _A.location) === "MyHome"
      }, ((_D = (_C = (_B = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _B.dataShow) == null ? void 0 : _C.value) == null ? void 0 : _D.status) === "Pending" && ((_G = (_F = (_E = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _E.dataShow) == null ? void 0 : _F.value) == null ? void 0 : _G.location) === "MyHome" ? {
        h: common_vendor.p({
          name: "clock",
          color: ((_K = common_vendor.unref(common_libraries_day.getTimeStatus)((_J = (_I = (_H = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _H.dataShow) == null ? void 0 : _I.value) == null ? void 0 : _J.expect_end_time)) == null ? void 0 : _K.color) || "#000",
          size: "14"
        }),
        i: common_vendor.t((_O = common_vendor.unref(common_libraries_day.getTimeStatus)((_N = (_M = (_L = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _L.dataShow) == null ? void 0 : _M.value) == null ? void 0 : _N.expect_end_time)) == null ? void 0 : _O.label),
        j: common_vendor.n(`time_status status_${(_S = common_vendor.unref(common_libraries_day.getTimeStatus)((_R = (_Q = (_P = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _P.dataShow) == null ? void 0 : _Q.value) == null ? void 0 : _R.expect_end_time)) == null ? void 0 : _S.status}`)
      } : {}, {
        k: ((_V = (_U = (_T = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _T.dataShow) == null ? void 0 : _U.value) == null ? void 0 : _V.type) === "Repair" || ((_Y = (_X = (_W = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _W.dataShow) == null ? void 0 : _X.value) == null ? void 0 : _Y.type) === "Incident"
      }, ((_$ = (__ = (_Z = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _Z.dataShow) == null ? void 0 : __.value) == null ? void 0 : _$.type) === "Repair" || ((_ca = (_ba = (_aa = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _aa.dataShow) == null ? void 0 : _ba.value) == null ? void 0 : _ca.type) === "Incident" ? {
        l: common_vendor.t(((_ga = (_fa = (_ea = (_da = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _da.dataShow) == null ? void 0 : _ea.value) == null ? void 0 : _fa.asset_house) == null ? void 0 : _ga.full_name) || ((_ka = (_ja = (_ia = (_ha = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _ha.dataShow) == null ? void 0 : _ia.value) == null ? void 0 : _ja.asset_project) == null ? void 0 : _ka.name)),
        m: common_vendor.t((_na = (_ma = (_la = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _la.dataShow) == null ? void 0 : _ma.value) == null ? void 0 : _na.title)
      } : {}, {
        n: common_vendor.t((_qa = (_pa = (_oa = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _oa.dataShow) == null ? void 0 : _pa.value) == null ? void 0 : _qa.content),
        o: common_vendor.f((_ta = (_sa = (_ra = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _ra.dataShow) == null ? void 0 : _sa.value) == null ? void 0 : _ta.attachments, (k, idx, i0) => {
          return {
            a: k == null ? void 0 : k.url,
            b: `img_${idx}`
          };
        }),
        p: common_vendor.t((_wa = (_va = (_ua = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _ua.dataShow) == null ? void 0 : _va.value) == null ? void 0 : _wa.code),
        q: common_vendor.t(((_Aa = (_za = (_ya = (_xa = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _xa.dataShow) == null ? void 0 : _ya.value) == null ? void 0 : _za.customer) == null ? void 0 : _Aa.name) || ((_Ea = (_Da = (_Ca = (_Ba = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _Ba.dataShow) == null ? void 0 : _Ca.value) == null ? void 0 : _Da.company_employee) == null ? void 0 : _Ea.name)),
        r: (_Ha = (_Ga = (_Fa = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _Fa.dataShow) == null ? void 0 : _Ga.value) == null ? void 0 : _Ha.reporter_name
      }, ((_Ka = (_Ja = (_Ia = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _Ia.dataShow) == null ? void 0 : _Ja.value) == null ? void 0 : _Ka.reporter_name) ? {
        s: common_vendor.t((_Na = (_Ma = (_La = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _La.dataShow) == null ? void 0 : _Ma.value) == null ? void 0 : _Na.reporter_name),
        t: common_vendor.t((_Qa = (_Pa = (_Oa = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _Oa.dataShow) == null ? void 0 : _Pa.value) == null ? void 0 : _Qa.reporter_phone)
      } : {}, {
        v: common_vendor.t((_Ta = (_Sa = (_Ra = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _Ra.dataShow) == null ? void 0 : _Sa.value) == null ? void 0 : _Ta.created_at),
        w: ((_Wa = (_Va = (_Ua = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _Ua.dataShow) == null ? void 0 : _Va.value) == null ? void 0 : _Wa.status) === "PendingPayment" && ((_Za = (_Ya = (_Xa = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _Xa.dataShow) == null ? void 0 : _Ya.value) == null ? void 0 : _Za.amount)
      }, ((_ab = (_$a = (__a = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : __a.dataShow) == null ? void 0 : _$a.value) == null ? void 0 : _ab.status) === "PendingPayment" && ((_db = (_cb = (_bb = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _bb.dataShow) == null ? void 0 : _cb.value) == null ? void 0 : _db.amount) ? {
        x: common_vendor.t((_gb = (_fb = (_eb = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _eb.dataShow) == null ? void 0 : _fb.value) == null ? void 0 : _gb.amount)
      } : {}, {
        y: (_jb = (_ib = (_hb = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _hb.dataShow) == null ? void 0 : _ib.value) == null ? void 0 : _jb.evaluation_score
      }, ((_mb = (_lb = (_kb = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _kb.dataShow) == null ? void 0 : _lb.value) == null ? void 0 : _mb.evaluation_score) ? {
        z: common_vendor.p({
          valueModel: (_pb = (_ob = (_nb = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _nb.dataShow) == null ? void 0 : _ob.value) == null ? void 0 : _pb.evaluation_score
        })
      } : {}, {
        A: common_vendor.n(`show_card ${((_sb = (_rb = (_qb = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _qb.dataShow) == null ? void 0 : _rb.value) == null ? void 0 : _sb.status) === "Pending" ? `card_status_${(_wb = common_vendor.unref(common_libraries_day.getTimeStatus)((_vb = (_ub = (_tb = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _tb.dataShow) == null ? void 0 : _ub.value) == null ? void 0 : _vb.expect_end_time)) == null ? void 0 : _wb.status}` : ""}`),
        B: ((_zb = (_yb = (_xb = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _xb.dataShow) == null ? void 0 : _yb.value) == null ? void 0 : _zb.location) !== "MyHome"
      }, ((_Cb = (_Bb = (_Ab = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _Ab.dataShow) == null ? void 0 : _Bb.value) == null ? void 0 : _Cb.location) !== "MyHome" ? common_vendor.e({
        C: ((_Fb = (_Eb = (_Db = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _Db.dataShow) == null ? void 0 : _Eb.value) == null ? void 0 : _Fb.status) === "Pending"
      }, ((_Ib = (_Hb = (_Gb = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _Gb.dataShow) == null ? void 0 : _Hb.value) == null ? void 0 : _Ib.status) === "Pending" ? {
        D: common_vendor.o((_Jb = common_vendor.unref(WORKORDER_show_log_method.method)) == null ? void 0 : _Jb.handleClosed),
        E: common_vendor.p({
          btnParimaryName: "关闭工单"
        })
      } : {}, {
        F: ((_Mb = (_Lb = (_Kb = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _Kb.dataShow) == null ? void 0 : _Lb.value) == null ? void 0 : _Mb.status) === "PendingAcceptance"
      }, ((_Pb = (_Ob = (_Nb = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _Nb.dataShow) == null ? void 0 : _Ob.value) == null ? void 0 : _Pb.status) === "PendingAcceptance" ? {
        G: common_vendor.o((_Qb = common_vendor.unref(WORKORDER_show_log_method.method)) == null ? void 0 : _Qb.toPageAddLogs),
        H: common_vendor.p({
          btnParimaryName: "验收工单"
        })
      } : {}) : {});
    };
  }
});
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/WORKORDER/show_log/index.vue"]]);
wx.createPage(MiniProgramPage);
