|
@@ -206,12 +206,7 @@
|
|
<div class="card-body">
|
|
<div class="card-body">
|
|
<div class="form-group d-flex flex-column mb-2">
|
|
<div class="form-group d-flex flex-column mb-2">
|
|
<label class="m-0">{{ $formB['FormVars']['Title']['SgroupName'] }}</label>
|
|
<label class="m-0">{{ $formB['FormVars']['Title']['SgroupName'] }}</label>
|
|
-<<<<<<< HEAD
|
|
|
|
<select class="rounded w-100" data-closed="0" id="sgroup-id-select"
|
|
<select class="rounded w-100" data-closed="0" id="sgroup-id-select"
|
|
-=======
|
|
|
|
- {{ $formB['FormVars']['Required']['SgroupName'] }}
|
|
|
|
- <select class="rounded w-100" data-closed="0" id="sgroup-id-select"
|
|
|
|
->>>>>>> 79e2e07b19fcabaccbe8bd7b4812a3a803613323
|
|
|
|
maxlength="{{ $formB['FormVars']['MaxLength']['SgroupName'] }}"
|
|
maxlength="{{ $formB['FormVars']['MaxLength']['SgroupName'] }}"
|
|
{{ $formB['FormVars']['Required']['SgroupName'] }}>
|
|
{{ $formB['FormVars']['Required']['SgroupName'] }}>
|
|
</select>
|
|
</select>
|
|
@@ -366,62 +361,12 @@
|
|
window.onload = async function () {
|
|
window.onload = async function () {
|
|
ThumbArr = [];
|
|
ThumbArr = [];
|
|
make_dynamic_table_css('.sales-table', make_dynamic_table_px(formB['ListVars']['Size']))
|
|
make_dynamic_table_css('.sales-table', make_dynamic_table_px(formB['ListVars']['Size']))
|
|
-<<<<<<< HEAD
|
|
|
|
-=======
|
|
|
|
-
|
|
|
|
- var test = Btype.get_storage_name_and_branch_name()
|
|
|
|
- console.log();
|
|
|
|
- // let sgroup_pick = await get_api_data('sgroup-pick', { Page: [ { Id: parseInt(window.User['SgroupId']) } ] });
|
|
|
|
- // window.User['SgroupName'] = sgroup_pick['data']['Page'][0]['SgroupName'];
|
|
|
|
- // console.log('sgroup_pick : ', sgroup_pick);
|
|
|
|
-
|
|
|
|
- slipInit = await Btype.get_slip_form_init()
|
|
|
|
- // slipInit = @json($slipFormInitCacheData);
|
|
|
|
- formB['SlipCommonSetup'] = slipInit['SlipCommonSetup']
|
|
|
|
- await Btype.create_deal_type_select_box_options(slipInit.DealTypePage)
|
|
|
|
- await Btype.create_vat_type_select_box_options(slipInit.VatRatePage)
|
|
|
|
- await Btype.create_sgroup_select_box_options(slipInit.SgroupPage)
|
|
|
|
- await create_etc_select_box_options(slipInit)
|
|
|
|
- $('#user-txt').val(window.User['NickName'])
|
|
|
|
-
|
|
|
|
- if (formB['SlipCommonSetup']['IsNewRecAutoSlipNo']) {
|
|
|
|
- $('.is-new-rec-auto-slip-no').text('자동채번')
|
|
|
|
- $('#auto-slip-no-txt').prop('disabled', true)
|
|
|
|
- // get_last_slip_no()
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- // slip-search cache 사용
|
|
|
|
- if (formB['SlipCommonSetup']['IsLastSlipGet']) {
|
|
|
|
- console.log('여기 체크');
|
|
|
|
- // slip-search cache 사용
|
|
|
|
- Btype.set_slip_cache_data();
|
|
|
|
-
|
|
|
|
- if (! isEmpty(pickCacheData['query'])) {
|
|
|
|
- let query = JSON.parse(pickCacheData['query'])
|
|
|
|
- await Btype.fetch_slip_form_book(query['QueryVars']['FilterValue']);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- // Btype.set_slip_cache_data();
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- $('#sales-table-body').on('click', 'tr', function() {
|
|
|
|
- // Find the input element with name="bd-cursor-state" within the clicked row
|
|
|
|
- const $bdCursorStateInput = $(this).find('input[name="bd-cursor-state"]');
|
|
|
|
- if ($bdCursorStateInput.length) {
|
|
|
|
- $($bdCursorStateInput).prop('checked', true)
|
|
|
|
- Btype.bd_cursor_click($bdCursorStateInput)
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
- Btype.set_slip_no_btn_disabled()
|
|
|
|
->>>>>>> 79e2e07b19fcabaccbe8bd7b4812a3a803613323
|
|
|
|
$('#sales-date').val(date_to_sting(new Date()))
|
|
$('#sales-date').val(date_to_sting(new Date()))
|
|
$('#stock-date').val(date_to_sting(new Date()))
|
|
$('#stock-date').val(date_to_sting(new Date()))
|
|
Btype.get_storage_name_and_branch_name()
|
|
Btype.get_storage_name_and_branch_name()
|
|
let sgroup_pick = await get_api_data('sgroup-pick', { Page: [ { Id: parseInt(window.User['SgroupId']) } ] });
|
|
let sgroup_pick = await get_api_data('sgroup-pick', { Page: [ { Id: parseInt(window.User['SgroupId']) } ] });
|
|
window.User['SgroupName'] = sgroup_pick['data']['Page'][0]['SgroupName'];
|
|
window.User['SgroupName'] = sgroup_pick['data']['Page'][0]['SgroupName'];
|
|
|
|
|
|
-<<<<<<< HEAD
|
|
|
|
slipInit = await Btype.get_slip_form_init()
|
|
slipInit = await Btype.get_slip_form_init()
|
|
// slipInit = @json($slipFormInitCacheData);
|
|
// slipInit = @json($slipFormInitCacheData);
|
|
formB['SlipCommonSetup'] = slipInit['SlipCommonSetup']
|
|
formB['SlipCommonSetup'] = slipInit['SlipCommonSetup']
|
|
@@ -457,8 +402,6 @@
|
|
});
|
|
});
|
|
Btype.set_slip_no_btn_disabled()
|
|
Btype.set_slip_no_btn_disabled()
|
|
|
|
|
|
-=======
|
|
|
|
->>>>>>> 79e2e07b19fcabaccbe8bd7b4812a3a803613323
|
|
|
|
$('.sales-act').on('click', function () {
|
|
$('.sales-act').on('click', function () {
|
|
switch( $(this).data('value') ) {
|
|
switch( $(this).data('value') ) {
|
|
case 'save': Btype.btn_act_save('#sales-form #frm'); break;
|
|
case 'save': Btype.btn_act_save('#sales-form #frm'); break;
|