|
@@ -132,9 +132,9 @@ let mobContObj = {
|
132
|
132
|
var $li = $('#ITP_LIST_MPOMNG01010_ITEM_AREA .panel-group > .list-row:last');
|
133
|
133
|
$li.find('.fnBrandUnitUnqNo').val(item.brandUnitUnqNo);
|
134
|
134
|
$li.find('.fnItemNm').text(item.itemNm);
|
135
|
|
- $li.find('#ITP_MPOMNG01010_DETAIL_NUM').val(item.pchReqQty);
|
|
135
|
+ $li.find('#ITP_MPOMNG01010_DETAIL_NUM').val(item.pchReqQty ? item.pchReqQty : '1');
|
136
|
136
|
$li.find('.fnUnitAmt').text(CommonObj.currency.add(item.unitAmt));
|
137
|
|
- $li.find('.fnOrdAmt').text(CommonObj.currency.add(Number(item.unitAmt) * Number(item.pchReqQty)));
|
|
137
|
+ $li.find('.fnOrdAmt').text(CommonObj.currency.add(Number(item.unitAmt) * Number(item.pchReqQty ? item.pchReqQty : '1')));
|
138
|
138
|
$('.list-row #ITP_BTN_MPOMNG01010_DETAIL_PLUS')[$li.index()].addEventListener('click', function() { _this.actPlus(this); });
|
139
|
139
|
$('.list-row #ITP_BTN_MPOMNG01010_DETAIL_MINUS')[$li.index()].addEventListener('click', function() { _this.actMinus(this); });
|
140
|
140
|
$('.item-row #ITP_MPOMNG01010_DETAIL_NUM')[$li.index()].addEventListener('input', function() { _this.actInput(this); });
|
|
@@ -222,8 +222,8 @@ let mobContObj = {
|
222
|
222
|
},
|
223
|
223
|
barcode: {
|
224
|
224
|
callApp: function() {
|
225
|
|
- // location.replace('app:scan');
|
226
|
|
- appCallFnBarcode('ITEM221217000006BRD221200038');
|
|
225
|
+ location.replace('app:scan');
|
|
226
|
+ // appCallFnBarcode('ITEM221217000006BRD221200038');
|
227
|
227
|
}
|
228
|
228
|
},
|
229
|
229
|
wishList: {
|
|
@@ -235,17 +235,16 @@ let mobContObj = {
|
235
|
235
|
|
236
|
236
|
function appCallFnBarcode(barcode) {
|
237
|
237
|
var infoFn = function(result) {
|
238
|
|
- console.log(JSON.stringify(result));
|
|
238
|
+ // console.log(JSON.stringify(result));
|
239
|
239
|
if(result) {
|
240
|
240
|
mobContObj.list.attachRow([result]);
|
241
|
241
|
}
|
242
|
242
|
};
|
243
|
243
|
const param = {
|
244
|
|
- 'sBrandId': $('#ITP_FORM_MPOMNG01010_DETAIL #ITP_FORM_MPOMNG01010_DETAIL_BRAND_ID').val(),
|
245
|
|
- 'sStoreId': $('#ITP_FORM_MPOMNG01010_DETAIL #ITP_FORM_MPOMNG01010_DETAIL_STORE_ID').val(),
|
|
244
|
+ 'sBrandId': fn_make_user_info.get('brandId'),
|
|
245
|
+ 'sStoreId': fn_make_user_info.get('storeId'),
|
246
|
246
|
'sBarcode': barcode
|
247
|
247
|
};
|
248
|
|
- // console.log(JSON.stringify(param));
|
249
|
248
|
fn_ajax_call(API_MOBILE_BARCODE, param, infoFn, 'GET');
|
250
|
249
|
}
|
251
|
250
|
|