@ -410,7 +410,7 @@ function selFacil(o) {
fp.find('input[name=item_spec]').val(data.model);
fp.find('input[name=item_spec]').val(data.model);
fp.find('input[name=item_weight]').val(data.weight);
fp.find('input[name=item_weight]').val(data.weight);
fp.find('input[name=item_group]').val(data.group);
fp.find('input[name=item_group]').val(data.group);
fp.find('input[name=item_price]').val(data.iamt.substr(1)*fp.find('input[name=item_qty]').val());
// fp.find('input[name=item_price]').val(data.iamt.substr(1)*fp.find('input[name=item_qty]').val());
//fp.find('input[name=gross_profit]').val(($('#price_total').val().replace(/[,]+/g,"")-data.iamt.substr(1))*fp.find('input[name=item_qty]').val());
//fp.find('input[name=gross_profit]').val(($('#price_total').val().replace(/[,]+/g,"")-data.iamt.substr(1))*fp.find('input[name=item_qty]').val());
fp.find('input[name=gross_profit]').val(fp.find('input[name=item_price]').val());
fp.find('input[name=gross_profit]').val(fp.find('input[name=item_price]').val());
dataFormat();
dataFormat();
@ -603,7 +603,7 @@ $(function(){
$(this).val($(this).val().replace(/\D/g, "").replace(/\B(?=(\d{3})+(?!\d))/g, ","));
$(this).val($(this).val().replace(/\D/g, "").replace(/\B(?=(\d{3})+(?!\d))/g, ","));
dataFormat();
dataFormat();
});
});
$('#tb1').on('keyup', 'input[name=fp_numberofstop], input[name=item_qty], input[name=item_price]', function(){
$('#tb1').on('keyup', 'input[name=fp_numberofstop], input[name=item_qty], input[name=item_price], input[name=item_price_ct] ', function(){
//$("input[name='item_price']").keyup(function(){
//$("input[name='item_price']").keyup(function(){
$(this).val($(this).val().replace(/\D/g, "").replace(/\B(?=(\d{3})+(?!\d))/g, ","));
$(this).val($(this).val().replace(/\D/g, "").replace(/\B(?=(\d{3})+(?!\d))/g, ","));
//});
//});
@ -673,6 +673,7 @@ $(function(){
});
});
$('#btnadd4').click(function(){
$('#btnadd4').click(function(){
$('#tb4 tr:last').prev().after($("tr[name='maintain_templ']").last().clone().find('input,select').val('').end());
$('#tb4 tr:last').prev().after($("tr[name='maintain_templ']").last().clone().find('input,select').val('').end());
$('#tb4 tr:last').prev().find('td[name=mn_relate_facil]').html('');
//$('#tb4 tr:last').prev().find('td').first().html($("tr[name='maintain_templ']").length);
//$('#tb4 tr:last').prev().find('td').first().html($("tr[name='maintain_templ']").length);
//$('#tb4 tr:last').prev().find('td').eq(1).find('a').attr('id', $("tr[name='maintain_templ']").length);
//$('#tb4 tr:last').prev().find('td').eq(1).find('a').attr('id', $("tr[name='maintain_templ']").length);
});
});
@ -741,15 +742,17 @@ $(function(){
$('#tb2').on('click', 'a[name=btnfaci]', function(){
$('#tb2').on('click', 'a[name=btnfaci]', function(){
var jobj = $(this); // 父視窗
var jobj = $(this); // 父視窗
if (jobj.closest('td').parent().find('a[name=option_href]').html() != '點選') {
if (jobj.closest('td').parent().find('a[name=option_href]').html() != '點選') {
var k=1;
$("input[name=item_spec]").each(function(){
$("input[name=item_spec]").each(function(){
if ($(this).val() == '') return;
if ($(this).val() == '') return;
var objInput = document.createElement("input");
var objInput = document.createElement("input");
objInput.setAttribute("type", "checkbox");
objInput.setAttribute("type", "checkbox");
objInput.setAttribute("name", "sub_faci");
objInput.setAttribute("name", "sub_faci");
objInput.setAttribute("value", $(this).val());
objInput.setAttribute("value", k+'.'+ $(this).val());
$("#optionFaciModal .modal-body").append(objInput);
$("#optionFaciModal .modal-body").append(objInput);
$("#optionFaciModal .modal-body").append($(this).val());
$("#optionFaciModal .modal-body").append(k+'.'+ $(this).val());
$("#optionFaciModal .modal-body").append("< br > ");
$("#optionFaciModal .modal-body").append("< br > ");
k++;
});
});
$("#optionFaciModal .modal-body").append("< p > < button type = 'button' name = 'btnpost' data-dismiss = 'modal' aria-label = 'Close' > < span aria-hidden = 'true' > 確定< / span > < / button > < / p > ");
$("#optionFaciModal .modal-body").append("< p > < button type = 'button' name = 'btnpost' data-dismiss = 'modal' aria-label = 'Close' > < span aria-hidden = 'true' > 確定< / span > < / button > < / p > ");
$("#optionFaciModal").modal('show');
$("#optionFaciModal").modal('show');
@ -763,11 +766,44 @@ $(function(){
jobj.closest('td').parent().find('td[name=option_relate_facil]').html(str);
jobj.closest('td').parent().find('td[name=option_relate_facil]').html(str);
});
});
} else {
} else {
alert("請先新增OPTION。 ");
alert("請先新增OPTION");
return false;
return false;
}
}
$("input[name=pay_scale]").keyup(function(){
});
});
$('#tb4').on('click', 'a[name=btnfaci]', function(){
var jobj = $(this); // 父視窗
if (jobj.closest('td').parent().find('select[name=mn_kind]').val() != '') {
var k=1;
$("input[name=item_spec]").each(function(){
if ($(this).val() == '') return;
var objInput = document.createElement("input");
objInput.setAttribute("type", "checkbox");
objInput.setAttribute("name", "sub_faci");
//objInput.setAttribute("value", $(this).val()+"#"+$(this).closest('td').parent().find('input[name=item_qty]').val());
objInput.setAttribute("value", k+'.'+$(this).val());
$("#optionFaciModal .modal-body").append(objInput);
$("#optionFaciModal .modal-body").append(k+'.'+$(this).val());
$("#optionFaciModal .modal-body").append("< br > ");
k++;
});
$("#optionFaciModal .modal-body").append("< p > < button type = 'button' name = 'btnpost' data-dismiss = 'modal' aria-label = 'Close' > < span aria-hidden = 'true' > 確定< / span > < / button > < / p > ");
$("#optionFaciModal").modal('show');
var str = "";
$("button[name=btnpost]").click(function(){
$('input[name=sub_faci]').each(function(){
if ($(this).prop('checked')) {
str += $(this).val()+"< br > ";
}
});
jobj.closest('td').parent().find('td[name=mn_relate_facil]').html(str);
});
} else {
alert("請先在左測下拉欲保固延長的電梯");
jobj.closest('td').parent().find('select[name=mn_kind]').eq(0).focus();
return false;
}
});
$("input[name=pay_scale]").keyup(function(){
$(this).closest('td').next('td').find('input[name=pay_amount]').val(commafy(($("#price_total").val().replace(/[,]+/g,"")/100*$(this).val()).toFixed(0)));
$(this).closest('td').next('td').find('input[name=pay_amount]').val(commafy(($("#price_total").val().replace(/[,]+/g,"")/100*$(this).val()).toFixed(0)));
var payAllScale = 0;
var payAllScale = 0;
var payAllAmt = 0;
var payAllAmt = 0;
@ -970,6 +1006,9 @@ $(function(){
var mnMemoArr = [];
var mnMemoArr = [];
$("input[name='mn_memo']").each(function(){ mnMemoArr.push($(this).val()+"@@"); })
$("input[name='mn_memo']").each(function(){ mnMemoArr.push($(this).val()+"@@"); })
$('#mn_memo_all').val(mnMemoArr);
$('#mn_memo_all').val(mnMemoArr);
var mnRelateFacilArr = [];
$("td[name='mn_relate_facil']").each(function(){ mnRelateFacilArr.push($(this).html()); })
$('#mn_relate_facil_all').val(mnRelateFacilArr);
var exNoteArr = [];
var exNoteArr = [];
$("input[name='except_note']").each(function(){ exNoteArr.push($(this).val()); })
$("input[name='except_note']").each(function(){ exNoteArr.push($(this).val()); })
$('#except_note_all').val(exNoteArr);
$('#except_note_all').val(exNoteArr);
@ -1008,13 +1047,25 @@ $(function(){
var rv = true;
var rv = true;
$("td[name='option_relate_facil']").each(function(){
$("td[name='option_relate_facil']").each(function(){
if ($(this).html() == "") {
if ($(this).html() == "") {
alert("【所屬電梯】資料空白!\n請至OPTION加價區塊點選紅色按鈕「電梯」並勾選項目。");
if (!confirm("【所屬電梯】資料空白!\n確認要送出?")) {
location.href = '#btnadd2';
//alert("【所屬電梯】資料空白!\n請至OPTION加價區塊點選紅色按鈕「電梯」並勾選項目。");
return rv = false;
location.href = '#btnadd2';
return rv = false;
}
}
}
});
});
if ((rv === false)) return rv;
if ((rv === false)) return rv;
var rv2 = true;
$("td[name='mn_relate_facil']").each(function(){
if ($(this).closest('td').parent().find('select[name=mn_kind').val() != '' & & $(this).html() == "") {
alert("【所屬電梯】資料空白!\n請至 保固延長區 點選紅色按鈕「電梯」並勾選項目。");
location.href = '#btnadd4';
return rv2 = false;
}
});
if ((rv2 === false)) return rv2;
if ($("#pay_all_amount").val() != $("#price_total").val()) {
if ($("#pay_all_amount").val() != $("#price_total").val()) {
alert("【付款辦法】金額合計有誤!");
alert("【付款辦法】金額合計有誤!");
$("input[name=pay_scale]").eq(0).trigger( "focus" );
$("input[name=pay_scale]").eq(0).trigger( "focus" );
@ -1128,7 +1179,7 @@ if($_SERVER["REQUEST_METHOD"] == "POST"){
< table id = "tb1" class = "table table-bordered" >
< table id = "tb1" class = "table table-bordered" >
< thead >
< thead >
< tr >
< tr >
< th colspan = "9 " > 整機單價< a href = "javascript:void(0);" id = "btnadd" class = "btn btn-primary btn-sm" > +< / a > < / th >
< th colspan = "10 " > 整機單價< a href = "javascript:void(0);" id = "btnadd" class = "btn btn-primary btn-sm" > +< / a > < / th >
< / tr >
< / tr >
< tr >
< tr >
<!-- <th nowrap>項次</th> -->
<!-- <th nowrap>項次</th> -->
@ -1137,10 +1188,11 @@ if($_SERVER["REQUEST_METHOD"] == "POST"){
< th > 停數< / th >
< th > 停數< / th >
< th > 速度< / th >
< th > 速度< / th >
< th > 開門方式< / th >
< th > 開門方式< / th >
< th > 規格< / th >
< th class = "star" > 規格< / th >
< th > 單價< / th >
< th > 單價< / th >
< th > 數量< / th >
< th > 數量< / th >
< th > 複價< / th >
< th > 複價< / th >
< th > 售價< / th >
<!--
<!--
< th style = "width:11%" > 金額(含稅)< / th >
< th style = "width:11%" > 金額(含稅)< / th >
< th > 價審%< / th >
< th > 價審%< / th >
@ -1341,7 +1393,7 @@ if($_SERVER["REQUEST_METHOD"] == "POST"){
< / select >
< / select >
< / td >
< / td >
< td >
< td >
< select name = "item_op" class = "form-control" >
< select name = "item_op" class = "form-control" required >
< option value = "CO" <?php if ( $v [ "item_op" ] == "CO" ) echo " selected" ; ?> > CO</ option >
< option value = "CO" <?php if ( $v [ "item_op" ] == "CO" ) echo " selected" ; ?> > CO</ option >
< option value = "2S" <?php if ( $v [ "item_op" ] == "2S" ) echo " selected" ; ?> > 2S</ option >
< option value = "2S" <?php if ( $v [ "item_op" ] == "2S" ) echo " selected" ; ?> > 2S</ option >
< option value = "2U" <?php if ( $v [ "item_op" ] == "2U" ) echo " selected" ; ?> > 2U</ option >
< option value = "2U" <?php if ( $v [ "item_op" ] == "2U" ) echo " selected" ; ?> > 2U</ option >
@ -1352,10 +1404,10 @@ if($_SERVER["REQUEST_METHOD"] == "POST"){
< td >< input type = "text" name = "item_spec" class = "form-control" value = " <?php echo $v [ "item_spec" ]; ?> " readonly ></ td >
< td >< input type = "text" name = "item_spec" class = "form-control" value = " <?php echo $v [ "item_spec" ]; ?> " readonly ></ td >
< td >< input type = "text" name = "item_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 = "item_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 = "item_qty" class = "form-control" size = "2" maxlength = "2" value = " <?php echo $v [ "item_qty" ]; ?> " >< input type = "hidden" name = "item_qty_ori" value = " <?php echo $v [ "item_qty" ]; ?> " ></ td >
< td >< input type = "text" name = "item_qty" class = "form-control" size = "2" maxlength = "2" value = " <?php echo $v [ "item_qty" ]; ?> " >< input type = "hidden" name = "item_qty_ori" value = " <?php echo $v [ "item_qty" ]; ?> " ></ td >
< td >< input type = "text" name = "item_price_bp" class = "form-control dollar-right" style = "width:80%;" value = " <?php echo number_format ( $v [ "item_price_bp" ]); ?> " readonly >
< td >< input type = "text" name = "item_price_bp" class = "form-control dollar-right" size = "12" value = " <?php echo number_format ( $v [ "item_price_bp" ]); ?> " readonly ></ td >
< td nowrap >< input type = "text" name = "item_price_ct" class = "form-control dollar-right" size = "12" value = " <?php echo $v [ "spec_price" ] * $v [ "spec_num" ]; ?> " required >
< input type = "hidden" name = "item_group" value = "A" > < input type = "hidden" name = "fp_id" >
< input type = "hidden" name = "item_group" value = "A" > < input type = "hidden" name = "fp_id" >
< input type = "hidden" name = "item_price" > < input type = "hidden" name = "gross_profit" >
< input type = "hidden" name = "item_price" > < input type = "hidden" name = "gross_profit" >
< input type = "hidden" name = "item_price_ct" value = " <?php echo $v [ "spec_price" ] * $v [ "spec_num" ]; ?> " >
< input type = "hidden" name = "item_weight" >
< input type = "hidden" name = "item_weight" >
< a href = "javascript:void(0);" name = "btndel" class = "btn btn-danger btn-sm" > X< / a >
< a href = "javascript:void(0);" name = "btndel" class = "btn btn-danger btn-sm" > X< / a >
< / td >
< / td >
@ -1555,7 +1607,7 @@ if($_SERVER["REQUEST_METHOD"] == "POST"){
< / select >
< / select >
< / td >
< / td >
< td >
< td >
< select name = "item_op" class = "form-control" >
< select name = "item_op" class = "form-control" required >
< option value = "CO" <?php if ( $v [ "op" ] == "CO" ) echo " selected" ; ?> > CO</ option >
< option value = "CO" <?php if ( $v [ "op" ] == "CO" ) echo " selected" ; ?> > CO</ option >
< option value = "2S" <?php if ( $v [ "op" ] == "2S" ) echo " selected" ; ?> > 2S</ option >
< option value = "2S" <?php if ( $v [ "op" ] == "2S" ) echo " selected" ; ?> > 2S</ option >
< option value = "2U" <?php if ( $v [ "op" ] == "2U" ) echo " selected" ; ?> > 2U</ option >
< option value = "2U" <?php if ( $v [ "op" ] == "2U" ) echo " selected" ; ?> > 2U</ option >
@ -1566,10 +1618,10 @@ if($_SERVER["REQUEST_METHOD"] == "POST"){
< td > < input type = "text" name = "item_spec" class = "form-control" readonly > < / td >
< td > < input type = "text" name = "item_spec" class = "form-control" readonly > < / td >
< td >< input type = "text" name = "item_unit_price" class = "form-control dollar-right" size = "8" value = " <?php echo $v [ "spec_price" ]; ?> " readonly ></ td >
< td >< input type = "text" name = "item_unit_price" class = "form-control dollar-right" size = "8" value = " <?php echo $v [ "spec_price" ]; ?> " readonly ></ td >
< td >< input type = "text" name = "item_qty" class = "form-control" size = "2" maxlength = "2" value = " <?php echo $v [ "spec_num" ]; ?> " >< input type = "hidden" name = "item_qty_ori" value = " <?php echo $v [ "spec_num" ]; ?> " ></ td >
< td >< input type = "text" name = "item_qty" class = "form-control" size = "2" maxlength = "2" value = " <?php echo $v [ "spec_num" ]; ?> " >< input type = "hidden" name = "item_qty_ori" value = " <?php echo $v [ "spec_num" ]; ?> " ></ td >
< td >< input type = "text" name = "item_price_bp" class = "form-control dollar-right" style = "width:80%;" value = " <?php echo number_format ( $v [ "spec_price" ] * $v [ "spec_num" ]); ?> " readonly >
< td >< input type = "text" name = "item_price_bp" class = "form-control dollar-right" size = "12" value = " <?php echo number_format ( $v [ "spec_price" ] * $v [ "spec_num" ]); ?> " readonly ></ td >
< td nowrap >< input type = "text" name = "item_price_ct" class = "form-control dollar-right" size = "12" value = " <?php echo $v [ "spec_price" ] * $v [ "spec_num" ]; ?> " required >
< input type = "hidden" name = "item_group" value = "A" > < input type = "hidden" name = "fp_id" >
< input type = "hidden" name = "item_group" value = "A" > < input type = "hidden" name = "fp_id" >
< input type = "hidden" name = "item_price" > < input type = "hidden" name = "gross_profit" >
< input type = "hidden" name = "item_price" > < input type = "hidden" name = "gross_profit" >
< input type = "hidden" name = "item_price_ct" value = " <?php echo $v [ "spec_price" ] * $v [ "spec_num" ]; ?> " >
< input type = "hidden" name = "item_weight" >
< input type = "hidden" name = "item_weight" >
< a href = "javascript:void(0);" name = "btndel" class = "btn btn-danger btn-sm" > X< / a >
< a href = "javascript:void(0);" name = "btndel" class = "btn btn-danger btn-sm" > X< / a >
< / td >
< / td >
@ -1663,7 +1715,7 @@ if($_SERVER["REQUEST_METHOD"] == "POST"){
< / select >
< / select >
< / td >
< / td >
< td >
< td >
< select name = "item_op" class = "form-control" >
< select name = "item_op" class = "form-control" required >
< option value = "CO" > CO< / option >
< option value = "CO" > CO< / option >
< option value = "2S" > 2S< / option >
< option value = "2S" > 2S< / option >
< option value = "2U" > 2U< / option >
< option value = "2U" > 2U< / option >
@ -1674,10 +1726,10 @@ if($_SERVER["REQUEST_METHOD"] == "POST"){
< td > < input type = "text" name = "item_spec" class = "form-control" readonly > < / td >
< td > < input type = "text" name = "item_spec" class = "form-control" readonly > < / td >
< td > < input type = "text" name = "item_unit_price" class = "form-control dollar-right" size = "8" readonly > < / td >
< td > < input type = "text" name = "item_unit_price" class = "form-control dollar-right" size = "8" readonly > < / td >
< td > < input type = "text" name = "item_qty" class = "form-control" size = "2" maxlength = "2" > < / td >
< td > < input type = "text" name = "item_qty" class = "form-control" size = "2" maxlength = "2" > < / td >
< td > < input type = "text" name = "item_price_bp" class = "form-control dollar-right" style = "width:80%;" readonly >
< td > < input type = "text" name = "item_price_bp" class = "form-control dollar-right" size = "12" readonly > < / td >
< td nowrap > < input type = "text" name = "item_price_ct" class = "form-control dollar-right" size = "12" required >
< input type = "hidden" name = "item_group" value = "A" > < input type = "hidden" name = "fp_id" >
< input type = "hidden" name = "item_group" value = "A" > < input type = "hidden" name = "fp_id" >
< input type = "hidden" name = "item_price" > < input type = "hidden" name = "gross_profit" >
< input type = "hidden" name = "item_price" > < input type = "hidden" name = "gross_profit" >
< input type = "hidden" name = "item_price_ct" value = " <?php if ( isset ( $v [ "spec_price" ]) && isset ( $v [ "spec_num" ])) echo $v [ "spec_price" ] * $v [ "spec_num" ]; else echo '0' ; ?> " >
< input type = "hidden" name = "item_weight" >
< input type = "hidden" name = "item_weight" >
< a href = "javascript:void(0);" name = "btndel" class = "btn btn-danger btn-sm" > X< / a >
< a href = "javascript:void(0);" name = "btndel" class = "btn btn-danger btn-sm" > X< / a >
< / td >
< / td >
@ -1688,7 +1740,7 @@ if($_SERVER["REQUEST_METHOD"] == "POST"){
?>
?>
< tr >
< tr >
< td colspan = "8" > 小計< / td >
< td colspan = "8" > 小計< / td >
< td > < input type = "text" name = "amt" id = "amt" class = "form-control dollar-right" style = "width:80%; " readonly > < / td >
< td colspan = "2" > < input type = "text" name = "amt" id = "amt" class = "form-control dollar-right" size = "12 " readonly > < / td >
< / tr >
< / tr >
< / tbody >
< / tbody >
< / table >
< / table >
@ -1706,7 +1758,7 @@ if($_SERVER["REQUEST_METHOD"] == "POST"){
< th > 數量< / th >
< th > 數量< / th >
< th > 複價< / th >
< th > 複價< / th >
< th > 備註< / th >
< th > 備註< / th >
< th class = "star" > < div data-toggle = "tooltip" data-placement = "auto" title = "每次選完OPTION後,請點選右方紅色按鈕「電梯」來勾選電梯規格 " > 所屬電梯
< th class = "star" > < div data-toggle = "tooltip" data-placement = "auto" title = "每次選完OPTION後,請點選右方紅色按鈕「電梯」來勾選電梯項次 " > 所屬電梯
< svg xmlns = "http://www.w3.org/2000/svg" width = "16" height = "16" fill = "currentColor" class = "bi bi-info-circle" viewBox = "0 0 16 16" >
< svg xmlns = "http://www.w3.org/2000/svg" width = "16" height = "16" fill = "currentColor" class = "bi bi-info-circle" viewBox = "0 0 16 16" >
< path d = "M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z" / >
< path d = "M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z" / >
< path d = "m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z" / >
< path d = "m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z" / >
@ -1807,7 +1859,7 @@ if (count($last_pritem_arr) > 0 && isset($last_pritem_arr["B"])) {
< td >< input type = "text" name = "except_note" class = "form-control" value = " <?php echo $v [ "note" ]; ?> " ></ td >
< td >< input type = "text" name = "except_note" class = "form-control" value = " <?php echo $v [ "note" ]; ?> " ></ td >
< td >< input type = "text" name = "except_spec" class = "form-control" size = "width:30em;" value = " <?php echo $v [ "item_spec" ]; ?> " readonly ></ td >
< td >< input type = "text" name = "except_spec" class = "form-control" size = "width:30em;" value = " <?php echo $v [ "item_spec" ]; ?> " readonly ></ td >
< td >< input type = "text" name = "except_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 = "except_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 = "except_qty" class = "form-control" size = "2" maxlength = "2 " value = " <?php echo $v [ "item_qty" ]; ?> " >< input type = "hidden" name = "except_qty_ori" value = " <?php echo $v [ "item_qty" ]; ?> " ></ td >
< td >< input type = "text" name = "except_qty" class = "form-control" size = "4" maxlength = "4 " value = " <?php echo $v [ "item_qty" ]; ?> " >< input type = "hidden" name = "except_qty_ori" value = " <?php echo $v [ "item_qty" ]; ?> " ></ td >
< td >< input type = "text" name = "except_price_bp" class = "form-control dollar-right" size = "8" value = " <?php echo number_format ( $v [ "item_price_bp" ]); ?> " readonly >
< td >< input type = "text" name = "except_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 = "E" >
< input type = "hidden" name = "item_group" value = "E" >
< a href = "javascript:void(0);" name = "btndel3" class = "btn btn-danger btn-sm" > X< / a >
< a href = "javascript:void(0);" name = "btndel3" class = "btn btn-danger btn-sm" > X< / a >
@ -1821,7 +1873,7 @@ if (count($last_pritem_arr) > 0 && isset($last_pritem_arr["B"])) {
< td > < input type = "text" name = "except_note" class = "form-control" > < / td >
< td > < input type = "text" name = "except_note" class = "form-control" > < / td >
< td > < input type = "text" name = "except_spec" style = "width:30em;" class = "form-control" > < / td >
< td > < input type = "text" name = "except_spec" style = "width:30em;" class = "form-control" > < / td >
< td > < input type = "text" name = "except_unit_price" class = "form-control dollar-right" size = "8" > < / td >
< td > < input type = "text" name = "except_unit_price" class = "form-control dollar-right" size = "8" > < / td >
< td > < input type = "text" name = "except_qty" class = "form-control" size = "2" maxlength = "2 " > < / td >
< td > < input type = "text" name = "except_qty" class = "form-control" size = "4" maxlength = "4 " > < / td >
< td > < input type = "text" name = "except_price_bp" class = "form-control dollar-right" size = "8" readonly >
< td > < input type = "text" name = "except_price_bp" class = "form-control dollar-right" size = "8" readonly >
< a href = "javascript:void(0);" name = "btndel3" class = "btn btn-danger btn-sm" > X< / a >
< a href = "javascript:void(0);" name = "btndel3" class = "btn btn-danger btn-sm" > X< / a >
< / td >
< / td >
@ -1841,7 +1893,7 @@ if (count($last_pritem_arr) > 0 && isset($last_pritem_arr["B"])) {
< table id = "tb4" class = "table table-bordered" >
< table id = "tb4" class = "table table-bordered" >
< thead >
< thead >
< tr >
< tr >
< th colspan = "8 " > 保固延長< a href = "javascript:void(0);" id = "btnadd4" class = "btn btn-primary btn-sm" > +< / a > < / th >
< th colspan = "10 " > 保固延長< a href = "javascript:void(0);" id = "btnadd4" class = "btn btn-primary btn-sm" > +< / a > < / th >
< / tr >
< / tr >
< tr >
< tr >
< th > 電梯< / th >
< th > 電梯< / th >
@ -1852,6 +1904,8 @@ if (count($last_pritem_arr) > 0 && isset($last_pritem_arr["B"])) {
< th > 數量(月)< / th >
< th > 數量(月)< / th >
< th > 複價< / th >
< th > 複價< / th >
< th > 備註< / th >
< th > 備註< / th >
< th class = "star" > 所屬電梯< / div > < / th >
< th > 功能< / th >
< / tr >
< / tr >
< / thead >
< / thead >
< tbody >
< tbody >
@ -1865,6 +1919,7 @@ if (count($last_pritem_arr) > 0 && isset($last_pritem_arr["B"])) {
< select name = "mn_kind" class = "form-control" >
< select name = "mn_kind" class = "form-control" >
< option value = "MAE100" <?php if ( $v [ 'item_spec' ] == "MAE100" ) echo " selected" ; ?> > MAE100有機房</ option >
< option value = "MAE100" <?php if ( $v [ 'item_spec' ] == "MAE100" ) echo " selected" ; ?> > MAE100有機房</ option >
< option value = "MAM200" <?php if ( $v [ 'item_spec' ] == "MAM200" ) echo " selected" ; ?> > MAM200無機房</ option >
< option value = "MAM200" <?php if ( $v [ 'item_spec' ] == "MAM200" ) echo " selected" ; ?> > MAM200無機房</ option >
< option value = "MAH100" <?php if ( $v [ 'item_spec' ] == "MAH100" ) echo " selected" ; ?> > MAH100小電梯</ option >
< option value = "MAF100" <?php if ( $v [ 'item_spec' ] == "MAF100" ) echo " selected" ; ?> > MAF100貨梯(有機房)</ option >
< option value = "MAF100" <?php if ( $v [ 'item_spec' ] == "MAF100" ) echo " selected" ; ?> > MAF100貨梯(有機房)</ option >
< option value = "MAQ100" <?php if ( $v [ 'item_spec' ] == "MAQ100" ) echo " selected" ; ?> > MAQ100強驅梯</ option >
< option value = "MAQ100" <?php if ( $v [ 'item_spec' ] == "MAQ100" ) echo " selected" ; ?> > MAQ100強驅梯</ option >
< option value = "MAP100" <?php if ( $v [ 'item_spec' ] == "MAP100" ) echo " selected" ; ?> > MAP100平台梯</ option >
< option value = "MAP100" <?php if ( $v [ 'item_spec' ] == "MAP100" ) echo " selected" ; ?> > MAP100平台梯</ option >
@ -1910,7 +1965,9 @@ if (count($last_pritem_arr) > 0 && isset($last_pritem_arr["B"])) {
< td >< input type = "text" name = "mn_price_bp" class = "form-control dollar-right" size = "8" value = " <?php echo number_format ( $v [ "item_price_bp" ]); ?> " readonly >
< td >< input type = "text" name = "mn_price_bp" class = "form-control dollar-right" size = "8" value = " <?php echo number_format ( $v [ "item_price_bp" ]); ?> " readonly >
< input type = "hidden" name = "mn_id" >
< input type = "hidden" name = "mn_id" >
< / td >
< / td >
< td > < input type = "text" name = "mn_memo" class = "form-control" size = "30" >
< td > < input type = "text" name = "mn_memo" class = "form-control" size = "20" > < / td >
< td name = "mn_relate_facil" nowrap > < / td >
< td nowrap > < a href = "javascript:void(0);" name = "btnfaci" class = "btn btn-danger btn-sm" > 電梯< / a >
< a href = "javascript:void(0);" name = "btndel4" class = "btn btn-danger btn-sm" > X< / a >
< a href = "javascript:void(0);" name = "btndel4" class = "btn btn-danger btn-sm" > X< / a >
< / td >
< / td >
< / tr >
< / tr >
@ -1924,6 +1981,7 @@ if (count($last_pritem_arr) > 0 && isset($last_pritem_arr["B"])) {
< option value = "" > 請選擇< / option >
< option value = "" > 請選擇< / option >
< option value = "MAE100" > MAE100有機房< / option >
< option value = "MAE100" > MAE100有機房< / option >
< option value = "MAM200" > MAM200無機房< / option >
< option value = "MAM200" > MAM200無機房< / option >
< option value = "MAH100" > MAH100小電梯< / option >
< option value = "MAF100" > MAF100貨梯(有機房)< / option >
< option value = "MAF100" > MAF100貨梯(有機房)< / option >
< option value = "MAQ100" > MAQ100強驅梯< / option >
< option value = "MAQ100" > MAQ100強驅梯< / option >
< option value = "MAP100" > MAP100平台梯< / option >
< option value = "MAP100" > MAP100平台梯< / option >
@ -1965,7 +2023,9 @@ if (count($last_pritem_arr) > 0 && isset($last_pritem_arr["B"])) {
< td > < input type = "text" name = "mn_unit_price" class = "form-control dollar-right" size = "8" readonly > < / td >
< td > < input type = "text" name = "mn_unit_price" class = "form-control dollar-right" size = "8" readonly > < / td >
< td > < input type = "text" name = "mn_qty" class = "form-control" size = "2" maxlength = "2" > < / td >
< td > < input type = "text" name = "mn_qty" class = "form-control" size = "2" maxlength = "2" > < / td >
< td > < input type = "text" name = "mn_price_bp" class = "form-control dollar-right" size = "8" readonly > < input type = "hidden" name = "mn_id" > < / td >
< td > < input type = "text" name = "mn_price_bp" class = "form-control dollar-right" size = "8" readonly > < input type = "hidden" name = "mn_id" > < / td >
< td > < input type = "text" name = "mn_memo" class = "form-control" size = "30" >
< td > < input type = "text" name = "mn_memo" class = "form-control" size = "20" > < / td >
< td name = "mn_relate_facil" nowrap > < / td >
< td nowrap > < a href = "javascript:void(0);" name = "btnfaci" class = "btn btn-danger btn-sm" > 電梯< / a >
< a href = "javascript:void(0);" name = "btndel4" class = "btn btn-danger btn-sm" > X< / a >
< a href = "javascript:void(0);" name = "btndel4" class = "btn btn-danger btn-sm" > X< / a >
< / td >
< / td >
< / tr >
< / tr >
@ -1974,7 +2034,7 @@ if (count($last_pritem_arr) > 0 && isset($last_pritem_arr["B"])) {
?>
?>
< tr >
< tr >
< td colspan = "6" > 小計< / td >
< td colspan = "6" > 小計< / td >
< td colspan = "2 " > < input type = "text" name = "mn_amt" id = "mn_amt" class = "form-control dollar-right" size = "8" readonly > < / td >
< td colspan = "4 " > < input type = "text" name = "mn_amt" id = "mn_amt" class = "form-control dollar-right" size = "8" readonly > < / td >
< / tr >
< / tr >
< / tbody >
< / tbody >
< / table >
< / table >
@ -2354,6 +2414,7 @@ if (count($last_pritem_arr) > 0 && isset($last_pritem_arr["B"])) {
< input type = "hidden" name = "mn_qty_all" id = "mn_qty_all" >
< input type = "hidden" name = "mn_qty_all" id = "mn_qty_all" >
< input type = "hidden" name = "mn_price_bp_all" id = "mn_price_bp_all" >
< input type = "hidden" name = "mn_price_bp_all" id = "mn_price_bp_all" >
< input type = "hidden" name = "mn_memo_all" id = "mn_memo_all" >
< input type = "hidden" name = "mn_memo_all" id = "mn_memo_all" >
< input type = "hidden" name = "mn_relate_facil_all" id = "mn_relate_facil_all" >
< input type = "hidden" name = "except_note_all" id = "except_note_all" >
< input type = "hidden" name = "except_note_all" id = "except_note_all" >
< input type = "hidden" name = "except_spec_all" id = "except_spec_all" >
< input type = "hidden" name = "except_spec_all" id = "except_spec_all" >
< input type = "hidden" name = "except_unit_price_all" id = "except_unit_price_all" >
< input type = "hidden" name = "except_unit_price_all" id = "except_unit_price_all" >