2 lines
1.8 KiB
JavaScript
2 lines
1.8 KiB
JavaScript
|
|
"use strict";const e=require("../../common/vendor.js"),o=require("../../common/libraries/apiLoading.js"),l=require("../../gen/Apis.js"),n=require("./model.js"),a=()=>{var e,a;o.getApiLoading(l.Apis.WorkOrder.HouseWorkOrders.List,null==(a=null==(e=n.useModel)?void 0:e.formData)?void 0:a.value).then((e=>{n.useModel.listData.value=[...n.useModel.listData.value,...null==e?void 0:e.data],n.useModel.metaData.value=null==e?void 0:e.meta}))},i={getList:a,handleChangeTabs(e,o){n.useModel.currentTabs.value=e,n.useModel.formData.value.status=null==o?void 0:o.value,n.useModel.formData.value.page=1,n.useModel.listData.value=[],a()},handleLoad(e){n.useModel.formData.value.page=e,a()},handleCopyPhone(o){(null==o?void 0:o.contact_phone)?e.index.makePhoneCall({phoneNumber:null==o?void 0:o.contact_phone}):(null==o?void 0:o.reporter_phone)?e.index.makePhoneCall({phoneNumber:null==o?void 0:o.reporter_phone}):e.index.showToast({title:"暂无电话号码",icon:"none"})},handleUpdateSetp(o){"SecurityInspection"!==(null==o?void 0:o.type)?"RenovationInspection"!==(null==o?void 0:o.type)&&"RenovationAcceptance"!==(null==o?void 0:o.type)?e.index.navigateTo({url:`/WORKORDER/update/index?id=${null==o?void 0:o.id}&projects_id=${null==o?void 0:o.asset_projects_id}&location=${null==o?void 0:o.location}`}):e.index.navigateTo({url:`/WORKORDER/patrol_update/index?id=${null==o?void 0:o.id}&type=${null==o?void 0:o.type}`}):e.index.navigateTo({url:`/WORKORDER/show_patrol_task_locations/index?id=${null==o?void 0:o.id}`})},handleToDetail(o){e.index.navigateTo({url:`/WORKORDER/show/index?id=${null==o?void 0:o.id}`})},handlePendingPaymentQrCode(o){var l;e.index.navigateTo({url:`/WORKORDER/poster/index?id=${null==o?void 0:o.id}&full_name=${null==(l=null==o?void 0:o.asset_house)?void 0:l.full_name}&amount=${null==o?void 0:o.amount}`})}};exports.method=i;
|