|
|
@@ -1099,7 +1099,7 @@
|
|
|
cfnCreateCombo('/renderer/delvFee/list/' + result.supplyCompCd, $('#goodsDetailForm select[name=delvFeeCd]'), "[선택]", result.delvFeeCd);
|
|
|
$('#goodsDetailForm input[name=delvFeeCdOrg]').val(result.delvFeeCd);
|
|
|
cfnCreateCombo('/renderer/delvloc/list/' + result.supplyCompCd, $('#goodsDetailForm select[name=delvLocCd]'), "[선택]", result.delvLocCd);
|
|
|
- $('#goodsDetailForm input[name=delvLocdOrg]').val(result.delvLocCd);
|
|
|
+ $('#goodsDetailForm input[name=delvLocCdOrg]').val(result.delvLocCd);
|
|
|
|
|
|
// $('#goodsDetailForm input[name=certNum]').val(result.certNum);
|
|
|
// $('#goodsDetailForm input[name=certNumOrg]').val(result.certNum);
|
|
|
@@ -1325,9 +1325,54 @@
|
|
|
$('#goodsDetailForm').find('#certOrganNameTxt').html(result.certOrganName);
|
|
|
$('#goodsDetailForm').find('#certDivTxt').html(result.certDiv);
|
|
|
$('#goodsDetailForm').find('#certDtTxt').html(!gagajf.isNull(result.certDt) ? result.certDt.toDate("YYYYMMDD").format("YYYY-MM-DD") : '');
|
|
|
-
|
|
|
+
|
|
|
+ if (!gagajf.isNull($("#goodsDetailForm select[name=selCertTargetGb]").val()) ){
|
|
|
+ if ("G081_1" != $("#goodsDetailForm select[name=certType]").val() && "G081_2" != $("#goodsDetailForm select[name=certType]").val()){
|
|
|
+ $("#goodsDetailForm input[name=certNum]").attr('readonly', true);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
+ // 인증대상 변경시
|
|
|
+ $("#goodsDetailForm input[name=selCertTargetGb]").bind('click', function () {
|
|
|
+ var certTargetGb = $(this).val();
|
|
|
+ if (certTargetGb == "G083_1"){
|
|
|
+ $("#goodsDetailForm select[name=certFormGb]").attr('readonly', false);
|
|
|
+ $("#goodsDetailForm select[name=certType]").attr('readonly', false);
|
|
|
+ $("#goodsDetailForm input[name=certNum]").attr('readonly', false);
|
|
|
+ }else{
|
|
|
+ $("#goodsDetailForm select[name=certFormGb]").val('');
|
|
|
+ $("#goodsDetailForm select[name=certType]").val('');
|
|
|
+ $("#goodsDetailForm input[name=certNum]").val('');
|
|
|
+ $("#goodsDetailForm select[name=certFormGb]").attr('readonly', true);
|
|
|
+ $("#goodsDetailForm select[name=certType]").attr('readonly', true);
|
|
|
+ $("#goodsDetailForm input[name=certNum]").attr('readonly', true);
|
|
|
+
|
|
|
+ $("#goodsDetailForm").find("#certStateTxt").html('');
|
|
|
+ $("#goodsDetailForm").find("#certOrganNameTxt").html('');
|
|
|
+ $("#goodsDetailForm").find("#certDtTxt").html('');
|
|
|
+ $("#goodsDetailForm").find("#certDivTxt").html('');
|
|
|
+
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ // 인증타입 변경시
|
|
|
+ $("#goodsDetailForm select[name=certType]").bind('click change', function () {
|
|
|
+ var certType = $(this).val();
|
|
|
+ if (certType == "G081_1" || certType == "G081_2"){
|
|
|
+ $("#goodsDetailForm input[name=certNum]").attr('readonly', false);
|
|
|
+ }else{
|
|
|
+ $("#goodsDetailForm input[name=certNum]").val('');
|
|
|
+ $("#goodsDetailForm input[name=certNum]").attr('readonly', true);
|
|
|
+
|
|
|
+ $("#goodsDetailForm").find("#certStateTxt").html('');
|
|
|
+ $("#goodsDetailForm").find("#certOrganNameTxt").html('');
|
|
|
+ $("#goodsDetailForm").find("#certDtTxt").html('');
|
|
|
+ $("#goodsDetailForm").find("#certDivTxt").html('');
|
|
|
+
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
//상품명 길이표시
|
|
|
$("#goodsDetailForm input[name=goodsNm]").bind('focus focusout input keyup keydown paste change', function () {
|
|
|
fnDataLengthCheck('goodsNm',200);
|
|
|
@@ -2044,7 +2089,7 @@
|
|
|
if (!fnGoodsSafetyCertNumCheck()) return false;
|
|
|
|
|
|
//인증번호 있는데 인증작업 했는지 여부 확인
|
|
|
- if (!gagajf.isNull($("#goodsDetailForm input[name=certNum]").val())){
|
|
|
+ /* if (!gagajf.isNull($("#goodsDetailForm input[name=certNum]").val())){
|
|
|
|
|
|
if ("G084_4" == $("#goodsDetailForm select[name=certFormGb]").val() ||
|
|
|
"G084_5" == $("#goodsDetailForm select[name=certFormGb]").val() ||
|
|
|
@@ -2056,12 +2101,12 @@
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
+ } */
|
|
|
|
|
|
- if (!gagajf.isNull($("#goodsDetailForm input[name=certNum]").val()) && ($("#goodsDetailForm input[name=certNum]").val() != $("#goodsDetailForm input[name=certNumOrg]").val())){
|
|
|
+ /* if (!gagajf.isNull($("#goodsDetailForm input[name=certNum]").val()) && ($("#goodsDetailForm input[name=certNum]").val() != $("#goodsDetailForm input[name=certNumOrg]").val())){
|
|
|
mcxDialog.alert("안전인증작업을 하거나 인증번호를 확인해주세요.");
|
|
|
return false;
|
|
|
- }
|
|
|
+ } */
|
|
|
|
|
|
var basicColor = $("#goodsDetailForm input[name=basicColor]:checked").val();
|
|
|
var dcRate = 0;
|
|
|
@@ -2526,6 +2571,11 @@
|
|
|
// 안전인증
|
|
|
$("#btnGoodsSafetyCertNum").on("click", function(){
|
|
|
|
|
|
+ if (gagajf.isNull($("#goodsDetailForm input[name=selCertTargetGb]:checked").val())){
|
|
|
+ mcxDialog.alert("안전인증대상를 선택해 주세요.");
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
if (!fnGoodsSafetyCertNumCheck()) return false;
|
|
|
|
|
|
mcxDialog.confirm('안전인증정보(API)를 변경 하시겠습니까?', {
|
|
|
@@ -2546,52 +2596,15 @@
|
|
|
|
|
|
var fnGoodsSafetyCertNumCheck = function(){
|
|
|
|
|
|
- // 유아용품 확인
|
|
|
- if ("G004_23" == $("#goodsDetailForm input[name=niClsfCd]").val()){
|
|
|
- if (gagajf.isNull($("#goodsDetailForm input[name=selCertTargetGb]:checked").val())){
|
|
|
- mcxDialog.alert("안전인증대상을 선택해 주세요.");
|
|
|
- return false;
|
|
|
- }
|
|
|
- }else{
|
|
|
- if ((!gagajf.isNull($("#goodsDetailForm input[name=selCertTargetGb]:checked").val()) && "G083_1" != $("#goodsDetailForm input[name=selCertTargetGb]:checked").val())){
|
|
|
-
|
|
|
- }else{
|
|
|
- if ((!gagajf.isNull($("#goodsDetailForm input[name=selCertTargetGb]:checked").val()) && "G083_1" == $("#goodsDetailForm input[name=selCertTargetGb]:checked").val())||
|
|
|
- !gagajf.isNull($("#goodsDetailForm select[name=certFormGb]").val()) ||
|
|
|
- !gagajf.isNull($("#goodsDetailForm select[name=certType]").val()) ||
|
|
|
- !gagajf.isNull($("#goodsDetailForm input[name=certNum]").val())){
|
|
|
- mcxDialog.alert("인즌대상이 아닌 상품은 인증대상아님을 선택해주세요");
|
|
|
- return false;
|
|
|
- }else{
|
|
|
- return true;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- if(gagajf.isNull($("#goodsDetailForm input[name=selCertTargetGb]:checked").val())){
|
|
|
-
|
|
|
- if (!gagajf.isNull($("#goodsDetailForm select[name=certFormGb]").val()) ||
|
|
|
- !gagajf.isNull($("#goodsDetailForm select[name=certType]").val()) ||
|
|
|
- !gagajf.isNull($("#goodsDetailForm input[name=certNum]").val())){
|
|
|
- mcxDialog.alert("안전인증대상을 선택해 주세요.");
|
|
|
- return false;
|
|
|
- }
|
|
|
-
|
|
|
+ if (gagajf.isNull($("#goodsDetailForm input[name=selCertTargetGb]:checked").val())){
|
|
|
+ return true;
|
|
|
}
|
|
|
|
|
|
- // 인증대상이 아니면 스킵
|
|
|
- if ("G083_1" != $("#goodsDetailForm input[name=selCertTargetGb]:checked").val()){
|
|
|
+ $("#goodsDetailForm input[name=certTargetGb]").val($("#goodsDetailForm input[name=selCertTargetGb]:checked").val());
|
|
|
+
|
|
|
+ if ((!gagajf.isNull($("#goodsDetailForm input[name=selCertTargetGb]:checked").val()) && "G083_1" != $("#goodsDetailForm input[name=selCertTargetGb]:checked").val())){
|
|
|
|
|
|
- if (!gagajf.isNull($("#goodsDetailForm select[name=certFormGb]").val()) ||
|
|
|
- !gagajf.isNull($("#goodsDetailForm select[name=certType]").val()) ||
|
|
|
- !gagajf.isNull($("#goodsDetailForm input[name=certNum]").val())){
|
|
|
- mcxDialog.alert("인즌대상이 아닐경우 정보를 입력하지 마세요.");
|
|
|
- return false;
|
|
|
- }else{
|
|
|
- $("#goodsDetailForm input[name=certTargetGb]").val($("#goodsDetailForm input[name=selCertTargetGb]:checked").val());
|
|
|
- return true;
|
|
|
- }
|
|
|
+ return true;
|
|
|
}
|
|
|
|
|
|
if(gagajf.isNull($("#goodsDetailForm select[name=certFormGb]").val())){
|