76 lines
4.0 KiB
JavaScript
76 lines
4.0 KiB
JavaScript
|
|
"use strict";
|
||
|
|
const common_vendor = require("../../common/vendor.js");
|
||
|
|
const INDEX_archive_houses_model = require("./model.js");
|
||
|
|
const INDEX_archive_houses_method = require("./method.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");
|
||
|
|
require("../../common/libraries/naviHelper.js");
|
||
|
|
require("../../common/libraries/userUserLogin.js");
|
||
|
|
if (!Array) {
|
||
|
|
const _easycom_up_avatar2 = common_vendor.resolveComponent("up-avatar");
|
||
|
|
const _easycom_hs_enum_tag2 = common_vendor.resolveComponent("hs-enum-tag");
|
||
|
|
const _easycom_hs_footer2 = common_vendor.resolveComponent("hs-footer");
|
||
|
|
(_easycom_up_avatar2 + _easycom_hs_enum_tag2 + _easycom_hs_footer2)();
|
||
|
|
}
|
||
|
|
const _easycom_up_avatar = () => "../../node-modules/uview-plus/components/u-avatar/u-avatar.js";
|
||
|
|
const _easycom_hs_enum_tag = () => "../../components/hs-enum-tag/hs-enum-tag.js";
|
||
|
|
const _easycom_hs_footer = () => "../../components/hs-footer/hs-footer.js";
|
||
|
|
if (!Math) {
|
||
|
|
(_easycom_up_avatar + _easycom_hs_enum_tag + _easycom_hs_footer)();
|
||
|
|
}
|
||
|
|
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||
|
|
__name: "index",
|
||
|
|
setup(__props) {
|
||
|
|
common_vendor.onLoad((opt) => {
|
||
|
|
var _a;
|
||
|
|
INDEX_archive_houses_model.useModel.formData.value.asset_houses_id = opt == null ? void 0 : opt.id;
|
||
|
|
INDEX_archive_houses_model.useModel.showData.value = {};
|
||
|
|
(_a = INDEX_archive_houses_method.method) == null ? void 0 : _a.getList();
|
||
|
|
});
|
||
|
|
return (_ctx, _cache) => {
|
||
|
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
||
|
|
return {
|
||
|
|
a: common_vendor.t((_c = (_b = (_a = common_vendor.unref(INDEX_archive_houses_model.useModel)) == null ? void 0 : _a.showData) == null ? void 0 : _b.value) == null ? void 0 : _c.house_occupants_num),
|
||
|
|
b: common_vendor.f((_f = (_e = (_d = common_vendor.unref(INDEX_archive_houses_model.useModel)) == null ? void 0 : _d.showData) == null ? void 0 : _e.value) == null ? void 0 : _f.list, (i, index, i0) => {
|
||
|
|
var _a2, _b2, _c2, _d2;
|
||
|
|
return common_vendor.e({
|
||
|
|
a: "afe28dc2-0-" + i0,
|
||
|
|
b: common_vendor.t(i == null ? void 0 : i.name),
|
||
|
|
c: "afe28dc2-1-" + i0,
|
||
|
|
d: common_vendor.p({
|
||
|
|
value: i == null ? void 0 : i.house_relation,
|
||
|
|
Enums: common_vendor.unref(gen_Enums.HouseOccupantsHouseRelationEnum),
|
||
|
|
type: "primary"
|
||
|
|
}),
|
||
|
|
e: i == null ? void 0 : i.is_live_in
|
||
|
|
}, (i == null ? void 0 : i.is_live_in) ? {} : {}, ((_d2 = (_c2 = (_b2 = (_a2 = common_vendor.unref(INDEX_archive_houses_model.useModel)) == null ? void 0 : _a2.showData) == null ? void 0 : _b2.value) == null ? void 0 : _c2.house_relation) == null ? void 0 : _d2.house_relation) === "Owner" ? {
|
||
|
|
f: common_vendor.o(($event) => {
|
||
|
|
var _a3;
|
||
|
|
return (_a3 = common_vendor.unref(INDEX_archive_houses_method.method)) == null ? void 0 : _a3.handleRemove(i);
|
||
|
|
}, index)
|
||
|
|
} : {}, {
|
||
|
|
g: index
|
||
|
|
});
|
||
|
|
}),
|
||
|
|
c: common_vendor.p({
|
||
|
|
text: "U",
|
||
|
|
fontSize: "18",
|
||
|
|
bgColor: "#ffeade",
|
||
|
|
color: "#333"
|
||
|
|
}),
|
||
|
|
d: ((_j = (_i = (_h = (_g = common_vendor.unref(INDEX_archive_houses_model.useModel)) == null ? void 0 : _g.showData) == null ? void 0 : _h.value) == null ? void 0 : _i.house_relation) == null ? void 0 : _j.house_relation) === "Owner",
|
||
|
|
e: common_vendor.o((_k = common_vendor.unref(INDEX_archive_houses_method.method)) == null ? void 0 : _k.handleUnbind),
|
||
|
|
f: common_vendor.p({
|
||
|
|
btnParimaryName: "解绑该房屋"
|
||
|
|
})
|
||
|
|
};
|
||
|
|
};
|
||
|
|
}
|
||
|
|
});
|
||
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-customer/src/INDEX/archive_houses/index.vue"]]);
|
||
|
|
wx.createPage(MiniProgramPage);
|