90 lines
4.3 KiB
JavaScript
90 lines
4.3 KiB
JavaScript
|
|
"use strict";
|
||
|
|
const common_vendor = require("../../common/vendor.js");
|
||
|
|
const WORKORDER_list_method = require("./method.js");
|
||
|
|
const WORKORDER_list_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_tabs2 = common_vendor.resolveComponent("hs-tabs");
|
||
|
|
const _easycom_hs_enum_tag2 = common_vendor.resolveComponent("hs-enum-tag");
|
||
|
|
const _easycom_cc_scroll_loading2 = common_vendor.resolveComponent("cc-scroll-loading");
|
||
|
|
const _easycom_hs_footer2 = common_vendor.resolveComponent("hs-footer");
|
||
|
|
(_easycom_hs_tabs2 + _easycom_hs_enum_tag2 + _easycom_cc_scroll_loading2 + _easycom_hs_footer2)();
|
||
|
|
}
|
||
|
|
const _easycom_hs_tabs = () => "../../components/hs-tabs/hs-tabs.js";
|
||
|
|
const _easycom_hs_enum_tag = () => "../../components/hs-enum-tag/hs-enum-tag.js";
|
||
|
|
const _easycom_cc_scroll_loading = () => "../../common/components/cc-scroll-loading/cc-scroll-loading.js";
|
||
|
|
const _easycom_hs_footer = () => "../../components/hs-footer/hs-footer.js";
|
||
|
|
if (!Math) {
|
||
|
|
(_easycom_hs_tabs + _easycom_hs_enum_tag + _easycom_cc_scroll_loading + _easycom_hs_footer)();
|
||
|
|
}
|
||
|
|
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||
|
|
__name: "index",
|
||
|
|
setup(__props) {
|
||
|
|
const tablist = [
|
||
|
|
{ label: "待处理", value: "Pending" },
|
||
|
|
{ label: "处理中", value: "Processing" },
|
||
|
|
{ label: "已完成", value: "Completed" },
|
||
|
|
{ label: "已关闭", value: "Closed" }
|
||
|
|
];
|
||
|
|
common_vendor.onShow(() => {
|
||
|
|
var _a;
|
||
|
|
WORKORDER_list_model.useModel.formData.value.page = 1;
|
||
|
|
WORKORDER_list_model.useModel.dataList.value = [];
|
||
|
|
(_a = WORKORDER_list_method.method) == null ? void 0 : _a.getList();
|
||
|
|
});
|
||
|
|
return (_ctx, _cache) => {
|
||
|
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
||
|
|
return {
|
||
|
|
a: common_vendor.o((_a = common_vendor.unref(WORKORDER_list_method.method)) == null ? void 0 : _a.handleChangeTabs),
|
||
|
|
b: common_vendor.p({
|
||
|
|
list: tablist,
|
||
|
|
current: (_c = (_b = common_vendor.unref(WORKORDER_list_model.useModel)) == null ? void 0 : _b.currentTabs) == null ? void 0 : _c.value
|
||
|
|
}),
|
||
|
|
c: common_vendor.f((_e = (_d = common_vendor.unref(WORKORDER_list_model.useModel)) == null ? void 0 : _d.dataList) == null ? void 0 : _e.value, (i, index, i0) => {
|
||
|
|
var _a2;
|
||
|
|
return {
|
||
|
|
a: "550638e2-2-" + i0 + ",550638e2-1",
|
||
|
|
b: common_vendor.p({
|
||
|
|
value: i == null ? void 0 : i.type,
|
||
|
|
Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersTypeEnum)
|
||
|
|
}),
|
||
|
|
c: "550638e2-3-" + i0 + ",550638e2-1",
|
||
|
|
d: common_vendor.p({
|
||
|
|
value: i == null ? void 0 : i.status,
|
||
|
|
Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersStatusEnum)
|
||
|
|
}),
|
||
|
|
e: common_vendor.t((_a2 = i == null ? void 0 : i.asset_house) == null ? void 0 : _a2.full_name),
|
||
|
|
f: common_vendor.t(i == null ? void 0 : i.content),
|
||
|
|
g: common_vendor.f(i == null ? void 0 : i.attachments, (k, idx, i1) => {
|
||
|
|
return {
|
||
|
|
a: k == null ? void 0 : k.url,
|
||
|
|
b: `img_${index}_${idx}`
|
||
|
|
};
|
||
|
|
}),
|
||
|
|
h: `items_${index}`,
|
||
|
|
i: common_vendor.o(($event) => {
|
||
|
|
var _a3;
|
||
|
|
return (_a3 = common_vendor.unref(WORKORDER_list_method.method)) == null ? void 0 : _a3.handleToDetail(i);
|
||
|
|
}, `items_${index}`)
|
||
|
|
};
|
||
|
|
}),
|
||
|
|
d: common_vendor.o((_f = common_vendor.unref(WORKORDER_list_method.method)) == null ? void 0 : _f.handleLoad),
|
||
|
|
e: common_vendor.p({
|
||
|
|
meta: (_h = (_g = common_vendor.unref(WORKORDER_list_model.useModel)) == null ? void 0 : _g.meta) == null ? void 0 : _h.value
|
||
|
|
}),
|
||
|
|
f: common_vendor.o((_i = common_vendor.unref(WORKORDER_list_method.method)) == null ? void 0 : _i.handleAdd),
|
||
|
|
g: common_vendor.p({
|
||
|
|
btnParimaryName: "新增工单"
|
||
|
|
})
|
||
|
|
};
|
||
|
|
};
|
||
|
|
}
|
||
|
|
});
|
||
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-customer/src/WORKORDER/list/index.vue"]]);
|
||
|
|
wx.createPage(MiniProgramPage);
|