159 lines
7.7 KiB
JavaScript

"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");
const _easycom_hs_button2 = common_vendor.resolveComponent("hs-button");
(_easycom_hs_empty2 + _easycom_uni_icons2 + _easycom_hs_enum_tag2 + _easycom_hs_button2)();
}
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";
const _easycom_hs_button = () => "../../../components/hs-button/hs-button.js";
if (!Math) {
(MyTabs + _easycom_hs_empty + _easycom_uni_icons + _easycom_hs_enum_tag + _easycom_hs_button)();
}
const MyTabs = () => "../components/Tabs.js";
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "index",
setup(__props) {
common_vendor.onLoad(() => {
var _a, _b;
if ((_a = common_libraries_userUserLogin.getUserLogin) == null ? void 0 : _a.getLoginStatus()) {
INDEX_bill_list_model.useModel.items.value = [];
(_b = INDEX_bill_list_method.method) == null ? void 0 : _b.handleGetList();
}
});
return (_ctx, _cache) => {
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
return common_vendor.e({
a: common_vendor.o((_a = common_vendor.unref(INDEX_bill_list_method.method)) == null ? void 0 : _a.hanldeSearch),
b: common_vendor.f((_c = (_b = common_vendor.unref(INDEX_bill_list_model.useModel)) == null ? void 0 : _b.items) == null ? void 0 : _c.value, (i, index, i0) => {
var _a2, _b2;
return common_vendor.e({
a: common_vendor.t(i == null ? void 0 : i.house_name),
b: !((_a2 = i == null ? void 0 : i.bills) == null ? void 0 : _a2.length)
}, !((_b2 = i == null ? void 0 : i.bills) == null ? void 0 : _b2.length) ? {
c: "4cd12ba6-1-" + i0,
d: common_vendor.p({
text: "无账单"
})
} : {}, {
e: common_vendor.f(i == null ? void 0 : i.bills, (k, idx, i1) => {
return common_vendor.e({
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"
})
}, {
f: common_vendor.o(($event) => {
var _a3;
return (_a3 = common_vendor.unref(INDEX_bill_list_method.method)) == null ? void 0 : _a3.handleCollapseAllCheckedBtn(index, idx, k);
}, `find_${index}_${idx}`),
g: common_vendor.t((k == null ? void 0 : k.month_name) || ""),
h: common_vendor.o(($event) => {
var _a3;
return (_a3 = common_vendor.unref(INDEX_bill_list_method.method)) == null ? void 0 : _a3.handleCollapseClick(index, idx, k);
}, `find_${index}_${idx}`),
i: common_vendor.t((k == null ? void 0 : k.amount) || "0.00"),
j: "4cd12ba6-4-" + i0 + "-" + i1,
k: common_vendor.o(($event) => {
var _a3;
return (_a3 = common_vendor.unref(INDEX_bill_list_method.method)) == null ? void 0 : _a3.handleCollapseClick(index, idx, k);
}, `find_${index}_${idx}`),
l: k == null ? void 0 : k.show
}, (k == null ? void 0 : k.show) ? {
m: common_vendor.f(k == null ? void 0 : k.details, (i2, indexs, i22) => {
return common_vendor.e({
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"
})
}, {
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) => {
var _a3;
return (_a3 = common_vendor.unref(INDEX_bill_list_method.method)) == null ? void 0 : _a3.handleCalculatePrice(index, idx, indexs, i2);
}, `ks_${index}_${idx}_${indexs}`)
});
}),
n: "4cd12ba6-8-" + i0 + "-" + i1,
o: common_vendor.p({
type: "right",
size: "15",
color: "#999"
}),
p: common_vendor.o(($event) => {
var _a3;
return (_a3 = common_vendor.unref(INDEX_bill_list_method.method)) == null ? void 0 : _a3.handleQuery(k);
}, `find_${index}_${idx}`)
} : {}, {
q: `find_${index}_${idx}`
});
}),
f: `items_${index}`
});
}),
c: common_vendor.p({
type: "down",
size: "15",
color: "#999"
}),
d: !((_e = (_d = common_vendor.unref(INDEX_bill_list_model.useModel)) == null ? void 0 : _d.currentTabs) == null ? void 0 : _e.value)
}, !((_g = (_f = common_vendor.unref(INDEX_bill_list_model.useModel)) == null ? void 0 : _f.currentTabs) == null ? void 0 : _g.value) ? {
e: common_vendor.t(((_i = (_h = common_vendor.unref(INDEX_bill_list_model.useModel)) == null ? void 0 : _h.total_amount) == null ? void 0 : _i.value) || "0.00"),
f: common_vendor.o((_j = common_vendor.unref(INDEX_bill_list_method.method)) == null ? void 0 : _j.handleSubmitOrder),
g: common_vendor.p({
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);