"use strict";const e=require("../../common/vendor.js"),a=require("./model.js"),l=require("../../common/libraries/apiLoading.js"),d=require("../../gen/Apis.js"),o=()=>{var e,o;l.getApiLoading(d.Apis.WorkOrder.HouseWorkOrders.MySubmitList,null==(o=null==(e=a.useModel)?void 0:e.formData)?void 0:o.value).then(e=>{var l,d;a.useModel.dataList.value=[...null==(d=null==(l=a.useModel)?void 0:l.dataList)?void 0:d.value,...null==e?void 0:e.data],a.useModel.meta.value=null==e?void 0:e.meta})},u=()=>{a.useModel.formData.value.page=1,a.useModel.dataList.value=[],o()},i={getList:o,handleToDetail(a){e.index.navigateTo({url:`/WORKORDER/show_log/index?id=${null==a?void 0:a.id}`})},handleAdd(){e.index.navigateTo({url:"/WORKORDER/add/index"})},handleChangeTabs(e,l){a.useModel.currentTabs.value=e,a.useModel.formData.value.type=null==l?void 0:l.value,u()},handleAssignEmployee(a){if("PendingAcceptance"===(null==a?void 0:a.status))return e.index.navigateTo({url:`/WORKORDER/acceptance/index?id=${null==a?void 0:a.id}`}),!1;console.log(a,"eee")},handleChangeStatus(e){a.useModel.formData.value.status=null==e?void 0:e.value,u()},handleLoad(e){a.useModel.formData.value.page=e,o()}};exports.method=i;
