|
@@ -20,6 +20,13 @@ const ORDMNG03010_GRID_LIST = '#ITP_ORDMNG03010_jqGrid_list'; //GRID_LIST 선언
|
20
|
20
|
const ORDMNG03010_GRID_PAGER = '#ITP_ORDMNG03010_jqGridPager'; //GRID_PAGER 선언
|
21
|
21
|
const ORDMNG03010_GRID_EMPTY = '#ITP_ORDMNG03010_jqGridEmpty'; //GRID_EMPTY 선언
|
22
|
22
|
|
|
23
|
+function formatPhoneNumber(cellvalue, options, rowObject) {
|
|
24
|
+ cellvalue=cellvalue.replace(/[^0-9]/g, '') // 숫자를 제외한 모든 문자 제거
|
|
25
|
+ .replace(/^(\d{2,3})(\d{3,4})(\d{4})$/, `$1-$2-$3`);
|
|
26
|
+ return cellvalue;
|
|
27
|
+}
|
|
28
|
+
|
|
29
|
+
|
23
|
30
|
/*API URL*/
|
24
|
31
|
let API_DELI_GRID_LIST = '/api/pomng/inoutmng/spply-deli-grid-list';// 목록
|
25
|
32
|
let API_INFO_INV = '/api/pomng/inoutmng/init-spply-inv'; // 상세
|
|
@@ -81,7 +88,7 @@ const gridColModel = {
|
81
|
88
|
{
|
82
|
89
|
index: 'ITEM_CLASS_NM', name: 'itemId', //서버로 전송시 데이터 명 , 데이터명
|
83
|
90
|
label: ITP_MSG_LOCALE.label.itemId, //품목번호
|
84
|
|
- minwidth: 180,
|
|
91
|
+ minwidth: 140,
|
85
|
92
|
width: '11', fixed: false, align: 'center', // cell가로넓이,고정 여부 ,text정렬
|
86
|
93
|
sortable: false, hidden: false //정렬가능 여부,화면표시 여부
|
87
|
94
|
},
|
|
@@ -93,40 +100,29 @@ const gridColModel = {
|
93
|
100
|
sortable: false, hidden: false, //정렬가능 여부,화면표시 여부
|
94
|
101
|
classes: 'ui-ellipsis'
|
95
|
102
|
},
|
96
|
|
- {
|
97
|
|
- index: 'UNIT', name: 'unit', //서버로 전송시 데이터 명 , 데이터명
|
98
|
|
- label: ITP_MSG_LOCALE.label.unit, //단위
|
99
|
|
- minwidth: 80,
|
100
|
|
- width: '6', fixed: false, align: 'center', // cell가로넓이,고정 여부 ,text정렬
|
101
|
|
- sortable: false, hidden: false //정렬가능 여부,화면표시 여부
|
102
|
|
- },
|
103
|
|
- {
|
104
|
|
- index: 'PCH_ITEM_YN', name: 'unitAmt', //서버로 전송시 데이터 명 , 데이터명
|
105
|
|
- label: ITP_MSG_LOCALE.label.unitAmt, //납품단가
|
106
|
|
- minwidth: 80,
|
107
|
|
- width: '6', fixed: false, align: 'right ', // cell가로넓이,고정 여부 ,text정렬
|
108
|
|
- sortable: false, hidden: false, //정렬가능 여부,화면표시 여부
|
109
|
|
- formatter: 'integer', formatoptions: {thousandsSeparator: ','}
|
110
|
|
- },
|
111
|
103
|
{
|
112
|
104
|
index: 'PODR_QTY', name: 'podrQty', //서버로 전송시 데이터 명 , 데이터명
|
113
|
105
|
label: ITP_MSG_LOCALE.label.podrQty, //수주수량
|
114
|
|
- minwidth: 80,
|
115
|
|
- width: '6', fixed: false, align: 'right', // cell가로넓이,고정 여부 ,text정렬
|
|
106
|
+ width: '17', fixed: false, align: 'right', // cell가로넓이,고정 여부 ,text정렬
|
116
|
107
|
sortable: false, hidden: false //정렬가능 여부,화면표시 여부
|
117
|
108
|
},
|
118
|
109
|
{
|
119
|
110
|
index: 'SALE_ITEM_YN', name: 'dlvQty', //서버로 전송시 데이터 명 , 데이터명
|
120
|
111
|
label: ITP_MSG_LOCALE.label.dlvQty, //납품수량
|
121
|
|
- minwidth: 80,
|
122
|
|
- width: '6', fixed: false, align: 'right', // cell가로넓이,고정 여부 ,text정렬
|
|
112
|
+ width: '17', fixed: false, align: 'right', // cell가로넓이,고정 여부 ,text정렬
|
123
|
113
|
sortable: false, hidden: false //정렬가능 여부,화면표시 여부
|
124
|
114
|
},
|
125
|
115
|
{
|
126
|
|
- index: 'DLV_AMT', name: 'dlvAmt', //서버로 전송시 데이터 명 , 데이터명
|
127
|
|
- label: ITP_MSG_LOCALE.label.dlvAmt, //납품단가
|
|
116
|
+ index: 'UNIT', name: 'unit', //서버로 전송시 데이터 명 , 데이터명
|
|
117
|
+ label: ITP_MSG_LOCALE.label.unit, //단위
|
128
|
118
|
minwidth: 80,
|
129
|
|
- width: '6', fixed: false, align: 'right ', // cell가로넓이,고정 여부 ,text정렬
|
|
119
|
+ width: '6', fixed: false, align: 'center', // cell가로넓이,고정 여부 ,text정렬
|
|
120
|
+ sortable: false, hidden: false //정렬가능 여부,화면표시 여부
|
|
121
|
+ },
|
|
122
|
+ {
|
|
123
|
+ index: 'PCH_ITEM_YN', name: 'unitAmt', //서버로 전송시 데이터 명 , 데이터명
|
|
124
|
+ label: ITP_MSG_LOCALE.label.unitAmt, //납품금액
|
|
125
|
+ width: '17', fixed: false, align: 'right ', // cell가로넓이,고정 여부 ,text정렬
|
130
|
126
|
sortable: false, hidden: false, //정렬가능 여부,화면표시 여부
|
131
|
127
|
formatter: 'integer', formatoptions: {thousandsSeparator: ','}
|
132
|
128
|
},
|
|
@@ -151,7 +147,7 @@ const gridColModel = {
|
151
|
147
|
minwidth: 120,
|
152
|
148
|
width: '10', fixed: false, align: 'center', // cell가로넓이,고정 여부 ,text정렬
|
153
|
149
|
sortable: false, hidden: false, //정렬가능 여부,화면표시 여부
|
154
|
|
- editable: true, editoptions: {'data-key-up': 'tel', maxlength: 13}
|
|
150
|
+ formatter: formatPhoneNumber
|
155
|
151
|
}
|
156
|
152
|
]
|
157
|
153
|
};
|
|
@@ -176,8 +172,7 @@ let pageObj = {
|
176
|
172
|
$('#ITP_FORM_ORDMNG03010_SEARCH_DLV_REQ_DT').datepicker('setDate', new Date(now.setMonth(now.getMonth() - 1)));
|
177
|
173
|
$('#ITP_FORM_ORDMNG03010_SEARCH_DLV_CMPLT_DT').datepicker('setDate', new Date());
|
178
|
174
|
}
|
179
|
|
- },
|
180
|
|
-
|
|
175
|
+ },
|
181
|
176
|
event: {
|
182
|
177
|
init: function () {
|
183
|
178
|
this.button(); //button 부르기
|