Bläddra i källkod

메인화면 수정

whakdo963 2 år sedan
förälder
incheckning
5dca8751da
3 ändrade filer med 54 tillägg och 12 borttagningar
  1. 6 1
      src/main/webapp/css/style.css
  2. 12 10
      src/main/webapp/js/app/main.js
  3. 36 1
      src/main/webapp/main.html

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

@@ -126,12 +126,17 @@ a, button {outline:none !important; text-decoration:none !important;}
126 126
 #ITP_MAIN_HEADER .col_3 {background:#eee; width:27%; height:80px; display:inline-block; margin:5px 23px; border-radius:8px;}
127 127
 #ITP_MAIN_HEADER .col_3 .itp_header_label {padding:12px 18px 3px 18px; font-size:17px; font-weight:700;}
128 128
 #ITP_MAIN_HEADER .col_3 .itp_header_result {font-size:18px; font-weight:700; color:blue; text-align: right; padding:4px 18px;}
129
+
130
+#ITP_MAIN_HEADER .col_4 {background:#eee; width:22%; height:80px; display:inline-block; margin:5px 11px; border-radius:8px;}
131
+#ITP_MAIN_HEADER .col_4 .itp_header_label {padding:12px 18px 3px 18px; font-size:17px; font-weight:700;}
132
+#ITP_MAIN_HEADER .col_4 .itp_header_result {font-size:18px; font-weight:700; color:blue; text-align: right; padding:4px 18px;}
133
+
129 134
 #ITP_SIDE_BAR {background:#eee; width:20%; height:100%; float:right; border-radius:15px;}
130 135
 #ITP_SIDE_BAR .itp_side_bar_header {padding-top:15px; text-align:center; font-size:17px;}
131 136
 #ITP_SIDE_BAR .itp_side_bar_note {padding:15px;}
132 137
 #ITP_SIDE_BAR .itp_side_bar_note label {width:100%; margin-bottom:8px;}
133 138
 #ITP_MAIN_GRAPH_AREA {width:80%; height:770px;}
134
-#ITP_MAIN_GRAPH_AREA .itp_graph_area {border:1px solid #000; width:49.8%; height:380px; display:inline-block;}
139
+#ITP_MAIN_GRAPH_AREA .itp_graph_area {width:49.8%; height:380px; display:inline-block;}
135 140
 /* ITP_HEADER */
136 141
 #ITP_HEADER .itp_head {font-family: 'GmarketSansMedium';width:100%; height:50px; position:relative; line-height:50px; z-index:100;}
137 142
 #ITP_HEADER .itp_tit {margin:0; padding:0; line-height:50px; font-size:20px;}

+ 12 - 10
src/main/webapp/js/app/main.js

@@ -49,6 +49,7 @@ function drawChartReq() {
49 49
 
50 50
   var options = {
51 51
     chart: {
52
+    	width:'100%'
52 53
     }
53 54
   };
54 55
 
@@ -60,12 +61,13 @@ function drawChartReq() {
60 61
 //구매발주 그래프
61 62
 function drawChartPodr() {
62 63
 	  var data = google.visualization.arrayToDataTable([
63
-	    ['구매요청', '대기', '반려', '승인'],
64
-	    ['2014', 1000, 400, 200]
64
+	    ['구매발주', '요청', '진행', '취소'],
65
+	    ['2014', 3.5, 1.7, 1.2]
65 66
 	  ]);
66 67
 
67 68
 	  var options = {
68 69
 	    chart: {
70
+	    	width:'100%'
69 71
 	    }
70 72
 	  };
71 73
 
@@ -77,13 +79,14 @@ function drawChartPodr() {
77 79
 //구매요청 상위 품목 그리드
78 80
 function drawChartReqUp() {
79 81
   var data = google.visualization.arrayToDataTable([
80
-    ['Year', 'Sales', 'Expenses', 'Profit'],
81
-    ['항목 1', 1000, 400, 200],
82
+    ['Year', '품목5', '품목4', '품목3','품목2','품목1'],
83
+    ['항목 1', 17, 15, 12, 10, 8],
82 84
   ]);
83 85
 
84 86
   var options = {
85 87
     chart: {
86 88
       title: '구매요청 상위 품목(일주일)',
89
+      width:'100%'
87 90
     },
88 91
     bars: 'horizontal' // Required for Material Bar Charts.
89 92
   };
@@ -98,15 +101,14 @@ function drawChartcore() {
98 101
 
99 102
     var data = google.visualization.arrayToDataTable([
100 103
       ['Task', 'Hours per Day'],
101
-      ['Work',     11],
102
-      ['Eat',      2],
103
-      ['Commute',  2],
104
-      ['Watch TV', 2],
105
-      ['Sleep',    7]
104
+      ['요청', 25],
105
+      ['확인', 65],
106
+      ['반려', 10],
106 107
     ]);
107 108
 
108 109
     var options = {
109
-      title: '정산'
110
+		title: '정산',
111
+		width:'100%'
110 112
     };
111 113
 
112 114
     var chart = new google.visualization.PieChart(document.getElementById('ITP_STTL_GRAPH'));

+ 36 - 1
src/main/webapp/main.html

@@ -145,7 +145,42 @@
145 145
 						<h2 class="hidden">메뉴안내</h2>
146 146
 						<article class="itp_detail">
147 147
 							<div id="ITP_AJAX_SUMMARY_DETAIL_CONTAINER" class="itp_det_in">
148
-								<div id="ITP_MAIN_HEADER">
148
+								<!-- 여기는 공급사 매장 로그인 시 나오는 구간 -->
149
+								<div id="ITP_MAIN_HEADER" style="display: inline-block;">
150
+									<div class="col_4">
151
+										<div class="itp_header_label ">
152
+										구매요청 
153
+										</div>
154
+										<div class="itp_header_result ">
155
+										10건
156
+										</div>
157
+									</div>
158
+									<div class="col_4">
159
+										<div class="itp_header_label ">
160
+										발주진행
161
+										</div>
162
+										<div class="itp_header_result ">
163
+										10건
164
+										</div>
165
+									</div>
166
+									<div class="col_4">
167
+										<div class="itp_header_label ">
168
+										발주완료
169
+										</div>
170
+										<div class="itp_header_result ">
171
+										10건
172
+										</div>
173
+									</div>
174
+									<div class="col_4">
175
+										<div class="itp_header_label ">
176
+										구매가능금액
177
+										</div>
178
+										<div class="itp_header_result ">
179
+										1,000,000원
180
+										</div>
181
+									</div>
182
+								</div>
183
+								<div id="ITP_MAIN_HEADER" style="display: none;">
149 184
 									<div class="col_3">
150 185
 										<div class="itp_header_label ">
151 186
 										구매요청 건수