|
@ -1050,6 +1050,11 @@ $option_str .= "</tbody></table>"; |
|
|
optionSeatArr.push($(this).html() + "@@"); |
|
|
optionSeatArr.push($(this).html() + "@@"); |
|
|
}) |
|
|
}) |
|
|
$('#option_seat_all').val(optionSeatArr); |
|
|
$('#option_seat_all').val(optionSeatArr); |
|
|
|
|
|
var optionID = []; |
|
|
|
|
|
$("td[class='_optionid']").each(function() { |
|
|
|
|
|
optionID.push($(this).val()); |
|
|
|
|
|
}) |
|
|
|
|
|
$('#optionid_all').val() |
|
|
var optionUnitPriceArr = []; |
|
|
var optionUnitPriceArr = []; |
|
|
$("input[name='option_unit_price']").each(function() { |
|
|
$("input[name='option_unit_price']").each(function() { |
|
|
optionUnitPriceArr.push($(this).val().replace(/[,]+/g, "")); |
|
|
optionUnitPriceArr.push($(this).val().replace(/[,]+/g, "")); |
|
@ -1077,11 +1082,11 @@ $option_str .= "</tbody></table>"; |
|
|
$('#option_relate_facil_all').val(optionRelateFacilArr); |
|
|
$('#option_relate_facil_all').val(optionRelateFacilArr); |
|
|
var mnIdArr = []; |
|
|
var mnIdArr = []; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("input[name='mn_id']").each(function() { |
|
|
$("input[name='mn_id']").each(function() { |
|
|
mnIdArr.push($(this).val()); |
|
|
mnIdArr.push($(this).val()); |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('#mn_id_all').val(mnIdArr); |
|
|
$('#mn_id_all').val(mnIdArr); |
|
|
var mnKindArr = []; |
|
|
var mnKindArr = []; |
|
|
$("select[name='mn_kind']").each(function() { |
|
|
$("select[name='mn_kind']").each(function() { |
|
@ -1264,6 +1269,7 @@ $options = $stmt->fetchAll(PDO::FETCH_ASSOC); |
|
|
<table id="" class="table table-striped table-bordered" style="width:100%"> |
|
|
<table id="" class="table table-striped table-bordered" style="width:100%"> |
|
|
<thead> |
|
|
<thead> |
|
|
<tr class="kind-col"> |
|
|
<tr class="kind-col"> |
|
|
|
|
|
<th scope='col'>ID</th> |
|
|
<th scope="col" nowrap>名稱</th> |
|
|
<th scope="col" nowrap>名稱</th> |
|
|
<th scope="col" nowrap>規格</th> |
|
|
<th scope="col" nowrap>規格</th> |
|
|
<th scope="col" nowrap>備註</th> |
|
|
<th scope="col" nowrap>備註</th> |
|
@ -1275,6 +1281,7 @@ $options = $stmt->fetchAll(PDO::FETCH_ASSOC); |
|
|
<tbody> |
|
|
<tbody> |
|
|
<template x-for="option in options"> |
|
|
<template x-for="option in options"> |
|
|
<tr style="cursor:pointer"> |
|
|
<tr style="cursor:pointer"> |
|
|
|
|
|
<td x-text='option.id' class='_optionid'></td> |
|
|
<td x-text="option.group_name"> </td> |
|
|
<td x-text="option.group_name"> </td> |
|
|
<td x-text="option.spec"></td> |
|
|
<td x-text="option.spec"></td> |
|
|
<td x-text="option.memo"></td> |
|
|
<td x-text="option.memo"></td> |
|
@ -1933,7 +1940,7 @@ if($_SERVER["REQUEST_METHOD"] == "POST"){ |
|
|
<td><input type="text" name="option_unit_price" class="form-control dollar-right" size="8" value="<?php echo number_format($v["item_unit_price"]); ?>" readonly></td> |
|
|
<td><input type="text" name="option_unit_price" class="form-control dollar-right" size="8" value="<?php echo number_format($v["item_unit_price"]); ?>" readonly></td> |
|
|
<td><input type="text" name="option_qty" class="form-control" size="2" maxlength="2" value="<?php echo $v["item_qty"]; ?>"></td> |
|
|
<td><input type="text" name="option_qty" class="form-control" size="2" maxlength="2" value="<?php echo $v["item_qty"]; ?>"></td> |
|
|
<td><input type="text" name="option_price_bp" class="form-control dollar-right" size="8" value="<?php echo number_format($v["item_price_bp"]); ?>" readonly> |
|
|
<td><input type="text" name="option_price_bp" class="form-control dollar-right" size="8" value="<?php echo number_format($v["item_price_bp"]); ?>" readonly> |
|
|
<input type="hidden" name="item_group" value="B"><input type="hidden" name="op_id" value="<?php echo $v["price_id"]; ?>"> |
|
|
<input type="hidden" name="item_group" value="B"><input type="hidden" name="op_id" value="<?php echo $v["id"]; ?>"> |
|
|
</td> |
|
|
</td> |
|
|
<td><input type="text" name="option_memo" class="form-control" size="20" values="<?php echo $v["memo"]; ?>"></td> |
|
|
<td><input type="text" name="option_memo" class="form-control" size="20" values="<?php echo $v["memo"]; ?>"></td> |
|
|
<td name="option_relate_facil"></td> |
|
|
<td name="option_relate_facil"></td> |
|
@ -2478,7 +2485,8 @@ if($_SERVER["REQUEST_METHOD"] == "POST"){ |
|
|
<input type="hidden" name="pay_amount_all" id="pay_amount_all"> |
|
|
<input type="hidden" name="pay_amount_all" id="pay_amount_all"> |
|
|
<input type="hidden" name="pay_period_all" id="pay_period_all"> |
|
|
<input type="hidden" name="pay_period_all" id="pay_period_all"> |
|
|
<input type="hidden" name="vol_no" id="vol_no" value="<?php echo $vol_no; ?>"> |
|
|
<input type="hidden" name="vol_no" id="vol_no" value="<?php echo $vol_no; ?>"> |
|
|
<input type="hidden" name="op_id_all" id="op_id_all"> |
|
|
<!-- <input type="hidden" name="op_id_all" id="op_id_all"> --> |
|
|
|
|
|
<input type="hidden" name="optionid_all" id="optionid_all"> |
|
|
<input type="hidden" name="option_seat_all" id="option_seat_all"> |
|
|
<input type="hidden" name="option_seat_all" id="option_seat_all"> |
|
|
<input type="hidden" name="option_unit_price_all" id="option_unit_price_all"> |
|
|
<input type="hidden" name="option_unit_price_all" id="option_unit_price_all"> |
|
|
<input type="hidden" name="option_qty_all" id="option_qty_all"> |
|
|
<input type="hidden" name="option_qty_all" id="option_qty_all"> |
|
|