"use strict";
const common_vendor = require("../../common/vendor.js");
const WORKORDER_show_method = require("./method.js");
const WORKORDER_show_model = require("./model.js");
const common_libraries_getPageConfig = require("../../common/libraries/getPageConfig.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/libraries/setTabBar.js");
require("../../common/store/useWorkStore.js");
if (!Array) {
  const _easycom_hs_enum_tag2 = common_vendor.resolveComponent("hs-enum-tag");
  const _easycom_hs_up_rate2 = common_vendor.resolveComponent("hs-up-rate");
  const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon");
  const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
  const _easycom_hs_popup_evaluate2 = common_vendor.resolveComponent("hs-popup-evaluate");
  (_easycom_hs_enum_tag2 + _easycom_hs_up_rate2 + _easycom_up_icon2 + _easycom_uni_icons2 + _easycom_hs_popup_evaluate2)();
}
const _easycom_hs_enum_tag = () => "../../components/hs-enum-tag/hs-enum-tag.js";
const _easycom_hs_up_rate = () => "../../components/hs-up-rate/hs-up-rate.js";
const _easycom_up_icon = () => "../../node-modules/uview-plus/components/u-icon/u-icon.js";
const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
const _easycom_hs_popup_evaluate = () => "../../components/hs-popup-evaluate/hs-popup-evaluate.js";
if (!Math) {
  (_easycom_hs_enum_tag + _easycom_hs_up_rate + MyProcessLogs + _easycom_up_icon + _easycom_uni_icons + _easycom_hs_popup_evaluate)();
}
const MyProcessLogs = () => "./components/ProcessLogs.js";
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;
      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;
      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: common_vendor.p({
          value: (_o = (_n = (_m = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _m.dataShow) == null ? void 0 : _n.value) == null ? void 0 : _o.status,
          Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersStatusEnum)
        }),
        e: common_vendor.n(`btn_status btn_status_${(_r = (_q = (_p = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _p.dataShow) == null ? void 0 : _q.value) == null ? void 0 : _r.status}`),
        f: common_vendor.t((_v = (_u = (_t = (_s = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _s.dataShow) == null ? void 0 : _t.value) == null ? void 0 : _u.asset_house) == null ? void 0 : _v.full_name),
        g: 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.title),
        h: common_vendor.t((_B = (_A = (_z = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _z.dataShow) == null ? void 0 : _A.value) == null ? void 0 : _B.content),
        i: common_vendor.f((_E = (_D = (_C = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _C.dataShow) == null ? void 0 : _D.value) == null ? void 0 : _E.attachments, (k, idx, i0) => {
          return {
            a: k == null ? void 0 : k.url,
            b: `img_${idx}`
          };
        }),
        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.code),
        k: common_vendor.t(common_vendor.unref(common_libraries_day.getTimeRangeDisplay)((_K = (_J = (_I = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _I.dataShow) == null ? void 0 : _J.value) == null ? void 0 : _K.expect_start_time, (_N = (_M = (_L = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _L.dataShow) == null ? void 0 : _M.value) == null ? void 0 : _N.expect_end_time)),
        l: common_vendor.t((_Q = (_P = (_O = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _O.dataShow) == null ? void 0 : _P.value) == null ? void 0 : _Q.created_at),
        m: (_T = (_S = (_R = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _R.dataShow) == null ? void 0 : _S.value) == null ? void 0 : _T.evaluation_score
      }, ((_W = (_V = (_U = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _U.dataShow) == null ? void 0 : _V.value) == null ? void 0 : _W.evaluation_score) ? {
        n: common_vendor.p({
          valueModel: (_Z = (_Y = (_X = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _X.dataShow) == null ? void 0 : _Y.value) == null ? void 0 : _Z.evaluation_score
        })
      } : {}, {
        o: parseFloat((_aa = (_$ = (__ = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : __.dataShow) == null ? void 0 : _$.value) == null ? void 0 : _aa.amount) > 0
      }, parseFloat((_da = (_ca = (_ba = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _ba.dataShow) == null ? void 0 : _ca.value) == null ? void 0 : _da.amount) > 0 ? {
        p: common_vendor.t((_ga = (_fa = (_ea = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _ea.dataShow) == null ? void 0 : _fa.value) == null ? void 0 : _ga.amount)
      } : {}, {
        q: ((_ja = (_ia = (_ha = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _ha.dataShow) == null ? void 0 : _ia.value) == null ? void 0 : _ja.status) !== "Closed"
      }, ((_ma = (_la = (_ka = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _ka.dataShow) == null ? void 0 : _la.value) == null ? void 0 : _ma.status) !== "Closed" ? common_vendor.e({
        r: ((_pa = (_oa = (_na = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _na.dataShow) == null ? void 0 : _oa.value) == null ? void 0 : _pa.status) === "Pending"
      }, ((_sa = (_ra = (_qa = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _qa.dataShow) == null ? void 0 : _ra.value) == null ? void 0 : _sa.status) === "Pending" ? {
        s: common_vendor.o(
          //@ts-ignore
          (...args) => {
            var _a2, _b2;
            return ((_a2 = common_vendor.unref(WORKORDER_show_method.method)) == null ? void 0 : _a2.handleClosed) && ((_b2 = common_vendor.unref(WORKORDER_show_method.method)) == null ? void 0 : _b2.handleClosed(...args));
          }
        )
      } : {}, {
        t: ((_va = (_ua = (_ta = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _ta.dataShow) == null ? void 0 : _ua.value) == null ? void 0 : _va.status) === "Processing"
      }, ((_ya = (_xa = (_wa = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _wa.dataShow) == null ? void 0 : _xa.value) == null ? void 0 : _ya.status) === "Processing" ? {
        v: common_vendor.p({
          name: "file-text",
          size: "28"
        }),
        w: common_vendor.o(
          //@ts-ignore
          (...args) => {
            var _a2, _b2;
            return ((_a2 = common_vendor.unref(WORKORDER_show_method.method)) == null ? void 0 : _a2.handleClosed) && ((_b2 = common_vendor.unref(WORKORDER_show_method.method)) == null ? void 0 : _b2.handleClosed(...args));
          }
        )
      } : {}, {
        x: ((_Ba = (_Aa = (_za = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _za.dataShow) == null ? void 0 : _Aa.value) == null ? void 0 : _Ba.status) === "Completed" && !((_Ea = (_Da = (_Ca = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Ca.dataShow) == null ? void 0 : _Da.value) == null ? void 0 : _Ea.evaluation_score)
      }, ((_Ha = (_Ga = (_Fa = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Fa.dataShow) == null ? void 0 : _Ga.value) == null ? void 0 : _Ha.status) === "Completed" && !((_Ka = (_Ja = (_Ia = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Ia.dataShow) == null ? void 0 : _Ja.value) == null ? void 0 : _Ka.evaluation_score) ? {
        y: common_vendor.p({
          type: "undo-filled",
          color: "#333",
          size: "26"
        }),
        z: common_vendor.o(
          //@ts-ignore
          (...args) => {
            var _a2, _b2;
            return ((_a2 = common_vendor.unref(WORKORDER_show_method.method)) == null ? void 0 : _a2.handleRework) && ((_b2 = common_vendor.unref(WORKORDER_show_method.method)) == null ? void 0 : _b2.handleRework(...args));
          }
        )
      } : {}, {
        A: ((_Na = (_Ma = (_La = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _La.dataShow) == null ? void 0 : _Ma.value) == null ? void 0 : _Na.status) === "Completed" && ((_Qa = (_Pa = (_Oa = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Oa.dataShow) == null ? void 0 : _Pa.value) == null ? void 0 : _Qa.evaluation_score)
      }, ((_Ta = (_Sa = (_Ra = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Ra.dataShow) == null ? void 0 : _Sa.value) == null ? void 0 : _Ta.status) === "Completed" && ((_Wa = (_Va = (_Ua = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Ua.dataShow) == null ? void 0 : _Va.value) == null ? void 0 : _Wa.evaluation_score) ? {
        B: common_vendor.o(
          //@ts-ignore
          (...args) => {
            var _a2, _b2;
            return ((_a2 = common_vendor.unref(WORKORDER_show_method.method)) == null ? void 0 : _a2.handleRework) && ((_b2 = common_vendor.unref(WORKORDER_show_method.method)) == null ? void 0 : _b2.handleRework(...args));
          }
        )
      } : {}, {
        C: ((_Za = (_Ya = (_Xa = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Xa.dataShow) == null ? void 0 : _Ya.value) == null ? void 0 : _Za.status) !== "Pending" && ((_ab = (_$a = (__a = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : __a.dataShow) == null ? void 0 : _$a.value) == null ? void 0 : _ab.status) !== "Completed" && ((_db = (_cb = (_bb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _bb.dataShow) == null ? void 0 : _cb.value) == null ? void 0 : _db.status) !== "Closed"
      }, ((_gb = (_fb = (_eb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _eb.dataShow) == null ? void 0 : _fb.value) == null ? void 0 : _gb.status) !== "Pending" && ((_jb = (_ib = (_hb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _hb.dataShow) == null ? void 0 : _ib.value) == null ? void 0 : _jb.status) !== "Completed" && ((_mb = (_lb = (_kb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _kb.dataShow) == null ? void 0 : _lb.value) == null ? void 0 : _mb.status) !== "Closed" ? {
        D: common_vendor.o(
          //@ts-ignore
          (...args) => {
            var _a2, _b2;
            return ((_a2 = common_vendor.unref(WORKORDER_show_method.method)) == null ? void 0 : _a2.handlePhoneCall) && ((_b2 = common_vendor.unref(WORKORDER_show_method.method)) == null ? void 0 : _b2.handlePhoneCall(...args));
          }
        )
      } : {}, {
        E: ((_pb = (_ob = (_nb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _nb.dataShow) == null ? void 0 : _ob.value) == null ? void 0 : _pb.status) === "Pending" || ((_sb = (_rb = (_qb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _qb.dataShow) == null ? void 0 : _rb.value) == null ? void 0 : _sb.status) === "Processing"
      }, ((_vb = (_ub = (_tb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _tb.dataShow) == null ? void 0 : _ub.value) == null ? void 0 : _vb.status) === "Pending" || ((_yb = (_xb = (_wb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _wb.dataShow) == null ? void 0 : _xb.value) == null ? void 0 : _yb.status) === "Processing" ? {
        F: common_vendor.o(
          //@ts-ignore
          (...args) => {
            var _a2, _b2;
            return ((_a2 = common_vendor.unref(WORKORDER_show_method.method)) == null ? void 0 : _a2.hadnleUpdateTime) && ((_b2 = common_vendor.unref(WORKORDER_show_method.method)) == null ? void 0 : _b2.hadnleUpdateTime(...args));
          }
        ),
        G: common_vendor.s(common_vendor.unref(common_libraries_getPageConfig.getStyleBgInfo)())
      } : {}, {
        H: ((_Bb = (_Ab = (_zb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _zb.dataShow) == null ? void 0 : _Ab.value) == null ? void 0 : _Bb.status) === "PendingAcceptance"
      }, ((_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) === "PendingAcceptance" ? {
        I: common_vendor.o(
          //@ts-ignore
          (...args) => {
            var _a2, _b2;
            return ((_a2 = common_vendor.unref(WORKORDER_show_method.method)) == null ? void 0 : _a2.handleAcceptance) && ((_b2 = common_vendor.unref(WORKORDER_show_method.method)) == null ? void 0 : _b2.handleAcceptance(...args));
          }
        ),
        J: common_vendor.s(common_vendor.unref(common_libraries_getPageConfig.getStyleBgInfo)())
      } : {}, {
        K: ((_Hb = (_Gb = (_Fb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Fb.dataShow) == null ? void 0 : _Gb.value) == null ? void 0 : _Hb.status) === "PendingPayment"
      }, ((_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" ? {
        L: common_vendor.o(
          //@ts-ignore
          (...args) => {
            var _a2, _b2;
            return ((_a2 = common_vendor.unref(WORKORDER_show_method.method)) == null ? void 0 : _a2.handleAcceptance) && ((_b2 = common_vendor.unref(WORKORDER_show_method.method)) == null ? void 0 : _b2.handleAcceptance(...args));
          }
        ),
        M: common_vendor.s(common_vendor.unref(common_libraries_getPageConfig.getStyleBgInfo)())
      } : {}, {
        N: ((_Nb = (_Mb = (_Lb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Lb.dataShow) == null ? void 0 : _Mb.value) == null ? void 0 : _Nb.status) === "Completed" && !((_Qb = (_Pb = (_Ob = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Ob.dataShow) == null ? void 0 : _Pb.value) == null ? void 0 : _Qb.evaluation_score)
      }, ((_Tb = (_Sb = (_Rb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Rb.dataShow) == null ? void 0 : _Sb.value) == null ? void 0 : _Tb.status) === "Completed" && !((_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) ? {
        O: common_vendor.s(common_vendor.unref(common_libraries_getPageConfig.getStyleBgInfo)()),
        P: common_vendor.o(
          //@ts-ignore
          (...args) => {
            var _a2, _b2;
            return ((_a2 = common_vendor.unref(WORKORDER_show_method.method)) == null ? void 0 : _a2.handleAcceptance) && ((_b2 = common_vendor.unref(WORKORDER_show_method.method)) == null ? void 0 : _b2.handleAcceptance(...args));
          }
        )
      } : {}) : {}, {
        Q: common_vendor.o((_Xb = common_vendor.unref(WORKORDER_show_method.method)) == null ? void 0 : _Xb.handlepopupClose),
        R: common_vendor.o(($event) => common_vendor.unref(WORKORDER_show_model.useModel).showEvaluate.value = false),
        S: common_vendor.p({
          show: (_Zb = (_Yb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Yb.showEvaluate) == null ? void 0 : _Zb.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);
