修正表单远程关联字段显示
修正发货单物流信息无法填写 修正发货单直营物流信息无法填写 去掉没有使用的字段类型
This commit is contained in:
@@ -192,7 +192,7 @@ class AllocationController extends WorkflowController
|
||||
DB::table('stock_allocation')->where('id', $id)->update($gets);
|
||||
return $this->json('物流信息提交成功。', true);
|
||||
}
|
||||
$file = base_path().'/addons/'.ucfirst(Request::module()).'/views/'.Request::controller().'/'.Request::action().'.html';
|
||||
$file = base_path().'/app/Gdoo/'.ucfirst(Request::module()).'/views/'.Request::controller().'/'.Request::action().'.html';
|
||||
$id = Request::get('id');
|
||||
$row = Allocation::find($id);
|
||||
$freight_quantity = floatval($row['freight_quantity']);
|
||||
@@ -205,7 +205,7 @@ class AllocationController extends WorkflowController
|
||||
$row['freight_quantity'] = $quantity;
|
||||
$row['freight_weight'] = $weight;
|
||||
}
|
||||
$form = Form::make1(['table' => 'stock_allocation', 'file' => $file, 'row' => $row]);
|
||||
$form = Form::make2(['table' => 'stock_allocation', 'file' => $file, 'row' => $row]);
|
||||
return $form;
|
||||
}
|
||||
|
||||
|
||||
@@ -390,7 +390,7 @@ class DeliveryController extends WorkflowController
|
||||
DB::table('stock_delivery')->where('id', $id)->update($gets);
|
||||
return $this->json('物流信息提交成功。', true);
|
||||
}
|
||||
$file = base_path().'/addons/'.ucfirst(Request::module()).'/views/'.Request::controller().'/'.Request::action().'.xml';
|
||||
$file = base_path().'/app/Gdoo/'.ucfirst(Request::module()).'/views/'.Request::controller().'/'.Request::action().'.xml';
|
||||
$id = Request::get('id');
|
||||
$row = Delivery::find($id);
|
||||
$freight_quantity = floatval($row['freight_quantity']);
|
||||
@@ -404,7 +404,7 @@ class DeliveryController extends WorkflowController
|
||||
$row['freight_quantity'] = $quantity;
|
||||
$row['freight_weight'] = $weight;
|
||||
}
|
||||
$form = Form::make1(['table' => 'stock_delivery', 'file' => $file, 'row' => $row]);
|
||||
$form = Form::make2(['table' => 'stock_delivery', 'file' => $file, 'row' => $row]);
|
||||
return $form;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user