|
|
|
@ -178,7 +178,7 @@
|
|
|
|
|
</main>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="popup" class="Pstyle">
|
|
|
|
|
<div id="favorPopup" class="Pstyle">
|
|
|
|
|
<span class="b-close">X</span>
|
|
|
|
|
<div class="content">
|
|
|
|
|
<div class="nutrition_kinds_basic">
|
|
|
|
@ -194,6 +194,27 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="memoPopup" class="Pstyle">
|
|
|
|
|
<span class="b-close">X</span>
|
|
|
|
|
<div class="content">
|
|
|
|
|
<div class="nutrition_kinds_basic">
|
|
|
|
|
<div class="nutrition_kinds_search">
|
|
|
|
|
자주쓰는 표현을 등록 해보세요.<br />
|
|
|
|
|
최대 50자까지 쓸 수 있습니다.<br />
|
|
|
|
|
자주쓰는 표현은 설정에서 수정 및 삭제가 가능합니다.
|
|
|
|
|
</div>
|
|
|
|
|
<div class="nutrition_kinds_search">
|
|
|
|
|
<input type="text" id="memoInput" name="memoInput" class="required" style="width:100%" placeholder="메모" data-tit="메모" step="1">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="nutrition_kinds_search">
|
|
|
|
|
<button type="button" id="" name="" class="" onclick="javascript:$('#memoPopup').bPopup().close();" >취소</button>
|
|
|
|
|
<button type="button" id="" name="" class="" onclick="javascript:frmLacMilk.ajax_insert_db_memo();" >확인</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 하단 네비 iyu_nav -->
|
|
|
|
|
<#include "/m/include/index_bottom_menu.ftl">
|
|
|
|
@ -300,14 +321,42 @@
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
ajax_insert_db_memo: function(){
|
|
|
|
|
var data = {}
|
|
|
|
|
data.base_dt = moment( $('#input_date').val(),'YYYY. MM. DD' ).format('YYYYMMDD')
|
|
|
|
|
data.memo = $('#memoInput').val()
|
|
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
url:'${URL_ROOT}/m/bf_food/ajax_insert_db_memo.do?1=1',
|
|
|
|
|
type:'post',
|
|
|
|
|
data: data,
|
|
|
|
|
dataType:'json',
|
|
|
|
|
error:function(request,status,error){
|
|
|
|
|
Swal.fire({text:"등록되지 않았습니다"})
|
|
|
|
|
},
|
|
|
|
|
success:function(result){
|
|
|
|
|
console.log(result)
|
|
|
|
|
var RESULT = result.RESULT
|
|
|
|
|
if(RESULT == 0){ //0:RESULT_SUCCESS
|
|
|
|
|
Swal.fire({text:"입력되었습니다"}).then((result) => { location.replace('./list_bf_milk.do?smc_no=${(model["smc_no"])!}') })
|
|
|
|
|
}else{
|
|
|
|
|
Swal.fire({text:"등록되지 않았습니다"})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
go_popup: function() {
|
|
|
|
|
$('#popup').bPopup();
|
|
|
|
|
// $('#popup').css("width","600px");
|
|
|
|
|
$('#favorPopup').bPopup();
|
|
|
|
|
},
|
|
|
|
|
go_memo: function() {
|
|
|
|
|
$('#memoPopup').bPopup();
|
|
|
|
|
},
|
|
|
|
|
appendMemo: function(memo) {
|
|
|
|
|
var v_memo = ($('#memo').val() == '' ? memo : $('#memo').val() +", " + memo) ;
|
|
|
|
|
$('#memo').val(v_memo);
|
|
|
|
|
$('#popup').bPopup().close();
|
|
|
|
|
$('#favorPopup').bPopup().close();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|