71 lines
5.4 KiB
JavaScript
71 lines
5.4 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../../../common/vendor.js");
|
|
const gen_Enums = require("../../../gen/Enums.js");
|
|
const common_libraries_day = require("../../../common/libraries/day.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");
|
|
(_easycom_hs_enum_tag2 + _easycom_hs_level2 + _easycom_up_icon2)();
|
|
}
|
|
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";
|
|
if (!Math) {
|
|
(_easycom_hs_enum_tag + _easycom_hs_level + _easycom_up_icon)();
|
|
}
|
|
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
__name: "TemplateWorkorder",
|
|
props: ["item"],
|
|
setup(__props) {
|
|
const props = __props;
|
|
const toPageShow = () => {
|
|
var _a;
|
|
common_vendor.index.navigateTo({
|
|
url: `/WORKORDER/show/index?id=${(_a = props == null ? void 0 : props.item) == null ? void 0 : _a.model_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;
|
|
return common_vendor.e({
|
|
a: common_vendor.p({
|
|
value: (_a = props == null ? void 0 : props.item) == null ? void 0 : _a.type,
|
|
Enums: common_vendor.unref(gen_Enums.CompanyEmployeeBacklogsTypeEnum)
|
|
}),
|
|
b: common_vendor.p({
|
|
value: (_c = (_b = props == null ? void 0 : props.item) == null ? void 0 : _b.model) == null ? void 0 : _c.type,
|
|
Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersTypeEnum)
|
|
}),
|
|
c: common_vendor.p({
|
|
level: (_e = (_d = props == null ? void 0 : props.item) == null ? void 0 : _d.model) == null ? void 0 : _e.level
|
|
}),
|
|
d: common_vendor.p({
|
|
value: (_g = (_f = props == null ? void 0 : props.item) == null ? void 0 : _f.model) == null ? void 0 : _g.status,
|
|
Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersStatusEnum)
|
|
}),
|
|
e: common_vendor.n(`btn_status status_${(_i = (_h = props == null ? void 0 : props.item) == null ? void 0 : _h.model) == null ? void 0 : _i.status}`),
|
|
f: ((_k = (_j = props == null ? void 0 : props.item) == null ? void 0 : _j.model) == null ? void 0 : _k.location) === "MyHome"
|
|
}, ((_m = (_l = props == null ? void 0 : props.item) == null ? void 0 : _l.model) == null ? void 0 : _m.location) === "MyHome" ? {
|
|
g: common_vendor.t((_p = (_o = (_n = props == null ? void 0 : props.item) == null ? void 0 : _n.model) == null ? void 0 : _o.asset_house) == null ? void 0 : _p.full_name)
|
|
} : {}, {
|
|
h: common_vendor.t((_r = (_q = props == null ? void 0 : props.item) == null ? void 0 : _q.model) == null ? void 0 : _r.content),
|
|
i: ((_s = props == null ? void 0 : props.item) == null ? void 0 : _s.type) === "WorkOrder" && ((_u = (_t = props == null ? void 0 : props.item) == null ? void 0 : _t.model) == null ? void 0 : _u.status) === "Pending" && ((_w = (_v = props == null ? void 0 : props.item) == null ? void 0 : _v.model) == null ? void 0 : _w.location) === "MyHome"
|
|
}, ((_x = props == null ? void 0 : props.item) == null ? void 0 : _x.type) === "WorkOrder" && ((_z = (_y = props == null ? void 0 : props.item) == null ? void 0 : _y.model) == null ? void 0 : _z.status) === "Pending" && ((_B = (_A = props == null ? void 0 : props.item) == null ? void 0 : _A.model) == null ? void 0 : _B.location) === "MyHome" ? {
|
|
j: common_vendor.p({
|
|
name: "clock",
|
|
color: ((_E = common_vendor.unref(common_libraries_day.getTimeStatus)((_D = (_C = props == null ? void 0 : props.item) == null ? void 0 : _C.model) == null ? void 0 : _D.expect_end_time)) == null ? void 0 : _E.color) || "#000",
|
|
size: "14"
|
|
}),
|
|
k: common_vendor.t((_H = common_vendor.unref(common_libraries_day.getTimeStatus)((_G = (_F = props == null ? void 0 : props.item) == null ? void 0 : _F.model) == null ? void 0 : _G.expect_end_time)) == null ? void 0 : _H.label),
|
|
l: common_vendor.n(`todo_done_card_footer status_${(_K = common_vendor.unref(common_libraries_day.getTimeStatus)((_J = (_I = props == null ? void 0 : props.item) == null ? void 0 : _I.model) == null ? void 0 : _J.expect_end_time)) == null ? void 0 : _K.status}`)
|
|
} : {}, {
|
|
m: common_vendor.t((_L = props == null ? void 0 : props.item) == null ? void 0 : _L.created_at),
|
|
n: common_vendor.o(($event) => toPageShow()),
|
|
o: common_vendor.n(`todo_done_card ${((_M = props == null ? void 0 : props.item) == null ? void 0 : _M.type) === "WorkOrder" && ((_O = (_N = props == null ? void 0 : props.item) == null ? void 0 : _N.model) == null ? void 0 : _O.status) === "Pending" ? `card_status_${(_R = common_vendor.unref(common_libraries_day.getTimeStatus)((_Q = (_P = props == null ? void 0 : props.item) == null ? void 0 : _P.model) == null ? void 0 : _Q.expect_end_time)) == null ? void 0 : _R.status}` : ""}`)
|
|
});
|
|
};
|
|
}
|
|
});
|
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-ac60665f"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/pages/index/components/TemplateWorkorder.vue"]]);
|
|
wx.createComponent(Component);
|