|
@@ -41,6 +41,9 @@ let API_DETAIL_INFO = '/api/itemunit/info-storeitemunit'; // 상세
|
41
|
41
|
let API_DETAIL_NEW = '/api/itemunit/new-info-storeitemunit'; // 신규
|
42
|
42
|
let API_DETAIL_SAVE = '/api/itemunit/save-store-itemunit'; // 저장
|
43
|
43
|
|
|
44
|
+
|
|
45
|
+let ITP_FORM_STINFO06010_DETAIL_IS_VIEW = false;
|
|
46
|
+
|
44
|
47
|
/*화면 Grid ColModel*/
|
45
|
48
|
const gridColModel = {
|
46
|
49
|
list: [
|
|
@@ -146,9 +149,8 @@ const gridColModel = {
|
146
|
149
|
index: 'UNIT', name: 'unit',
|
147
|
150
|
label: ITP_MSG_LOCALE.label.unit, //기본단위
|
148
|
151
|
width: '9', fixed: false, align: 'center',
|
149
|
|
- sortable: false, editable: true, formatter: 'select', edittype: 'select',
|
150
|
|
- editoptions: {value: ITP_COMMON_CD_DSTRBT_COST_UNIT},
|
151
|
|
- editrules: {required: true}
|
|
152
|
+ sortable: false, editable: false, formatter: 'select', edittype: 'select',
|
|
153
|
+ editoptions: {value: ITP_COMMON_CD_DSTRBT_COST_UNIT}
|
152
|
154
|
},
|
153
|
155
|
{
|
154
|
156
|
index: 'CURR', name: 'curr',
|
|
@@ -163,7 +165,8 @@ const gridColModel = {
|
163
|
165
|
label: ITP_MSG_LOCALE.label.unitAmt, //단가
|
164
|
166
|
width: '10', fixed: false, align: 'center',
|
165
|
167
|
sortable: true, editable: true, edittype: 'text',
|
166
|
|
- editrules: {required: true}
|
|
168
|
+ editrules: {required: true},
|
|
169
|
+ formatter: 'integer', formatoptions: { defaultValue: '', thousandsSeparator: ',' }
|
167
|
170
|
},
|
168
|
171
|
{
|
169
|
172
|
index: 'UNIT_TARGET_CD', name: 'unitTargetCd',
|
|
@@ -177,7 +180,21 @@ const gridColModel = {
|
177
|
180
|
index: 'SPPLY_UNIT_AMT', name: 'spplyUnitAmt',
|
178
|
181
|
label: ITP_MSG_LOCALE.label.spplyUnitAmt, //공급단가
|
179
|
182
|
width: '6', fixed: false, align: 'center',
|
180
|
|
- sortable: false, hidden: false
|
|
183
|
+ sortable: false,
|
|
184
|
+ formatter: 'integer', formatoptions: { defaultValue: '', thousandsSeparator: ',' }
|
|
185
|
+
|
|
186
|
+ },
|
|
187
|
+ {
|
|
188
|
+ index: 'SPPLY_NM', name: 'spplyNm',
|
|
189
|
+ label: ITP_MSG_LOCALE.label.spplyNm, //공급단가
|
|
190
|
+ width: '6', fixed: false, align: 'left',
|
|
191
|
+ sortable: false
|
|
192
|
+ },
|
|
193
|
+ {
|
|
194
|
+ index: 'SPPLY_ID', name: 'spplyId',
|
|
195
|
+ label: ITP_MSG_LOCALE.label.spplyId, //공급단가
|
|
196
|
+ width: '6', fixed: false, align: 'center',
|
|
197
|
+ sortable: false, hidden: true
|
181
|
198
|
}
|
182
|
199
|
]
|
183
|
200
|
};
|
|
@@ -212,6 +229,8 @@ let pageObj = {
|
212
|
229
|
$('#ITP_TAB_STINFO06010 .input-group.date').datepicker(ITP_DATE_LANGUAGE);
|
213
|
230
|
$('#ITP_FORM_STINFO06010_DETAIL_FROM_DT').datepicker('setDate', new Date(now.setMonth(now.getMonth() - 1)));
|
214
|
231
|
$('#ITP_FORM_STINFO06010_DETAIL_TO_DT').datepicker('setDate', new Date());
|
|
232
|
+
|
|
233
|
+
|
215
|
234
|
},
|
216
|
235
|
grid: function() {
|
217
|
236
|
itp_fn_jqgrid_resize(STINFO06010_GRID_ID, STINFO06010_GRID_LIST, 'lg');
|
|
@@ -362,8 +381,25 @@ let pageObj = {
|
362
|
381
|
} else if(mode == 'MODIFY') { // 수정
|
363
|
382
|
$('#ITP_AJAX_STINFO06010_DETAIL_CONTAINER').show();
|
364
|
383
|
if(fn_make_user_info.get('authTpCd') === '50') {
|
|
384
|
+ //console.log("1111111111111111111111111111");
|
365
|
385
|
fn_show_btn_auth_array(['#ITP_BTN_STINFO06010_CANCELLIST']);
|
|
386
|
+ //$('#ITP_STINFO06010_DETAIL_jqGrid_list').jqGrid('hideCol',["spplyNm","spplyUnitAmt"]);
|
|
387
|
+
|
|
388
|
+ //$('#ITP_STINFO06010_DETAIL_jqGrid_list').jqGrid('showCol',["spplyNm","spplyUnitAmt"])
|
|
389
|
+
|
|
390
|
+ //$('#ITP_STINFO06010_DETAIL_jqGrid').jqGrid('hideCol',["spplyNm","spplyUnitAmt"]);
|
|
391
|
+ //$('#ITP_STINFO06010_DETAIL_jqGridView').jqGrid('hideCol',["spplyNm","spplyUnitAmt"]);
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
|
366
|
395
|
} else {
|
|
396
|
+ //console.log("22222222222222222222222");
|
|
397
|
+ //$('#ITP_STINFO06010_DETAIL_jqGrid_list').jqGrid('showCol',["spplyNm","spplyUnitAmt"]);
|
|
398
|
+ //$('#ITP_STINFO06010_DETAIL_jqGrid').jqGrid('showCol',["spplyNm","spplyUnitAmt"]);
|
|
399
|
+ //$('#ITP_STINFO06010_DETAIL_jqGridView').jqGrid('showCol',["spplyNm","spplyUnitAmt"]);
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
|
367
|
403
|
fn_show_btn_auth_array(['#ITP_BTN_STINFO06010_CANCELLIST', '#ITP_BTN_STINFO06010_SAVE']);
|
368
|
404
|
}
|
369
|
405
|
$('#ITP_BTN_STINFO06010_DETAIL_SEARCH_STORE').attr('disabled', true);
|
|
@@ -374,6 +410,7 @@ let pageObj = {
|
374
|
410
|
} else if(mode == 'VIEW') { // 보기
|
375
|
411
|
$('#ITP_AJAX_STINFO06010_VIEW_CONTAINER').show();
|
376
|
412
|
fn_show_btn_auth_array(['#ITP_BTN_STINFO06010_MODIFY', '#ITP_BTN_STINFO06010_CANCELLIST']);
|
|
413
|
+
|
377
|
414
|
}
|
378
|
415
|
this.screenMode = mode;
|
379
|
416
|
}
|
|
@@ -524,7 +561,8 @@ let modifyObj = {
|
524
|
561
|
param: param,
|
525
|
562
|
url: DOMAIN + API_DETAIL_INFO,
|
526
|
563
|
loadComplete: function(data) {
|
527
|
|
- console.log(data);
|
|
564
|
+ //console.log("12121212121212");
|
|
565
|
+ //$(STINFO06010_DETAIL_GRID_LIST).jqGrid('hideCol',["spplyNm","spplyUnitAmt"]);
|
528
|
566
|
createObj.rows = data.gridRows;
|
529
|
567
|
itp_fn_grid_load_complete(data, STINFO06010_DETAIL_GRID_ID, false, 'number', 'STINFO06010', modifyObj.itp_STINFO06010_search, modifyObj.empty, true, data.gridRecords, true);
|
530
|
568
|
},
|