提交 242489e0 authored 作者: chengye's avatar chengye

修复抄表时,对电表基本信息进行校验

上级 09703330
...@@ -270,13 +270,11 @@ class Em extends Base ...@@ -270,13 +270,11 @@ class Em extends Base
public function check(){ public function check(){
$post = Request::post(); $post = Request::post();
dd($post);
$em_numb = $post['em_numb']; $em_numb = $post['em_numb'];
$em = \app\em\model\Em::with('rule')->get(['em_numb'=>$em_numb]); $em = \app\em\model\Em::with('rule')->get(['em_numb'=>$em_numb]);
if(!isset($em->rule->pay_price) || empty($em->rule->pay_price)){ if(!isset($em->rule->pay_price) || empty($em->rule->pay_price)){
return json(['status'=>0,'msg'=>'抄表单单价未填写,审核不通过.']); return json(['status'=>0,'msg'=>'抄表单单价未填写,请补充单价之后再进行抄表.']);
} }
return json(['status'=>1,'message'=>'']); return json(['status'=>1,'message'=>'']);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论