From 9461fa3b777b7708fdfa368c43ade9734fd25732 Mon Sep 17 00:00:00 2001 From: "gary_chen\\gary_chen" Date: Thu, 7 Dec 2023 19:12:28 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=96=B0=E5=A2=9EAPP=E7=94=9F=E7=94=A2?= =?UTF-8?q?=E9=80=B2=E5=BA=A6=E5=8F=8A=E5=AE=89=E8=A3=9D=E9=80=B2=E5=BA=A6?= =?UTF-8?q?=E8=88=87=E4=BD=9C=E7=95=AA=E5=A4=A7=E6=97=A5=E7=A8=8B=E6=97=A5?= =?UTF-8?q?=E6=9C=9F=E9=97=9C=E8=81=AF=202.=E5=BE=85=E7=B0=BD=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=88=A4=E5=AE=9A=20flow=5Fcode=20=3D=20'Z'=20?= =?UTF-8?q?=E4=B8=8D=E9=A1=AF=E7=A4=BA=203.=E5=A4=A7=E6=97=A5=E7=A8=8B?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=E9=A1=AF=E7=A4=BA=E5=84=AA=E5=85=88=E6=8A=93?= =?UTF-8?q?=E5=8F=96=20real=5Faddress=20=E5=86=8D=E6=8A=93=E5=8F=96=20addr?= =?UTF-8?q?ess=204.=E6=96=B0=E5=A2=9E=E5=80=8B=E6=AC=84=E4=BD=8D=E7=B6=AD?= =?UTF-8?q?=E8=AD=B7=E4=BA=BA=20modal=205.=E4=BF=AE=E6=AD=A3=20=E5=9C=A8?= =?UTF-8?q?=E8=A3=9D=E4=B8=AD=E7=B5=B1=E8=A8=88=E8=A1=A8=20=E7=B8=BD?= =?UTF-8?q?=E8=A8=88=20bug=206.=E5=B1=95=E5=BB=B3=20=E5=88=86=E5=B8=83?= =?UTF-8?q?=E5=9C=96=20=E6=96=B0=E5=A2=9E=E8=A3=9C=E4=B8=81code=20?= =?UTF-8?q?=E8=B6=85=E9=81=8E=E5=85=A9=E5=80=8B=E6=9C=88=E6=B2=92=E4=BF=9D?= =?UTF-8?q?=E9=A4=8A=E7=9A=84=E6=9C=83=E5=B8=B6=E5=85=A5=E5=81=87=E8=B3=87?= =?UTF-8?q?=E6=96=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/app-wipinstallation-log.php | 146 +++ app/app-wipproduction-log.php | 103 +- phb/map/tw.html | 1111 +++++++++-------- wms/css/view/wipwhole-index.php | 100 +- wms/css/view/wipwhole-renovate-index.php | 56 + wms/frame/api_getdata.php | 93 +- wms/wipwhole-index-table-html.php | 2 +- wms/wipwhole-index.php | 64 +- wms/wipwhole-renovate-index-table-html.php | 2 +- wms/wipwhole-renovate-index.php | 128 +- wms/wipwhole-wipinstallstatus-index.php | 9 + wms/wipwholeinstall-index-table-html.php | 32 +- ...wholeinstall-renovate-index-table-html.php | 17 +- 13 files changed, 1215 insertions(+), 648 deletions(-) diff --git a/app/app-wipinstallation-log.php b/app/app-wipinstallation-log.php index f1a2d1b7..c55f7f15 100644 --- a/app/app-wipinstallation-log.php +++ b/app/app-wipinstallation-log.php @@ -24,6 +24,150 @@ if ($user_id == 'A000000001') { $sql = "SELECT * FROM wipinstallation where (facilityno = '$facilityno') order by id desc"; # sql語法存在變數中 } else { $sql = " + SELECT + '0' AS id, + facilityno, + SUBSTR(real_contract_arrival_date,1,10) AS issue_time, + '分配安裝人員' AS 'process', + 'bg-success' AS 'light_color', + '' AS memo, + creater, + create_at + FROM wipwholestatus + WHERE (facilityno = '$facilityno') + AND real_contract_arrival_date != '' + AND real_contract_arrival_date IS NOT NULL + + UNION + + SELECT + '1' AS id, + facilityno, + SUBSTR(real_arrival_date,1,10) AS issue_time, + '已出貨' AS 'process', + 'bg-success' AS 'light_color', + '' AS memo, + creater, + create_at + FROM wipwholestatus + WHERE (facilityno = '$facilityno') + AND real_arrival_date != '' + AND real_arrival_date IS NOT NULL + + UNION + + SELECT + '2' AS id, + facilityno, + SUBSTR(estimate_install_start_date,1,10) AS issue_time, + '預計安裝日期' AS 'process', + 'bg-success' AS 'light_color', + '' AS memo, + creater, + create_at + FROM wipwholestatus + WHERE (facilityno = '$facilityno') + AND estimate_install_start_date != '' + AND estimate_install_start_date IS NOT NULL + + UNION + + SELECT + '3' AS id, + facilityno, + SUBSTR(install_start_date,1,10) AS issue_time, + '已開工' AS 'process', + 'bg-success' AS 'light_color', + '' AS memo, + creater, + create_at + FROM wipwholestatus + WHERE (facilityno = '$facilityno') + AND install_start_date != '' + AND install_start_date IS NOT NULL + + UNION + + SELECT + '4' AS id, + facilityno, + SUBSTR(estimate_tryrun_start_date,1,10) AS issue_time, + '預計試車日期' AS 'process', + 'bg-success' AS 'light_color', + '' AS memo, + creater, + create_at + FROM wipwholestatus + WHERE (facilityno = '$facilityno') + AND estimate_tryrun_start_date != '' + AND estimate_tryrun_start_date IS NOT NULL + + UNION + + SELECT + '5' AS id, + facilityno, + SUBSTR(tryrun_start_date,1,10) AS issue_time, + '開始試車' AS 'process', + 'bg-success' AS 'light_color', + '' AS memo, + creater, + create_at + FROM wipwholestatus + WHERE (facilityno = '$facilityno') + AND tryrun_start_date != '' + AND tryrun_start_date IS NOT NULL + + UNION + + SELECT + '6' AS id, + facilityno, + SUBSTR(end_qc_date,1,10) AS issue_time, + '完成QC' AS 'process', + 'bg-success' AS 'light_color', + '' AS memo, + creater, + create_at + FROM wipwholestatus + WHERE (facilityno = '$facilityno') + AND end_qc_date != '' + AND end_qc_date IS NOT NULL + + UNION + + SELECT + '7' AS id, + facilityno, + SUBSTR(official_check_date,1,10) AS issue_time, + '完成官檢' AS 'process', + 'bg-success' AS 'light_color', + '' AS memo, + creater, + create_at + FROM wipwholestatus + WHERE (facilityno = '$facilityno') + AND official_check_date != '' + AND official_check_date IS NOT NULL + + UNION + + SELECT + '8' AS id, + facilityno, + SUBSTR(delivery_date,1,10) AS issue_time, + '完成移交' AS 'process', + 'bg-success' AS 'light_color', + '' AS memo, + creater, + create_at + FROM wipwholestatus + WHERE (facilityno = '$facilityno') + AND delivery_date != '' + AND delivery_date IS NOT NULL + + + /* SELECT '0' AS id, facilityno, @@ -107,6 +251,8 @@ if ($user_id == 'A000000001') { create_at FROM wipwholestatus WHERE (facilityno = '$facilityno') +*/ + ORDER BY id DESC "; } diff --git a/app/app-wipproduction-log.php b/app/app-wipproduction-log.php index ead78b90..6f95a3d4 100644 --- a/app/app-wipproduction-log.php +++ b/app/app-wipproduction-log.php @@ -27,6 +27,101 @@ if ($user_id == 'A000000001') { SELECT '0' AS id, facilityno, + '' AS issue_time, + '生產中' AS 'process', + 'bg-success' AS 'light_color', + '' AS memo, + creater, + create_at + FROM wipwholestatus + WHERE facilityno = '$facilityno' + + UNION + + SELECT + '1' AS id, + facilityno, + SUBSTR(estimated_shipping_date,1,10) AS issue_time, + '生產完成' AS 'process', + 'bg-success' AS 'light_color', + '' AS memo, + creater, + create_at + FROM wipwholestatus + WHERE facilityno = '$facilityno' + AND estimated_shipping_date != '' + AND estimated_shipping_date IS NOT NULL + + UNION + + SELECT + '2' AS id, + facilityno, + SUBSTR(estimated_shipping_schedule_date,1,10) AS issue_time, + '預計攬收' AS 'process', + 'bg-success' AS 'light_color', + '' AS memo, + creater, + create_at + FROM wipwholestatus + WHERE facilityno = '$facilityno' + AND estimated_shipping_schedule_date != '' + AND estimated_shipping_schedule_date IS NOT NULL + + UNION + + SELECT + '3' AS id, + facilityno, + SUBSTR(actual_tofactory_date,1,10) AS issue_time, + '攬收成功(桃園)' AS 'process', + 'bg-success' AS 'light_color', + '' AS memo, + creater, + create_at + FROM wipwholestatus + WHERE facilityno = '$facilityno' + AND actual_tofactory_date != '' + AND actual_tofactory_date IS NOT NULL + + UNION + + SELECT + '4' AS id, + facilityno, + SUBSTR(real_contract_arrival_date,1,10) AS issue_time, + '預計出貨日' AS 'process', + 'bg-success' AS 'light_color', + '' AS memo, + creater, + create_at + FROM wipwholestatus + WHERE facilityno = '$facilityno' + AND real_contract_arrival_date != '' + AND real_contract_arrival_date IS NOT NULL + + UNION + + SELECT + '5' AS id, + facilityno, + SUBSTR(real_arrival_date,1,10) AS issue_time, + '出貨' AS 'process', + 'bg-success' AS 'light_color', + '' AS memo, + creater, + create_at + FROM wipwholestatus + WHERE facilityno = '$facilityno' + AND real_arrival_date != '' + AND real_arrival_date IS NOT NULL + + +/* + UNION + SELECT + '1' AS id, + facilityno, SUBSTR(prattford_order_date,1,10) AS issue_time, CASE prattford_order_date_verify WHEN 0 THEN '生產完成' @@ -47,7 +142,7 @@ if ($user_id == 'A000000001') { WHERE (facilityno = '$facilityno') UNION SELECT - '1' AS id, + '2' AS id, facilityno, SUBSTR(goods_type_date,1,10) AS issue_time, CASE goods_type @@ -71,7 +166,7 @@ if ($user_id == 'A000000001') { WHERE (facilityno = '$facilityno') UNION SELECT - '2' AS id, + '3' AS id, facilityno, SUBSTR(actual_tofactory_date,1,10) AS issue_time, CASE arrival_date_verify @@ -97,7 +192,7 @@ if ($user_id == 'A000000001') { WHERE (facilityno = '$facilityno') UNION SELECT - '3' AS id, + '4' AS id, facilityno, SUBSTR(real_arrival_date,1,10) AS issue_time, IF(real_arrival_date IS NOT NULL || real_arrival_date != '','已出貨','未出貨') AS 'process', @@ -107,6 +202,8 @@ if ($user_id == 'A000000001') { create_at FROM wipwholestatus WHERE (facilityno = '$facilityno') +*/ + ORDER BY id DESC "; } diff --git a/phb/map/tw.html b/phb/map/tw.html index d029e751..ecfdae00 100644 --- a/phb/map/tw.html +++ b/phb/map/tw.html @@ -1,596 +1,637 @@ + 電梯地圖 - - + + -
- - - - - - - - - + + + + + + + } - + + + - + + \ No newline at end of file diff --git a/wms/css/view/wipwhole-index.php b/wms/css/view/wipwhole-index.php index c24af508..e1f5e17e 100644 --- a/wms/css/view/wipwhole-index.php +++ b/wms/css/view/wipwhole-index.php @@ -126,51 +126,61 @@ /* 旋转动画 */ } -/* The Modal (background) */ -.modal { - display: none; /* Hidden by default */ - position: fixed; /* Stay in place */ - z-index: 1; /* Sit on top */ - padding-top: 100px; /* Location of the box */ - left: 0; - top: 0; - width: 100%; /* Full width */ - height: 100%; /* Full height */ - overflow: auto; /* Enable scroll if needed */ - -} -.modal .back{ - position: absolute; - top: 0; - left:0; - width: 100%; - height: 100%; - background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ -} -/* Modal Content */ -.modal-content { - z-index: 9; - background-color: #fefefe; - margin: auto; - padding: 20px; - border: 1px solid #888; - width: 80%; -} - -/* The Close Button */ -.close { - color: #aaaaaa; - float: right; - font-size: 28px; - font-weight: bold; -} - -.close:hover, -.close:focus { - color: #000; - text-decoration: none; - cursor: pointer; -} + /* The Modal (background) */ + .modal { + display: none; + /* Hidden by default */ + position: fixed; + /* Stay in place */ + z-index: 1; + /* Sit on top */ + padding-top: 100px; + /* Location of the box */ + left: 0; + top: 0; + width: 100%; + /* Full width */ + height: 100%; + /* Full height */ + overflow: auto; + /* Enable scroll if needed */ + + } + + .modal .back { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: rgba(0, 0, 0, 0.4); + /* Black w/ opacity */ + } + + /* Modal Content */ + .modal-content { + z-index: 9; + background-color: #fefefe; + margin: auto; + padding: 20px; + border: 1px solid #888; + width: 80%; + } + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } @keyframes spin { diff --git a/wms/css/view/wipwhole-renovate-index.php b/wms/css/view/wipwhole-renovate-index.php index 9bd7eef9..70b3576f 100644 --- a/wms/css/view/wipwhole-renovate-index.php +++ b/wms/css/view/wipwhole-renovate-index.php @@ -126,6 +126,62 @@ /* 旋转动画 */ } + /* The Modal (background) */ + .modal { + display: none; + /* Hidden by default */ + position: fixed; + /* Stay in place */ + z-index: 1; + /* Sit on top */ + padding-top: 100px; + /* Location of the box */ + left: 0; + top: 0; + width: 100%; + /* Full width */ + height: 100%; + /* Full height */ + overflow: auto; + /* Enable scroll if needed */ + + } + + .modal .back { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: rgba(0, 0, 0, 0.4); + /* Black w/ opacity */ + } + + /* Modal Content */ + .modal-content { + z-index: 9; + background-color: #fefefe; + margin: auto; + padding: 20px; + border: 1px solid #888; + width: 80%; + } + + /* The Close Button */ + .close { + color: #aaaaaa; + float: right; + font-size: 28px; + font-weight: bold; + } + + .close:hover, + .close:focus { + color: #000; + text-decoration: none; + cursor: pointer; + } + @media screen and (max-width: 600px) { table { diff --git a/wms/frame/api_getdata.php b/wms/frame/api_getdata.php index 7da622b0..374eba8b 100644 --- a/wms/frame/api_getdata.php +++ b/wms/frame/api_getdata.php @@ -1,4 +1,5 @@ "ok","err"=>"","errCode"=>""); +$json = array("st" => "ok", "err" => "", "errCode" => ""); /** * 表單列表 */ -function get_forms() { +function get_forms() +{ global $link; $i = 1; @@ -45,7 +47,8 @@ function get_forms() { /** * 公告欄列表 */ -function get_board() { +function get_board() +{ global $link; $i = 1; @@ -70,14 +73,15 @@ function get_board() { /** * 系統通知列表 */ -function get_notice($token) { +function get_notice($token) +{ global $link; if (!$token) throw new \Exception("token empty", 802); list($user_id) = explode(".", $token); $i = 1; $data = []; $sql = "select id, kind, related_id, title from notice "; - $sql .= "where (permission like '%".$user_id."%' or permission = 'ALL' or creater = '$user_id') "; + $sql .= "where (permission like '%" . $user_id . "%' or permission = 'ALL' or creater = '$user_id') "; $sql .= "and haveread != '1' "; $sql .= "order by create_at desc limit 0, 6"; $res = mysqli_query($link, $sql); @@ -95,24 +99,64 @@ function get_notice($token) { /** * 待我簽核 */ -function get_pending($token) { +function get_pending($token) +{ global $link; if (!$token) throw new \Exception("token empty", 802); list($user_id) = explode(".", $token); $i = 1; $data = []; + $sql = " + SELECT + t.system_id, + t.system_name, + t.flow_id, + t.flow_name, + COUNT(*) + FROM ( + SELECT s.form_key, + m.system_id, + y.system_name, + m.flow_id, + m.flow_name, + m.path + FROM subflow s, + flow f, + flow_main m, + system_main y + WHERE EXISTS ( + SELECT form_key, + MAX(seq) + FROM subflow + GROUP BY form_key + HAVING SUBSTRING(s.form_key, 1, 10) = form_key + AND s.seq = max(seq) + ) + AND SUBSTRING(s.form_key, 1, 10) = f.form_key + AND f.flow_id = m.flow_id + AND f.system_id = y.system_id + AND s.current_assigner = '$user_id' + AND f.flow_code != 'Z' + ) t + GROUP BY t.system_id, + t.flow_id, + t.system_name, + t.flow_name + LIMIT 0, 6 + "; + + // $sql = "select t.system_id, t.system_name, t.flow_id, t.flow_name, count(*) from ("; + // $sql .= "select s.form_key, m.system_id, y.system_name, m.flow_id, m.flow_name, m.path from subflow s, flow f, flow_main m, system_main y "; + // $sql .= "where "; + // $sql .= "EXISTS ( + // select form_key, max(seq) from subflow + // group by form_key + // having SUBSTRING(s.form_key,1,10) = form_key and s.seq = max(seq) + // ) "; + // $sql .= "and SUBSTRING(s.form_key,1,10) = f.form_key and f.flow_id = m.flow_id and f.system_id = y.system_id and s.current_assigner = '$user_id'"; + // $sql .= ") t group by t.system_id, t.flow_id, t.system_name, t.flow_name "; + // $sql .= "limit 0, 6"; - $sql = "select t.system_id, t.system_name, t.flow_id, t.flow_name, count(*) from ("; - $sql .= "select s.form_key, m.system_id, y.system_name, m.flow_id, m.flow_name, m.path from subflow s, flow f, flow_main m, system_main y "; - $sql .= "where "; - $sql .= "EXISTS ( - select form_key, max(seq) from subflow - group by form_key - having SUBSTRING(s.form_key,1,10) = form_key and s.seq = max(seq) - ) "; - $sql .= "and SUBSTRING(s.form_key,1,10) = f.form_key and f.flow_id = m.flow_id and f.system_id = y.system_id and s.current_assigner = '$user_id'"; - $sql .= ") t group by t.system_id, t.flow_id, t.system_name, t.flow_name "; - $sql .= "limit 0, 6"; $res = mysqli_query($link, $sql); while ($row = mysqli_fetch_row($res)) { $data[$i]["sid"] = $row[0]; @@ -139,7 +183,7 @@ function get_pending($token) { return $data; } -try{ +try { if (empty($_REQUEST)) throw new \Exception("post empty", 801); if (empty($_REQUEST["p"])) throw new \Exception("post p empty", 801); @@ -161,13 +205,10 @@ try{ default: echo "error"; } - - -}catch(\Exception $ex){ - $json["st"] = "err"; - $json["err"] = $ex->getMessage(); - $json["errCode"] = (!empty($ex->getCode()))?$ex->getCode():701; +} catch (\Exception $ex) { + $json["st"] = "err"; + $json["err"] = $ex->getMessage(); + $json["errCode"] = (!empty($ex->getCode())) ? $ex->getCode() : 701; } -echo json_encode($json,JSON_UNESCAPED_UNICODE); -?> \ No newline at end of file +echo json_encode($json, JSON_UNESCAPED_UNICODE); diff --git a/wms/wipwhole-index-table-html.php b/wms/wipwhole-index-table-html.php index 04f873a1..5ba74871 100644 --- a/wms/wipwhole-index-table-html.php +++ b/wms/wipwhole-index-table-html.php @@ -139,7 +139,7 @@ if (in_array($user_id, ['M0175', 'M0079'])) { - + $val) { if ((string)$data['site_survey_contact_verify'] == (string)$key) { diff --git a/wms/wipwhole-index.php b/wms/wipwhole-index.php index 93f4dd29..9f87ec09 100644 --- a/wms/wipwhole-index.php +++ b/wms/wipwhole-index.php @@ -234,11 +234,8 @@ $dataZ = mysqli_query($link, $sql);
-
- - @@ -247,7 +244,66 @@ $dataZ = mysqli_query($link, $sql); diff --git a/wms/wipwhole-renovate-index-table-html.php b/wms/wipwhole-renovate-index-table-html.php index a851d304..3be85123 100644 --- a/wms/wipwhole-renovate-index-table-html.php +++ b/wms/wipwhole-renovate-index-table-html.php @@ -146,7 +146,7 @@ if (in_array($user_id, ['M0175', 'M0079'])) { - + $val) { if ((string)$data['site_survey_contact_verify'] == (string)$key) { diff --git a/wms/wipwhole-renovate-index.php b/wms/wipwhole-renovate-index.php index 337567da..f38bbd42 100644 --- a/wms/wipwhole-renovate-index.php +++ b/wms/wipwhole-renovate-index.php @@ -209,28 +209,101 @@ $dataZ = mysqli_query($link, $sql); + $data, @@ -513,6 +586,21 @@ mysqli_close($link); $("#del_form").submit(); } +
diff --git a/wms/wipwhole-wipinstallstatus-index.php b/wms/wipwhole-wipinstallstatus-index.php index bf793f6d..a7756b7f 100644 --- a/wms/wipwhole-wipinstallstatus-index.php +++ b/wms/wipwhole-wipinstallstatus-index.php @@ -504,6 +504,9 @@ if ((int)$radsY . $radsM > (int)$radeY . $radeM) { M1 (int)$radeY . $radeM) { MA (int)$radeY . $radeM) { 合計 合約地址 地工地址 警示 - 預計出貨日 + 實際到廠日(觀音廠) + 預計出貨日(到工地) 發包廠商(工勘) 發包日期(工勘) 預計開工日(工勘) @@ -56,7 +57,18 @@ - + + + + + + $val) { // if ((string)$data['site_survey_contact_verify'] == (string)$key) { @@ -88,9 +100,9 @@ echo "
" . 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'])). "
 "; + echo date("Y/m/d", strtotime($data['install_outsourcer_date'])) . "
 "; if (!empty($data['tryrun_outsourcer_date'])) - echo " 
" .date("Y/m/d", strtotime($data['tryrun_outsourcer_date'])); + echo " 
" . date("Y/m/d", strtotime($data['tryrun_outsourcer_date'])); } ?> @@ -114,9 +126,9 @@ echo "
" . 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'])). "
 "; + echo date("Y/m/d", strtotime($data['install_start_date'])) . "
 "; if (!empty($data['tryrun_start_date'])) - echo " 
" .date("Y/m/d", strtotime($data['tryrun_start_date'])); + echo " 
" . date("Y/m/d", strtotime($data['tryrun_start_date'])); } ?> @@ -127,9 +139,9 @@ echo "
" . 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'])). "
 "; + echo date("Y/m/d", strtotime($data['estimate_install_end_date'])) . "
 "; if (!empty($data['estimate_tryrun_end_date'])) - echo " 
" .date("Y/m/d", strtotime($data['estimate_tryrun_end_date'])); + echo " 
" . date("Y/m/d", strtotime($data['estimate_tryrun_end_date'])); } ?> @@ -140,9 +152,9 @@ echo "
" . 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'])). "
 "; + echo date("Y/m/d", strtotime($data['install_end_date'])) . "
 "; if (!empty($data['tryrun_end_date'])) - echo " 
" .date("Y/m/d", strtotime($data['tryrun_end_date'])); + echo " 
" . date("Y/m/d", strtotime($data['tryrun_end_date'])); } ?> diff --git a/wms/wipwholeinstall-renovate-index-table-html.php b/wms/wipwholeinstall-renovate-index-table-html.php index 7846457c..2f3dc8f4 100644 --- a/wms/wipwholeinstall-renovate-index-table-html.php +++ b/wms/wipwholeinstall-renovate-index-table-html.php @@ -7,7 +7,8 @@ 合約地址 地工地址 警示 - 預計出貨日 + 實際到廠日(觀音廠) + 預計出貨日(到工地) 發包廠商(工勘) 發包日期(工勘) 預計開工日(工勘) @@ -39,7 +40,18 @@ - + + + + + + $val) { // if ((string)$data['site_survey_contact_verify'] == (string)$key) { @@ -181,7 +193,6 @@