浏览代码

구매발주현황 작업중

yhl88 2 年之前
父节点
当前提交
d16a29cc00
共有 2 个文件被更改,包括 23 次插入18 次删除
  1. 18 18
      src/main/webapp/app/pomng/POMNG04010.html
  2. 5 0
      src/main/webapp/js/app/pomng/ITP_POMNG04010.js

+ 18 - 18
src/main/webapp/app/pomng/POMNG04010.html

@@ -6,8 +6,7 @@
6 6
 				<div class="pull-right itp_cicon">
7 7
 					<button type="button" id="ITP_BTN_POMNG04010_SRH" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon "></i>&nbsp;&nbsp;조회&nbsp;&nbsp;</button>
8 8
 					<button type="button" id="ITP_BTN_POMNG04010_MODIFY" class="btn btn-success btn-sm TSA" style="display: inline-block;"><i class="glyphicon "></i>&nbsp;&nbsp;임시저장&nbsp;&nbsp;</button>
9
-					<button type="button" id="ITP_BTN_POMNG04010_NEWREG" class="btn btn-primary btn-sm RQPO" style="display: inline-block;"><i class="glyphicon "></i>&nbsp;&nbsp;발주요청&nbsp;&nbsp;</button>
10
-					<button type="button" id="ITP_BTN_POMNG04010_CANCELLIST" class="btn btn-warning btn-sm CAPO"><i class="glyphicon "></i>&nbsp;&nbsp;발주취소&nbsp;&nbsp;</button>
9
+					<button type="button" id="ITP_BTN_POMNG04010_DELETE" class="btn btn-warning btn-sm CAPO"><i class="glyphicon "></i>&nbsp;&nbsp;발주취소&nbsp;&nbsp;</button>
11 10
 					<button type="button" id="ITP_BTN_POMNG04010_CANCELLIST" class="btn btn-warning btn-sm PRB"><i class="glyphicon "></i>&nbsp;&nbsp;취소/목록&nbsp;&nbsp;</button>
12 11
 				</div>
13 12
 			</div>
@@ -17,42 +16,43 @@
17 16
 						<div class="itp_srh_border fix">
18 17
 							<div class="col-xs-12">
19 18
 								<form id="ITP_FORM_POMNG04010_SEARCH" class="form-horizontal">
19
+                                <input type="hidden" id="ITP_FORM_POMNG04010_SEARCH_BRAND_ID" name="sbrandId" value="">
20 20
 									<div class="form-group">
21 21
 										<div class="col-xs-2 itp_ip itp_noMar">
22
-											<select id="ITP_FORM_POMNG04010_SEARCH_" class="form-control itp_input" name="">
23
-												<option value="A">발주일자*</option>											
24
-											</select>
22
+                                            <label>발주일자 *</label>
25 23
 										</div>										
26 24
 										<div class="col-xs-3 itp_ip itp_noMar">
27 25
 											<div class="input-daterange input-group date">
28
-												<input type="text" id="ITP_FORM_POMNG04010_SEARCH_" class="form-control itp_input" name="" value="">
26
+												<input type="text" id="ITP_FORM_POMNG04010_SEARCH_FROM_DT" class="form-control itp_input" name="fromDt" value="">
29 27
 												<span class="input-group-addon itp_date_to">~</span>
30
-												<input type="text" id="ITP_FORM_POMNG04010_SEARCH_" class="form-control itp_input" name="" value="">
28
+												<input type="text" id="ITP_FORM_POMNG04010_SEARCH_TO_DT" class="form-control itp_input" name="toDt" value="">
31 29
 											</div>
32 30
 										</div>
33 31
 										<div class="col-xs-2 itp_ip itp_noMar">
34
-											<select id="ITP_FORM_POMNG04010_SEARCH_PCH_ODR_ST_CD" class="form-control itp_input" name="spchOdrStCd">
35
-												<option value="A">발주상태</option>											
32
+											<select id="ITP_FORM_POMNG04010_SEARCH_PCH_ODR_ST_CD" data-select-code="PCH_ODR_ST_CD" class="form-control itp_input" name="spchOdrStCd">
33
+												<option value="">발주상태</option>											
36 34
 											</select>
37 35
 										</div>
38 36
 									</div>
39 37
 									<div class="form-group" style="padding-top: 10px; border-top: 1px dotted #ccc;">
40 38
 										<div class="col-xs-2 itp_ip itp_noMar">
41
-											<input type="text" id="ITP_FORM_POMNG04010_SEARCH_SPPLY_NM" class="form-control itp_input" name="sspplyNm" placeholder="공급업체" />
39
+											<input type="text" id="ITP_FORM_POMNG04010_DETAIL_SPPLY_NM" class="form-control itp_input" name="sspplyNm" placeholder="공급업체" readonly/>
40
+											<input type="hidden" id="ITP_FORM_POMNG04010_DETAIL_SPPLY_ID" class="form-control itp_input" name="sspplyId" />
42 41
 										</div>
