123 lines
14 KiB
JavaScript
123 lines
14 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../../common/vendor.js");
|
|
const common_libraries_day = require("../../common/libraries/day.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");
|
|
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);
|
|
}
|
|
});
|
|
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;
|
|
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: 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({
|
|
level: (_i = (_h = (_g = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _g.dataShow) == null ? void 0 : _h.value) == null ? void 0 : _i.level
|
|
}),
|
|
d: 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.status,
|
|
Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersStatusEnum)
|
|
}),
|
|
e: common_vendor.n(`btn_status status_${(_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}`),
|
|
f: ((_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) === "Pending" && ((_u = (_t = (_s = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _s.dataShow) == null ? void 0 : _t.value) == null ? void 0 : _u.location) === "MyHome"
|
|
}, ((_x = (_w = (_v = common_vendor.unref(WORKORDER_show_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_model.useModel)) == null ? void 0 : _y.dataShow) == null ? void 0 : _z.value) == null ? void 0 : _A.location) === "MyHome" ? {
|
|
g: common_vendor.p({
|
|
name: "clock",
|
|
color: ((_E = common_vendor.unref(common_libraries_day.getTimeStatus)((_D = (_C = (_B = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _B.dataShow) == null ? void 0 : _C.value) == null ? void 0 : _D.expect_end_time)) == null ? void 0 : _E.color) || "#000",
|
|
size: "14"
|
|
}),
|
|
h: common_vendor.t((_I = common_vendor.unref(common_libraries_day.getTimeStatus)((_H = (_G = (_F = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _F.dataShow) == null ? void 0 : _G.value) == null ? void 0 : _H.expect_end_time)) == null ? void 0 : _I.label),
|
|
i: common_vendor.n(`time_status status_${(_M = common_vendor.unref(common_libraries_day.getTimeStatus)((_L = (_K = (_J = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _J.dataShow) == null ? void 0 : _K.value) == null ? void 0 : _L.expect_end_time)) == null ? void 0 : _M.status}`)
|
|
} : {}, {
|
|
j: ((_P = (_O = (_N = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _N.dataShow) == null ? void 0 : _O.value) == null ? void 0 : _P.type) === "Repair" || ((_S = (_R = (_Q = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Q.dataShow) == null ? void 0 : _R.value) == null ? void 0 : _S.type) === "Incident"
|
|
}, ((_V = (_U = (_T = common_vendor.unref(WORKORDER_show_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_model.useModel)) == null ? void 0 : _W.dataShow) == null ? void 0 : _X.value) == null ? void 0 : _Y.type) === "Incident" ? {
|
|
k: common_vendor.t(((_aa = (_$ = (__ = (_Z = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Z.dataShow) == null ? void 0 : __.value) == null ? void 0 : _$.asset_house) == null ? void 0 : _aa.full_name) || ((_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_project) == null ? void 0 : _ea.name)),
|
|
l: common_vendor.t((_ha = (_ga = (_fa = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _fa.dataShow) == null ? void 0 : _ga.value) == null ? void 0 : _ha.title)
|
|
} : {}, {
|
|
m: common_vendor.t((_ka = (_ja = (_ia = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _ia.dataShow) == null ? void 0 : _ja.value) == null ? void 0 : _ka.content),
|
|
n: common_vendor.f((_na = (_ma = (_la = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _la.dataShow) == null ? void 0 : _ma.value) == null ? void 0 : _na.attachments, (k, idx, i0) => {
|
|
return {
|
|
a: k == null ? void 0 : k.url,
|
|
b: `img_${idx}`
|
|
};
|
|
}),
|
|
o: common_vendor.t((_qa = (_pa = (_oa = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _oa.dataShow) == null ? void 0 : _pa.value) == null ? void 0 : _qa.code),
|
|
p: common_vendor.t(((_ua = (_ta = (_sa = (_ra = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _ra.dataShow) == null ? void 0 : _sa.value) == null ? void 0 : _ta.customer) == null ? void 0 : _ua.name) || ((_ya = (_xa = (_wa = (_va = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _va.dataShow) == null ? void 0 : _wa.value) == null ? void 0 : _xa.company_employee) == null ? void 0 : _ya.name)),
|
|
q: (_Ba = (_Aa = (_za = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _za.dataShow) == null ? void 0 : _Aa.value) == null ? void 0 : _Ba.reporter_name
|
|
}, ((_Ea = (_Da = (_Ca = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Ca.dataShow) == null ? void 0 : _Da.value) == null ? void 0 : _Ea.reporter_name) ? {
|
|
r: common_vendor.t((_Ha = (_Ga = (_Fa = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Fa.dataShow) == null ? void 0 : _Ga.value) == null ? void 0 : _Ha.reporter_name),
|
|
s: common_vendor.t((_Ka = (_Ja = (_Ia = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Ia.dataShow) == null ? void 0 : _Ja.value) == null ? void 0 : _Ka.reporter_phone)
|
|
} : {}, {
|
|
t: common_vendor.t((_Na = (_Ma = (_La = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _La.dataShow) == null ? void 0 : _Ma.value) == null ? void 0 : _Na.created_at),
|
|
v: ((_Qa = (_Pa = (_Oa = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Oa.dataShow) == null ? void 0 : _Pa.value) == null ? void 0 : _Qa.status) === "PendingPayment" && ((_Ta = (_Sa = (_Ra = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Ra.dataShow) == null ? void 0 : _Sa.value) == null ? void 0 : _Ta.amount)
|
|
}, ((_Wa = (_Va = (_Ua = common_vendor.unref(WORKORDER_show_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_model.useModel)) == null ? void 0 : _Xa.dataShow) == null ? void 0 : _Ya.value) == null ? void 0 : _Za.amount) ? {
|
|
w: common_vendor.t((_ab = (_$a = (__a = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : __a.dataShow) == null ? void 0 : _$a.value) == null ? void 0 : _ab.amount)
|
|
} : {}, {
|
|
x: (_db = (_cb = (_bb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _bb.dataShow) == null ? void 0 : _cb.value) == null ? void 0 : _db.evaluation_score
|
|
}, ((_gb = (_fb = (_eb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _eb.dataShow) == null ? void 0 : _fb.value) == null ? void 0 : _gb.evaluation_score) ? {
|
|
y: common_vendor.p({
|
|
valueModel: (_jb = (_ib = (_hb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _hb.dataShow) == null ? void 0 : _ib.value) == null ? void 0 : _jb.evaluation_score
|
|
})
|
|
} : {}, {
|
|
z: common_vendor.n(`show_card ${((_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) === "Pending" ? `card_status_${(_qb = common_vendor.unref(common_libraries_day.getTimeStatus)((_pb = (_ob = (_nb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _nb.dataShow) == null ? void 0 : _ob.value) == null ? void 0 : _pb.expect_end_time)) == null ? void 0 : _qb.status}` : ""}`),
|
|
A: ((_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) === "Processing" || ((_wb = (_vb = (_ub = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _ub.dataShow) == null ? void 0 : _vb.value) == null ? void 0 : _wb.status) === "PendingPayment"
|
|
}, ((_zb = (_yb = (_xb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _xb.dataShow) == null ? void 0 : _yb.value) == null ? void 0 : _zb.status) === "Processing" || ((_Cb = (_Bb = (_Ab = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Ab.dataShow) == null ? void 0 : _Bb.value) == null ? void 0 : _Cb.status) === "PendingPayment" ? {
|
|
B: common_vendor.o((_Db = common_vendor.unref(WORKORDER_show_method.method)) == null ? void 0 : _Db.toPageAddLogs),
|
|
C: common_vendor.o(($event) => {
|
|
var _a2;
|
|
return (_a2 = common_vendor.unref(WORKORDER_show_method.method)) == null ? void 0 : _a2.handleCopyPhone();
|
|
}),
|
|
D: common_vendor.p({
|
|
btnOtherShow: true,
|
|
btnParimaryName: ((_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) === "Processing" ? "更新进度" : ((_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) === "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);
|