|
@@ -41,9 +41,6 @@ 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
|
|
-
|
47
|
44
|
/*화면 Grid ColModel*/
|
48
|
45
|
const gridColModel = {
|
49
|
46
|
list: [
|
|
@@ -180,7 +177,7 @@ const gridColModel = {
|
180
|
177
|
index: 'SPPLY_UNIT_AMT', name: 'spplyUnitAmt',
|
181
|
178
|
label: ITP_MSG_LOCALE.label.spplyUnitAmt, //공급단가
|
182
|
179
|
width: '6', fixed: false, align: 'center',
|
183
|
|
- sortable: false,
|
|
180
|
+ sortable: false, hidden: false,
|
184
|
181
|
formatter: 'integer', formatoptions: { defaultValue: '', thousandsSeparator: ',' }
|
185
|
182
|
|
186
|
183
|
},
|
|
@@ -188,7 +185,7 @@ const gridColModel = {
|
188
|
185
|
index: 'SPPLY_NM', name: 'spplyNm',
|
189
|
186
|
label: ITP_MSG_LOCALE.label.spplyNm, //공급단가
|
190
|
187
|
width: '6', fixed: false, align: 'left',
|
191
|
|
- sortable: false
|
|
188
|
+ sortable: false, hidden: false
|
192
|
189
|
},
|
193
|
190
|
{
|
194
|
191
|
index: 'SPPLY_ID', name: 'spplyId',
|
|
@@ -196,6 +193,90 @@ const gridColModel = {
|
196
|
193
|
width: '6', fixed: false, align: 'center',
|
197
|
194
|
sortable: false, hidden: true
|
198
|
195
|
}
|
|
196
|
+ ],
|
|
197
|
+ sdetail: [
|
|
198
|
+ {
|
|
199
|
+ index: 'VIEW_CD', name: 'viewCd',
|
|
200
|
+ label: ITP_MSG_LOCALE.label.viewCd, //공급단가
|
|
201
|
+ width: '6', fixed: false, align: 'center',
|
|
202
|
+ sortable: false, hidden: true
|
|
203
|
+ },
|
|
204
|
+ {
|
|
205
|
+ index: 'VIEW_NM', name: 'viewNm',
|
|
206
|
+ label: ITP_MSG_LOCALE.label.viewNm, //공급단가
|
|
207
|
+ width: '6', fixed: false, align: 'center',
|
|
208
|
+ sortable: false, hidden: false
|
|
209
|
+ },
|
|
210
|
+ {
|
|
211
|
+ index: 'BRAND_ID', name: 'brandId',
|
|
212
|
+ label: ITP_MSG_LOCALE.label.brandId, //브랜드ID
|
|
213
|
+ width: '10', fixed: false, align: 'center',
|
|
214
|
+ sortable: false, hidden: true
|
|
215
|
+ },
|
|
216
|
+ {
|
|
217
|
+ index: 'BRAND_UNIT_UNQ_NO', name: 'brandUnitUnqNo',
|
|
218
|
+ label: ITP_MSG_LOCALE.label.brandId, //브랜드ID
|
|
219
|
+ width: '10', fixed: false, align: 'center',
|
|
220
|
+ sortable: false, hidden: true
|
|
221
|
+ },
|
|
222
|
+ {
|
|
223
|
+ index: 'STORE_UNIT_UNQ_NO', name: 'storeUnitUnqNo',
|
|
224
|
+ label: ITP_MSG_LOCALE.label.storeId, //브랜드ID
|
|
225
|
+ width: '10', fixed: false, align: 'center',
|
|
226
|
+ sortable: false, hidden: true
|
|
227
|
+ },
|
|
228
|
+ {
|
|
229
|
+ index: 'ITEM_ID', name: 'itemId',
|
|
230
|
+ label: ITP_MSG_LOCALE.label.itemId, //품목번호
|
|
231
|
+ width: '10', fixed: false, align: 'center',
|
|
232
|
+ sortable: false, hidden: false
|
|
233
|
+ },
|
|
234
|
+ {
|
|
235
|
+ index: 'ITEM_NM', name: 'itemNm',
|
|
236
|
+ label: ITP_MSG_LOCALE.label.itemNm, //품목명
|
|
237
|
+ width: '13', fixed: false, align: 'center',
|
|
238
|
+ sortable: false, hidden: false
|
|
239
|
+ },
|
|
240
|
+ {
|
|
241
|
+ index: 'CONT_STT_DT', name: 'contSttDt',
|
|
242
|
+ label: ITP_MSG_LOCALE.label.contSttDt, //계약시작일
|
|
243
|
+ width: '10', fixed: false, align: 'center',
|
|
244
|
+ sortable: false, hidden: false
|
|
245
|
+ },
|
|
246
|
+ {
|
|
247
|
+ index: 'CONT_END_DT', name: 'contEndDt',
|
|
248
|
+ label: ITP_MSG_LOCALE.label.contEndDt, //계약종료일
|
|
249
|
+ width: '10', fixed: false, align: 'center',
|
|
250
|
+ sortable: false, hidden: false
|
|
251
|
+ },
|
|
252
|
+ {
|
|
253
|
+ index: 'UNIT', name: 'unit',
|
|
254
|
+ label: ITP_MSG_LOCALE.label.unit, //기본단위
|
|
255
|
+ width: '9', fixed: false, align: 'center',
|
|
256
|
+ sortable: false, editable: false, formatter: 'select', edittype: 'select',
|
|
257
|
+ editoptions: {value: ITP_COMMON_CD_DSTRBT_COST_UNIT}
|
|
258
|
+ },
|
|
259
|
+ {
|
|
260
|
+ index: 'CURR', name: 'curr',
|
|
261
|
+ label: ITP_MSG_LOCALE.label.curr, //통화
|
|
262
|
+ width: '9', fixed: false, align: 'center',
|
|
263
|
+ sortable: false, editable: false, formatter: 'select', edittype: 'select',
|
|
264
|
+ editoptions: {value: ITP_COMMON_CD_CURR}
|
|
265
|
+ },
|
|
266
|
+ {
|
|
267
|
+ index: 'UNIT_AMT', name: 'unitAmt',
|
|
268
|
+ label: ITP_MSG_LOCALE.label.unitAmt, //단가
|
|
269
|
+ width: '10', fixed: false, align: 'center',
|
|
270
|
+ sortable: true, editable: false, edittype: 'text',
|
|
271
|
+ formatter: 'integer', formatoptions: { defaultValue: '', thousandsSeparator: ',' }
|
|
272
|
+ },
|
|
273
|
+ {
|
|
274
|
+ index: 'UNIT_TARGET_CD', name: 'unitTargetCd',
|
|
275
|
+ label: ITP_MSG_LOCALE.label.unitTargetCd, //대상여부
|
|
276
|
+ width: '10', fixed: false, align: 'center',
|
|
277
|
+ sortable: false, editable: false, formatter: 'select', edittype: 'select',
|
|
278
|
+ editoptions: {value: ITP_COMMON_CD_UNIT_TARGET_CD}
|
|
279
|
+ }
|
199
|
280
|
]
|
200
|
281
|
};
|
201
|
282
|
|
|
@@ -381,25 +462,8 @@ let pageObj = {
|
381
|
462
|
} else if(mode == 'MODIFY') { // 수정
|
382
|
463
|
$('#ITP_AJAX_STINFO06010_DETAIL_CONTAINER').show();
|
383
|
464
|
if(fn_make_user_info.get('authTpCd') === '50') {
|
384
|
|
- //console.log("1111111111111111111111111111");
|
385
|
465
|
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
|
|
-
|
395
|
466
|
} 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
|
|
-
|
403
|
467
|
fn_show_btn_auth_array(['#ITP_BTN_STINFO06010_CANCELLIST', '#ITP_BTN_STINFO06010_SAVE']);
|
404
|
468
|
}
|
405
|
469
|
$('#ITP_BTN_STINFO06010_DETAIL_SEARCH_STORE').attr('disabled', true);
|
|
@@ -459,6 +523,7 @@ let listObj = {
|
459
|
523
|
let param = $('#ITP_FORM_STINFO06010_SEARCH').serializeObject();
|
460
|
524
|
param.gridSize = $.jgrid.defaults.rowNum;
|
461
|
525
|
param.sbrandId = fn_make_user_info.get('brandId');
|
|
526
|
+ param.sstoreId = fn_make_user_info.get('storeId');
|
462
|
527
|
|
463
|
528
|
var option = {
|
464
|
529
|
gridId: STINFO06010_GRID_ID,
|
|
@@ -557,7 +622,7 @@ let modifyObj = {
|
557
|
622
|
|
558
|
623
|
var option = {
|
559
|
624
|
gridId: STINFO06010_DETAIL_GRID_ID,
|
560
|
|
- colModel: gridColModel.detail,
|
|
625
|
+ colModel: fn_make_user_info.get('authTpCd') === '50' ? gridColModel.sdetail : gridColModel.detail,
|
561
|
626
|
param: param,
|
562
|
627
|
url: DOMAIN + API_DETAIL_INFO,
|
563
|
628
|
loadComplete: function(data) {
|
|
@@ -687,7 +752,7 @@ let createObj = {
|
687
|
752
|
console.log(param);
|
688
|
753
|
var option = {
|
689
|
754
|
gridId: STINFO06010_DETAIL_GRID_ID,
|
690
|
|
- colModel: gridColModel.detail,
|
|
755
|
+ colModel: fn_make_user_info.get('authTpCd') === '50' ? gridColModel.sdetail : gridColModel.detail,
|
691
|
756
|
mtype: 'POST',
|
692
|
757
|
param: param,
|
693
|
758
|
url: DOMAIN + API_DETAIL_NEW,
|