43 42
 										<div class="col-xs-1 itp_in" style="padding: 0px; width:8%;">
44
-											<button type="button" id="ITP_BTN_POMNG04010_SEARCH_SRH" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon glyphicon-search"></i></button>
45
-											<button type="button" id="ITP_BTN_POMNG04010_SEARCH_MODIFY" class="btn btn-primary btn-sm UPB" style="display: inline-block;"><i class="glyphicon glyphicon-erase"></i></button>
43
+											<button type="button" id="ITP_BTN_POMNG04010_SEARCH_SPPLY_ID" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon glyphicon-search"></i></button>
44
+											<button type="button" id="ITP_BTN_POMNG04010_DELETE_SPPLY_ID" class="btn btn-primary btn-sm UPB" style="display: inline-block;"><i class="glyphicon glyphicon-erase"></i></button>
46 45
 						                </div>
47 46
 										<div class="col-xs-2 itp_ip itp_noMar">
48
-											<input type="text" id="ITP_FORM_POMNG04010_SEARCH_DLV_PLACE" class="form-control itp_input" name="sdlvPlace" placeholder="매장/창고" />
47
+											<input type="text" id="ITP_FORM_POMNG04010_DETAIL_WHS_NM" class="form-control itp_input" name="sdlvPlace" placeholder="매장/창고" readonly/>
48
+											<input type="hidden" id="ITP_FORM_POMNG04010_DETAIL_WHS_ID" class="form-control itp_input" name="swhsId" />											
49 49
 										</div>
50 50
 										<div class="col-xs-1 itp_in" style="padding: 0px; width:10%;">
51
-											<button type="button" id="ITP_BTN_POMNG04010_SEARCH_SRH" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon glyphicon-search"></i></button>
52
-											<button type="button" id="ITP_BTN_POMNG04010_SEARCH_MODIFY" class="btn btn-primary btn-sm UPB" style="display: inline-block;"><i class="glyphicon glyphicon-erase"></i></button>
51
+											<button type="button" id="ITP_BTN_POMNG04010_SEARCH_WHS_ID" class="btn btn-success btn-sm SEB" style="display: inline-block;"><i class="glyphicon glyphicon-search"></i></button>
52
+											<button type="button" id="ITP_BTN_POMNG04010_DELETE_WHS_ID" class="btn btn-primary btn-sm UPB" style="display: inline-block;"><i class="glyphicon glyphicon-erase"></i></button>
53 53
 						                </div>
54 54
 										<div class="col-xs-4 itp_ip itp_noMar">
55
-											<input type="text" id="ITP_FORM_POMNG04010_SEARCH_ITEM_NM" class="form-control itp_input" name="sitemNm" placeholder="품목번호 or 품목명" />
55
+											<input type="text" id="ITP_FORM_POMNG04010_SEARCH_ITEM_NM" class="form-control itp_input" name="sitemNm" placeholder="발주번호 / 품목번호 / 품목명" />
56 56
 										</div>
57 57
 									</div>
58 58
 								</form>
@@ -95,7 +95,7 @@
95 95
 											<label class="col-xs-2 itp_lb">공급업체명</label>
96 96
 											<div class="col-xs-4 itp_ip fnSpplyNm"></div>
97 97
 											<label class="col-xs-2 itp_lb">발주일자</label>
98
-											<div class="col-xs-4 itp_ip fnPoorDt"></div>
98
+											<div class="col-xs-4 itp_ip fnPodrDt"></div>
99 99
 										</div>
100 100
 									</div>
101 101
 									<div class="itp_form_in">	
@@ -107,7 +107,7 @@
107 107
 												<div class="col-xs-4 itp_in fnDtlLcn"></div>
108 108
 											</div>
109 109
 											<label class="col-xs-2 itp_lb">발주 총 금액</label>
110
-											<div class="col-xs-4 itp_ip fnPodrAmt"></div>
110
+											<div class="col-xs-4 itp_ip fnPodrTotalAmt"></div>
111 111
 										</div>
112 112
 									</div>
113 113
 									<div class="itp_form_in">	

+ 5 - 0
src/main/webapp/js/app/pomng/ITP_POMNG04010.js

@@ -464,6 +464,11 @@ let modifyObj = {
464 464
 			let param = $(formId).serializeObject();
465 465
 			param.gridUpdateData = newData;
466 466
 			console.log(JSON.stringify(param));
467
+			var searhFn = function() {
468
+				ITP_FORM_POMNG02010_DETAIL_IS_WRITING = false;
469
+				listObj.grid.search();
470
+			};
471
+			fn_ajax_call(API_POMNG_PO_CANCEL_PCHPO, JSON.stringify(param), searhFn, 'POST');
467 472
 		}
468 473
 	},
469 474
 	empty: {