|
@@ -29,108 +29,126 @@ let API_DETAIL_INFO = '/api/pomng/inoutmng/info-inv'; // 상세
|
29
|
29
|
|
30
|
30
|
/*화면 Grid ColModel*/
|
31
|
31
|
const gridColModel = {
|
32
|
|
- list: [
|
|
32
|
+ list: [ //DLV1 뭔지 물어보기
|
33
|
33
|
{
|
34
|
|
- index: 'Brand_ID', name: 'brandId', //서버로 전송시 데이터 명 , 데이터명
|
35
|
|
- label: ITP_MSG_LOCALE.label.brandId, //브랜드아이디
|
36
|
|
- width: '18', fixed: false, align: 'center', // cell가로넓이,고정 여부 ,text정렬
|
37
|
|
- sortable: false, hidden: true //정렬가능 여부,화면표시 여부
|
|
34
|
+ index: 'Brand_ID', name: 'brandId',
|
|
35
|
+ label: ITP_MSG_LOCALE.label.brandId,
|
|
36
|
+ width: '18', fixed: false, align: 'center',
|
|
37
|
+ sortable: false, hidden: true
|
38
|
38
|
},
|
39
|
39
|
{
|
40
|
|
- index: 'Brand_Nm', name: 'brandNm', //정렬가능 여부,화면표시 여부
|
|
40
|
+ index: 'Brand_Nm', name: 'brandNm',
|
41
|
41
|
label: ITP_MSG_LOCALE.label.brandNm, //브랜드이름
|
42
|
|
- width: '20', fixed: false, align: 'center', // cell가로넓이,고정 여부 ,text정렬
|
43
|
|
- sortable: false, hidden: false //정렬가능 여부,화면표시 여부
|
|
42
|
+ width: '20', fixed: false, align: 'center',
|
|
43
|
+ sortable: false, hidden: false
|
44
|
44
|
},
|
45
|
45
|
{
|
46
|
|
- index: 'DLV_STTMT_NO', name: 'dlvSttmtUnqNo', //서버로 전송시 데이터 명 , 데이터명
|
|
46
|
+ index: 'DLV_STTMT_NO', name: 'dlvSttmtUnqNo',
|
47
|
47
|
label: ITP_MSG_LOCALE.label.dlvSttmtUnqNo, //납품서번호
|
48
|
|
- width: '20', fixed: false, align: 'center', // cell가로넓이,고정 여부 ,text정렬
|
49
|
|
- sortable: false, hidden: false //정렬가능 여부,화면표시 여부
|
|
48
|
+ width: '20', fixed: false, align: 'center',
|
|
49
|
+ sortable: false, hidden: false
|
50
|
50
|
},
|
51
|
51
|
{
|
52
|
|
- index: 'DLV_ST_CD', name: 'dlvStCd', //서버로 전송시 데이터 명 , 데이터명
|
|
52
|
+ index: 'PODR_REG_DT', name: 'pchPodrUnqNo',
|
|
53
|
+ label: '발주번호', //발주번호
|
|
54
|
+ width: '14', fixed: false, align: 'center',
|
|
55
|
+ sortable: false, hidden: false
|
|
56
|
+ },
|
|
57
|
+ {
|
|
58
|
+ index: 'PODR_REG_DT', name: 'spplyNm',
|
|
59
|
+ label: '공급업체', //공급업체
|
|
60
|
+ width: '14', fixed: false, align: 'center',
|
|
61
|
+ sortable: false, hidden: false
|
|
62
|
+ },
|
|
63
|
+ {
|
|
64
|
+ index: 'DLV_ST_CD', name: 'dlvStNm',
|
53
|
65
|
label: '납품상태', //납품서상태
|
54
|
|
- width: '12', fixed: false, align: 'center', // cell가로넓이,고정 여부 ,text정렬
|
55
|
|
- sortable: false, hidden: false //정렬가능 여부,화면표시 여부
|
|
66
|
+ width: '12', fixed: false, align: 'center',
|
|
67
|
+ sortable: false, hidden: false
|
|
68
|
+ },
|
|
69
|
+ {
|
|
70
|
+ index: 'WHS_NM', name: 'whsNm',
|
|
71
|
+ label: '입고처', //납품장소
|
|
72
|
+ width: '6', fixed: false, align: 'center',
|
|
73
|
+ sortable: false, hidden: false
|
56
|
74
|
},
|
57
|
75
|
{
|
58
|
|
- index: 'PODR_REG_DT', name: 'podrRegDt', //서버로 전송시 데이터 명 , 데이터명
|
59
|
|
- label: '수주일자', //수주일자
|
60
|
|
- width: '14', fixed: false, align: 'center', // cell가로넓이,고정 여부 ,text정렬
|
61
|
|
- sortable: false, hidden: false //정렬가능 여부,화면표시 여부
|
|
76
|
+ index: 'PODR_REG_DT', name: 'podrRegDt',
|
|
77
|
+ label: '발주생성일', //발주생성일
|
|
78
|
+ width: '14', fixed: false, align: 'center',
|
|
79
|
+ sortable: false, hidden: false
|
62
|
80
|
},
|
63
|
81
|
{
|
64
|
|
- index: 'DLV_REQ_DT', name: 'dlvReqDt', //서버로 전송시 데이터 명 , 데이터명
|
|
82
|
+ index: 'DLV_REQ_DT', name: 'dlvReqDt',
|
65
|
83
|
label: ITP_MSG_LOCALE.label.dlvReqDt, //납품요청일
|
66
|
|
- width: '14', fixed: false, align: 'center', // cell가로넓이,고정 여부 ,text정렬
|
67
|
|
- sortable: false, hidden: false //정렬가능 여부,화면표시 여부
|
|
84
|
+ width: '14', fixed: false, align: 'center',
|
|
85
|
+ sortable: false, hidden: false
|
|
86
|
+ },
|
|
87
|
+ {
|
|
88
|
+ index: 'DLV_REG_DT', name: 'dlvRegDt',
|
|
89
|
+ label: '납품생성일', //발주생성일
|
|
90
|
+ width: '14', fixed: false, align: 'center',
|
|
91
|
+ sortable: false, hidden: false
|
68
|
92
|
},
|
69
|
93
|
{
|
70
|
|
- index: 'DLV_SCH_DT', name: 'dlvSchDt', //서버로 전송시 데이터 명 , 데이터명
|
|
94
|
+ index: 'DLV_SCH_DT', name: 'dlvSchDt',
|
71
|
95
|
label: ITP_MSG_LOCALE.label.dlvSchDt, //납품예정일
|
72
|
|
- width: '14', fixed: false, align: 'center', // cell가로넓이,고정 여부 ,text정렬
|
73
|
|
- sortable: false, hidden: false //정렬가능 여부,화면표시 여부
|
|
96
|
+ width: '14', fixed: false, align: 'center',
|
|
97
|
+ sortable: false, hidden: false
|
74
|
98
|
},
|
75
|
99
|
{
|
76
|
|
- index: 'DLV_CMPLT_DT', name: 'dlvCmpltDt', //서버로 전송시 데이터 명 , 데이터명
|
77
|
|
- label: ITP_MSG_LOCALE.label.dlvCmpltDt, //납품완료일
|
78
|
|
- width: '10', fixed: false, align: 'center', // cell가로넓이,고정 여부 ,text정렬
|
79
|
|
- sortable: false, hidden: false //정렬가능 여부,화면표시 여부
|
|
100
|
+ index: 'DLV_CMPLT_DT', name: 'dlvCmpltDt',
|
|
101
|
+ label: '납품완료일', //납품완료일
|
|
102
|
+ width: '10', fixed: false, align: 'center',
|
|
103
|
+ sortable: false, hidden: false
|
80
|
104
|
},
|
81
|
105
|
{
|
82
|
|
- index: 'ITEM_ID', name: 'itemId', //서버로 전송시 데이터 명 , 데이터명
|
|
106
|
+ index: 'ITEM_ID', name: 'itemId',
|
83
|
107
|
label: ITP_MSG_LOCALE.label.itemId, //품목번호
|
84
|
|
- width: '11', fixed: false, align: 'center', // cell가로넓이,고정 여부 ,text정렬
|
85
|
|
- sortable: false, hidden: false //정렬가능 여부,화면표시 여부
|
|
108
|
+ width: '11', fixed: false, align: 'center',
|
|
109
|
+ sortable: false, hidden: false
|
86
|
110
|
},
|
87
|
111
|
{
|
88
|
|
- index: 'ITEM_NM', name: 'itemNm', //서버로 전송시 데이터 명 , 데이터명
|
|
112
|
+ index: 'ITEM_NM', name: 'itemNm',
|
89
|
113
|
label: ITP_MSG_LOCALE.label.itemNm, //품목명
|
90
|
|
- width: '10', fixed: false, align: 'center', // cell가로넓이,고정 여부 ,text정렬
|
91
|
|
- sortable: false, hidden: false //정렬가능 여부,화면표시 여부
|
|
114
|
+ width: '10', fixed: false, align: 'center',
|
|
115
|
+ sortable: false, hidden: false
|
92
|
116
|
},
|
93
|
117
|
{
|
94
|
|
- index: 'PODR_QTY', name: 'podrQty', //서버로 전송시 데이터 명 , 데이터명
|
|
118
|
+ index: 'PODR_QTY', name: 'podrQty',
|
95
|
119
|
label: ITP_MSG_LOCALE.label.podrQty, //수주수량
|
96
|
|
- width: '6', fixed: false, align: 'center', // cell가로넓이,고정 여부 ,text정렬
|
97
|
|
- sortable: false, hidden: false //정렬가능 여부,화면표시 여부
|
|
120
|
+ width: '6', fixed: false, align: 'center',
|
|
121
|
+ sortable: false, hidden: false
|
98
|
122
|
},
|
99
|
123
|
{
|
100
|
|
- index: 'DLV_QTY', name: 'dlvQty', //서버로 전송시 데이터 명 , 데이터명
|
|
124
|
+ index: 'DLV_QTY', name: 'dlvQty',
|
101
|
125
|
label: ITP_MSG_LOCALE.label.dlvQty, //납품수량
|
102
|
|
- width: '6', fixed: false, align: 'center', // cell가로넓이,고정 여부 ,text정렬
|
103
|
|
- sortable: false, hidden: false //정렬가능 여부,화면표시 여부
|
104
|
|
- },
|
105
|
|
- {
|
106
|
|
- index: 'UNIT', name: 'unit', //서버로 전송시 데이터 명 , 데이터명
|
107
|
|
- label: ITP_MSG_LOCALE.label.unit, //납품수량
|
108
|
|
- width: '6', fixed: false, align: 'center', // cell가로넓이,고정 여부 ,text정렬
|
109
|
|
- sortable: false, hidden: false //정렬가능 여부,화면표시 여부
|
|
126
|
+ width: '6', fixed: false, align: 'center',
|
|
127
|
+ sortable: false, hidden: false
|
110
|
128
|
},
|
111
|
129
|
{
|
112
|
|
- index: 'UNIT_AMT', name: 'unitAmt', //서버로 전송시 데이터 명 , 데이터명
|
113
|
|
- label: ITP_MSG_LOCALE.label.unitAmt, //납품금액
|
114
|
|
- width: '6', fixed: false, align: 'center', // cell가로넓이,고정 여부 ,text정렬
|
115
|
|
- sortable: false, hidden: false //정렬가능 여부,화면표시 여부
|
|
130
|
+ index: 'UNIT', name: 'unit',
|
|
131
|
+ label: ITP_MSG_LOCALE.label.unit, //단가
|
|
132
|
+ width: '6', fixed: false, align: 'center',
|
|
133
|
+ sortable: false, hidden: true
|
116
|
134
|
},
|
117
|
135
|
{
|
118
|
|
- index: 'WHS_NM', name: 'whsNm', //서버로 전송시 데이터 명 , 데이터명
|
119
|
|
- label: ITP_MSG_LOCALE.label.whsNm, //납품장소
|
120
|
|
- width: '6', fixed: false, align: 'center', // cell가로넓이,고정 여부 ,text정렬
|
121
|
|
- sortable: false, hidden: false //정렬가능 여부,화면표시 여부
|
|
136
|
+ index: 'UNIT_AMT', name: 'unitAmt',
|
|
137
|
+ label: ITP_MSG_LOCALE.label.unitAmt, //단가
|
|
138
|
+ width: '6', fixed: false, align: 'center',
|
|
139
|
+ sortable: false, hidden: false
|
122
|
140
|
},
|
123
|
141
|
{
|
124
|
|
- index: 'DLV_MGR_NM', name: 'dlvMgrNm', //서버로 전송시 데이터 명 , 데이터명
|
|
142
|
+ index: 'DLV_MGR_NM', name: 'dlvMgrNm',
|
125
|
143
|
label: ITP_MSG_LOCALE.label.dlvMgrNm, //납품담당자
|
126
|
|
- width: '8', fixed: false, align: 'center', // cell가로넓이,고정 여부 ,text정렬
|
127
|
|
- sortable: false, hidden: false //정렬가능 여부,화면표시 여부
|
|
144
|
+ width: '8', fixed: false, align: 'center',
|
|
145
|
+ sortable: false, hidden: false
|
128
|
146
|
},
|
129
|
147
|
{
|
130
|
|
- index: 'DLV_MGR_TEL_NO', name: 'dlvMgrTelNo', //서버로 전송시 데이터 명 , 데이터명
|
|
148
|
+ index: 'DLV_MGR_TEL_NO', name: 'dlvMgrTelNo',
|
131
|
149
|
label: ITP_MSG_LOCALE.label.dlvMgrTelNo, //납품담당연락처
|
132
|
|
- width: '10', fixed: false, align: 'center', // cell가로넓이,고정 여부 ,text정렬
|
133
|
|
- sortable: false, hidden: false //정렬가능 여부,화면표시 여부
|
|
150
|
+ width: '10', fixed: false, align: 'center',
|
|
151
|
+ sortable: false, hidden: false
|
134
|
152
|
}
|
135
|
153
|
]
|
136
|
154
|
};
|
|
@@ -151,7 +169,7 @@ let pageObj = {
|
151
|
169
|
// 버튼 권한설정
|
152
|
170
|
fn_proc_btn_auth('POMNG05010');
|
153
|
171
|
|
154
|
|
- // 공통코드 표시 sfasfdasfafas
|
|
172
|
+ // 공통코드 표시
|
155
|
173
|
$('select').each(function() {
|
156
|
174
|
if($(this).data('select-code')) {
|
157
|
175
|
fn_make_select(CODE_LIST, $(this).data('select-code'), $(this).attr('id'));
|
|
@@ -236,7 +254,7 @@ let pageObj = {
|
236
|
254
|
},
|
237
|
255
|
screen: function() {
|
238
|
256
|
$('#ITP_FORM_POMNG05010_SEARCH_BRAND_ID').val(fn_make_user_info.get('brandId'));//input hidden 값 넣기
|
239
|
|
- $('#ITP_FORM_POMNG05010_SEARCH_DTL_GUBUN').val(('dtlGubun'));
|
|
257
|
+ $('#ITP_FORM_POMNG05010_SEARCH_DTL_GUBUN').val('dtlGubun');
|
240
|
258
|
}
|
241
|
259
|
};
|
242
|
260
|
|
|
@@ -252,6 +270,7 @@ let listObj = {
|
252
|
270
|
let param = $('#ITP_FORM_POMNG05010_SEARCH').serializeObject();
|
253
|
271
|
param.gridSize = $.jgrid.defaults.rowNum;
|
254
|
272
|
param.gridPage = $.jgrid.defaults.page;
|
|
273
|
+ console.log(param);
|
255
|
274
|
$(POMNG05010_GRID_ID).setGridParam({'postData': JSON.stringify(param)}).trigger('reloadGrid');
|
256
|
275
|
},
|
257
|
276
|
print: function() {
|