|
|
@ -63,6 +63,11 @@ if (in_array($user_id, ['M0175', 'M0079', 'M0060'])) { |
|
|
|
$update_delete_status = ""; |
|
|
|
} |
|
|
|
|
|
|
|
// 許協業務項編輯權限 |
|
|
|
if (in_array($user_id, ['M0060'])) { |
|
|
|
$yewu = ""; |
|
|
|
} |
|
|
|
|
|
|
|
// select => options 開門方式 |
|
|
|
$opendoor_options = getOpendoorOptions($link); |
|
|
|
// select => options 確認人 |
|
|
@ -359,7 +364,7 @@ include "wipwhole-rec-invoice-edit-submit.php"; |
|
|
|
</td> |
|
|
|
<td style="vertical-align: middle;">附件</td> |
|
|
|
<td style="vertical-align: middle;"> |
|
|
|
<input style="width:70%;display:inline;" type="file" id="customer_planning_verify_file" name="customer_planning_verify_file" <?php |
|
|
|
<!-- <input style="width:70%;display:inline;" type="file" id="customer_planning_verify_file" name="customer_planning_verify_file" <?php |
|
|
|
if (isset($row2['change_status'])) { |
|
|
|
echo $row2['change_status'] === 'Z' ? "" : "disabled"; |
|
|
|
} else { |
|
|
@ -368,6 +373,13 @@ include "wipwhole-rec-invoice-edit-submit.php"; |
|
|
|
?>> |
|
|
|
<?php |
|
|
|
echo !empty($row['customer_planning_verify_file']) ? "<a id='customer_planning_verify_file_a' style='color:#00F;' href='" . $row['customer_planning_verify_file'] . "' target='_blank'>下載附件</a>" : ""; |
|
|
|
?> --> |
|
|
|
<?php |
|
|
|
$customer_planning_verify_files = getAllCustomerPlanningVerify($link, $id); |
|
|
|
foreach ($customer_planning_verify_files as $row2) : |
|
|
|
echo "<a id='customer_planning_verify_file_a' style='color:#00F;' |
|
|
|
href='" . $row2['customer_planning_verify_file'] . "' target='_blank'>下載附件_" . $row2['create_at'] . "</a><br/>"; |
|
|
|
endforeach; |
|
|
|
?> |
|
|
|
</td> |
|
|
|
<td style="vertical-align: middle">確認時間</td> |
|
|
@ -548,7 +560,11 @@ include "wipwhole-rec-invoice-edit-submit.php"; |
|
|
|
<td style="vertical-align: middle;">附件</td> |
|
|
|
<td style="vertical-align: middle;"> |
|
|
|
<?php |
|
|
|
echo !empty($row['customer_planning_verify_file']) ? "<a id='customer_planning_verify_file_a' style='color:#00F;' href='" . $row['customer_planning_verify_file'] . "' target='_blank'>下載附件</a>" : ""; |
|
|
|
// echo !empty($row['customer_planning_verify_file']) ? "<a id='customer_planning_verify_file_a' style='color:#00F;' href='" . $row['customer_planning_verify_file'] . "' target='_blank'>下載附件</a>" : ""; |
|
|
|
foreach ($customer_planning_verify_files as $row2) : |
|
|
|
echo "<a id='customer_planning_verify_file_a' style='color:#00F;' |
|
|
|
href='" . $row2['customer_planning_verify_file'] . "' target='_blank'>下載附件_" . $row2['create_at'] . "</a><br/>"; |
|
|
|
endforeach; |
|
|
|
?> |
|
|
|
</td> |
|
|
|
<td style="vertical-align: middle"> 確認時間</td> |
|
|
@ -1125,7 +1141,7 @@ include "wipwhole-rec-invoice-edit-submit.php"; |
|
|
|
<button class="btn btn-primary btn-lg pull-right" type="button" style="margin-left:3px;" disabled>日程已結案</button> |
|
|
|
<?php |
|
|
|
} else { |
|
|
|
if (($user_department_id == 220 || ($user_department_id == 321 && $role_id !== '5'))) { |
|
|
|
if (($user_department_id == 220 || ($user_department_id == 321 && $role_id !== '5') || $user_id == 'M0060')) { |
|
|
|
?> |
|
|
|
<button onclick="savedata()" type="button" class="btn btn-primary btn-lg pull-right" style="margin-left:3px;">存檔</button> |
|
|
|
<?php |
|
|
@ -1311,6 +1327,24 @@ include "wipwhole-rec-invoice-edit-submit.php"; |
|
|
|
(工務助理項目) |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<!-- <tr> |
|
|
|
<td style="vertical-align: middle">發包類型</td> |
|
|
|
<td> |
|
|
|
<input type='radio' name='outsourcer_type' id='outsourcer_type_I' value='I' /> |
|
|
|
<label for='outsourcer_type_I'>安裝</label> |
|
|
|
<input type='radio' name='outsourcer_type' id='outsourcer_type_T' value='T' /> |
|
|
|
<label for='outsourcer_type_T'>試車</label> |
|
|
|
<input type='radio' name='outsourcer_type' id='outsourcer_type_IT' value='IT' /> |
|
|
|
<label for='outsourcer_type_IT'>安裝+試車</label> |
|
|
|
<?php |
|
|
|
if (getSaveEstimateInstallData($user_department_id, $role_id)) { |
|
|
|
?> |
|
|
|
<button type='button' class='btn btn-default' onclick='setOutSourcerDate();'>帶入日期</button> |
|
|
|
<?php |
|
|
|
} |
|
|
|
?> |
|
|
|
</td> |
|
|
|
</tr> --> |
|
|
|
<tr> |
|
|
|
<td style="vertical-align: middle">安裝發包廠商</td> |
|
|
|
<td> |
|
|
@ -1866,4 +1900,29 @@ include "wipwhole-rec-invoice-edit-submit.php"; |
|
|
|
$('#update_install_date_form').submit(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// function setOutSourcerDate() { |
|
|
|
|
|
|
|
// // 發包類型 |
|
|
|
// let outsourcer_type = $("input[name^='outsourcer_type']").val(); |
|
|
|
// // 預計出貨日(到工地) |
|
|
|
// let real_contract_arrival_date = $("#real_contract_arrival_date").val(); |
|
|
|
// // 樓停 |
|
|
|
// let numberofstop = $("#numberofstop").val(); |
|
|
|
|
|
|
|
// if (outsourcer_type === 'I') { |
|
|
|
// // 預計安裝開工日 |
|
|
|
// Date.prototype.addDays = function(days) { |
|
|
|
// this.setDate(this.getDate() + days); |
|
|
|
// return this; |
|
|
|
// } |
|
|
|
|
|
|
|
// } |
|
|
|
// if (outsourcer_type === 'T') { |
|
|
|
|
|
|
|
// } |
|
|
|
// if (outsourcer_type === 'IT') { |
|
|
|
|
|
|
|
// } |
|
|
|
// } |
|
|
|
</script> |