|
@@ -129,22 +129,26 @@ let mobContObj = {
|
129
|
129
|
var callbackFn = function(result) {
|
130
|
130
|
console.log(result);
|
131
|
131
|
mobContObj.list.pager(result.gridTotal);
|
132
|
|
- $.each(result.gridRows, function (i, item) {
|
133
|
|
- $('#ITP_LIST_MORDMNG02010_LIST_ITEM_AREA .panel-group').append($('#ITP_LIST_MORDMNG02010_LIST_ITEM_ROWCOPY').html());
|
134
|
|
- var $li = $('#ITP_LIST_MORDMNG02010_LIST_ITEM_AREA .panel-group > .list-row:last');
|
135
|
|
- $li.find('.fnBrandNm').text(item.brandNm);
|
136
|
|
- $li.find('.fnPchPodrUnqNo').text(item.pchPodrUnqNo);
|
137
|
|
- $li.find('.fnPchPodrDtlNo').text(item.pchPodrDtlNo);
|
138
|
|
- $li.find('.fnDlvReqDt').text(item.dlvReqDt);
|
139
|
|
- $li.find('.fnWhsNm').text(item.whsNm);
|
140
|
|
- $li.find('.fnPodrDt').text(item.podrDt);
|
141
|
|
- $li.find('.fnItemId').text(item.itemId);
|
142
|
|
- $li.find('.fnItemNm').text(item.itemNm);
|
143
|
|
- $li.find('.fnPodrQty').text(CommonObj.currency.add(item.podrQty, '개'));
|
144
|
|
- $li.find('.fnUnitAmt').text(CommonObj.comma.set(item.unitAmt));
|
145
|
|
- $li.find('.fnPodrAmt').text(CommonObj.comma.set(item.podrAmt));
|
146
|
|
- mobContObj.list.rows.push(item);
|
147
|
|
- });
|
|
132
|
+ if( result.gridRows && result.gridRows.length ) {
|
|
133
|
+ $.each(result.gridRows, function (i, item) {
|
|
134
|
+ $('#ITP_LIST_MORDMNG02010_LIST_ITEM_AREA .panel-group').append($('#ITP_LIST_MORDMNG02010_LIST_ITEM_ROWCOPY').html());
|
|
135
|
+ var $li = $('#ITP_LIST_MORDMNG02010_LIST_ITEM_AREA .panel-group > .item-row:last');
|
|
136
|
+ $li.find('.fnBrandNm').text(item.brandNm);
|
|
137
|
+ $li.find('.fnPchPodrUnqNo').text(item.pchPodrUnqNo);
|
|
138
|
+ $li.find('.fnPchPodrDtlNo').text(item.pchPodrDtlNo);
|
|
139
|
+ $li.find('.fnDlvReqDt').text(item.dlvReqDt);
|
|
140
|
+ $li.find('.fnWhsNm').text(item.whsNm);
|
|
141
|
+ $li.find('.fnPodrDt').text(item.podrDt);
|
|
142
|
+ $li.find('.fnItemId').text(item.itemId);
|
|
143
|
+ $li.find('.fnItemNm').text(item.itemNm);
|
|
144
|
+ $li.find('.fnPodrQty').text(CommonObj.currency.add(item.podrQty, '개'));
|
|
145
|
+ $li.find('.fnUnitAmt').text(CommonObj.comma.set(item.unitAmt));
|
|
146
|
+ $li.find('.fnPodrAmt').text(CommonObj.comma.set(item.podrAmt));
|
|
147
|
+ mobContObj.list.rows.push(item);
|
|
148
|
+ });
|
|
149
|
+ } else {
|
|
150
|
+ $('#ITP_LIST_MORDMNG02010_LIST_ITEM_AREA .panel-group').html('조회된 데이터가 없습니다');
|
|
151
|
+ }
|
148
|
152
|
};
|
149
|
153
|
const param = $('#ITP_FORM_MORDMNG02010_LIST_SEARCH').serializeObject();
|
150
|
154
|
param.gridPage = mobContObj.list.listPage;
|
|
@@ -199,7 +203,7 @@ let mobContObj = {
|
199
|
203
|
$(id).find('.fnDeliTelNo').text(result.deliTelNo);
|
200
|
204
|
$.each(result.invPoInfoList, function (i, item) {
|
201
|
205
|
$('#ITP_LIST_MORDMNG02010_VIEW_ITEM_AREA .panel-group').append($('#ITP_LIST_MORDMNG02010_VIEW_ITEM_ROWCOPY').html());
|
202
|
|
- var $li = $('#ITP_LIST_MORDMNG02010_VIEW_ITEM_AREA .panel-group > .list-row:last');
|
|
206
|
+ var $li = $('#ITP_LIST_MORDMNG02010_VIEW_ITEM_AREA .panel-group > .item-row:last');
|
203
|
207
|
$li.find('.fnPchPodrDtlNo').text(item.pchPodrDtlNo);
|
204
|
208
|
$li.find('.fnItemId').text(item.itemId);
|
205
|
209
|
$li.find('.fnItemNm').text(item.itemNm);
|
|
@@ -232,7 +236,7 @@ let mobContObj = {
|
232
|
236
|
}
|
233
|
237
|
var gridInsertData = [];
|
234
|
238
|
var isValid = false;
|
235
|
|
- $('#ITP_LIST_MORDMNG02010_VIEW_ITEM_AREA .panel-group > .list-row').each(function(index) {
|
|
239
|
+ $('#ITP_LIST_MORDMNG02010_VIEW_ITEM_AREA .panel-group > .item-row').each(function(index) {
|
236
|
240
|
isValid = false;
|
237
|
241
|
var row = _this.rows[index];
|
238
|
242
|
var item = {
|
|
@@ -322,7 +326,7 @@ let mobPopObj = {
|
322
|
326
|
this.rows = gridRows;
|
323
|
327
|
$.each(gridRows, function (i, item) {
|
324
|
328
|
$('#ITP_LIST_MORDMNG02010_POP_WHS_AREA .panel-group').append($('#ITP_LIST_MORDMNG02010_POP_WHS_ROWCOPY').html());
|
325
|
|
- var $li = $('#ITP_LIST_MORDMNG02010_POP_WHS_AREA .panel-group > .list-row:last');
|
|
329
|
+ var $li = $('#ITP_LIST_MORDMNG02010_POP_WHS_AREA .panel-group > .item-row:last');
|
326
|
330
|
$li.find('.fnWhsNm').text(item.whsNm);
|
327
|
331
|
$li.find('.fnLocationNm').text(item.locationNm);
|
328
|
332
|
$li.find('.fnWhsId').data('whs-id', item.whsId);
|