158 lines
8.7 KiB
JavaScript
Raw Normal View History

2025-08-29 09:51:02 +08:00
"use strict";
const common_vendor = require("../../../common/vendor.js");
const INDEX_bill_list_method = require("./method.js");
const INDEX_bill_list_model = require("./model.js");
const gen_Enums = require("../../../gen/Enums.js");
const common_libraries_userUserLogin = require("../../../common/libraries/userUserLogin.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");
if (!Array) {
const _easycom_hs_empty2 = common_vendor.resolveComponent("hs-empty");
const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
const _easycom_hs_enum_tag2 = common_vendor.resolveComponent("hs-enum-tag");
2025-12-15 18:19:04 +08:00
const _easycom_hs_collection2 = common_vendor.resolveComponent("hs-collection");
2025-08-29 09:51:02 +08:00
const _easycom_hs_button2 = common_vendor.resolveComponent("hs-button");
2025-12-15 18:19:04 +08:00
(_easycom_hs_empty2 + _easycom_uni_icons2 + _easycom_hs_enum_tag2 + _easycom_hs_collection2 + _easycom_hs_button2)();
2025-08-29 09:51:02 +08:00
}
const _easycom_hs_empty = () => "../../../components/hs-empty/hs-empty.js";
const _easycom_uni_icons = () => "../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
const _easycom_hs_enum_tag = () => "../../../components/hs-enum-tag/hs-enum-tag.js";
2025-12-15 18:19:04 +08:00
const _easycom_hs_collection = () => "../../../components/hs-collection/hs-collection.js";
2025-08-29 09:51:02 +08:00
const _easycom_hs_button = () => "../../../components/hs-button/hs-button.js";
if (!Math) {
2025-12-15 18:19:04 +08:00
(MyTabs + _easycom_hs_empty + _easycom_uni_icons + _easycom_hs_enum_tag + _easycom_hs_collection + _easycom_hs_button)();
2025-08-29 09:51:02 +08:00
}
const MyTabs = () => "../components/Tabs.js";
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "index",
setup(__props) {
2025-12-15 18:19:04 +08:00
common_vendor.onLoad(async () => {
var _a, _b, _c;
await ((_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$onLaunched);
if ((_b = common_libraries_userUserLogin.getUserLogin) == null ? void 0 : _b.getLoginStatus()) {
2025-08-29 09:51:02 +08:00
INDEX_bill_list_model.useModel.items.value = [];
2025-12-15 18:19:04 +08:00
(_c = INDEX_bill_list_method.method) == null ? void 0 : _c.handleGetList();
2025-08-29 09:51:02 +08:00
}
});
return (_ctx, _cache) => {
2025-12-15 18:19:04 +08:00
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
2025-08-29 09:51:02 +08:00
return common_vendor.e({
a: common_vendor.o((_a = common_vendor.unref(INDEX_bill_list_method.method)) == null ? void 0 : _a.hanldeSearch),
2025-12-15 18:19:04 +08:00
b: !((_c = (_b = common_vendor.unref(INDEX_bill_list_model.useModel)) == null ? void 0 : _b.billsLength) == null ? void 0 : _c.value)
}, !((_e = (_d = common_vendor.unref(INDEX_bill_list_model.useModel)) == null ? void 0 : _d.billsLength) == null ? void 0 : _e.value) ? {
c: common_vendor.p({
baseStyle: {
height: "10vh",
padding: "5% 0 10% 0"
},
text: "无账单"
})
} : {}, {
d: common_vendor.f((_g = (_f = common_vendor.unref(INDEX_bill_list_model.useModel)) == null ? void 0 : _f.items) == null ? void 0 : _g.value, (i, index, i0) => {
var _a2, _b2, _c2, _d2, _e2;
2025-08-29 09:51:02 +08:00
return common_vendor.e({
2025-12-15 18:19:04 +08:00
a: (_a2 = i == null ? void 0 : i.bills) == null ? void 0 : _a2.length
}, ((_b2 = i == null ? void 0 : i.bills) == null ? void 0 : _b2.length) ? {
b: common_vendor.t(i == null ? void 0 : i.house_name),
c: common_vendor.f(i == null ? void 0 : i.bills, (k, idx, i1) => {
var _a3, _b3, _c3, _d3, _e3, _f2;
return common_vendor.e(((_c3 = (_b3 = (_a3 = common_vendor.unref(INDEX_bill_list_model.useModel)) == null ? void 0 : _a3.formData) == null ? void 0 : _b3.value) == null ? void 0 : _c3.bill_status) === "PendingPayment" ? common_vendor.e({
2025-08-29 09:51:02 +08:00
a: k == null ? void 0 : k.checked
}, (k == null ? void 0 : k.checked) ? {
b: "4cd12ba6-2-" + i0 + "-" + i1,
c: common_vendor.p({
type: "checkbox-filled",
size: "20",
color: "#2A7EFB"
})
} : {
d: "4cd12ba6-3-" + i0 + "-" + i1,
e: common_vendor.p({
type: "circle",
size: "20",
color: "#888"
})
2025-12-15 18:19:04 +08:00
}) : {}, {
f: common_vendor.t((k == null ? void 0 : k.month_name) || ""),
g: common_vendor.o(($event) => {
var _a4;
return (_a4 = common_vendor.unref(INDEX_bill_list_method.method)) == null ? void 0 : _a4.handleCollapseAllCheckedBtn(index, idx, k);
2025-08-29 09:51:02 +08:00
}, `find_${index}_${idx}`),
2025-12-15 18:19:04 +08:00
h: common_vendor.t((k == null ? void 0 : k.amount) || "0.00"),
i: "4cd12ba6-4-" + i0 + "-" + i1,
j: common_vendor.o(($event) => {
var _a4;
return (_a4 = common_vendor.unref(INDEX_bill_list_method.method)) == null ? void 0 : _a4.handleCollapseClick(index, idx, k);
2025-08-29 09:51:02 +08:00
}, `find_${index}_${idx}`),
2025-12-15 18:19:04 +08:00
k: k == null ? void 0 : k.show
2025-08-29 09:51:02 +08:00
}, (k == null ? void 0 : k.show) ? {
2025-12-15 18:19:04 +08:00
l: common_vendor.f(k == null ? void 0 : k.details, (i2, indexs, i22) => {
var _a4, _b4, _c4;
return common_vendor.e(((_c4 = (_b4 = (_a4 = common_vendor.unref(INDEX_bill_list_model.useModel)) == null ? void 0 : _a4.formData) == null ? void 0 : _b4.value) == null ? void 0 : _c4.bill_status) === "PendingPayment" ? common_vendor.e({
2025-08-29 09:51:02 +08:00
a: i2 == null ? void 0 : i2.checked
}, (i2 == null ? void 0 : i2.checked) ? {
b: "4cd12ba6-5-" + i0 + "-" + i1 + "-" + i22,
c: common_vendor.p({
type: "checkbox-filled",
size: "20",
color: "#2A7EFB"
})
} : {
d: "4cd12ba6-6-" + i0 + "-" + i1 + "-" + i22,
e: common_vendor.p({
type: "circle",
size: "20",
color: "#888"
})
2025-12-15 18:19:04 +08:00
}) : {}, {
2025-08-29 09:51:02 +08:00
f: "4cd12ba6-7-" + i0 + "-" + i1 + "-" + i22,
g: common_vendor.p({
Enums: common_vendor.unref(gen_Enums.HouseBillsTypeEnum),
value: i2 == null ? void 0 : i2.type,
objStyle: {
color: "#555",
fontSize: "28rpx"
}
}),
h: common_vendor.t((i2 == null ? void 0 : i2.total_payable_amount) || "-"),
i: `ks_${index}_${idx}_${indexs}`,
j: common_vendor.o(($event) => {
2025-12-15 18:19:04 +08:00
var _a5;
return (_a5 = common_vendor.unref(INDEX_bill_list_method.method)) == null ? void 0 : _a5.handleCalculatePrice(index, idx, indexs, i2);
2025-08-29 09:51:02 +08:00
}, `ks_${index}_${idx}_${indexs}`)
});
}),
2025-12-15 18:19:04 +08:00
m: ((_f2 = (_e3 = (_d3 = common_vendor.unref(INDEX_bill_list_model.useModel)) == null ? void 0 : _d3.formData) == null ? void 0 : _e3.value) == null ? void 0 : _f2.bill_status) === "PendingPayment"
2025-08-29 09:51:02 +08:00
} : {}, {
2025-12-15 18:19:04 +08:00
n: `find_${index}_${idx}`
2025-08-29 09:51:02 +08:00
});
}),
2025-12-15 18:19:04 +08:00
d: ((_e2 = (_d2 = (_c2 = common_vendor.unref(INDEX_bill_list_model.useModel)) == null ? void 0 : _c2.formData) == null ? void 0 : _d2.value) == null ? void 0 : _e2.bill_status) === "PendingPayment",
e: common_vendor.p({
type: "down",
size: "15",
color: "#999"
})
} : {}, {
2025-08-29 09:51:02 +08:00
f: `items_${index}`
});
}),
2025-12-15 18:19:04 +08:00
e: !((_i = (_h = common_vendor.unref(INDEX_bill_list_model.useModel)) == null ? void 0 : _h.currentTabs) == null ? void 0 : _i.value)
}, !((_k = (_j = common_vendor.unref(INDEX_bill_list_model.useModel)) == null ? void 0 : _j.currentTabs) == null ? void 0 : _k.value) ? {
f: common_vendor.t(((_m = (_l = common_vendor.unref(INDEX_bill_list_model.useModel)) == null ? void 0 : _l.total_amount) == null ? void 0 : _m.value) || "0.00"),
g: common_vendor.o((_n = common_vendor.unref(INDEX_bill_list_method.method)) == null ? void 0 : _n.handleSubmitOrder),
h: common_vendor.p({
2025-08-29 09:51:02 +08:00
label: "立即支付",
size: "md"
})
} : {});
};
}
});
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-customer/src/INDEX/bill/list/index.vue"]]);
wx.createPage(MiniProgramPage);