2025-07-15 16:18:34 +08:00
|
|
|
"use strict";
|
|
|
|
|
const common_vendor = require("../../common/vendor.js");
|
|
|
|
|
const gen_Enums = require("../../gen/Enums.js");
|
|
|
|
|
const INDEX_binding_method = require("./method.js");
|
|
|
|
|
const INDEX_binding_model = require("./model.js");
|
2025-07-15 18:34:34 +08:00
|
|
|
require("../../common/libraries/apiLoading.js");
|
|
|
|
|
require("../../gen/Apis.js");
|
|
|
|
|
require("../../common/libraries/request.js");
|
|
|
|
|
require("../../common/store/useWeAppAuthStore.js");
|
2025-08-29 09:51:02 +08:00
|
|
|
require("../../common/store/useWorkStore.js");
|
2025-07-15 18:34:34 +08:00
|
|
|
require("../../common/libraries/naviHelper.js");
|
2025-07-15 16:18:34 +08:00
|
|
|
if (!Array) {
|
|
|
|
|
const _easycom_hs_popup_project2 = common_vendor.resolveComponent("hs-popup-project");
|
2025-08-29 09:51:02 +08:00
|
|
|
const _easycom_hs_radio2 = common_vendor.resolveComponent("hs-radio");
|
2025-07-15 16:18:34 +08:00
|
|
|
const _easycom_hs_cell2 = common_vendor.resolveComponent("hs-cell");
|
2025-08-29 09:51:02 +08:00
|
|
|
const _easycom_hs_input2 = common_vendor.resolveComponent("hs-input");
|
2025-07-15 16:18:34 +08:00
|
|
|
const _easycom_hs_upload_id_card2 = common_vendor.resolveComponent("hs-upload-id-card");
|
|
|
|
|
const _easycom_hs_upload2 = common_vendor.resolveComponent("hs-upload");
|
2025-08-29 09:51:02 +08:00
|
|
|
const _easycom_hs_radio_cell_picker_select2 = common_vendor.resolveComponent("hs-radio-cell-picker-select");
|
|
|
|
|
const _easycom_hs_radio_cell_picker2 = common_vendor.resolveComponent("hs-radio-cell-picker");
|
2025-07-15 16:18:34 +08:00
|
|
|
const _easycom_hs_footer2 = common_vendor.resolveComponent("hs-footer");
|
2025-08-29 09:51:02 +08:00
|
|
|
const _easycom_hs_button2 = common_vendor.resolveComponent("hs-button");
|
|
|
|
|
const _easycom_hs_popup_custom2 = common_vendor.resolveComponent("hs-popup-custom");
|
|
|
|
|
(_easycom_hs_popup_project2 + _easycom_hs_radio2 + _easycom_hs_cell2 + _easycom_hs_input2 + _easycom_hs_upload_id_card2 + _easycom_hs_upload2 + _easycom_hs_radio_cell_picker_select2 + _easycom_hs_radio_cell_picker2 + _easycom_hs_footer2 + _easycom_hs_button2 + _easycom_hs_popup_custom2)();
|
2025-07-15 16:18:34 +08:00
|
|
|
}
|
|
|
|
|
const _easycom_hs_popup_project = () => "../../components/hs-popup-project/hs-popup-project.js";
|
2025-08-29 09:51:02 +08:00
|
|
|
const _easycom_hs_radio = () => "../../components/hs-radio/hs-radio.js";
|
2025-07-15 16:18:34 +08:00
|
|
|
const _easycom_hs_cell = () => "../../components/hs-cell/hs-cell.js";
|
2025-08-29 09:51:02 +08:00
|
|
|
const _easycom_hs_input = () => "../../components/hs-input/hs-input.js";
|
2025-07-15 16:18:34 +08:00
|
|
|
const _easycom_hs_upload_id_card = () => "../../components/hs-upload-id-card/hs-upload-id-card.js";
|
|
|
|
|
const _easycom_hs_upload = () => "../../components/hs-upload/hs-upload.js";
|
2025-08-29 09:51:02 +08:00
|
|
|
const _easycom_hs_radio_cell_picker_select = () => "../../components/hs-radio-cell-picker-select/hs-radio-cell-picker-select.js";
|
|
|
|
|
const _easycom_hs_radio_cell_picker = () => "../../components/hs-radio-cell-picker/hs-radio-cell-picker.js";
|
2025-07-15 16:18:34 +08:00
|
|
|
const _easycom_hs_footer = () => "../../components/hs-footer/hs-footer.js";
|
2025-08-29 09:51:02 +08:00
|
|
|
const _easycom_hs_button = () => "../../components/hs-button/hs-button.js";
|
|
|
|
|
const _easycom_hs_popup_custom = () => "../../components/hs-popup-custom/hs-popup-custom.js";
|
2025-07-15 16:18:34 +08:00
|
|
|
if (!Math) {
|
2025-08-29 09:51:02 +08:00
|
|
|
(_easycom_hs_popup_project + _easycom_hs_radio + _easycom_hs_cell + _easycom_hs_input + _easycom_hs_upload_id_card + _easycom_hs_upload + _easycom_hs_radio_cell_picker_select + _easycom_hs_radio_cell_picker + _easycom_hs_footer + _easycom_hs_button + _easycom_hs_popup_custom)();
|
2025-07-15 16:18:34 +08:00
|
|
|
}
|
|
|
|
|
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
|
|
|
__name: "index",
|
|
|
|
|
setup(__props) {
|
2025-08-29 09:51:02 +08:00
|
|
|
const HouseRegistersTypeEnum = {
|
|
|
|
|
AddOwner: { text: "产权人", color: "#52c41a", value: "AddOwner" },
|
|
|
|
|
AddOccupant: { text: "非产权人", color: "#108ee9", value: "AddOccupant" }
|
|
|
|
|
};
|
|
|
|
|
const desType = {
|
|
|
|
|
Resident: "【住户】指的是产权人的亲属",
|
|
|
|
|
PrimaryTenant: "【主租人】与产权人签订租赁合同的租户",
|
|
|
|
|
Tenant: "【租客】由主租人带入、共同居住的租户"
|
|
|
|
|
};
|
|
|
|
|
common_vendor.watch(
|
|
|
|
|
() => {
|
|
|
|
|
var _a, _b, _c;
|
|
|
|
|
return (_c = (_b = (_a = INDEX_binding_model.useModel) == null ? void 0 : _a.formData) == null ? void 0 : _b.value) == null ? void 0 : _c.asset_houses_id;
|
|
|
|
|
},
|
|
|
|
|
() => {
|
|
|
|
|
var _a;
|
|
|
|
|
(_a = INDEX_binding_method.method) == null ? void 0 : _a.handleSelectResidentialRelation();
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
common_vendor.onLoad(() => {
|
|
|
|
|
var _a;
|
|
|
|
|
(_a = INDEX_binding_method.method) == null ? void 0 : _a.init();
|
|
|
|
|
});
|
2025-07-15 16:18:34 +08:00
|
|
|
return (_ctx, _cache) => {
|
2025-08-29 09:51:02 +08:00
|
|
|
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;
|
2025-07-15 18:34:34 +08:00
|
|
|
return common_vendor.e({
|
2025-07-15 16:18:34 +08:00
|
|
|
a: common_vendor.o((_a = common_vendor.unref(INDEX_binding_method.method)) == null ? void 0 : _a.handleSelectProject),
|
|
|
|
|
b: common_vendor.p({
|
2025-08-29 09:51:02 +08:00
|
|
|
title: "选择房屋"
|
2025-07-15 16:18:34 +08:00
|
|
|
}),
|
2025-08-29 09:51:02 +08:00
|
|
|
c: (_d = (_c = (_b = common_vendor.unref(INDEX_binding_model.useModel)) == null ? void 0 : _b.formData) == null ? void 0 : _c.value) == null ? void 0 : _d.asset_houses_id
|
|
|
|
|
}, ((_g = (_f = (_e = common_vendor.unref(INDEX_binding_model.useModel)) == null ? void 0 : _e.formData) == null ? void 0 : _f.value) == null ? void 0 : _g.asset_houses_id) ? common_vendor.e({
|
|
|
|
|
d: common_vendor.o((_h = common_vendor.unref(INDEX_binding_method.method)) == null ? void 0 : _h.handleSelectType),
|
|
|
|
|
e: common_vendor.o(($event) => common_vendor.unref(INDEX_binding_model.useModel).formData.value.type = $event),
|
|
|
|
|
f: common_vendor.p({
|
|
|
|
|
Enums: HouseRegistersTypeEnum,
|
2025-07-15 16:18:34 +08:00
|
|
|
required: true,
|
|
|
|
|
borderTop: true,
|
2025-08-29 09:51:02 +08:00
|
|
|
valueModel: common_vendor.unref(INDEX_binding_model.useModel).formData.value.type
|
2025-07-15 16:18:34 +08:00
|
|
|
}),
|
2025-07-15 18:34:34 +08:00
|
|
|
g: common_vendor.p({
|
2025-08-29 09:51:02 +08:00
|
|
|
title: "身份",
|
2025-07-15 16:18:34 +08:00
|
|
|
required: true,
|
|
|
|
|
borderTop: true
|
|
|
|
|
}),
|
2025-08-29 09:51:02 +08:00
|
|
|
h: ((_k = (_j = (_i = common_vendor.unref(INDEX_binding_model.useModel)) == null ? void 0 : _i.formData) == null ? void 0 : _j.value) == null ? void 0 : _k.type) === "AddOccupant"
|
|
|
|
|
}, ((_n = (_m = (_l = common_vendor.unref(INDEX_binding_model.useModel)) == null ? void 0 : _l.formData) == null ? void 0 : _m.value) == null ? void 0 : _n.type) === "AddOccupant" ? {
|
|
|
|
|
i: common_vendor.o(($event) => common_vendor.unref(INDEX_binding_model.useModel).formData.value.residential_relation = $event),
|
2025-07-15 18:34:34 +08:00
|
|
|
j: common_vendor.p({
|
2025-08-29 09:51:02 +08:00
|
|
|
Enums: common_vendor.unref(gen_Enums.HouseOccupantsResidentialRelationEnum),
|
|
|
|
|
required: true,
|
|
|
|
|
borderTop: true,
|
|
|
|
|
valueModel: common_vendor.unref(INDEX_binding_model.useModel).formData.value.residential_relation
|
2025-07-15 16:18:34 +08:00
|
|
|
}),
|
2025-07-15 18:34:34 +08:00
|
|
|
k: common_vendor.p({
|
2025-08-29 09:51:02 +08:00
|
|
|
title: "居住身份",
|
2025-07-15 16:18:34 +08:00
|
|
|
required: true,
|
2025-08-29 09:51:02 +08:00
|
|
|
borderTop: true,
|
|
|
|
|
des: desType[(_q = (_p = (_o = common_vendor.unref(INDEX_binding_model.useModel)) == null ? void 0 : _o.formData) == null ? void 0 : _p.value) == null ? void 0 : _q.residential_relation]
|
2025-07-15 18:34:34 +08:00
|
|
|
})
|
2025-08-29 09:51:02 +08:00
|
|
|
} : {}) : {}, {
|
|
|
|
|
l: common_vendor.unref(INDEX_binding_model.useModel).formData.value.type
|
|
|
|
|
}, common_vendor.unref(INDEX_binding_model.useModel).formData.value.type ? {
|
|
|
|
|
m: common_vendor.o(($event) => common_vendor.unref(INDEX_binding_model.useModel).formData.value.name = $event),
|
2025-07-15 18:34:34 +08:00
|
|
|
n: common_vendor.p({
|
2025-07-15 16:18:34 +08:00
|
|
|
textAlign: "right",
|
2025-08-29 09:51:02 +08:00
|
|
|
valueModel: common_vendor.unref(INDEX_binding_model.useModel).formData.value.name
|
2025-07-15 16:18:34 +08:00
|
|
|
}),
|
2025-07-15 18:34:34 +08:00
|
|
|
o: common_vendor.p({
|
2025-08-29 09:51:02 +08:00
|
|
|
title: "真实姓名",
|
|
|
|
|
required: true,
|
|
|
|
|
borderTop: true
|
|
|
|
|
}),
|
|
|
|
|
p: common_vendor.o(($event) => common_vendor.unref(INDEX_binding_model.useModel).formData.value.phone = $event),
|
|
|
|
|
q: common_vendor.p({
|
|
|
|
|
maxLength: "11",
|
|
|
|
|
textAlign: "right",
|
|
|
|
|
valueModel: common_vendor.unref(INDEX_binding_model.useModel).formData.value.phone
|
2025-07-15 16:18:34 +08:00
|
|
|
}),
|
2025-07-15 18:34:34 +08:00
|
|
|
r: common_vendor.p({
|
2025-08-29 09:51:02 +08:00
|
|
|
title: "手机号",
|
2025-07-15 16:18:34 +08:00
|
|
|
required: true,
|
2025-08-29 09:51:02 +08:00
|
|
|
borderTop: true
|
|
|
|
|
}),
|
|
|
|
|
s: common_vendor.o(($event) => common_vendor.unref(INDEX_binding_model.useModel).formData.value.id_card = $event),
|
|
|
|
|
t: common_vendor.p({
|
|
|
|
|
textAlign: "right",
|
|
|
|
|
valueModel: common_vendor.unref(INDEX_binding_model.useModel).formData.value.id_card
|
2025-07-15 16:18:34 +08:00
|
|
|
}),
|
2025-07-15 18:34:34 +08:00
|
|
|
v: common_vendor.p({
|
2025-08-29 09:51:02 +08:00
|
|
|
title: "身份证号",
|
|
|
|
|
required: true,
|
|
|
|
|
borderTop: true
|
|
|
|
|
})
|
|
|
|
|
} : {}, {
|
|
|
|
|
w: common_vendor.unref(INDEX_binding_model.useModel).formData.value.type
|
|
|
|
|
}, common_vendor.unref(INDEX_binding_model.useModel).formData.value.type ? common_vendor.e({
|
|
|
|
|
x: common_vendor.o(($event) => common_vendor.unref(INDEX_binding_model.useModel).formData.value.card_front_image = $event),
|
|
|
|
|
y: common_vendor.o(($event) => common_vendor.unref(INDEX_binding_model.useModel).formData.value.card_back_image = $event),
|
|
|
|
|
z: common_vendor.p({
|
|
|
|
|
required: true,
|
|
|
|
|
valueFrontModel: common_vendor.unref(INDEX_binding_model.useModel).formData.value.card_front_image,
|
|
|
|
|
valueBackModel: common_vendor.unref(INDEX_binding_model.useModel).formData.value.card_back_image
|
|
|
|
|
}),
|
|
|
|
|
A: common_vendor.unref(INDEX_binding_model.useModel).formData.value.type === "AddOwner"
|
|
|
|
|
}, common_vendor.unref(INDEX_binding_model.useModel).formData.value.type === "AddOwner" ? {
|
|
|
|
|
B: common_vendor.o(($event) => common_vendor.unref(INDEX_binding_model.useModel).formData.value.ownership_info = $event),
|
|
|
|
|
C: common_vendor.p({
|
2025-07-15 16:18:34 +08:00
|
|
|
title: "上传房产证",
|
|
|
|
|
count: 10,
|
|
|
|
|
size: 4,
|
|
|
|
|
required: true,
|
2025-08-29 09:51:02 +08:00
|
|
|
borderTop: true,
|
|
|
|
|
valueModel: common_vendor.unref(INDEX_binding_model.useModel).formData.value.ownership_info
|
2025-07-15 18:34:34 +08:00
|
|
|
})
|
|
|
|
|
} : {}) : {}, {
|
2025-08-29 09:51:02 +08:00
|
|
|
D: common_vendor.unref(INDEX_binding_model.useModel).formData.value.residential_relation === "Resident"
|
|
|
|
|
}, common_vendor.unref(INDEX_binding_model.useModel).formData.value.residential_relation === "Resident" ? {
|
|
|
|
|
E: common_vendor.o(($event) => common_vendor.unref(INDEX_binding_model.useModel).formData.value.owners_id = $event),
|
|
|
|
|
F: common_vendor.p({
|
|
|
|
|
title: "房屋产权人",
|
|
|
|
|
List: (_s = (_r = common_vendor.unref(INDEX_binding_model.useModel)) == null ? void 0 : _r.ownerList) == null ? void 0 : _s.value,
|
|
|
|
|
borderTop: true,
|
|
|
|
|
valueModel: common_vendor.unref(INDEX_binding_model.useModel).formData.value.owners_id
|
2025-07-15 16:18:34 +08:00
|
|
|
}),
|
2025-08-29 09:51:02 +08:00
|
|
|
G: common_vendor.o(($event) => common_vendor.unref(INDEX_binding_model.useModel).formData.value.relation_with_owner = $event),
|
|
|
|
|
H: common_vendor.p({
|
|
|
|
|
Enums: common_vendor.unref(gen_Enums.HouseOccupantsRelationWithOwnerEnum),
|
|
|
|
|
title: "与产权人关系",
|
2025-07-15 16:18:34 +08:00
|
|
|
borderTop: true,
|
2025-08-29 09:51:02 +08:00
|
|
|
valueModel: common_vendor.unref(INDEX_binding_model.useModel).formData.value.relation_with_owner
|
2025-07-15 18:34:34 +08:00
|
|
|
})
|
2025-08-29 09:51:02 +08:00
|
|
|
} : {}, {
|
|
|
|
|
I: common_vendor.o((_t = common_vendor.unref(INDEX_binding_method.method)) == null ? void 0 : _t.handleSubmit),
|
|
|
|
|
J: common_vendor.p({
|
2025-07-15 16:18:34 +08:00
|
|
|
btnParimaryName: "绑定房屋"
|
2025-08-29 09:51:02 +08:00
|
|
|
}),
|
|
|
|
|
K: common_vendor.o((_u = common_vendor.unref(INDEX_binding_method.method)) == null ? void 0 : _u.handleSubmitStore),
|
|
|
|
|
L: common_vendor.p({
|
|
|
|
|
label: "我也是产权人之一",
|
|
|
|
|
size: "md",
|
|
|
|
|
type: "primary"
|
|
|
|
|
}),
|
|
|
|
|
M: common_vendor.o((_v = common_vendor.unref(INDEX_binding_method.method)) == null ? void 0 : _v.handleSubmitStore),
|
|
|
|
|
N: common_vendor.p({
|
|
|
|
|
label: "我是新产权人(房屋已过户)",
|
|
|
|
|
size: "md",
|
|
|
|
|
type: "display"
|
|
|
|
|
}),
|
|
|
|
|
O: common_vendor.o((_w = common_vendor.unref(INDEX_binding_method.method)) == null ? void 0 : _w.handleClose),
|
|
|
|
|
P: common_vendor.p({
|
|
|
|
|
label: "重选房屋",
|
|
|
|
|
size: "md",
|
|
|
|
|
type: "default"
|
|
|
|
|
}),
|
|
|
|
|
Q: common_vendor.p({
|
|
|
|
|
title: "该房屋已有产权人",
|
|
|
|
|
show: (_y = (_x = common_vendor.unref(INDEX_binding_model.useModel)) == null ? void 0 : _x.show) == null ? void 0 : _y.value,
|
|
|
|
|
mode: "center"
|
2025-07-15 16:18:34 +08:00
|
|
|
})
|
2025-07-15 18:34:34 +08:00
|
|
|
});
|
2025-07-15 16:18:34 +08:00
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-customer/src/INDEX/binding/index.vue"]]);
|
|
|
|
|
wx.createPage(MiniProgramPage);
|