修改电话字段报错BUG

dev
曾超新 5 years ago
parent 299b3d625b
commit b8b1844b96
  1. 4
      frontend/controllers/CarController.php
  2. 1411
      frontend/controllers/CarController_bak.php
  3. 2
      frontend/views/car/edit.php

@ -268,7 +268,7 @@ class CarController extends BaseController
$register_date = $request->post('register_date'); $register_date = $request->post('register_date');
$car_man = $request->post('car_man'); $car_man = $request->post('car_man');
$car_man_type = $request->post('car_man_type'); $car_man_type = $request->post('car_man_type');
$phone = $request->post('phone'); $car_man_phone = $request->post('car_man_phone');
$car_man_number = $request->post('car_man_number'); $car_man_number = $request->post('car_man_number');
$purchase_price = $request->post('purchase_price'); $purchase_price = $request->post('purchase_price');
$remark = $request->post('remark'); $remark = $request->post('remark');
@ -300,7 +300,7 @@ class CarController extends BaseController
$row->car_use_id = $car_use_id; $row->car_use_id = $car_use_id;
$row->register_date = $register_date; $row->register_date = $register_date;
$row->car_man = $car_man; $row->car_man = $car_man;
$row->phone = $phone; $row->car_man_phone = $car_man_phone;
$row->car_man_number = $car_man_number; $row->car_man_number = $car_man_number;
$row->remark = $remark; $row->remark = $remark;
$row->car_man_type = $car_man_type; $row->car_man_type = $car_man_type;

File diff suppressed because it is too large Load Diff

@ -46,7 +46,7 @@ use \common\libs\MyLib;
<div class="form-group"> <div class="form-group">
<label class="col-sm-1 control-label">联系电话</label> <label class="col-sm-1 control-label">联系电话</label>
<div class="col-sm-3"> <div class="col-sm-3">
<input type="text" name="phone" value="<?=$info->phone?>" class="form-control"> <input type="text" name="car_man_phone" value="<?=$info->car_man_phone?>" class="form-control">
</div> </div>
<label class="col-sm-1 control-label">厂牌型号</label> <label class="col-sm-1 control-label">厂牌型号</label>
<div class="col-sm-3"> <div class="col-sm-3">

Loading…
Cancel
Save