"use strict";require("../../common/libraries/request.js");const e=require("../../common/store/useWeAppAuthStore.js");require("../../common/store/useWorkStore.js");const r=require("./model.js"),o=require("../../gen/Apis.js"),s=require("../../common/libraries/apiLoading.js"),i=require("../../common/libraries/naviHelper.js");e.useWeAppAuthStore();const t={init(e){r.useModel.formData.value=e},handleSubmit(){var e,t;let u=null==(t=null==(e=r.useModel)?void 0:e.formData)?void 0:t.value;if(!(null==u?void 0:u.rework_reason))return i.showToast("请输入返工原因！");s.getApiLoading(o.Apis.WorkOrder.HouseWorkOrders.Rework,u).then((e=>{i.showToastBack("提交成功！",1,!0),console.log(e)}))}};exports.method=t;
