|
@@ -68,7 +68,7 @@ let mobPageObj = {
|
68
|
68
|
}
|
69
|
69
|
});
|
70
|
70
|
|
71
|
|
- $('select[id="ITP_FORM_MSTOCKMNG02010_LIST_SEARCH_WHS_NM"]').on('change', function() {
|
|
71
|
+ $('select[id="ITP_FORM_MSTOCKMNG02010_LIST_SEARCH_WHS_ID"]').on('change', function() {
|
72
|
72
|
mobContentObj.list.locationList();
|
73
|
73
|
});
|
74
|
74
|
}
|
|
@@ -126,9 +126,9 @@ let mobContentObj = {
|
126
|
126
|
const storeIdVal = $('#ITP_FORM_MSTOCKMNG02010_LIST_SEARCH_STORE_ID').val();
|
127
|
127
|
const param = {sbrandId: brandIdVal, sstoreId: storeIdVal, pagingYn: false};
|
128
|
128
|
fn_ajax_call(API_MOBILE_WHS_GRID_LIST, JSON.stringify(param), function(result) {
|
129
|
|
- fn_make_select_whs(result.gridRows, 'ITP_FORM_MSTOCKMNG02010_LIST_SEARCH_WHS_NM');
|
|
129
|
+ fn_make_select_whs(result.gridRows, 'ITP_FORM_MSTOCKMNG02010_LIST_SEARCH_WHS_ID');
|
130
|
130
|
if(result.gridRecords > 0) {
|
131
|
|
- $('#ITP_FORM_MSTOCKMNG02010_LIST_SEARCH_WHS_NM').trigger('change');
|
|
131
|
+ $('#ITP_FORM_MSTOCKMNG02010_LIST_SEARCH_WHS_ID').trigger('change');
|
132
|
132
|
}
|
133
|
133
|
}, 'POST');
|
134
|
134
|
},
|
|
@@ -136,7 +136,7 @@ let mobContentObj = {
|
136
|
136
|
var _this = this;
|
137
|
137
|
const brandIdVal = $('#ITP_FORM_MSTOCKMNG02010_LIST_SEARCH_BRAND_ID').val();
|
138
|
138
|
const storeIdVal = $('#ITP_FORM_MSTOCKMNG02010_LIST_SEARCH_STORE_ID').val();
|
139
|
|
- const whsIdVal = $('#ITP_FORM_MSTOCKMNG02010_LIST_SEARCH_WHS_NM').val();
|
|
139
|
+ const whsIdVal = $('#ITP_FORM_MSTOCKMNG02010_LIST_SEARCH_WHS_ID').val();
|
140
|
140
|
const param = {brandId: brandIdVal, storeId: storeIdVal, whsId: whsIdVal, pagingYn: false};
|
141
|
141
|
fn_ajax_call(API_MOBILE_LOCATION_LIST, JSON.stringify(param), function(result) {
|
142
|
142
|
fn_make_select_location(result.gridRows, 'ITP_FORM_MSTOCKMNG02010_LIST_SEARCH_LOCATION');
|
|
@@ -214,12 +214,12 @@ let mobContentObj = {
|
214
|
214
|
barcode: {
|
215
|
215
|
callApp: function() {
|
216
|
216
|
location.replace('app:scan');
|
217
|
|
- return;
|
218
|
|
- var formId = '#ITP_FORM_MSTOCKMNG02010_LIST_SEARCH';
|
219
|
|
- itp_fn_form_clear_validate(null, formId);
|
220
|
|
- if (itp_fn_form_event.isValid(formId)) {
|
221
|
|
- location.replace('app:scan');
|
222
|
|
- }
|
|
217
|
+ // return;
|
|
218
|
+ // var formId = '#ITP_FORM_MSTOCKMNG02010_LIST_SEARCH';
|
|
219
|
+ // itp_fn_form_clear_validate(null, formId);
|
|
220
|
+ // if (itp_fn_form_event.isValid(formId)) {
|
|
221
|
+ // location.replace('app:scan');
|
|
222
|
+ // }
|
223
|
223
|
}
|
224
|
224
|
}
|
225
|
225
|
};
|
|
@@ -227,16 +227,18 @@ let mobContentObj = {
|
227
|
227
|
function appCallFnBarcode(barcode) {
|
228
|
228
|
console.log(JSON.stringify(barcode));
|
229
|
229
|
var infoFn = function(result) {
|
|
230
|
+ console.log(JSON.stringify(result));
|
230
|
231
|
if(result) {
|
231
|
232
|
mobContentObj.list.itemAdd([result]);
|
232
|
233
|
}
|
233
|
234
|
};
|
234
|
235
|
const param = {
|
235
|
|
- 'sBrandId': $('#ITP_FORM_MSTOCKMNG02010_LIST_SEARCH #ITP_FORM_MLOANMNG02010_LIST_SEARCH_BRAND_ID').val(),
|
|
236
|
+ 'sBrandId': $('#ITP_FORM_MSTOCKMNG02010_LIST_SEARCH #ITP_FORM_MSTOCKMNG02010_LIST_SEARCH_BRAND_ID').val(),
|
236
|
237
|
'sWhsId': $('#ITP_FORM_MSTOCKMNG02010_LIST_SEARCH #ITP_FORM_MSTOCKMNG02010_LIST_SEARCH_WHS_ID').val(),
|
237
|
238
|
'sLocation': $('#ITP_FORM_MSTOCKMNG02010_LIST_SEARCH #ITP_FORM_MSTOCKMNG02010_LIST_SEARCH_LOCATION').val(),
|
238
|
239
|
'sBarcode': barcode
|
239
|
240
|
};
|
|
241
|
+ console.log(JSON.stringify(param));
|
240
|
242
|
fn_ajax_call(API_MOBILE_BARCODE, param, infoFn, 'GET');
|
241
|
243
|
}
|
242
|
244
|
|