"use strict";require("../../common/libraries/request.js");const e=require("../../common/store/useWeAppAuthStore.js");require("../../common/store/useWorkStore.js");const o=require("./model.js"),r=require("../../gen/Apis.js"),s=require("../../common/libraries/apiLoading.js"),t=require("../../common/libraries/naviHelper.js");e.useWeAppAuthStore();const i={init(e){o.useModel.formData.value=e},handleSubmit(){var e,i;let u=null==(i=null==(e=o.useModel)?void 0:e.formData)?void 0:i.value;return(null==u?void 0:u.expect_start_time)?(null==u?void 0:u.day)===`${null==u?void 0:u.expect_start_time}:00`?t.showToast("与原时间相同！"):void s.getApiLoading(r.Apis.WorkOrder.HouseWorkOrders.ChangeExpectTime,u).then((e=>{t.showToastBack("提交成功！",1,!0),console.log(e)})):t.showToast("请选择新时间！")}};exports.method=i;
