Browse Source

修正部分大日程 申請計劃圖上傳 的流程

gary
gary_chen\gary_chen 1 year ago
parent
commit
822549a453
  1. 2
      wms/wipwhole-index-function.php
  2. 25
      wms/wipwhole-rec-invoice-edit.php
  3. 2
      wms/wipwhole-renovate-index-function.php
  4. 22
      wms/wipwhole-renovate-rec-invoice-edit.php

2
wms/wipwhole-index-function.php

@ -1126,6 +1126,7 @@ function getAllCustomerPlanningVerify($link, $id)
{
$sql = "
SELECT
custom AS custom_name,
customer_planning_verify_file,
create_at
FROM wipwholestatus
@ -1134,6 +1135,7 @@ function getAllCustomerPlanningVerify($link, $id)
AND customer_planning_verify_file IS NOT NULL
UNION
SELECT
custom_name,
customer_planning_verify_file,
create_at
FROM wipwhole_change_planning_customer_details

25
wms/wipwhole-rec-invoice-edit.php

@ -364,21 +364,21 @@ 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
if (isset($row2['change_status'])) {
echo $row2['change_status'] === 'Z' ? "" : "disabled";
} else {
echo "disabled";
}
?>>
<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 {
echo "disabled";
}
?>>
<?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>" : "";
?>
<?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/>";
href='" . $row2['customer_planning_verify_file'] . "' target='_blank'>下載附件_" . $row2['custom_name'] . "_" . $row2['create_at'] . "</a><br/>";
endforeach;
?>
</td>
@ -1330,7 +1330,7 @@ include "wipwhole-rec-invoice-edit-submit.php";
<!-- <tr>
<td style="vertical-align: middle">發包類型</td>
<td>
<input type='radio' name='outsourcer_type' id='outsourcer_type_I' value='I' />
<input type='radio' name='outsourcer_type' id='outsourcer_type_I' value='I' checked />
<label for='outsourcer_type_I'>安裝</label>
<input type='radio' name='outsourcer_type' id='outsourcer_type_T' value='T' />
<label for='outsourcer_type_T'>試車</label>
@ -1912,10 +1912,11 @@ include "wipwhole-rec-invoice-edit-submit.php";
// if (outsourcer_type === 'I') {
// // 預計安裝開工日
// Date.prototype.addDays = function(days) {
// let tmp = Date.prototype.addDays = function(days) {
// this.setDate(this.getDate() + days);
// return this;
// }
// alert(tmp);
// }
// if (outsourcer_type === 'T') {

2
wms/wipwhole-renovate-index-function.php

@ -1105,6 +1105,7 @@ function getAllCustomerPlanningVerify($link, $id)
{
$sql = "
SELECT
custom AS custom_name,
customer_planning_verify_file,
create_at
FROM wipwholestatus
@ -1113,6 +1114,7 @@ function getAllCustomerPlanningVerify($link, $id)
AND customer_planning_verify_file IS NOT NULL
UNION
SELECT
custom_name,
customer_planning_verify_file,
create_at
FROM wipwhole_change_planning_customer_details

22
wms/wipwhole-renovate-rec-invoice-edit.php

@ -414,21 +414,21 @@ include "wipwhole-renovate-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
if (isset($row2['change_status'])) {
echo $row2['change_status'] === 'Z' ? "" : "disabled";
} else {
echo "disabled";
}
?>>
<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 {
echo "disabled";
}
?>>
<?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>" : "";
?>
<?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>";
href='" . $row2['customer_planning_verify_file'] . "' target='_blank'>下載附件_" . $row2['custom_name'] . "_" . $row2['create_at'] . "</a></br>";
endforeach;
?>
</td>
@ -766,7 +766,7 @@ include "wipwhole-renovate-rec-invoice-edit-submit.php";
<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>" : "";
foreach ($customer_planning_verify_files as $row2) :
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>";
endforeach;

Loading…
Cancel
Save