Browse Source

不良單新增 sr sq 種類

gary
gary_chen\gary_chen 1 year ago
parent
commit
0ee85f4411
  1. 7
      wms/ngfeedback-index.php
  2. 4
      wms/ngfeedback-update-submit.php
  3. 9
      wms/ngfeedback-update.php

7
wms/ngfeedback-index.php

@ -137,6 +137,13 @@ $dt_setup = array(
"style" => "",
"width" => "120",
),
array(
"key" => "ngfeedback_type",
"field" => "ngfeedback_type",
"label" => "判定種類",
"style" => "",
"width" => "80",
),
array(
"key" => "responsiblesupplier",
"field" => "responsiblesupplier",

4
wms/ngfeedback-update-submit.php

@ -3,8 +3,9 @@ require_once "database.php";
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$input = &$_POST;
if ($input["progress"] == "9") {
$data = array_reduce(array(
"reviewresult", "responsiblesupplier", "closer"
"reviewresult", "responsiblesupplier", "closer" , "ngfeedback_type"
), function ($acc, $key) use ($input) {
switch ($key) {
default:
@ -12,7 +13,6 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
}
return $acc;
}, array("close_at" => date("Y-m-d H:i:s")));
$db_query = sprintf("UPDATE ngfeedback SET %s WHERE id = ?",
implode(",", array_map(
function ($_k) {

9
wms/ngfeedback-update.php

@ -59,7 +59,7 @@ $progress = array(
<input type="hidden" name="progress" value="<?= $data["progress"]; ?>">
<input type="hidden" name="no" value="<?= $data["id"]; ?>">
<div class="form-group">
<div class="col-md-3">
<div class="col-md-12">
<h3 style="font-weight: 700;">審查結果填寫</h3>
</div>
<div class="col-md-3">
@ -69,6 +69,13 @@ $progress = array(
<option value="G">判定良品</option>
</select>
</div>
<div class="col-md-3">
<label for="ngfeedback_type">審查判定類型</label>
<select id="ngfeedback_type" name="ngfeedback_type">
<option value="sr">sr</option>
<option value="sq">sq</option>
</select>
</div>
<div class="col-md-6">
<label for="responsiblesupplier">責任供應商</label>
<input type="text" name="responsiblesupplier" id="responsiblesupplier" maxlength="20" placeholder="ex: 永佳捷科技">

Loading…
Cancel
Save