|
@@ -6,7 +6,7 @@ require(['config'], function() {
|
6
|
6
|
});
|
7
|
7
|
});
|
8
|
8
|
|
9
|
|
-let API_POP_GRID_LIST = '/api/item/pop-grid-list';
|
|
9
|
+let API_POP_GRID_LIST = '/api/whs/mng/pop-whs-search';
|
10
|
10
|
|
11
|
11
|
function itp_fn_BIZPOP_WHS_LOCATION(parentPopFn, args, returnType) {
|
12
|
12
|
console.log(args);
|
|
@@ -45,11 +45,13 @@ function itp_fn_BIZPOP_WHS_LOCATION(parentPopFn, args, returnType) {
|
45
|
45
|
|
46
|
46
|
var list = [];
|
47
|
47
|
var selectedIds = $(THIS_GIRD_ID).getGridParam('selarrrow');
|
48
|
|
-
|
|
48
|
+
|
|
49
|
+ /*
|
49
|
50
|
if(selectedIds.length != 1) { // 1개만 선택
|
50
|
51
|
itp_fn_modal_alert('하나의 창고만 선택해주세요!');
|
51
|
52
|
return;
|
52
|
53
|
}
|
|
54
|
+ */
|
53
|
55
|
|
54
|
56
|
for (var i=selectedIds.length-1; i>=0; i--) {
|
55
|
57
|
list.push($(THIS_GIRD_ID).jqGrid('getRowData', selectedIds[i]));
|
|
@@ -83,64 +85,52 @@ function itp_fn_BIZPOP_WHS_LOCATION(parentPopFn, args, returnType) {
|
83
|
85
|
$(THIS_GIRD_ID).jqGrid({
|
84
|
86
|
colModel: [
|
85
|
87
|
{
|
86
|
|
- index: 'ITEM_ID', name: 'itemId',
|
87
|
|
- label: '품목ID', //
|
|
88
|
+ index: 'BRAND_ID', name: 'brandId',
|
|
89
|
+ label: '브랜드아이디', //
|
88
|
90
|
width: '10', fixed: false, align: 'center',
|
89
|
|
- sortable: false, hidden: false
|
|
91
|
+ sortable: false, hidden: true
|
90
|
92
|
},
|
91
|
93
|
{
|
92
|
|
- index: 'ITEM_NM', name: 'itemNm',
|
93
|
|
- label: '품목명', //
|
|
94
|
+ index: 'BRAND_NM', name: 'brandNm',
|
|
95
|
+ label: '브랜드명', //
|
94
|
96
|
width: '12', fixed: false, align: 'left',
|
95
|
97
|
sortable: false, hidden: false
|
96
|
98
|
},
|
97
|
99
|
{
|
98
|
|
- index: 'UNIT', name: 'unit',
|
99
|
|
- label: '단위', //
|
|
100
|
+ index: 'WHS_ID', name: 'whsId',
|
|
101
|
+ label: '창고아이디', //
|
100
|
102
|
width: '6', fixed: false, align: 'center',
|
101
|
|
- sortable: false, hidden: false
|
|
103
|
+ sortable: false, hidden: true
|
102
|
104
|
},
|
103
|
105
|
{
|
104
|
|
- index: 'UNIT_AMT', name: 'unitAmt',
|
105
|
|
- label: '단가', //
|
|
106
|
+ index: 'WHS_NM', name: 'whsNm',
|
|
107
|
+ label: '창고명', //
|
106
|
108
|
width: '6', fixed: false, align: 'right',
|
107
|
109
|
sortable: false, hidden: false
|
108
|
110
|
},
|
109
|
111
|
{
|
110
|
|
- index: 'PODR_PSSBL_DVSN_NM', name: 'podrPssblDvsnNm',
|
111
|
|
- label: '발주가능여부명', //
|
112
|
|
- width: '6', fixed: false, align: 'center',
|
113
|
|
- sortable: false, hidden: false
|
114
|
|
- },
|
115
|
|
- {
|
116
|
|
- index: 'PODR_PSSBL_DVSN', name: 'podrPssblDvsn',
|
117
|
|
- label: '발주가능여부', //
|
|
112
|
+ index: 'LOCATION', name: 'location',
|
|
113
|
+ label: 'LOCATION', //
|
118
|
114
|
width: '6', fixed: false, align: 'center',
|
119
|
115
|
sortable: false, hidden: true
|
120
|
116
|
},
|
121
|
117
|
{
|
122
|
|
- index: 'BRAND_UNIT_UNQ_NO', name: 'brandUnitUnqNo',
|
123
|
|
- label: '브랜드단가고유번호', //
|
124
|
|
- width: '10', fixed: false, align: 'center',
|
125
|
|
- sortable: false, hidden: true
|
126
|
|
- },
|
127
|
|
- {
|
128
|
|
- index: 'UNIT_GUBUN', name: 'unitGubun',
|
129
|
|
- label: '단가구분', //
|
130
|
|
- width: '10', fixed: false, align: 'center',
|
131
|
|
- sortable: false, hidden: true
|
|
118
|
+ index: 'LOCATION_NM', name: 'locationNm',
|
|
119
|
+ label: 'LOCATION명', //
|
|
120
|
+ width: '6', fixed: false, align: 'center',
|
|
121
|
+ sortable: false, hidden: false
|
132
|
122
|
},
|
133
|
123
|
{
|
134
|
|
- index: 'STORE_UNIT_UNQ_NO', name: 'storeUnitUnqNo',
|
135
|
|
- label: '매장단가고유번호', //
|
|
124
|
+ index: 'STCK_DVSN', name: 'stckDvsn',
|
|
125
|
+ label: '창고구분', //
|
136
|
126
|
width: '10', fixed: false, align: 'center',
|
137
|
127
|
sortable: false, hidden: true
|
138
|
128
|
},
|
139
|
129
|
{
|
140
|
|
- index: 'WHS_PASS_QTY', name: 'whsPassQty',
|
141
|
|
- label: '출고가능수량', //
|
|
130
|
+ index: 'STCK_DVSN_NM', name: 'stckDvsnNm',
|
|
131
|
+ label: '창고구분명', //
|
142
|
132
|
width: '10', fixed: false, align: 'center',
|
143
|
|
- sortable: false, hidden: true
|
|
133
|
+ sortable: false, hidden: false
|
144
|
134
|
}
|
145
|
135
|
],
|
146
|
136
|
loadBeforeSend: function(jqXHR) {
|
|
@@ -149,7 +139,7 @@ function itp_fn_BIZPOP_WHS_LOCATION(parentPopFn, args, returnType) {
|
149
|
139
|
postData: JSON.stringify(param),
|
150
|
140
|
url: DOMAIN + API_POP_GRID_LIST,
|
151
|
141
|
pager: THIS_GIRD_PAGER,
|
152
|
|
- multiselect: true,
|
|
142
|
+ multiselect: false,
|
153
|
143
|
rownumbers: false,
|
154
|
144
|
loadComplete: function(data) {
|
155
|
145
|
console.log(data);
|