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