From 8f4e1e663ea622753185f6246de93a2ed211e5f7 Mon Sep 17 00:00:00 2001 From: 10994015 Date: Tue, 16 Jan 2024 16:30:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=83=B9=E5=AF=A9=20mi=20=3D=20=E8=A8=AD?= =?UTF-8?q?=E5=82=99+=20option?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wms/mkt/pricereview-check.php | 5 +++-- wms/mkt/pricereview_mi-api.php | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wms/mkt/pricereview-check.php b/wms/mkt/pricereview-check.php index f37f216f..36aac6ea 100644 --- a/wms/mkt/pricereview-check.php +++ b/wms/mkt/pricereview-check.php @@ -316,7 +316,6 @@ foreach ($res as $data) { } return num; } - function getMI(id) { var formdata = new FormData(); formdata.append('pa', id); @@ -329,6 +328,7 @@ foreach ($res as $data) { //alert(data.err); return false; } + Object.keys(data.content).forEach(function(k) { console.log(data.content); //console.log(data.content[k][0]); @@ -352,7 +352,7 @@ foreach ($res as $data) { mihtml += "以上合計:" + commafy(data.content[k][12]) + "/台"; mihtml += "
"; mihtml += "
OPTION
"; - console.log(data.content[k]); + Object.keys(data.content[k][14]).forEach(function(m) { if (data.content[k][14][m][0] != '') { mihtml += "
  • " + data.content[k][14][m][0]+ ":" + commafy(data.content[k][14][m][1]) + "
  • "; @@ -368,6 +368,7 @@ foreach ($res as $data) { }); mihtml += "
  • " + data.content[k][19][0] + ":" + commafy(data.content[k][19][1]) + "
  • "; mihtml += "以上合計:" + commafy(data.content[k][13]) + "
    "; + mifix += (data.content[k][12] + data.content[k][13]) $("#tb1").find("tr[name=facil_templ2]").eq(k).find('td').eq(1).html(mihtml); //$("#tb1").find("input[name=mi_fix]").eq(k).closest('td').append(mihtml); }); diff --git a/wms/mkt/pricereview_mi-api.php b/wms/mkt/pricereview_mi-api.php index 5271ae8d..0bce0d7e 100644 --- a/wms/mkt/pricereview_mi-api.php +++ b/wms/mkt/pricereview_mi-api.php @@ -209,7 +209,6 @@ try { // echo json_encode($elev_arr); foreach ((Array)$elev_arr as $item_no => $v) { if($item_no == ""){ - echo "null!!!!!"; continue; } // 電梯MI