|
@@ -8,22 +8,27 @@ require(['config'], function() {
|
8
|
8
|
|
9
|
9
|
let ITP_POP_GRID_LIST = '/api/pomng/inoutmng/info-inv';
|
10
|
10
|
let ITP_POP_INFO_INV = '/api/pomng/inoutmng/info-inv'; // 상세
|
11
|
|
-function itp_fn_BIZPOP_DLV_STTMT_PRN(parentPopFn, args, schParam, returnType) {
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+function itp_fn_BIZPOP_DLV_STTMT_PRN(parentPopFn, args, returnType) {
|
12
|
15
|
// 공통코드
|
13
|
16
|
// fn_make_select(CODE_LIST, 'CMPY_TYPE_CD', 'ITP_FORM_BIZPOP_DLV_STTMT_PRN_CMPY_TYPE_CD', true, '가맹점타입 선택');
|
14
|
|
-
|
15
|
|
- let itp_BIZPOP_DLV_STTMT_PRN_param = {};
|
|
17
|
+ data: [];
|
|
18
|
+ let itp_BIZPOP_DLV_STTMT_PRN_param = args;
|
16
|
19
|
let itp_BIZPOP_DLV_STTMT_PRN_search = false;
|
17
|
20
|
|
18
|
21
|
const THIS_FORM_ID = '#ITP_FORM_BIZPOP_DLV_STTMT_PRN';
|
19
|
22
|
const THIS_GIRD_ID = '#ITP_BIZPOP_DLV_STTMT_PRN_jqGrid';
|
20
|
23
|
const THIS_GIRD_PAGER = '#ITP_BIZPOP_DLV_STTMT_PRN_jqGridPager';
|
|
24
|
+ console.log(args);
|
|
25
|
+
|
21
|
26
|
let viewObj = {
|
22
|
27
|
init: function (param) {
|
23
|
28
|
this.load(param);
|
24
|
29
|
},
|
25
|
30
|
load: function(param) {
|
26
|
|
- fn_ajax_call(ITP_POP_INFO_INV, param, this.callback, 'GET');
|
|
31
|
+ fn_ajax_call(ITP_POP_INFO_INV, param, this.callback, 'POST');
|
27
|
32
|
},
|
28
|
33
|
callback: function (result) {
|
29
|
34
|
console.log(result);
|
|
@@ -43,7 +48,8 @@ function itp_fn_BIZPOP_DLV_STTMT_PRN(parentPopFn, args, schParam, returnType) {
|
43
|
48
|
$('#ITP_BIZPOP_DLV_STTMT_PRN .fnPoNm').text(result.poNm);
|
44
|
49
|
$('#ITP_BIZPOP_DLV_STTMT_PRN .fnPoOwnerNm').text(result.poOwnerNm);
|
45
|
50
|
$('#ITP_BIZPOP_DLV_STTMT_PRN .fnPoAddr').text(result.poAddr);
|
46
|
|
-
|
|
51
|
+
|
|
52
|
+ $('#ITP_BIZPOP_DLV_STTMT_PRN .fnDlvQty').text(result.dlvQty);
|
47
|
53
|
|
48
|
54
|
},
|
49
|
55
|
};
|
|
@@ -52,9 +58,12 @@ function itp_fn_BIZPOP_DLV_STTMT_PRN(parentPopFn, args, schParam, returnType) {
|
52
|
58
|
console.log(infoParam);
|
53
|
59
|
viewObj.init(infoParam);
|
54
|
60
|
|
|
61
|
+// $('#ITP_FORM_ITP_BIZPOP_DLV_STTMT_PRN_BRAND_ID').val(fn_make_user_info.get('brandId'));
|
|
62
|
+// $('#ITP_FORM_ITP_BIZPOP_DLV_STTMT_PRN_SPPLY_ID').val(fn_make_user_info.get('spplyId'));
|
55
|
63
|
|
56
|
64
|
$('#ITP_FORM_ITP_BIZPOP_DLV_STTMT_PRN_BRAND_ID').val(fn_make_user_info.get('brandId'));
|
57
|
|
- $('#ITP_FORM_ITP_BIZPOP_DLV_STTMT_PRN_SPPLY_ID').val(fn_make_user_info.get('spplyId'));
|
|
65
|
+ $('#ITP_FORM_ITP_BIZPOP_DLV_STTMT_PRN_DLV_STTMT_UNQ_NO').val(fn_make_user_info.get('dlvSttmtUnqNo'));
|
|
66
|
+
|
58
|
67
|
if(args) {
|
59
|
68
|
$('#ITP_FORM_BIZPOP_DLV_STTMT_PRN_CMPY_NM').val(args.brandNm);
|
60
|
69
|
$('#ITP_FORM_ITP_BIZPOP_DLV_STTMT_PRN_FORM_DT').val(args.fromDt);
|
|
@@ -163,11 +172,10 @@ function itp_fn_BIZPOP_DLV_STTMT_PRN(parentPopFn, args, schParam, returnType) {
|
163
|
172
|
postData: JSON.stringify(param),
|
164
|
173
|
url: DOMAIN + ITP_POP_GRID_LIST,
|
165
|
174
|
pager: THIS_GIRD_PAGER,
|
166
|
|
- multiselect: true,
|
|
175
|
+
|
167
|
176
|
loadComplete: function(data) {
|
168
|
|
- $('#ITP_BIZPOP_DLV_STTMT_PRN .fnDlvSttmtUnqNo').text(result.dlvSttmtUnqNo);
|
169
|
|
- //여기에 데이터
|
170
|
|
- itp_fn_grid_load_complete(data, THIS_GIRD_ID, true, undefined, 'BIZPOP_DLV_STTMT_PRN', itp_BIZPOP_DLV_STTMT_PRN_search, itp_fn_BIZPOP_DLV_STTMT_PRN_empty, true, data.invPoInfoList, false);
|
|
177
|
+ //여기 데이터
|
|
178
|
+ itp_fn_grid_load_complete(colModel,THIS_GIRD_ID.jqGrid,data, THIS_GIRD_ID, true, undefined, 'BIZPOP_DLV_STTMT_PRN', itp_BIZPOP_DLV_STTMT_PRN_search, itp_fn_BIZPOP_DLV_STTMT_PRN_empty, true, data.invDtlInfoList, false);
|
171
|
179
|
},
|
172
|
180
|
loadError: function(jqXHR, textStatus, errorThrown) {
|
173
|
181
|
itp_fn_grid_load_error(jqXHR, textStatus, errorThrown);
|