|
@@ -24,109 +24,87 @@ const gridColModel = {
|
24
|
24
|
sortable: false, hidden: true
|
25
|
25
|
},
|
26
|
26
|
{
|
27
|
|
- index: 'PCH_PODR_UNQ_NO', name: 'pchPodrUnqNo',
|
28
|
|
- label: ITP_MSG_LOCALE.label.pchPodrUnqNo, // 발주번호
|
|
27
|
+ index: 'BRAND_NM', name: 'brandNm',
|
|
28
|
+ label: '브랜드',
|
29
|
29
|
width: '10', fixed: false, align: 'center',
|
30
|
30
|
sortable: false, hidden: false
|
31
|
31
|
},
|
32
|
32
|
{
|
33
|
|
- index: 'PCH_PODR_DTL_NO', name: 'pchPodrDtlNo',
|
34
|
|
- label: ITP_MSG_LOCALE.label.pchPodrDtlNo, // 발주항번
|
35
|
|
- width: '5', fixed: false, align: 'center',
|
36
|
|
- sortable: false, hidden: false
|
37
|
|
- },
|
38
|
|
- {
|
39
|
|
- index: 'DLV_STTMT_UNQ_NO', name: 'dlvSttmtUnqNo',
|
40
|
|
- label: ITP_MSG_LOCALE.label.dlvSttmtUnqNo, // 납품번호
|
|
33
|
+ index: 'RTN_PODR_UNQ_NO', name: 'rtnPodrUnqNo',
|
|
34
|
+ label: '반품발주번호',
|
41
|
35
|
width: '10', fixed: false, align: 'center',
|
42
|
36
|
sortable: false, hidden: false
|
43
|
37
|
},
|
44
|
38
|
{
|
45
|
|
- index: 'DLV_STTMT_DTL_NO', name: 'dlvSttmtDtlNo',
|
46
|
|
- label: ITP_MSG_LOCALE.label.dlvSttmtDtlNo, // 납품항번
|
47
|
|
- width: '5', fixed: false, align: 'center',
|
48
|
|
- sortable: false, hidden: false
|
49
|
|
- },
|
50
|
|
- {
|
51
|
|
- index: 'PODR_QTY', name: 'podrQty',
|
52
|
|
- label: ITP_MSG_LOCALE.label.podrQty, // 발주수량
|
|
39
|
+ index: 'RTN_PODR_DTL_NO', name: 'rtnPodrDtlNo',
|
|
40
|
+ label: '항번',
|
53
|
41
|
width: '5', fixed: false, align: 'center',
|
54
|
42
|
sortable: false, hidden: false
|
55
|
43
|
},
|
56
|
44
|
{
|
57
|
|
- index: 'DLV_QTY', name: 'dlvQty',
|
58
|
|
- label: ITP_MSG_LOCALE.label.dlvQty, // 납품수량
|
59
|
|
- width: '5', fixed: false, align: 'center',
|
60
|
|
- sortable: false, hidden: false
|
61
|
|
- },
|
62
|
|
- {
|
63
|
|
- index: 'WHS_QTY', name: 'whsQty',
|
64
|
|
- label: ITP_MSG_LOCALE.label.whsQty, // 입고수량
|
65
|
|
- width: '5', fixed: false, align: 'center',
|
66
|
|
- sortable: false, hidden: false
|
67
|
|
- },
|
68
|
|
- {
|
69
|
|
- index: 'DIV_REQ_DT', name: 'dlvReqDt',
|
70
|
|
- label: ITP_MSG_LOCALE.label.dlvReqDt, // 납품요청일
|
|
45
|
+ index: 'ITEM_ID', name: 'itemId',
|
|
46
|
+ label: ITP_MSG_LOCALE.label.itemId, // 품목번호
|
71
|
47
|
width: '8', fixed: false, align: 'center',
|
72
|
48
|
sortable: false, hidden: false
|
73
|
49
|
},
|
74
|
|
-
|
75
|
50
|
{
|
76
|
|
- index: 'DLV_SCH_DT', name: 'dlvSchDt',
|
77
|
|
- label: ITP_MSG_LOCALE.label.dlvSchDt, // 납품예정일
|
|
51
|
+ index: 'ITEM_NM', name: 'itemNm',
|
|
52
|
+ label: ITP_MSG_LOCALE.label.itemNm, // 품목명
|
78
|
53
|
width: '8', fixed: false, align: 'center',
|
79
|
54
|
sortable: false, hidden: false
|
80
|
55
|
},
|
81
|
56
|
{
|
82
|
|
- index: 'DLV_CMPLT_DT', name: 'dlvCmpltDt',
|
83
|
|
- label: ITP_MSG_LOCALE.label.dlvCmpltDt, // 납품일자
|
84
|
|
- width: '8', fixed: false, align: 'center',
|
85
|
|
- sortable: false, hidden: false
|
|
57
|
+ index: 'RODR_QTY', name: 'rodrQty',
|
|
58
|
+ label: '반품발주수량',
|
|
59
|
+ width: '5', fixed: false, align: 'center',
|
|
60
|
+ sortable: false, hidden: false,
|
|
61
|
+ formatter: 'integer', formatoptions: {thousandsSeparator: ','}
|
86
|
62
|
},
|
87
|
63
|
{
|
88
|
|
- index: 'WHS_CNFM_NM', name: 'whsCnfmNm',
|
89
|
|
- label: ITP_MSG_LOCALE.label.whsCnfmNm, // 입고확인자
|
90
|
|
- width: '8', fixed: false, align: 'center',
|
91
|
|
- sortable: false, hidden: false
|
|
64
|
+ index: 'COL_REQ_QTY', name: 'colReqQty',
|
|
65
|
+ label: '수거요청수량',
|
|
66
|
+ width: '5', fixed: false, align: 'center',
|
|
67
|
+ sortable: false, hidden: false,
|
|
68
|
+ formatter: 'integer', formatoptions: {thousandsSeparator: ','}
|
92
|
69
|
},
|
93
|
70
|
{
|
94
|
|
- index: 'DLV_MGR_NM', name: 'dlvMgrNm',
|
95
|
|
- label: ITP_MSG_LOCALE.label.dlvMgrNm, // 납품자명
|
96
|
|
- width: '8', fixed: false, align: 'center',
|
97
|
|
- sortable: false, hidden: false
|
|
71
|
+ index: 'COL_QTY', name: 'colQty',
|
|
72
|
+ label: '수거수량',
|
|
73
|
+ width: '5', fixed: false, align: 'center',
|
|
74
|
+ sortable: false, hidden: false,
|
|
75
|
+ formatter: 'integer', formatoptions: {thousandsSeparator: ','}
|
98
|
76
|
},
|
99
|
77
|
{
|
100
|
|
- index: 'DLV_MGR_TEL_NO', name: 'dlvMgrTelNo',
|
101
|
|
- label: ITP_MSG_LOCALE.label.dlvMgrTelNo, // 납품자전화번호
|
|
78
|
+ index: 'COL_AMT', name: 'colAmt',
|
|
79
|
+ label: '수거금액',
|
102
|
80
|
width: '8', fixed: false, align: 'center',
|
|
81
|
+ sortable: false, hidden: false,
|
|
82
|
+ formatter: 'integer', formatoptions: {thousandsSeparator: ','}
|
|
83
|
+ },
|
|
84
|
+ {
|
|
85
|
+ index: 'RTN_WHS_NM', name: 'rtnWhsNm',
|
|
86
|
+ label: '수거창고',
|
|
87
|
+ width: '10', fixed: false, align: 'center',
|
103
|
88
|
sortable: false, hidden: false
|
104
|
89
|
},
|
105
|
90
|
{
|
106
|
|
- index: 'ITEM_ID', name: 'itemId',
|
107
|
|
- label: ITP_MSG_LOCALE.label.itemId, // 품목번호
|
|
91
|
+ index: 'COL_SCH_DT', name: 'colSchDt',
|
|
92
|
+ label: '수거예정일',
|
108
|
93
|
width: '8', fixed: false, align: 'center',
|
109
|
94
|
sortable: false, hidden: false
|
110
|
95
|
},
|
111
|
96
|
{
|
112
|
|
- index: 'ITEM_NM', name: 'itemNm',
|
113
|
|
- label: ITP_MSG_LOCALE.label.itemNm, // 품목명
|
|
97
|
+ index: 'PICK_MGR_NM', name: 'pickMgrNm',
|
|
98
|
+ label: '수거담당자명',
|
114
|
99
|
width: '8', fixed: false, align: 'center',
|
115
|
100
|
sortable: false, hidden: false
|
116
|
101
|
},
|
117
|
102
|
{
|
118
|
|
- index: 'UNIT', name: 'unit',
|
119
|
|
- label: ITP_MSG_LOCALE.label.unit, // 기본단위
|
120
|
|
- width: '5', fixed: false, align: 'center',
|
|
103
|
+ index: 'PICK_MGR_TEL_NO', name: 'pickMgrTelNo',
|
|
104
|
+ label: '수거담당자전화번호',
|
|
105
|
+ width: '10', fixed: false, align: 'center',
|
121
|
106
|
sortable: false, hidden: false
|
122
|
|
- },
|
123
|
|
- {
|
124
|
|
- index: 'WHS_AMT', name: 'whsAmt',
|
125
|
|
- label: ITP_MSG_LOCALE.label.whsAmt, // 입고금액
|
126
|
|
- width: '8', fixed: false, align: 'center',
|
127
|
|
- sortable: false, hidden: false,
|
128
|
|
- formatter: 'integer', formatoptions: {thousandsSeparator: ','}
|
129
|
|
- }
|
|
107
|
+ }
|
130
|
108
|
],
|
131
|
109
|
view: [],
|
132
|
110
|
detail: []
|
|
@@ -213,7 +191,6 @@ let pageObj = {
|
213
|
191
|
}
|
214
|
192
|
}
|
215
|
193
|
|
216
|
|
-
|
217
|
194
|
/*목록화면 Object*/
|
218
|
195
|
let listObj = {
|
219
|
196
|
init: function() {
|
|
@@ -275,18 +252,6 @@ let listObj = {
|
275
|
252
|
url: DOMAIN + API_POMNG_INOUTMNG_WAREHOUSE_GRID_LIST,
|
276
|
253
|
pager: RTNMNG06010_GRID_PAGER,
|
277
|
254
|
rownumbers: false,
|
278
|
|
- /*onCellSelect: function(rowId, cellIdx, cellValue) {
|
279
|
|
- var cm = $(this).jqGrid('getGridParam', 'colModel');
|
280
|
|
- var colNm = cm[cellIdx].name;
|
281
|
|
- if (colNm === 'pchPodrUnqNo') {
|
282
|
|
- const pchPodrUnqNoVal = $(this).jqGrid('getCell', rowId, 'pchPodrUnqNo');
|
283
|
|
- const brandIdVal = $(this).jqGrid('getCell', rowId, 'brandId');
|
284
|
|
- const spplyIdVal = LOGIN_USER_INFO.spplyId;
|
285
|
|
- const key = {pchPodrUnqNo: pchPodrUnqNoVal, brandId: brandIdVal, spplyId: spplyIdVal};
|
286
|
|
- var param = $.param(key);
|
287
|
|
- viewObj.init(param);
|
288
|
|
- }
|
289
|
|
- },*/
|
290
|
255
|
loadComplete: function(data) {
|
291
|
256
|
console.log(data);
|
292
|
257
|
itp_fn_grid_load_complete(data, RTNMNG06010_GRID_ID, true, 'number', 'RTNMNG06010', listObj.itp_RTNMNG06010_search, listObj.empty, true, data.gridRecords, true);
|
|
@@ -314,53 +279,62 @@ let listObj = {
|
314
|
279
|
action: function() {
|
315
|
280
|
var _this = this;
|
316
|
281
|
// 공급업체 조회 버튼 클릭
|
317
|
|
- $('#ITP_BTN_RTNMNG06010_SEARCH_SPPLY_ID').on('click', function() {
|
|
282
|
+ $('#ITP_BTN_RTNMNG06010_SEARCH_POP_SSPPLY_NM').on('click', function() {
|
318
|
283
|
_this.popup('spply');
|
319
|
284
|
});
|
320
|
285
|
// 공급업체 텍스트 삭제 버튼 클릭
|
321
|
|
- $('#ITP_BTN_RTNMNG06010_DELETE_SPPLY_ID').on('click', function() {
|
322
|
|
- $('#ITP_FORM_RTNMNG06010_DETAIL_SPPLY_NM').val('');
|
323
|
|
- $('#ITP_FORM_RTNMNG06010_DETAIL_SPPLY_ID').val('');
|
|
286
|
+ $('#ITP_BTN_RTNMNG06010_SEARCH_DEL_SSPPLY_NM').on('click', function() {
|
|
287
|
+ $('#ITP_FORM_RTNMNG06010_SEARCH_SSPPLY_NM').val('');
|
|
288
|
+ $('#ITP_FORM_RTNMNG06010_SEARCH_SSPPLY_ID').val('');
|
324
|
289
|
});
|
325
|
290
|
|
326
|
291
|
// 매장/창고 조회 버튼 클릭
|
327
|
|
- $('#ITP_BTN_RTNMNG06010_SEARCH_WHS_ID').on('click', function() {
|
|
292
|
+ $('#ITP_BTN_RTNMNG06010_SEARCH_POP_SWHS_NM').on('click', function() {
|
328
|
293
|
_this.popup('whs');
|
329
|
294
|
});
|
330
|
295
|
// 매장/창고 텍스트 삭제 버튼 클릭
|
331
|
|
- $('#ITP_BTN_RTNMNG06010_DELETE_WHS_ID').on('click', function() {
|
332
|
|
- $('#ITP_FORM_RTNMNG06010_DETAIL_WHS_NM').val('');
|
333
|
|
- $('#ITP_FORM_RTNMNG06010_DETAIL_WHS_ID').val('');
|
|
296
|
+ $('#ITP_BTN_RTNMNG06010_SEARCH_DEL_SWHS_NM').on('click', function() {
|
|
297
|
+ $('#ITP_FORM_RTNMNG06010_SEARCH_SWHS_NM').val('');
|
|
298
|
+ $('#ITP_FORM_RTNMNG06010_SEARCH_SWHS_ID').val('');
|
|
299
|
+ });
|
|
300
|
+
|
|
301
|
+ // 매장/창고 조회 버튼 클릭
|
|
302
|
+ $('#ITP_BTN_RTNMNG06010_SEARCH_POP_SRTN_WHS_NM').on('click', function() {
|
|
303
|
+ _this.popup('rwhs');
|
|
304
|
+ });
|
|
305
|
+ // 매장/창고 텍스트 삭제 버튼 클릭
|
|
306
|
+ $('#ITP_BTN_RTNMNG06010_SEARCH_DEL_SRTN_WHS_NM').on('click', function() {
|
|
307
|
+ $('#ITP_FORM_RTNMNG06010_SEARCH_SRTN_WHS_NM').val('');
|
|
308
|
+ $('#ITP_FORM_RTNMNG06010_SEARCH_SRTN_WHS_ID').val('');
|
334
|
309
|
});
|
335
|
310
|
},
|
336
|
|
- popup: function(keyword) {
|
337
|
|
- var popFn = this.callback.create;
|
338
|
|
-
|
|
311
|
+ popup: function(keyword) {
|
339
|
312
|
if(keyword === 'spply'){
|
|
313
|
+ var popFn = this.callback.supply;
|
340
|
314
|
const key = {brandId:fn_make_user_info.get('brandId'),storeId:fn_make_user_info.get('storeId')};
|
341
|
315
|
fn_call_popup('biz', 'BIZPOP_STORE_SPPLY', '#ITP_ASIDE', popFn, key, 'S');
|
342
|
316
|
} else if(keyword === 'whs'){
|
|
317
|
+ var popFn = this.callback.whs;
|
|
318
|
+ const key1 = {brandId:fn_make_user_info.get('brandId'),storeId:fn_make_user_info.get('storeId'), whsDvsn:""};
|
|
319
|
+ fn_call_popup('biz', 'BIZPOP_WHS_LOCATION', '#ITP_ASIDE', popFn, key1, 'S');
|
|
320
|
+ } else if(keyword === 'rwhs'){
|
|
321
|
+ var popFn = this.callback.rwhs;
|
343
|
322
|
const key1 = {brandId:fn_make_user_info.get('brandId'),storeId:fn_make_user_info.get('storeId'), whsDvsn:""};
|
344
|
323
|
fn_call_popup('biz', 'BIZPOP_WHS_LOCATION', '#ITP_ASIDE', popFn, key1, 'S');
|
345
|
324
|
}
|
346
|
325
|
},
|
347
|
326
|
callback: {
|
348
|
|
- create: function(rowDataPop) {
|
349
|
|
- console.log(rowDataPop);
|
350
|
|
- console.log(Array.isArray(rowDataPop));
|
351
|
|
- if(rowDataPop.hasOwnProperty('whsId') == false) {
|
352
|
|
- console.log(rowDataPop.spplyId);
|
353
|
|
- $('#ITP_FORM_RTNMNG06010_DETAIL_SPPLY_NM').val(rowDataPop.spplyNm);
|
354
|
|
- $('#ITP_FORM_RTNMNG06010_DETAIL_SPPLY_ID').val(rowDataPop.spplyId);
|
355
|
|
- //console.log(rowDataPop[0].storeId);
|
356
|
|
- //$('#ITP_FORM_RTNMNG06010_DETAIL_STORE_NM').val(rowDataPop[0].storeNm);
|
357
|
|
- //$('#ITP_FORM_RTNMNG06010_DETAIL_STORE_ID').val(rowDataPop[0].storeId);
|
358
|
|
- } else {
|
359
|
|
- console.log(rowDataPop);
|
360
|
|
- console.log(rowDataPop.whsId);
|
361
|
|
- $('#ITP_FORM_RTNMNG06010_DETAIL_WHS_NM').val(rowDataPop.whsNm);
|
362
|
|
- $('#ITP_FORM_RTNMNG06010_DETAIL_WHS_ID').val(rowDataPop.whsId);
|
363
|
|
- }
|
|
327
|
+ supply: function(rowDataPop) {
|
|
328
|
+ $('#ITP_FORM_RTNMNG06010_SEARCH_SSPPLY_NM').val(rowDataPop.spplyNm);
|
|
329
|
+ $('#ITP_FORM_RTNMNG06010_SEARCH_SSPPLY_ID').val(rowDataPop.spplyId);
|
|
330
|
+ },
|
|
331
|
+ whs: function(rowDataPop) {
|
|
332
|
+ $('#ITP_FORM_RTNMNG06010_SEARCH_SWHS_NM').val(rowDataPop.whsNm);
|
|
333
|
+ $('#ITP_FORM_RTNMNG06010_SEARCH_SWHS_ID').val(rowDataPop.whsId);
|
|
334
|
+ },
|
|
335
|
+ rwhs: function(rowDataPop) {
|
|
336
|
+ $('#ITP_FORM_RTNMNG06010_SEARCH_SRTN_WHS_NM').val(rowDataPop.whsNm);
|
|
337
|
+ $('#ITP_FORM_RTNMNG06010_SEARCH_SRTN_WHS_ID').val(rowDataPop.whsId);
|
364
|
338
|
}
|
365
|
339
|
}
|
366
|
340
|
}
|