diff --git a/wms/fun_global.php b/wms/fun_global.php
index 8105db67..436a91e8 100644
--- a/wms/fun_global.php
+++ b/wms/fun_global.php
@@ -99,17 +99,19 @@ function pricereview_class($rate, $user_id, &$ret = [], $special_fee, $i = 0)
return $ret;
exit;
} else {
+ // 若為第一層且使用者ID為區經理,直接訂好接下來的簽核人員並跳出。
if ($i == 0 && ($user_id == 'M0033' || $user_id == "M0137" || $user_id == 'M0029' || $user_id == 'M0054' || $user_id == "M0086")) {
$ret[1] = $user_id . ",,";
- $ret[2] = "M0024,,<##>M0107,,"; // 業務部專員:M0024許伃廷、M0107許紓晴(第2關有多位審核人)
+ $ret[2] = "M0175,,<##>M0107,,"; // 業務部專員:M0175陳君敏、M0107許紓晴(第2關有多位審核人)
$ret[3] = "M0060,,"; // 業務協理
if ($rate < 80 || $special_fee > 0) {
$ret[4] = "M0006,,"; // 總經理
}
return $ret;
- exit();
+ exit;
}
if ($row["manager"] != "M0060" && $row["manager"] != "M0006" && $row["manager"] != "M0008") {
+ // 新梯的部分 桃竹本該給陳家文,改為劉永德
if ($row["manager"] == 'M0029') {
$ret[1] = "M0137,,";
$i++;
@@ -120,10 +122,8 @@ function pricereview_class($rate, $user_id, &$ret = [], $special_fee, $i = 0)
pricereview_class($rate, $row["manager"], $ret, $special_fee, $i);
}
} else {
- // if ($user_id == 'M0033' || $user_id == 'M0137' || $user_id == 'M0029' || $user_id == 'M0054' || $user_id == 'M0086') {
- // $ret[1] = $user_id . ",,";
- // }
- $ret[2] = "M0024,,<##>M0107,,"; // 業務部專員:M0024許伃廷、M0107許紓晴(第2關有多位審核人)
+
+ $ret[2] = "M0175,,<##>M0107,,"; // 業務部專員:M0175陳君敏、M0107許紓晴(第2關有多位審核人)
$ret[3] = "M0060,,"; // 業務協理
if ($rate < 80 || $special_fee > 0) {
$ret[4] = "M0006,,"; // 總經理
@@ -151,19 +151,10 @@ function pricereview_renovate_class($rate, $user_id, $renovate_flag)
$res = mysqli_query($link, $sql);
if ($row = mysqli_fetch_assoc($res)) {
if ($row["manager"] == "M0001") return; // 董事長略過
- if ($row["manager"] == "TEST04" || $user_id == 'TEST01') {
- $ret[1] = "test04,,";
- $ret[2] = "test02,,";
- $ret[3] = "test03,,";
- $ret[4] = "test05,,";
- return $ret;
- exit();
+ if ($row["manager"] != "M0060" && $row["manager"] != "M0006" && $row["manager"] != "M0008") {
+ $ret[1] = $row["manager"];
} else {
- if ($row["manager"] != "M0060" && $row["manager"] != "M0006" && $row["manager"] != "M0008") {
- $ret[1] = $row["manager"];
- } else {
- $ret[1] = $user_id;
- }
+ $ret[1] = $user_id;
}
}
// $ret[1] = "M0029";
@@ -172,27 +163,16 @@ function pricereview_renovate_class($rate, $user_id, $renovate_flag)
if ($renovate_flag == "REN") {
// $ret[2] = 'M0012';
if ($rate <= 100) $ret[3] = "M0008"; // 詹總
- if ($rate < 75) $ret[4] = "M0006"; // 總經理
+ if ($rate < 80) $ret[4] = "M0006"; // 總經理
} else {
// 全汰改
if ($rate <= 100) $ret[3] = "M0008"; // 詹總
- if ($rate < 75) $ret[4] = "M0006"; // 總經理
+ if ($rate < 80) $ret[4] = "M0006"; // 總經理
}
mysqli_free_result($res);
return $ret;
}
-/**
- * 汰改(契約)價審簽核順位
- * @param string $rate:破價比
- * @param string $user_id:使用者ID
- * @param string $renovate_flag:REN=M1改
- * @return array
- *
- */
-function pricereview_maintainance_class($rate, $user_id, $renovate_flag)
-{
-}
/**
* 檢查使用者選單權限
*
@@ -256,7 +236,7 @@ function accountid2name()
global $link;
$arr = [];
- $sql = "select accountid, name from account where 1=1";
+ $sql = "select accountid, name from account where accounttype in ('B','E','M')";
$res = mysqli_query($link, $sql);
while ($row = mysqli_fetch_row($res)) {
$arr[$row[0]] = $row[1];
diff --git a/wms/mkt/price_option-index.php b/wms/mkt/price_option-index.php
index 05388f59..ecf0afa6 100644
--- a/wms/mkt/price_option-index.php
+++ b/wms/mkt/price_option-index.php
@@ -67,6 +67,7 @@ $optional_arr = [1 => '標', 2 => '選'];
+ ID |
名稱 |
規格 |
備註 |
@@ -88,6 +89,7 @@ $optional_arr = [1 => '標', 2 => '選'];
+ |
|
|
|
diff --git a/wms/mkt/price_option-select.php b/wms/mkt/price_option-select.php
index 910a2ce7..a352c5ea 100644
--- a/wms/mkt/price_option-select.php
+++ b/wms/mkt/price_option-select.php
@@ -51,6 +51,7 @@ $optional_arr = [1 => '標配', 2 => '選配',3=>'加價'];
+ ID |
名稱 |
規格 |
備註 |
@@ -72,6 +73,7 @@ $optional_arr = [1 => '標配', 2 => '選配',3=>'加價'];
+ |
|
|
|
diff --git a/wms/mkt/pricereview-check.php b/wms/mkt/pricereview-check.php
index 79f5eec1..64db1e44 100644
--- a/wms/mkt/pricereview-check.php
+++ b/wms/mkt/pricereview-check.php
@@ -368,7 +368,7 @@ foreach ($res as $data) {
console.log(data.content[k][12]);
Object.keys(data.content[k][14]).forEach(function(m) {
if (data.content[k][14][m][0] != '') {
- mihtml += "" + data.content[k][14][m][0].replace("<br>", "").replace("&", "").replace("amp;", "").replace("()", "").replace(/\s+/g, '') + ":" + commafy(data.content[k][14][m][1]) + "";
+ mihtml += "" + data.content[k][14][m][0].replace("<br>", "").replace("<br>", "").replace("&", "").replace("amp;", "").replace("()", "").replace(/\s+/g, '') + ":" + commafy(data.content[k][14][m][1]) + "";
}
});
Object.keys(data.content[k][16]).forEach(function(m) {
diff --git a/wms/mkt/pricereview-index.php b/wms/mkt/pricereview-index.php
index ceff0cdb..ec517324 100644
--- a/wms/mkt/pricereview-index.php
+++ b/wms/mkt/pricereview-index.php
@@ -299,6 +299,7 @@ function get_pending($token)
t.flow_name
LIMIT 0, 6
";
+
// echo '';
// print_r($sql);
// echo '
';
@@ -322,6 +323,7 @@ function get_pending($token)
}
$result = get_pending($token);
+print_r($result);
$result[1]['sid'] = !empty($result) ? $result[1]['sid'] : 'prm';
$result[1]['fid'] = !empty($result) ? $result[1]['fid'] : 'prm01';
@@ -336,14 +338,23 @@ if ($data) :
}
*/
?>
+
-
所有價審
-
待我簽核
-
簽核完畢
-
結案同意
-
結案不同意
-
+
+
btn-sm categoryBtn"> 所有價審
+
btn-sm categoryBtn"> 待我簽核
+
btn-sm categoryBtn"> 簽核完畢
+
btn-sm categoryBtn"> 結案同意
+
btn-sm categoryBtn"> 結案不同意
+
diff --git a/wms/mkt/pricereview-record-check.php b/wms/mkt/pricereview-record-check.php
index 3b915215..c2c81143 100644
--- a/wms/mkt/pricereview-record-check.php
+++ b/wms/mkt/pricereview-record-check.php
@@ -1,6 +1,6 @@
$v) {
@@ -60,6 +60,7 @@ if (isset($_POST['status'])) {
} else {
$sql2 .= "status = 'YY'";
}
+ $sql_str = "";
} else {
$sql2 .= "status = 'YY'";
}
diff --git a/wms/mkt/pricereview_mi-api.php b/wms/mkt/pricereview_mi-api.php
index adea44c3..0d8438c4 100644
--- a/wms/mkt/pricereview_mi-api.php
+++ b/wms/mkt/pricereview_mi-api.php
@@ -330,10 +330,11 @@ $sql4 = "SELECT option_price.id, elevator_quotation_rule.equipment, option_mi.ba
FROM option_price
LEFT JOIN option_mi ON option_price.id = option_mi.option_price_id
LEFT JOIN elevator_quotation_rule ON option_mi.quotation_no = elevator_quotation_rule.quotation_no
-WHERE option_price.status = 'Y'
-AND option_mi.option_price_id = " . $opt_elev_arr[$val]["price_id"] . "
+WHERE option_mi.option_price_id = " . $opt_elev_arr[$val]["price_id"] . "
AND (" . $v["item_weight"] . " BETWEEN option_mi.min_weight AND option_mi.max_weight)
AND option_mi.open_kind = '" . $v["item_op"] . "'";
+
+
$res_om = mysqli_query($link, $sql4);
if ($row_om = mysqli_fetch_assoc($res_om)) {
$row_om['price'] = (int)ceil($row_om['price']);