From e8b91c06216ca0aeb99cfa7516434264dfcf929d Mon Sep 17 00:00:00 2001 From: 10994015 Date: Thu, 7 Mar 2024 09:28:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E6=A2=AF/=E6=B1=B0=E6=94=B9=20?= =?UTF-8?q?=E6=9C=89=E6=9C=9B=E5=AE=A2=E6=88=B6=E5=8A=A0=E4=B8=8A=E5=AE=A2?= =?UTF-8?q?=E6=88=B6=E9=A1=9E=E5=9E=8B(=E4=B8=80=E8=88=AC=E5=AE=A2?= =?UTF-8?q?=E6=88=B6/=E6=88=B0=E7=95=A5=E5=AE=A2=E6=88=B6)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wms/crm/crmm03-edit.php | 8 ++++++-- wms/crm/model/HopeElevatorCustomerModel.php | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/wms/crm/crmm03-edit.php b/wms/crm/crmm03-edit.php index 3f64a37e..a0f89e56 100644 --- a/wms/crm/crmm03-edit.php +++ b/wms/crm/crmm03-edit.php @@ -23,7 +23,7 @@ $salesman_opt = DB::result($sql); #5.有望客戶狀態 $sql = "select code_name value ,content label from code where field_name='hope_customer_status'"; $hope_customer_status_opt = DB::result($sql); - +print_r($hope_customer_status_opt); #6.是否汰改 $is_renovation_opt = ["N" => "新梯(M)", "Y" => "汰改(T)"]; /* @@ -46,7 +46,10 @@ $speed_opt = DB::result($sql); #卷號 $vol_no = ""; #抓取有望客戶資料 - +$customer_type = [ + ['value'=>'0', 0=>'0', 'label'=>'一般客戶', 1=>'一般客戶'], + ['value'=>'1', 0=>'1', 'label'=>'戰略客戶', 1=>'戰略客戶'], +]; $hope_elevator_customer_column = [ 'is_renovation' => ['label' => "產品屬性", "tag" => 'radio', 'attr' => ['required', 'class' => ' form-control form-control-sm'], 'options' => $is_renovation_opt], 'vol_no' => ['label' => "卷號", "tag" => 'text', 'attr' => ['required', 'readonly=true ', "value" => "$vol_no", 'class' => 'form-control form-control-sm']], @@ -67,6 +70,7 @@ $hope_elevator_customer_column = [ 'num' => ['label' => "台數", "tag" => 'digits', 'attr' => ['min=1', 'digits', 'class' => 'form-control form-control-sm']], 'pre_order_date' => ['label' => "預定成交日", "tag" => 'date', 'attr' => ['class' => 'date form-control form-control-sm']], 'status' => ['label' => "有望客戶狀態", "tag" => 'select', 'attr' => ['class' => 'form-control form-control-sm'], 'options' => $hope_customer_status_opt], + 'customer_type' => ['label' => "客戶類型", "tag" => 'select', 'attr' => ['class' => 'form-control form-control-sm'], 'options' => $customer_type], //'next_visit_date' => ['label' => "下次拜訪時間", "tag" => 'date', 'attr' => ['class' => 'date form-control form-control-sm']], // 'brand' => ['label' => "廠牌", "tag" => 'select', 'attr' => ['required', 'class' => ' form-control form-control-sm '], 'options' => $elevator_brand_opt], //'quote_date' => ['label' => "報價日期", "tag" => 'date', 'attr' => ['class' => 'date form-control form-control-sm']], diff --git a/wms/crm/model/HopeElevatorCustomerModel.php b/wms/crm/model/HopeElevatorCustomerModel.php index 1b705d8b..40740bb3 100644 --- a/wms/crm/model/HopeElevatorCustomerModel.php +++ b/wms/crm/model/HopeElevatorCustomerModel.php @@ -29,6 +29,7 @@ class HopeElevatorCustomerModel extends Model 'introducer', 'company', 'case_name', + 'customer_type', 'creater_name', 'creater']; }