|
@@ -0,0 +1,171 @@
|
|
1
|
+require(['config'], function() {
|
|
2
|
+ require([
|
|
3
|
+ ], function($) {
|
|
4
|
+ pageObj.init();
|
|
5
|
+ });
|
|
6
|
+});
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+//화면변수
|
|
10
|
+const POMNG04010_GRID_ID = '#ITP_POMNG04010_jqGrid';
|
|
11
|
+const POMNG04010_GRID_LIST = '#ITP_POMNG04010_jqGrid_list';
|
|
12
|
+const POMNG04010_GRID_PAGER = '#ITP_POMNG04010_jqGridPager';
|
|
13
|
+const POMNG04010_GRID_EMPTY = '#ITP_POMNG04010_jqGridEmpty';
|
|
14
|
+
|
|
15
|
+const POMNG04010_GRID_DETAIL_ID = '#ITP_POMNG04010_DETAIL_jqGrid';
|
|
16
|
+const POMNG04010_GRID_DETAIL_LIST = '#ITP_POMNG04010_DETAIL_jqGrid_list';
|
|
17
|
+const POMNG04010_GRID_DETAIL_PAGER = '#ITP_POMNG04010_DETAIL_jqGridPager';
|
|
18
|
+const POMNG04010_GRID_DETAIL_EMPTY = '#ITP_POMNG04010_DETAIL_jqGridEmpty';
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+//API URL
|
|
22
|
+let API_POMNG_PO_DETAIL_GRID_LIST = '/api/pomng/po/detail-grid-list';
|
|
23
|
+let API_POMNG_PO_INFO_PCHODR_ = '/api/pomng/po/info-pchOdr';
|
|
24
|
+let API_POMNG_PO_CANCEL_PCHPO = '/api/pomng/po/cancel-pchPo';
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+//화면 grid ColModel
|
|
28
|
+const gridColModel = {
|
|
29
|
+ list:[
|
|
30
|
+ {
|
|
31
|
+ index: 'VIEW_CD', name: 'viewCd',
|
|
32
|
+ label: ITP_MSG_LOCALE.label.viewCd,
|
|
33
|
+ width: '10', fixed: false, align: 'center',
|
|
34
|
+ sortable: false, hidden: true
|
|
35
|
+ },
|
|
36
|
+ {
|
|
37
|
+ index: 'BRAND_NM', name: 'brandNm',
|
|
38
|
+ label: ITP_MSG_LOCALE.label.brandNm, // 브랜드명
|
|
39
|
+ width: '10', fixed: false, align: 'center',
|
|
40
|
+ sortable: false, hidden: true
|
|
41
|
+ },
|
|
42
|
+ {
|
|
43
|
+ index: 'PCH_PODR_UNQ_NO', name: 'pchPodrUnqNo',
|
|
44
|
+ label: ITP_MSG_LOCALE.label.pchPodrUnqNo, // 발주번호
|
|
45
|
+ width: '10', fixed: false, align: 'center',
|
|
46
|
+ sortable: false, hidden: false
|
|
47
|
+ },
|
|
48
|
+ {
|
|
49
|
+ index: 'PCH_ODR_ST_NM', name: 'pchOdrStNm',
|
|
50
|
+ label: ITP_MSG_LOCALE.label.pchOdrStNm, // 발주상태명
|
|
51
|
+ width: '10', fixed: false, align: 'center',
|
|
52
|
+ sortable: false, hidden: false
|
|
53
|
+ },
|
|
54
|
+ {
|
|
55
|
+ index: 'PODR_DT', name: 'podrDt',
|
|
56
|
+ label: ITP_MSG_LOCALE.label.podrDt, // 발주일자
|
|
57
|
+ width: '10', fixed: false, align: 'center',
|
|
58
|
+ sortable: false, hidden: false
|
|
59
|
+ },
|
|
60
|
+ {
|
|
61
|
+ index: 'LOCATION_NM', name: 'locationNm',
|
|
62
|
+ label: ITP_MSG_LOCALE.label.locationNm, // 입고처
|
|
63
|
+ width: '10', fixed: false, align: 'center',
|
|
64
|
+ sortable: false, hidden: false
|
|
65
|
+ },
|
|
66
|
+ {
|
|
67
|
+ index: 'SPPLY_NM', name: 'spplyNm',
|
|
68
|
+ label: ITP_MSG_LOCALE.label.spplyNm, // 공급업체명
|
|
69
|
+ width: '10', fixed: false, align: 'center',
|
|
70
|
+ sortable: false, hidden: false
|
|
71
|
+ },
|
|
72
|
+ {
|
|
73
|
+ index: 'PODR_TOTAL_AMT', name: 'podrTotalAmt',
|
|
74
|
+ label: ITP_MSG_LOCALE.label.podrTotalAmt, // 총 발주금액
|
|
75
|
+ width: '10', fixed: false, align: 'center',
|
|
76
|
+ sortable: false, hidden: false
|
|
77
|
+ },
|
|
78
|
+ {
|
|
79
|
+ index: 'PODR_ITEM_QTY', name: 'podrItemQty',
|
|
80
|
+ label: ITP_MSG_LOCALE.label.podpodrItemQtyrDt, // 발주품목수
|
|
81
|
+ width: '10', fixed: false, align: 'center',
|
|
82
|
+ sortable: false, hidden: false
|
|
83
|
+ },
|
|
84
|
+ {
|
|
85
|
+ index: 'PODR_MGR_NM', name: 'podrMgrNm',
|
|
86
|
+ label: ITP_MSG_LOCALE.label.podrMgrNm, // 발주담당자
|
|
87
|
+ width: '10', fixed: false, align: 'center',
|
|
88
|
+ sortable: false, hidden: false
|
|
89
|
+ }
|
|
90
|
+ ],
|
|
91
|
+ view: [],
|
|
92
|
+ detail: [
|
|
93
|
+ {
|
|
94
|
+ index: 'VIEW_CD', name: 'viewCd',
|
|
95
|
+ label: ITP_MSG_LOCALE.label.viewCd,
|
|
96
|
+ width: '10', fixed: false, align: 'center',
|
|
97
|
+ sortable: false, hidden: true
|
|
98
|
+ },
|
|
99
|
+ {
|
|
100
|
+ index: 'ITEM_ID', name: 'itemId',
|
|
101
|
+ label: ITP_MSG_LOCALE.label.itemId, // 품목번호
|
|
102
|
+ width: '5', fixed: false, align: 'center',
|
|
103
|
+ sortable: false, hidden: false
|
|
104
|
+ },
|
|
105
|
+ {
|
|
106
|
+ index: 'ITEM_NM', name: 'itemNm',
|
|
107
|
+ label: ITP_MSG_LOCALE.label.itemNm, // 품목명
|
|
108
|
+ width: '5', fixed: false, align: 'center',
|
|
109
|
+ sortable: false, hidden: false
|
|
110
|
+ },
|
|
111
|
+ {
|
|
112
|
+ index: 'UNIT_AMT', name: 'unitAmt',
|
|
113
|
+ label: ITP_MSG_LOCALE.label.unitAmt, // 단가
|
|
114
|
+ width: '5', fixed: false, align: 'center',
|
|
115
|
+ sortable: false, hidden: false
|
|
116
|
+ },
|
|
117
|
+ {
|
|
118
|
+ index: 'UNIT', name: 'unit',
|
|
119
|
+ label: ITP_MSG_LOCALE.label.unit, // 기본단위
|
|
120
|
+ width: '5', fixed: false, align: 'center',
|
|
121
|
+ sortable: false, hidden: false
|
|
122
|
+ },
|
|
123
|
+ {
|
|
124
|
+ index: 'PODR_QTY', name: 'podrQty',
|
|
125
|
+ label: ITP_MSG_LOCALE.label.podrQty, // 발주수량
|
|
126
|
+ width: '5', fixed: false, align: 'center',
|
|
127
|
+ sortable: false, hidden: false
|
|
128
|
+ },
|
|
129
|
+ {
|
|
130
|
+ index: 'PCH_PODR_DTL_NO', name: 'pchPodrDtlNo',
|
|
131
|
+ label: ITP_MSG_LOCALE.label.pchPodrDtlNo, // 발주항번
|
|
132
|
+ width: '5', fixed: false, align: 'center',
|
|
133
|
+ sortable: false, hidden: false
|
|
134
|
+ },
|
|
135
|
+ {
|
|
136
|
+ index: 'PODR_AMT', name: 'podrAmt',
|
|
137
|
+ label: ITP_MSG_LOCALE.label.podrAmt, // 발주금액
|
|
138
|
+ width: '5', fixed: false, align: 'center',
|
|
139
|
+ sortable: false, hidden: false
|
|
140
|
+ },
|
|
141
|
+ {
|
|
142
|
+ index: 'WHS_PASS_QTY', name: 'whsPassQty',
|
|
143
|
+ label: ITP_MSG_LOCALE.label.whsPassQty, // 발주항번
|
|
144
|
+ width: '5', fixed: false, align: 'center',
|
|
145
|
+ sortable: false, hidden: false
|
|
146
|
+ },
|
|
147
|
+ {
|
|
148
|
+ index: 'PCH_PODR_DTL_NO', name: 'pchPodrDtlNo',
|
|
149
|
+ label: ITP_MSG_LOCALE.label.pchPodrDtlNo, // 발주항번
|
|
150
|
+ width: '5', fixed: false, align: 'center',
|
|
151
|
+ sortable: false, hidden: false
|
|
152
|
+ }
|
|
153
|
+ ]
|
|
154
|
+};
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+/*화면공통 Object*/
|
|
159
|
+let pageObj = {
|
|
160
|
+ init: function() {
|
|
161
|
+ this.ui.init();
|
|
162
|
+ this.event.init();
|
|
163
|
+ },
|
|
164
|
+ ui: {
|
|
165
|
+ init: function() {
|
|
166
|
+
|
|
167
|
+ }
|
|
168
|
+ }
|
|
169
|
+};
|
|
170
|
+console.log(CONN_KEY);
|
|
171
|
+console.log(CODE_LIST);
|