You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
256 lines
12 KiB
256 lines
12 KiB
<table id="table_index2" class="table table-striped table-bordered" style="width:98.5%">
|
|
<thead>
|
|
<tr>
|
|
<th style="vertical-align: middle;text-align:center;width:70px;"><span id="th_1">汰改<br />種類</span></th>
|
|
<th style="vertical-align: middle;text-align:center;width:150px;">電梯編號</th>
|
|
<th style="vertical-align: middle;text-align:center;width:150px;">客戶姓名</th>
|
|
<th style="vertical-align: middle;text-align:center;width:250px;">合約地址</th>
|
|
<th style="vertical-align: middle;text-align:center;width:250px;">地工地址</th>
|
|
<th style="vertical-align: middle;text-align:center;width:250px;">警示</th>
|
|
<th style="text-align:center;width:100px;">實際到廠日(觀音廠)</th>
|
|
<th style="text-align:center;width:100px;">預計出貨日(到工地)</th>
|
|
<th style="vertical-align: middle;text-align:center;width:140px;">發包廠商(工勘)</th>
|
|
<th style="vertical-align: middle;text-align:center;width:140px;">發包日期(工勘)</th>
|
|
<th style="vertical-align: middle;text-align:center;width:140px;">預計開工日(工勘)</th>
|
|
<th style="vertical-align: middle;text-align:center;width:140px;">實際開工日(工勘)</th>
|
|
<th style="vertical-align: middle;text-align:center;width:140px;">預計完工日(工勘)</th>
|
|
<th style="vertical-align: middle;text-align:center;width:140px;">實際完工日(工勘)</th>
|
|
<th style="vertical-align: middle;text-align:center;width:140px;">QC日(品證)</th>
|
|
<th style="vertical-align: middle;text-align:center;width:140px;">QC合格日(品證)</th>
|
|
<th style="vertical-align: middle;text-align:center;width:140px;">官檢日(品證)</th>
|
|
<th style="vertical-align: middle;text-align:center;width:140px;">移交日(營業)</th>
|
|
<th style="vertical-align: middle;text-align:center;width:120px;">營業人員</th>
|
|
<th style="vertical-align: middle;text-align:center;width:120px;">編輯</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
|
|
foreach ($dataDetailsArr as $key => $data) :
|
|
?>
|
|
<tr>
|
|
<td>
|
|
<?php
|
|
// 汰改 json 轉字串組合 ex M1+M2
|
|
echo implode("+", json_decode($data['renovate_type']));
|
|
?>
|
|
</td>
|
|
<td><?php echo $data['facilityno']; ?></td>
|
|
<td><?php echo $data['custom']; ?></td>
|
|
<td><?php echo $data['address']; ?></td>
|
|
<td><?php echo $data['real_address']; ?></td>
|
|
<td style="text-align:left;"><span class="text-danger"><?php echo warningMessage($data); ?></span></td>
|
|
<td>
|
|
<?php
|
|
if (!empty($data['actual_tofactory_date']))
|
|
echo date("Y/m/d", strtotime($data['actual_tofactory_date']));
|
|
?>
|
|
</td>
|
|
<td>
|
|
<?php
|
|
if (!empty($data['real_contract_arrival_date']))
|
|
echo date("Y/m/d", strtotime(substr($data['real_contract_arrival_date'], 0, 10)));
|
|
?>
|
|
</td>
|
|
<?php
|
|
// foreach ($site_survey_status as $key => $val) {
|
|
// if ((string)$data['site_survey_contact_verify'] == (string)$key) {
|
|
// if (in_array($data['site_survey_contact_verify'], ['1', 'A'])) {
|
|
// echo "<td style='color:#F00;'>$val</td>";
|
|
// } else {
|
|
// echo "<td>$val</td>";
|
|
// }
|
|
// }
|
|
// }
|
|
?>
|
|
<td>
|
|
<?php
|
|
if (!empty($data['install_outsourcer']) && !empty($data['tryrun_outsourcer'])) {
|
|
echo "安裝:" . $data['install_outsourcer'];
|
|
echo "<br/>試車:" . $data['tryrun_outsourcer'];
|
|
} else {
|
|
if (!empty($data['install_outsourcer']))
|
|
echo "安裝:" . $data['install_outsourcer'];
|
|
if (!empty($data['tryrun_outsourcer']))
|
|
echo "<br/>試車:" . $data['tryrun_outsourcer'];
|
|
}
|
|
?>
|
|
</td>
|
|
<td>
|
|
<?php
|
|
if (!empty($data['install_outsourcer_date']) && !empty($data['tryrun_outsourcer_date'])) {
|
|
echo date("Y/m/d", strtotime($data['install_outsourcer_date']));
|
|
echo "<br/>" . date("Y/m/d", strtotime($data['tryrun_outsourcer_date']));
|
|
} else {
|
|
if (!empty($data['install_outsourcer_date']))
|
|
echo date("Y/m/d", strtotime($data['install_outsourcer_date'])) . "<br/> ";
|
|
if (!empty($data['tryrun_outsourcer_date']))
|
|
echo " <br/>" . date("Y/m/d", strtotime($data['tryrun_outsourcer_date']));
|
|
}
|
|
?>
|
|
</td>
|
|
<td>
|
|
<?php
|
|
if (!empty($data['estimate_install_start_date']) && !empty($data['estimate_tryrun_start_date'])) {
|
|
echo date("Y/m/d", strtotime($data['estimate_install_start_date']));
|
|
echo "<br/>" . date("Y/m/d", strtotime($data['estimate_tryrun_start_date']));
|
|
} else {
|
|
if (!empty($data['estimate_install_start_date']))
|
|
echo date("Y/m/d", strtotime($data['estimate_install_start_date'])) . "<br/> ";
|
|
if (!empty($data['estimate_tryrun_start_date']))
|
|
echo " <br/>" . date("Y/m/d", strtotime($data['estimate_tryrun_start_date']));
|
|
}
|
|
?>
|
|
</td>
|
|
<td>
|
|
<?php
|
|
if (!empty($data['install_start_date']) && !empty($data['tryrun_start_date'])) {
|
|
echo date("Y/m/d", strtotime($data['install_start_date']));
|
|
echo "<br/>" . date("Y/m/d", strtotime($data['tryrun_start_date']));
|
|
} else {
|
|
if (!empty($data['install_start_date']))
|
|
echo date("Y/m/d", strtotime($data['install_start_date'])) . "<br/> ";
|
|
if (!empty($data['tryrun_start_date']))
|
|
echo " <br/>" . date("Y/m/d", strtotime($data['tryrun_start_date']));
|
|
}
|
|
?>
|
|
</td>
|
|
<td>
|
|
<?php
|
|
if (!empty($data['estimate_install_end_date']) && !empty($data['estimate_tryrun_end_date'])) {
|
|
echo date("Y/m/d", strtotime($data['estimate_install_end_date']));
|
|
echo "<br/>" . date("Y/m/d", strtotime($data['estimate_tryrun_end_date']));
|
|
} else {
|
|
if (!empty($data['estimate_install_end_date']))
|
|
echo date("Y/m/d", strtotime($data['estimate_install_end_date'])) . "<br/> ";
|
|
if (!empty($data['estimate_tryrun_end_date']))
|
|
echo " <br/>" . date("Y/m/d", strtotime($data['estimate_tryrun_end_date']));
|
|
}
|
|
?>
|
|
</td>
|
|
<td>
|
|
<?php
|
|
if (!empty($data['install_end_date']) && !empty($data['tryrun_end_date'])) {
|
|
echo date("Y/m/d", strtotime($data['install_end_date']));
|
|
echo "<br/>" . date("Y/m/d", strtotime($data['tryrun_end_date']));
|
|
} else {
|
|
if (!empty($data['install_end_date']))
|
|
echo date("Y/m/d", strtotime($data['install_end_date'])) . "<br/> ";
|
|
if (!empty($data['tryrun_end_date']))
|
|
echo " <br/>" . date("Y/m/d", strtotime($data['tryrun_end_date']));
|
|
}
|
|
?>
|
|
</td>
|
|
<td>
|
|
<?php
|
|
if (!empty($data['qc_date']))
|
|
echo date("Y/m/d", strtotime($data['qc_date']));
|
|
?>
|
|
</td>
|
|
<td>
|
|
<?php
|
|
if (!empty($data['end_qc_date']))
|
|
echo date("Y/m/d", strtotime($data['end_qc_date']));
|
|
?>
|
|
</td>
|
|
<td>
|
|
<?php
|
|
if ($data['association_check_type'] == '1') {
|
|
echo "-";
|
|
} else {
|
|
if (!empty($data['official_check_date']))
|
|
echo date("Y/m/d", strtotime($data['official_check_date']));
|
|
}
|
|
?>
|
|
</td>
|
|
<td>
|
|
<?php
|
|
if (!empty($data['delivery_date']))
|
|
echo date("Y/m/d", strtotime($data['delivery_date']));
|
|
?>
|
|
</td>
|
|
<td>
|
|
<?php
|
|
if (!empty($data['salesid']))
|
|
echo accountidToName($data['salesid']);
|
|
?>
|
|
</td>
|
|
<td>
|
|
<?php
|
|
if ($edit_flag & 4 && ($user_auth & 2)) {
|
|
?>
|
|
<p>
|
|
<a target='_blank' href="wipwhole-renovate-rec-invoice-edit.php?function_name=wipwholestatus&<?php echo $token_link; ?>&id=<?php echo $data['id']; ?>" class="btn btn-primary btn-sm">
|
|
<?php
|
|
echo getGunwuName($data['address']);
|
|
?>
|
|
</a>
|
|
</p>
|
|
<?php
|
|
} else {
|
|
echo getGunwuName($data['address']);
|
|
}
|
|
?>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
<script>
|
|
const subContentDiv = document.createElement("div");
|
|
subContentDiv.style.position = "relative";
|
|
subContentDiv.style.top = 0;
|
|
subContentDiv.style.left = 0;
|
|
document.body.appendChild(subContentDiv);
|
|
|
|
const subContentInsideDiv = document.createElement("div");
|
|
subContentInsideDiv.style.position = "absolute";
|
|
subContentInsideDiv.style.top = 0;
|
|
subContentInsideDiv.style.left = 0;
|
|
subContentInsideDiv.style.width = "200px";
|
|
subContentInsideDiv.style.height = "100px";
|
|
subContentInsideDiv.style.border = "1px solid blue";
|
|
subContentInsideDiv.style.display = "none";
|
|
subContentInsideDiv.style.zIndex = 999;
|
|
subContentInsideDiv.style.backgroundColor = "#FFFFFF";
|
|
subContentInsideDiv.style.border = "5px solid #000";
|
|
subContentInsideDiv.style.borderRadius = "15px";
|
|
|
|
$("#th_1").hover(function() {
|
|
var p = $("#th_1").first();
|
|
var position = p.position();
|
|
// alert(position.top + '' + position.left)
|
|
$("#subContentInsideDiv").show();
|
|
$("#subContentDiv").css("top", position.top);
|
|
$("#subContentDiv").css("left", position.left);
|
|
}, function() {
|
|
$("#subContentInsideDiv").hide();
|
|
});
|
|
</script>
|
|
<!-- <style>
|
|
#subContentDiv {
|
|
position: relative;
|
|
top: 0;
|
|
left: 0;
|
|
}
|
|
|
|
#subContentInsideDiv {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 200px;
|
|
height: 100px;
|
|
border: 1px solid blue;
|
|
display: none;
|
|
z-index: 999;
|
|
background-color: #FFFFFF;
|
|
border: 5px solid #000;
|
|
border-radius: 15px;
|
|
}
|
|
</style> -->
|
|
|
|
<!-- <div id="subContentDiv">
|
|
<div id="subContentInsideDiv">
|
|
|
|
</div>
|
|
</div> -->
|