"use strict"; const common_vendor = require("../../common/vendor.js"); const WORKORDER_show_model = require("./model.js"); const common_libraries_apiLoading = require("../../common/libraries/apiLoading.js"); const gen_Apis = require("../../gen/Apis.js"); const method = { getShow(id) { common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.WorkOrder.HouseWorkOrders.Show, { id }).then((res) => { WORKORDER_show_model.useModel.dataShow.value = res == null ? void 0 : res.data; }); }, handleEvaluate() { WORKORDER_show_model.useModel.showEvaluate.value = true; }, handlepopupClose() { WORKORDER_show_model.useModel.showEvaluate.value = false; common_vendor.index.showToast({ title: "评价已提交", icon: "none" }); }, handlePhoneCall() { var _a, _b, _c, _d, _e, _f, _g, _h; if ((_d = (_c = (_b = (_a = WORKORDER_show_model.useModel) == null ? void 0 : _a.dataShow) == null ? void 0 : _b.value) == null ? void 0 : _c.assign_employee) == null ? void 0 : _d.phone) { common_vendor.index.makePhoneCall({ phoneNumber: (_h = (_g = (_f = (_e = WORKORDER_show_model.useModel) == null ? void 0 : _e.dataShow) == null ? void 0 : _f.value) == null ? void 0 : _g.assign_employee) == null ? void 0 : _h.phone //仅为示例,并非真实的电话号码 }); } else { common_vendor.index.showToast({ title: "暂无电话号码", icon: "none" }); } } }; exports.method = method;