diff --git a/SolarPower/Views/Operation/OperationRecord.cshtml b/SolarPower/Views/Operation/OperationRecord.cshtml index bf4b398..a19c193 100644 --- a/SolarPower/Views/Operation/OperationRecord.cshtml +++ b/SolarPower/Views/Operation/OperationRecord.cshtml @@ -692,6 +692,7 @@ //#region 新增維修單 function AddRecord() { selected_id = 0; + selected_work_type = 2; record = undefined; $("#record-form-modal .modal-title .main-title").html("維修單"); $("#record-form-modal .modal-title .sub-title").html(""); @@ -1014,6 +1015,8 @@ } $("input[name=status_modal][value='" + status + "']").prop('checked', true); //狀態 $('#work_person_select_modal').val(record.workPersonIds).trigger("change"); + + selected_work_type = work_type; if (work_type != 2) { $(".fix-div").hide(); } else {