diff --git a/wms/contract/contract-new-apply.php b/wms/contract/contract-new-apply.php index 00a9ddb2..8714671b 100644 --- a/wms/contract/contract-new-apply.php +++ b/wms/contract/contract-new-apply.php @@ -1,7 +1,3 @@ -<<<<<<< HEAD - -======= ->>>>>>> 7b37600f (合約書申請 新梯 1116) prepare($sql_str); @@ -70,36 +65,6 @@ if(empty($contract_new_apply)){ -======= -$sql_str = "SELECT pricereview_main.*, account.name as accountname - FROM pricereview_main - JOIN account ON pricereview_main.person = account.accountid - WHERE pricereview_main.id = :id"; -$stmt = $conn->prepare($sql_str); -$stmt->bindParam(':id',$id); -$stmt->execute(); -$contract = $stmt->fetch(PDO::FETCH_ASSOC); - -$accounttype = "M"; -$sql_str = "SELECT * FROM account WHERE accounttype = :accounttype"; -$stmt = $conn->prepare($sql_str); -$stmt->bindParam(':accounttype',$accounttype); -$stmt->execute(); -$persons = $stmt->fetchAll(PDO::FETCH_ASSOC); - -$sql_str = "SELECT * FROM hope_elevator_customer WHERE vol_no = :vol_no ORDER BY created_at DESC"; -$stmt = $conn->prepare($sql_str); -$stmt->bindParam(':vol_no', $contract['contractno']); -$stmt->execute(); -$customer = $stmt->fetch(PDO::FETCH_ASSOC); -print_r($customer); -?> - - - - - ->>>>>>> 7b37600f (合約書申請 新梯 1116)
@@ -125,7 +90,6 @@ print_r($customer); 卷號 -<<<<<<< HEAD
@@ -133,19 +97,6 @@ print_r($customer); 統一編號 -======= - -

未填寫

- - 營業員 - - ->>>>>>> 7b37600f (合約書申請 新梯 1116)

未填寫

合約書申請日期 @@ -163,11 +114,7 @@ print_r($customer); 案件名稱 -<<<<<<< HEAD -======= - ->>>>>>> 7b37600f (合約書申請 新梯 1116)

未填寫

@@ -181,14 +128,6 @@ print_r($customer);

未填寫

-<<<<<<< HEAD -======= - 統一編號 - - -

未填寫

- ->>>>>>> 7b37600f (合約書申請 新梯 1116) 含稅給約總價 @@ -215,7 +154,6 @@ print_r($customer); 完工期限 -<<<<<<< HEAD
貨抵工地 @@ -230,15 +168,11 @@ print_r($customer);
-======= - ->>>>>>> 7b37600f (合約書申請 新梯 1116)

未填寫

附則 -<<<<<<< HEAD
@@ -266,24 +200,10 @@ print_r($customer); 交貨地點 -======= - - -

未填寫

- - 免保期限 - - -

未填寫

- - 交貨地點 - ->>>>>>> 7b37600f (合約書申請 新梯 1116)

未填寫

交貨期限 -<<<<<<< HEAD
@@ -294,10 +214,6 @@ print_r($customer); 天出貨
-======= - - ->>>>>>> 7b37600f (合約書申請 新梯 1116)

未填寫

@@ -321,7 +237,6 @@ print_r($customer); -<<<<<<< HEAD -======= - - 1 - - -

未填寫

- - - -

未填寫

- - - -

未填寫

- - ->>>>>>> 7b37600f (合約書申請 新梯 1116) @@ -387,7 +285,6 @@ print_r($customer); -<<<<<<< HEAD -======= - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ->>>>>>> 7b37600f (合約書申請 新梯 1116)
-

銷售

-
-

訂金

-
-

簽約後X天付訂金

-
-

合約日

-
-

30天

-
-

30天

-
-

20%

-
-

636000

-
-

銷售

-
-

二次款

-
-

簽約後X天付二次款

-
-

合約日

-
-

30天

-
-

30天

-
-

0%%

-
-

0

-
-

銷售

-
-

貨到款

-
-

貨抵工地付貨到款

-
-

出貨日

-
-

-

-
-

30天

-
-

50%

-
-

1590000

-
-

-
-

-
-

-
-

-
-

-
-

-
-

-
-

-
-

安裝

-
-

安裝款

-
-

安裝完成後X天收款

-
-

竣檢日

-
-

30天

-
-

30天

-
-

20%

-
-

636000

-
-

安裝

-
-

尾款

-
-

交車後X天付尾款

-
-

交車日

-
-

0天

-
-

30天

-
-

10%

-
-

318000

-
-

-
-

-
-

-
-

-
-

-
-

-
-

-
-

-
@@ -680,7 +392,6 @@ print_r($customer); -<<<<<<< HEAD
業務部協理 -<<<<<<< HEAD -======= ->>>>>>> 7b37600f (合約書申請 新梯 1116) -<<<<<<< HEAD @@ -775,19 +473,3 @@ print_r($customer); const mid = ''; console.log(items) -======= - - ->>>>>>> 7b37600f (合約書申請 新梯 1116) diff --git a/wms/mkt/pricereview-check.php b/wms/mkt/pricereview-check.php index 23dad8e4..b1cb75e3 100644 --- a/wms/mkt/pricereview-check.php +++ b/wms/mkt/pricereview-check.php @@ -310,6 +310,7 @@ $(function () { $("#checker").prop("disabled", false); $("#status_n").prop("disabled", false); $("#status_y").prop("disabled", false); + $("#status_yy").prop("disabled", false); $("#id").prop("disabled", false); $("#st").prop("disabled", false); $('#btn_close').prop("disabled", false); @@ -974,8 +975,11 @@ hr {
- - + + + + + diff --git a/wms/mkt/pricereview-index.php b/wms/mkt/pricereview-index.php index 44e06e1f..a08ca5f9 100644 --- a/wms/mkt/pricereview-index.php +++ b/wms/mkt/pricereview-index.php @@ -357,7 +357,7 @@ if ($user_id=="M0023") { $str = $uperson = $ustatus = $udtte = ""; if (!empty($sign3)) list($uperson, $ustatus, $udtte) = explode(",", $sign3); if ($ustatus) { - if ($ustatus == "Y") $str = ""; + if ($ustatus == "Y" || $ustatus == "YY") $str = ""; elseif ($ustatus == "N") $str = ""; $str .= "
".$accountname_arr[$uperson]."
".$udtte; } else { diff --git a/wms/mkt/pricereview-record-check.php b/wms/mkt/pricereview-record-check.php index b8bf6b48..064c6781 100644 --- a/wms/mkt/pricereview-record-check.php +++ b/wms/mkt/pricereview-record-check.php @@ -59,7 +59,11 @@ if (isset($_POST['status'])) { $sql2 .= "status = 'YY'"; } $end_flow = 1; - } else { + }elseif($status == 'YY'){ + $sql2 .= "status = 'YY'"; + $end_flow = 1; + } + else { $do_assign = 1; } if ($item_no_all) { @@ -82,7 +86,7 @@ if (isset($_POST['status'])) { mysqli_query($link, $db_query); } } - + echo $status; if ($sql) { $db_query = "update pricereview_sign set $sql where mid = '$id'"; mysqli_query($link, $db_query); diff --git a/wms/mkt/pricereview_renovate-check.php b/wms/mkt/pricereview_renovate-check.php index 79e51e12..0fde252d 100644 --- a/wms/mkt/pricereview_renovate-check.php +++ b/wms/mkt/pricereview_renovate-check.php @@ -1018,7 +1018,22 @@ hr { - 業務部協理 + + prepare($sql_str); + $stmt->bindParam(':name',$accountname_arr[$person3]); + $stmt->execute(); + $user = $stmt->fetch(PDO::FETCH_ASSOC); + echo $user['role']; + }else{ + echo "業務部協理"; + } + + ?> +