|
|
@@ -88,7 +88,6 @@
|
|
|
<option value="">[전체]</option>
|
|
|
<option th:if="${originCdList}" th:each="oneData, status : ${originCdList}" th:value="${oneData.cd}" th:text="${'[' + oneData.cd + '] ' + oneData.cdNm}"></option>
|
|
|
</select>
|
|
|
- <input type="hidden" id="makeNm" name="makeNm" />
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
@@ -147,7 +146,7 @@
|
|
|
valueFormatter: function (params) { return gagaAgGrid.lookupValue(useYnList, params.value); },
|
|
|
valueParser: function (params) { return gagaAgGrid.lookupKey(useYnList, params.newValue); }
|
|
|
},
|
|
|
- {headerName: "상품판매가", field: "currPrice" , width: 120, cellClass: 'text-right', editable: true, required: true,
|
|
|
+ {headerName: "상품판매가", field: "currPrice" , width: 120, cellClass: 'text-right',
|
|
|
cellEditor: 'textCellEditor',
|
|
|
cellEditorParams: { maxlength: 14, validType: 'numeric'}
|
|
|
},
|
|
|
@@ -241,6 +240,10 @@
|
|
|
var idx = oldGoodsSetList.length+1;
|
|
|
var setGoodsCurrPrice = 0;
|
|
|
|
|
|
+ gridGoodsSetOptions.api.forEachNode(function(rowNode, index) {
|
|
|
+ setGoodsCurrPrice += Number(rowNode.data.compsCurrPrice);
|
|
|
+ });
|
|
|
+
|
|
|
var isExist = false;
|
|
|
goodsData.forEach(function(goods){
|
|
|
isExist = false;
|
|
|
@@ -255,11 +258,6 @@
|
|
|
if (goods.supplyCompCd != rowNode.data.supplyCompCd){
|
|
|
isExist = true;
|
|
|
}
|
|
|
-
|
|
|
- if (!gagajf.isNull(rowNode.data.compsCurrPrice)){
|
|
|
- setGoodsCurrPrice += Number(rowNode.data.compsCurrPrice);
|
|
|
- }
|
|
|
-
|
|
|
});
|
|
|
|
|
|
if (goods.goodsType != "G056_N"){
|
|
|
@@ -514,8 +512,19 @@
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
//화면에서 삭제
|
|
|
var removedData = gagaAgGrid.removeRowData(gridGoodsSetOptions, false);
|
|
|
+
|
|
|
+ var setGoodsCurrPrice = 0;
|
|
|
+
|
|
|
+ gridGoodsSetOptions.api.forEachNode(function(rowNode, index) {
|
|
|
+ if (!gagajf.isNull(rowNode.data.compsCurrPrice)){
|
|
|
+ setGoodsCurrPrice += Number(rowNode.data.compsCurrPrice);
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ $('#goodsSetForm').find('#setGoodsCurrPrice').html(setGoodsCurrPrice.addComma());
|
|
|
}
|
|
|
|
|
|
/*]]>*/
|