Просмотр исходного кода

Merge branch 'master' of http://106.246.249.162:13000/orderqueen/oqpo-view

isna лет назад: 2
Родитель
Сommit
fddc30e46f

+ 1 - 0
src/main/webapp/app/vendinfo/VENDINFO02010.html

@@ -80,6 +80,7 @@
80 80
 											<div class="col-xs-4 itp_ip fnItemNm"></div>
81 81
 											<label class="col-xs-2 itp_lb">내외자구분</label>
82 82
 											<div class="col-xs-4 itp_ip fnImpDvsnNm"></div>
83
+											<select id="ITP_FORM_VENDINFO02010_VIEW_IMP_DVSN" data-select-code="IMP_DVSN" class="form-control itp_input" name="impDvsn" style="display: none;"></select>
83 84
 										</div>
84 85
 									</div>
85 86
 									<div class="itp_form_in">

+ 2 - 2
src/main/webapp/js/app/pomng/ITP_POMNG03010.js

@@ -208,7 +208,7 @@ const gridColModel = {
208 208
 		{
209 209
 			index: 'PCH_REQ_UNQ_NO', name: 'pchReqUnqNo',
210 210
 			label: ITP_MSG_LOCALE.label.pchReqUnqNo,  //구매요청번호
211
-			width: '16', fixed: false, align: 'center',
211
+			width: '12', fixed: false, align: 'center',
212 212
 			sortable: false, hidden: false, edittype: 'text',
213 213
 			editable: false
214 214
 		},
@@ -231,7 +231,7 @@ const gridColModel = {
231 231
 			label: ITP_MSG_LOCALE.label.itemNm, //품목명
232 232
 			width: '10', fixed: false, align: 'left',
233 233
 			sortable: false, editable: false, edittype: 'text',
234
-			hidden: false
234
+			hidden: false, classes: 'ui-ellipsis'
235 235
 		},
236 236
 		{
237 237
 			index: 'UNIT_AMT', name: 'unitAmt',

+ 1 - 1
src/main/webapp/js/app/popup/biz/ITP_BIZPOP_PO_REJECT.js

@@ -77,7 +77,7 @@ function itp_fn_BIZPOP_PO_REJECT(parentPopFn, args, returnType) {
77 77
 			{
78 78
 				index: 'PCH_REQ_QTY', name: 'pchReqQty',
79 79
 				label: '구매요청수량', //
80
-				width: '10', fixed: false, align: 'right',
80
+				width: '8', fixed: false, align: 'right',
81 81
 				sortable: false, hidden: false,
82 82
 				formatter: 'integer', formatoptions: {thousandsSeparator: ','}
83 83
 			},

+ 69 - 61
src/main/webapp/js/app/vendinfo/ITP_VENDINFO02010.js

@@ -29,61 +29,61 @@ let API_ITEM_INFO 		= '/api/item/info-item';			// 상세
29 29
 /*화면 Grid ColModel*/
30 30
 const gridColModel = {
31 31
 	list: [
32
-			{
33
-				index: 'ITEM_ID', name: 'itemId',  			//서버로 전송시 데이터 명 , 데이터명
34
-				label: ITP_MSG_LOCALE.label.itemId, 		//품목번호
35
-				width: '12', fixed: false, align: 'center',	// cell가로넓이,고정 여부 ,text정렬 
36
-				sortable: false, hidden: false 				//정렬가능 여부,화면표시 여부
37
-			},
38
-			{
39
-				index: 'ITEM_NM', name: 'itemNm',			//서버로 전송시 데이터 명 , 데이터명
40
-				label: ITP_MSG_LOCALE.label.itemNm, 		//품목명
41
-				width: '13', fixed: false, align: 'left',	// cell가로넓이,고정 여부 ,text정렬 
42
-				sortable: false, hidden: false, 			//정렬가능 여부,화면표시 여부
43
-				classes: 'ui-ellipsis'
44
-			},
45
-			{
46
-				index: 'ITEM_TYPE_NM', name: 'itemTypeNm',	//서버로 전송시 데이터 명 , 데이터명
47
-				label: ITP_MSG_LOCALE.label.itemTypeNm, 	//품목유형
48
-				width: '10', fixed: false, align: 'center',	// cell가로넓이,고정 여부 ,text정렬 
49
-				sortable: false, hidden: false 				//정렬가능 여부,화면표시 여부
50
-			},
51
-			{
52
-				index: 'ITEM_CLASS_NM', name: 'itemClassNm',//서버로 전송시 데이터 명 , 데이터명
53
-				label: ITP_MSG_LOCALE.label.itemClassNm, 	//품목분류
54
-				width: '12', fixed: false, align: 'center',	// cell가로넓이,고정 여부 ,text정렬 
55
-				sortable: false, hidden: false 				//정렬가능 여부,화면표시 여부
56
-			},
57
-			{
58
-				index: 'ITEM_ST_NM', name: 'itemStNm',		//서버로 전송시 데이터 명 , 데이터명
59
-				label: "상태", 								//상태
60
-				width: '8', fixed: false, align: 'center',	// cell가로넓이,고정 여부 ,text정렬 
61
-				sortable: false, hidden: false 				//정렬가능 여부,화면표시 여부
62
-			},
63
-			{
64
-				index: 'PODR_PSSBLDVSN_NM', name: 'podrPssblDvsnNm',//서버로 전송시 데이터 명 , 데이터명
65
-				label: ITP_MSG_LOCALE.label.podrPssblDvsnNm, //발주여부
66
-				width: '6', fixed: false, align: 'center',	// cell가로넓이,고정 여부 ,text정렬 
67
-				sortable: false, hidden: false 				//정렬가능 여부,화면표시 여부
68
-			},
69
-			{
70
-				index: 'UNIT', name: 'unit',				//서버로 전송시 데이터 명 , 데이터명		
71
-				label: ITP_MSG_LOCALE.label.unit, 			//기본단위
72
-				width: '6', fixed: false, align: 'center',	// cell가로넓이,고정 여부 ,text정렬 
73
-				sortable: false, hidden: false 				//정렬가능 여부,화면표시 여부
74
-			},
75
-			{
76
-				index: 'PCH_ITEM_YN', name: 'pchItemYn',	//서버로 전송시 데이터 명 , 데이터명
77
-				label: ITP_MSG_LOCALE.label.pchItemYn, 		//구매품목여부
78
-				width: '8', fixed: false, align: 'center',	// cell가로넓이,고정 여부 ,text정렬 
79
-				sortable: false, hidden: false 				//정렬가능 여부,화면표시 여부
80
-			},
81
-			{
82
-				index: 'SALE_ITEM_YN', name: 'saleItemYn',	//서버로 전송시 데이터 명 , 데이터명
83
-				label: ITP_MSG_LOCALE.label.saleItemYn, 	//판매품목여부
84
-				width: '8', fixed: false, align: 'center',	// cell가로넓이,고정 여부 ,text정렬 
85
-				sortable: false, hidden: false 				//정렬가능 여부,화면표시 여부
86
-			}
32
+		{
33
+			index: 'ITEM_ID', name: 'itemId',  			//서버로 전송시 데이터 명 , 데이터명
34
+			label: ITP_MSG_LOCALE.label.itemId, 		//품목번호
35
+			width: '12', fixed: false, align: 'center',	// cell가로넓이,고정 여부 ,text정렬 
36
+			sortable: false, hidden: false 				//정렬가능 여부,화면표시 여부
37
+		},
38
+		{
39
+			index: 'ITEM_NM', name: 'itemNm',			//서버로 전송시 데이터 명 , 데이터명
40
+			label: ITP_MSG_LOCALE.label.itemNm, 		//품목명
41
+			width: '13', fixed: false, align: 'left',	// cell가로넓이,고정 여부 ,text정렬 
42
+			sortable: false, hidden: false, 			//정렬가능 여부,화면표시 여부
43
+			classes: 'ui-ellipsis'
44
+		},
45
+		{
46
+			index: 'ITEM_TYPE_NM', name: 'itemTypeNm',	//서버로 전송시 데이터 명 , 데이터명
47
+			label: ITP_MSG_LOCALE.label.itemTypeNm, 	//품목유형
48
+			width: '10', fixed: false, align: 'center',	// cell가로넓이,고정 여부 ,text정렬 
49
+			sortable: false, hidden: false 				//정렬가능 여부,화면표시 여부
50
+		},
51
+		{
52
+			index: 'ITEM_CLASS_NM', name: 'itemClassNm',//서버로 전송시 데이터 명 , 데이터명
53
+			label: ITP_MSG_LOCALE.label.itemClassNm, 	//품목분류
54
+			width: '12', fixed: false, align: 'center',	// cell가로넓이,고정 여부 ,text정렬 
55
+			sortable: false, hidden: false 				//정렬가능 여부,화면표시 여부
56
+		},
57
+		{
58
+			index: 'ITEM_ST_NM', name: 'itemStNm',		//서버로 전송시 데이터 명 , 데이터명
59
+			label: "상태", 								//상태
60
+			width: '8', fixed: false, align: 'center',	// cell가로넓이,고정 여부 ,text정렬 
61
+			sortable: false, hidden: false 				//정렬가능 여부,화면표시 여부
62
+		},
63
+		{
64
+			index: 'PODR_PSSBLDVSN_NM', name: 'podrPssblDvsnNm',//서버로 전송시 데이터 명 , 데이터명
65
+			label: ITP_MSG_LOCALE.label.podrPssblDvsnNm, //발주여부
66
+			width: '6', fixed: false, align: 'center',	// cell가로넓이,고정 여부 ,text정렬 
67
+			sortable: false, hidden: false 				//정렬가능 여부,화면표시 여부
68
+		},
69
+		{
70
+			index: 'UNIT', name: 'unit',				//서버로 전송시 데이터 명 , 데이터명		
71
+			label: ITP_MSG_LOCALE.label.unit, 			//기본단위
72
+			width: '6', fixed: false, align: 'center',	// cell가로넓이,고정 여부 ,text정렬 
73
+			sortable: false, hidden: false 				//정렬가능 여부,화면표시 여부
74
+		},
75
+		{
76
+			index: 'PCH_ITEM_YN', name: 'pchItemYn',	//서버로 전송시 데이터 명 , 데이터명
77
+			label: ITP_MSG_LOCALE.label.pchItemYn, 		//구매품목여부
78
+			width: '8', fixed: false, align: 'center',	// cell가로넓이,고정 여부 ,text정렬 
79
+			sortable: false, hidden: false 				//정렬가능 여부,화면표시 여부
80
+		},
81
+		{
82
+			index: 'SALE_ITEM_YN', name: 'saleItemYn',	//서버로 전송시 데이터 명 , 데이터명
83
+			label: ITP_MSG_LOCALE.label.saleItemYn, 	//판매품목여부
84
+			width: '8', fixed: false, align: 'center',	// cell가로넓이,고정 여부 ,text정렬 
85
+			sortable: false, hidden: false 				//정렬가능 여부,화면표시 여부
86
+		}
87 87
 	]
88 88
 };
89 89
 /*화면공통 Object*/
@@ -258,6 +258,7 @@ let viewObj = {
258 258
 		}
259 259
 	},
260 260
 	callback: function (result) { 
261
+		console.log(result);
261 262
 		pageObj.switchScreen('VIEW'); //VIEW로 화면 전환시
262 263
 		
263 264
 		var itemClassNm = ""; //itemClassNm 값 없음
@@ -290,7 +291,14 @@ let viewObj = {
290 291
 		$('#ITP_FORM_VENDINFO02010_VIEW .fnItemId').text(result.itemId);
291 292
 		$('#ITP_FORM_VENDINFO02010_VIEW .fnItemTypeNm').text(result.itemTypeNm);
292 293
 		$('#ITP_FORM_VENDINFO02010_VIEW .fnItemNm').text(result.itemClassNm);
293
-		$('#ITP_FORM_VENDINFO02010_VIEW .fnImpDvsnNm').text(result.impDvsnNm);
294
+		$('#ITP_FORM_VENDINFO02010_VIEW #ITP_FORM_VENDINFO02010_VIEW_IMP_DVSN').val(result.impDvsn);
295
+		let impDvsnNm;
296
+		if (result.impDvsn == '') {
297
+        	impDvsnNm = '';
298
+		} else {
299
+			impDvsnNm = $('#ITP_FORM_VENDINFO02010_VIEW_IMP_DVSN option:selected').text(); 
300
+		}
301
+		$('#ITP_FORM_VENDINFO02010_VIEW .fnImpDvsnNm').text(impDvsnNm);
294 302
 		$('#ITP_FORM_VENDINFO02010_VIEW .fnPodrPssblDvsn').text(result.podrPssblDvsnNm);
295 303
 		$('#ITP_FORM_VENDINFO02010_VIEW .fnUnit').text(result.unit);
296 304
 		$('#ITP_FORM_VENDINFO02010_VIEW .fnWeightUnit').text(result.weightUnit);
@@ -304,11 +312,11 @@ let viewObj = {
304 312
 		$('#ITP_FORM_VENDINFO02010_VIEW .fnSaleUnit').text(result.saleUnit);
305 313
 		$('#ITP_FORM_VENDINFO02010_VIEW .fnAssetInfo').text(result.assetInfo);
306 314
 		$('#ITP_FORM_VENDINFO02010_VIEW .fnStckUnit').text(result.stckUnit);
307
-		$('#ITP_FORM_VENDINFO02010_VIEW .fnWeight').text(result.weight);
308
-		$('#ITP_FORM_VENDINFO02010_VIEW .fnVolume').text(result.volume);
309
-		$('#ITP_FORM_VENDINFO02010_VIEW .fnWidth').text(result.width);
310
-		$('#ITP_FORM_VENDINFO02010_VIEW .fnHeight').text(result.height);
311
-		$('#ITP_FORM_VENDINFO02010_VIEW .fnHigh').text(result.high);
315
+		$('#ITP_FORM_VENDINFO02010_VIEW .fnWeight').text(result.weight.toFixed(2));
316
+		$('#ITP_FORM_VENDINFO02010_VIEW .fnVolume').text(result.volume.toFixed(2));
317
+		$('#ITP_FORM_VENDINFO02010_VIEW .fnWidth').text(result.width.toFixed(2));
318
+		$('#ITP_FORM_VENDINFO02010_VIEW .fnHeight').text(result.height.toFixed(2));
319
+		$('#ITP_FORM_VENDINFO02010_VIEW .fnHigh').text(result.high.toFixed(2));
312 320
 		$('#ITP_FORM_VENDINFO02010_VIEW .fnOneBoxQty').text(result.oneBoxQty);
313 321
 		$('#ITP_FORM_VENDINFO02010_VIEW .fnExpryYn').text(result.expryYn);
314 322
 		$('#ITP_FORM_VENDINFO02010_VIEW .fnExpryPeriod').text(result.expryPeriod);

+ 1 - 1
src/main/webapp/mobile/app/main.html

@@ -349,7 +349,7 @@
349 349
 	<aside id="ITP_ASIDE"></aside>
350 350
 	<section>
351 351
 		<div id="ITP_POP_NOTICE" class="popup2 mobile-pop-close" style="display: none;">
352
-			<div class="pop" style="height:340px;">
352
+			<div class="pop" style="height:350px;">
353 353
 				<div class="header">
354 354
 					<div class="header_left">
355 355
 						<label>공지내용</label>

+ 1 - 1
src/main/webapp/mobile/css/style.css

@@ -211,7 +211,7 @@ body.eee {height: 700px; background: #eee;}
211 211
 #ITP_LOGIN .login_popup .itp_del_btn.reg_no {width:50px; right:123px; top:4px;}
212 212
 #ITP_LOGIN .login_popup .itp_del_btn.reg_no button {width:45px; border:none; background:transparent;}
213 213
 #ITP_LOGIN .login_popup .itp_del_btn {position:absolute; top:12px; right:66px; background:transparent;}
214
-#ITP_LOGIN .login_popup .itp_del_btn button {width:25px; border:none; padding:0;}
214
+#ITP_LOGIN .login_popup .itp_del_btn button {width:25px; border:none; padding:0; background:transparent;}
215 215
 #ITP_LOGIN .login_popup .itp_del_btn button img{width:18px;}
216 216
 #ITP_LOGIN .login_popup .num_area .brand_list select {padding-left: 10px; width: 70%; height: 45px; font-size: 0.8rem; border:2px solid #ddd; border-radius:10px; background: url(../img/downarrow.png)no-repeat 95% 50%/20px auto; -webkit-appearance:none; appearance:none;}
217 217
 #ITP_LOGIN .login_popup .num_area .brand_list select option {text-align: left; width: 70%; height: 50px; border: 1px solid #000; font-size: 20px;}