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" => "", "style" => "",
"width" => "120", "width" => "120",
), ),
array(
"key" => "ngfeedback_type",
"field" => "ngfeedback_type",
"label" => "判定種類",
"style" => "",
"width" => "80",
),
array( array(
"key" => "responsiblesupplier", "key" => "responsiblesupplier",
"field" => "responsiblesupplier", "field" => "responsiblesupplier",

4
wms/ngfeedback-update-submit.php

@ -3,8 +3,9 @@ require_once "database.php";
if ($_SERVER["REQUEST_METHOD"] == "POST") { if ($_SERVER["REQUEST_METHOD"] == "POST") {
$input = &$_POST; $input = &$_POST;
if ($input["progress"] == "9") { if ($input["progress"] == "9") {
$data = array_reduce(array( $data = array_reduce(array(
"reviewresult", "responsiblesupplier", "closer" "reviewresult", "responsiblesupplier", "closer" , "ngfeedback_type"
), function ($acc, $key) use ($input) { ), function ($acc, $key) use ($input) {
switch ($key) { switch ($key) {
default: default:
@ -12,7 +13,6 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
} }
return $acc; return $acc;
}, array("close_at" => date("Y-m-d H:i:s"))); }, array("close_at" => date("Y-m-d H:i:s")));
$db_query = sprintf("UPDATE ngfeedback SET %s WHERE id = ?", $db_query = sprintf("UPDATE ngfeedback SET %s WHERE id = ?",
implode(",", array_map( implode(",", array_map(
function ($_k) { 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="progress" value="<?= $data["progress"]; ?>">
<input type="hidden" name="no" value="<?= $data["id"]; ?>"> <input type="hidden" name="no" value="<?= $data["id"]; ?>">
<div class="form-group"> <div class="form-group">
<div class="col-md-3"> <div class="col-md-12">
<h3 style="font-weight: 700;">審查結果填寫</h3> <h3 style="font-weight: 700;">審查結果填寫</h3>
</div> </div>
<div class="col-md-3"> <div class="col-md-3">
@ -69,6 +69,13 @@ $progress = array(
<option value="G">判定良品</option> <option value="G">判定良品</option>
</select> </select>
</div> </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"> <div class="col-md-6">
<label for="responsiblesupplier">責任供應商</label> <label for="responsiblesupplier">責任供應商</label>
<input type="text" name="responsiblesupplier" id="responsiblesupplier" maxlength="20" placeholder="ex: 永佳捷科技"> <input type="text" name="responsiblesupplier" id="responsiblesupplier" maxlength="20" placeholder="ex: 永佳捷科技">

Loading…
Cancel
Save