From 16ce8773d0d955140ba5c65f4928f06df00a513c Mon Sep 17 00:00:00 2001 From: jrbin Date: Thu, 2 Nov 2023 11:12:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B1=B0=E6=94=B9bug=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wms/mkt/pricereview-edit.php | 2 +- wms/mkt/pricereview_renovate-edit.php | 2 +- wms/mkt/pricereview_renovate-record-update.php | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/wms/mkt/pricereview-edit.php b/wms/mkt/pricereview-edit.php index 2977b790..eeb071cc 100644 --- a/wms/mkt/pricereview-edit.php +++ b/wms/mkt/pricereview-edit.php @@ -909,7 +909,7 @@ $(function(){ $("input[name='mn_memo']").each(function(){ mnMemoArr.push($(this).val()+"@@"); }) $('#mn_memo_all').val(mnMemoArr); var mnRelateFacilArr = []; - $("td[name='mn_relate_facil']").each(function(){ mnRelateFacilArr.push($(this).html()); }) + $("td[name='mn_relate_facil']").each(function(){ mnRelateFacilArr.push($(this).html().trim()); }) $('#mn_relate_facil_all').val(mnRelateFacilArr); var exNoteArr = []; $("input[name='except_note']").each(function(){ exNoteArr.push($(this).val()); }) diff --git a/wms/mkt/pricereview_renovate-edit.php b/wms/mkt/pricereview_renovate-edit.php index 951081ec..b78b4679 100644 --- a/wms/mkt/pricereview_renovate-edit.php +++ b/wms/mkt/pricereview_renovate-edit.php @@ -984,7 +984,7 @@ $(function(){ $("input[name='mn_memo']").each(function(){ mnMemoArr.push($(this).val()+"@@"); }) $('#mn_memo_all').val(mnMemoArr); var mnRelateFacilArr = []; - $("td[name='mn_relate_facil']").each(function(){ mnRelateFacilArr.push($(this).html()); }) + $("td[name='mn_relate_facil']").each(function(){ mnRelateFacilArr.push($(this).html().trim()); }) $('#mn_relate_facil_all').val(mnRelateFacilArr); var exNoteArr = []; $("input[name='except_note']").each(function(){ exNoteArr.push($(this).val()); }) diff --git a/wms/mkt/pricereview_renovate-record-update.php b/wms/mkt/pricereview_renovate-record-update.php index 2e7e589a..d8807140 100644 --- a/wms/mkt/pricereview_renovate-record-update.php +++ b/wms/mkt/pricereview_renovate-record-update.php @@ -223,6 +223,7 @@ if(isset($_POST['pmstatus'])) { if (empty($iid) && $op_act_arr[$k] == "I") { $to_ins_arr[] = $k; } else { + $option_relate_spec = ""; $tmp_arr = explode("
", $option_relate_facil_arr[$k]); foreach ($tmp_arr as $val) { $option_relate_spec .= substr($val, 0, strpos($val, ".")).",";