north 7 년 전
부모
커밋
d0aaa221cf

+ 4 - 0
www/protected/controllers/HouseKeepingController.php

@@ -71,6 +71,7 @@ class HouseKeepingController extends AdminController
         }
         $age = intval(Yii::app()->request->getParam('age', 0));
         $tech = (Yii::app()->request->getParam('tech', ''));
+        $tech_mobile = (Yii::app()->request->getParam('tech_mobile', ''));
         $desc = (Yii::app()->request->getParam('desc', ''));
         $yc_time = intval(Yii::app()->request->getParam('yc_time', ''));
         $server_start_time = intval(Yii::app()->request->getParam('server_start_time', ''));
@@ -123,6 +124,9 @@ class HouseKeepingController extends AdminController
         if (!empty($tech)) {
             $h->tech = $tech;
         }
+        if (!empty($tech_mobile)) {
+            $h->tech_mobile = $tech_mobile;
+        }
         $success = $h->save();
         CommonFn::requestAjax($success, '修改成功', array());
 

+ 4 - 0
www/protected/modules/j/controllers/HouseKeepingController.php

@@ -81,6 +81,7 @@ class HouseKeepingController extends JBaseController
         $skill = Yii::app()->request->getParam('skill', '');
         $age = intval(Yii::app()->request->getParam('age', 0));
         $tech = (Yii::app()->request->getParam('tech', ''));
+        $tech_mobile = (Yii::app()->request->getParam('tech_mobile', ''));
         $desc = (Yii::app()->request->getParam('desc', ''));
         $yc_time = intval(Yii::app()->request->getParam('yc_time', ''));
         $server_start_time = intval(Yii::app()->request->getParam('server_start_time', ''));
@@ -129,6 +130,9 @@ class HouseKeepingController extends JBaseController
         if (!empty($tech)) {
             $h->tech = $tech;
         }
+        if (!empty($tech_mobile)) {
+            $h->tech_mobile = $tech_mobile;
+        }
         $success = $h->save();
         CommonFn::requestAjax($success, '修改成功', array());
 

+ 2 - 0
www/protected/modules/o2o/models/HouseKeeping.php

@@ -20,6 +20,7 @@
      public $server_end_time;//服务时间结束时间
      public $skill;//服务技能 烧饭,保洁,育婴,护理,全套家务
      public $yc_time;//预产期
+     public $tech_mobile;//预产期
      public $age;//年龄
      public $desc;//备注
      public $status;//0-预约中,1-已预约,2-已面试
@@ -106,6 +107,7 @@
          $newRow['age'] = CommonFn::get_val_if_isset($row,'age','');
          $newRow['status_time'] = CommonFn::get_val_if_isset($row,'status_time','');
          $newRow['tech'] = CommonFn::get_val_if_isset($row,'tech','');
+         $newRow['tech_mobile'] = CommonFn::get_val_if_isset($row,'tech_mobile','');
          $newRow['contract'] = CommonFn::get_val_if_isset($row,'contract','');
          $newRow['contract_str'] = self::$contract_option[intval($newRow['contract'])];
          $newRow['type_str'] = self::$type_option[intval($newRow['type'])];

+ 12 - 0
www/protected/views/houseKeeping/index.php

@@ -213,6 +213,16 @@
                     </div>
                   </div>
                 </li>
+                <li class="f_item">
+                  <div class="box">
+                    <div class="f_label">
+                      <span>服务人员手机号:</span>
+                    </div>
+                    <div class="box_flex f_content">
+                      <input id="tech_mobile" name="tech_mobile" />
+                    </div>
+                  </div>
+                </li>
                 <li class="f_item">
                   <div class="box">
                     <div class="f_label">
@@ -521,6 +531,7 @@
         $('#address').html(data.address);
         $('#age').val(data.age);
         $('#tech').val(data.tech);
+        $('#tech_mobile').val(data.tech_mobile);
         $('#desc').val(data.desc);
         jq_content_form.form('load', data);
         $('#skill').children().each(function (index, element) {
@@ -554,6 +565,7 @@
         $('#address').html('');
         $('#age').val('');
         $('#tech').val('');
+        $('#tech_mobile').val('');
         $('#desc').val('');
         jq_content_form.form('load', '');
         $('#admins_edit_info').html('');