This commit is contained in:
b110212000 2021-09-22 16:42:30 +08:00
commit 3b2710f170

View File

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