|
|
@@ -6,7 +6,7 @@
|
|
|
* @source : GoodsDetailForm.html
|
|
|
* @desc : 상품 상세 팝업
|
|
|
*============================================================================
|
|
|
- * SISUN
|
|
|
+ * SISUNChDataYn
|
|
|
* Copyright(C) 2020 TSIT, All rights reserved.
|
|
|
*============================================================================
|
|
|
* VER DATE AUTHOR DESCRIPTION
|
|
|
@@ -518,19 +518,19 @@
|
|
|
//{headerName: 'No', width: 60, cellClass: 'text-center', valueGetter: function(params) { return params.node.rowIndex + 1 }},
|
|
|
{headerName: "이미지", field: "imgPath1", width: 100, height: 60, cellClass: 'text-center'
|
|
|
,cellRenderer: function(params) {
|
|
|
- if (params.data.imgType == "A"){
|
|
|
+ if (params.data.imgType == "G030_A"){
|
|
|
if(!gagajf.isNull(params.data.imgPath6)){
|
|
|
- return '<img width="60" src="'+ uploadGoodsUrl+params.data.imgPath6 + '" alt="" onerror="this.src=\'/image/no.gif\';"/>';
|
|
|
+ return '<img width="60" src="'+ params.data.imgPath1 + '" alt="" onerror="this.src=\'/image/no.gif\';"/>';
|
|
|
}else{
|
|
|
- return '<img width="60" src="'+ uploadGoodsUrl+params.value + '" alt="" onerror="this.src=\'/image/no.gif\';"/>';
|
|
|
+ return '<img width="60" src="'+ params.value + '" alt="" onerror="this.src=\'/image/no.gif\';"/>';
|
|
|
}
|
|
|
+
|
|
|
}else{
|
|
|
if(!gagajf.isNull(params.data.imgPath6)){
|
|
|
- return '<img width="60" src="'+ params.data.imgPath1 + '" alt="" onerror="this.src=\'/image/no.gif\';"/>';
|
|
|
+ return '<img width="60" src="'+ uploadGoodsUrl+params.data.imgPath6 + '" alt="" onerror="this.src=\'/image/no.gif\';"/>';
|
|
|
}else{
|
|
|
- return '<img width="60" src="'+ params.value + '" alt="" onerror="this.src=\'/image/no.gif\';"/>';
|
|
|
+ return '<img width="60" src="'+ uploadGoodsUrl+params.value + '" alt="" onerror="this.src=\'/image/no.gif\';"/>';
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
@@ -539,8 +539,8 @@
|
|
|
valueFormatter: function (params) { return gagaAgGrid.lookupValue(goodsTypeList, params.value); },
|
|
|
valueParser: function (params) { return gagaAgGrid.lookupKey(goodsTypeList, params.newValue); }
|
|
|
},
|
|
|
- {headerName: "구성상품코드", field: "extendGoodsCd" , width: 130, cellClass: 'text-center'},
|
|
|
- {headerName: "구성상품코드명", field: "extendGoodsCdNm" , width: 200, cellClass: 'text-left'},
|
|
|
+ {headerName: "구성상품코드", field: "compsGoodsCd" , width: 130, cellClass: 'text-center'},
|
|
|
+ {headerName: "구성상품코드명", field: "compsGoodsCdNm" , width: 200, cellClass: 'text-left'},
|
|
|
//{headerName: "순서", field: "dispOrd" , width: 80, cellClass: 'text-right',editable: true, required: true},
|
|
|
{headerName: "수량", field: "qty" , width: 100, cellClass: 'text-right'
|
|
|
,valueFormatter: function(params) { return Number(params.value).addComma();}
|
|
|
@@ -558,7 +558,7 @@
|
|
|
valueFormatter: function (params) { return gagaAgGrid.lookupValue(useYnList, params.value); },
|
|
|
valueParser: function (params) { return gagaAgGrid.lookupKey(useYnList, params.newValue); }
|
|
|
},
|
|
|
- {headerName: "옵션명(딜상품용)", field: "extendGoodsOptNm" , width: 200, cellClass: 'text-left',editable: true, required: true},
|
|
|
+ {headerName: "옵션명(딜상품용)", field: "compsGoodsOptNm" , width: 200, cellClass: 'text-left',editable: true, required: true},
|
|
|
{headerName: "상품상태", field: "goodsStat" , width: 100, cellClass: 'text-center',
|
|
|
cellEditorParams: { values: gagaAgGrid.extractValues(goodsStatList) },
|
|
|
valueFormatter: function (params) { return gagaAgGrid.lookupValue(goodsStatList, params.value); },
|
|
|
@@ -586,19 +586,19 @@
|
|
|
//{headerName: 'No', width: 60, cellClass: 'text-center', valueGetter: function(params) { return params.node.rowIndex + 1 }},
|
|
|
{headerName: "이미지", field: "imgPath1", width: 100, height: 60, cellClass: 'text-center'
|
|
|
,cellRenderer: function(params) {
|
|
|
- if (params.data.imgType == "A"){
|
|
|
+ if (params.data.imgType == "G030_A"){
|
|
|
if(!gagajf.isNull(params.data.imgPath6)){
|
|
|
- return '<img width="60" src="'+ uploadGoodsUrl+params.data.imgPath6 + '" alt="" onerror="this.src=\'/image/no.gif\';"/>';
|
|
|
+ return '<img width="60" src="'+ params.data.imgPath6 + '" alt="" onerror="this.src=\'/image/no.gif\';"/>';
|
|
|
}else{
|
|
|
- return '<img width="60" src="'+ uploadGoodsUrl+params.value + '" alt="" onerror="this.src=\'/image/no.gif\';"/>';
|
|
|
- }
|
|
|
+ return '<img width="60" src="'+ params.value + '" alt="" onerror="this.src=\'/image/no.gif\';"/>';
|
|
|
+ }
|
|
|
+
|
|
|
}else{
|
|
|
if(!gagajf.isNull(params.data.imgPath6)){
|
|
|
- return '<img width="60" src="'+ params.data.imgPath1 + '" alt="" onerror="this.src=\'/image/no.gif\';"/>';
|
|
|
+ return '<img width="60" src="'+ uploadGoodsUrl+params.data.imgPath6 + '" alt="" onerror="this.src=\'/image/no.gif\';"/>';
|
|
|
}else{
|
|
|
- return '<img width="60" src="'+ params.value + '" alt="" onerror="this.src=\'/image/no.gif\';"/>';
|
|
|
+ return '<img width="60" src="'+ uploadGoodsUrl+params.value + '" alt="" onerror="this.src=\'/image/no.gif\';"/>';
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
@@ -650,7 +650,7 @@
|
|
|
// 상품상세 조회
|
|
|
var fnGoodsDeailSearch = function() {
|
|
|
|
|
|
- $('#goodsDetailForm').find('.tabs .tabsNav li a').attr("style", "color:#888;");
|
|
|
+ $('#goodsDetailForm').find('.tabs .tabsNav li a').attr("style", "color:#888;"); //탭색 초기화
|
|
|
|
|
|
var params = new Object();
|
|
|
params.mode = $('#goodsDetailForm input[name=mode]').val();
|
|
|
@@ -886,6 +886,11 @@
|
|
|
fnGoodsDetailHstSearch();
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ //기본정보탭 변경여부
|
|
|
+ $('#goodsDetailForm').find('#goodstab1').find("input, select, textarea").on('change', function() {
|
|
|
+ $('#goodsDetailForm').find('.tabs .tabsNav li:eq(0) a').attr("style", "color:red;");
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
//옵셥 재고
|
|
|
@@ -1694,7 +1699,7 @@
|
|
|
return true;
|
|
|
}
|
|
|
//상품구분
|
|
|
- if ($("#goodsDetailForm input[name=goodsGbOrg]").val() != $("input:radio[name=goodsGb]:checked").val()){
|
|
|
+ if ($("#goodsDetailForm input[name=goodsGbOrg]").val() != $("#goodsDetailForm select[name=goodsGb]").val()){
|
|
|
return true;
|
|
|
}
|
|
|
//상품상태
|
|
|
@@ -1866,7 +1871,7 @@
|
|
|
gridGoodsComposeOptions.api.updateRowData({add: [data], addIndex: idx});
|
|
|
|
|
|
idx++;
|
|
|
-
|
|
|
+ $('#goodsDetailForm').find('.tabs .tabsNav li:eq(5) a').attr("style", "color:red;");
|
|
|
}
|
|
|
});
|
|
|
gridGoodsComposeOptions.api.refreshCells();
|
|
|
@@ -1918,6 +1923,7 @@
|
|
|
gridCodiGoodsOptions.api.updateRowData({add: [data], addIndex: idx});
|
|
|
|
|
|
idx++;
|
|
|
+ $('#goodsDetailForm').find('.tabs .tabsNav li:eq(4) a').attr("style", "color:red;");
|
|
|
|
|
|
}
|
|
|
});
|
|
|
@@ -1933,8 +1939,6 @@
|
|
|
}
|
|
|
|
|
|
//화면에서 삭제
|
|
|
- //var removedData_1 = gagaAgGrid.removeRowData(gridCodiGoodsOptions, false);
|
|
|
-
|
|
|
var removedData = gagaAgGrid.removeRowData(gridCodiGoodsOptions, false);
|
|
|
|
|
|
if (removedData.length > 0) {
|
|
|
@@ -1983,7 +1987,6 @@
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
|
- /* gagaSe.createSmartEditor(seOptions, 'goodsDesc'); */
|
|
|
gagaSe.createSmartEditor(seOptions, 'goodsPcTopDesc');
|
|
|
gagaSe.createSmartEditor(seOptions, 'goodsMobileTopDesc');
|
|
|
gagaSe.createSmartEditor(seOptions, 'goodsPcDownDesc');
|
|
|
@@ -1995,11 +1998,6 @@
|
|
|
|
|
|
fnGoodsDeailSearch();
|
|
|
|
|
|
- //기본정보탭 변경여부
|
|
|
- $('#goodsDetailForm').find('#goodstab1').find("input, select, textarea").on('change', function() {
|
|
|
- $('#goodsDetailForm').find('.tabs .tabsNav li:eq(0) a').attr("style", "color:red;");
|
|
|
- });
|
|
|
-
|
|
|
});
|
|
|
|
|
|
/*]]>*/
|