|
@@ -180,7 +180,7 @@ class Beihuogl extends Start_Controller {
|
|
|
$start = ($page - 1)*$perpage;
|
|
$start = ($page - 1)*$perpage;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- $list = $this->bhsq->find_all($where,"id,shop_id,plat_id,title,sku,sqr,sq_num,sq_status,add_time,update_time,bh_no,u9sc_no,is_cx",$order_str,$start,$perpage);
|
|
|
|
|
|
|
+ $list = $this->bhsq->find_all($where,"id,shop_id,plat_id,title,sku,sqr,sq_num,sq_status,add_time,update_time,yqwc_time,bh_no,u9sc_no,is_cx",$order_str,$start,$perpage);
|
|
|
|
|
|
|
|
if(empty($list)){
|
|
if(empty($list)){
|
|
|
$rows = array('total'=>0,'over'=>1,'pagenum'=>0,'rows'=>([]));
|
|
$rows = array('total'=>0,'over'=>1,'pagenum'=>0,'rows'=>([]));
|
|
@@ -213,6 +213,7 @@ class Beihuogl extends Start_Controller {
|
|
|
}
|
|
}
|
|
|
$str .= "</div>";
|
|
$str .= "</div>";
|
|
|
$list[$k]['update_time'] = $str;
|
|
$list[$k]['update_time'] = $str;
|
|
|
|
|
+ $list[$k]['yqwc_time'] = empty($v['yqwc_time'])?'':date("Y-m-d H:i",$v['yqwc_time']);
|
|
|
unset($list[$k]['bh_no']);
|
|
unset($list[$k]['bh_no']);
|
|
|
unset($list[$k]['u9sc_no']);
|
|
unset($list[$k]['u9sc_no']);
|
|
|
unset($list[$k]['is_cx']);
|
|
unset($list[$k]['is_cx']);
|
|
@@ -258,6 +259,9 @@ class Beihuogl extends Start_Controller {
|
|
|
$insert_arr = [];
|
|
$insert_arr = [];
|
|
|
|
|
|
|
|
$time = time();
|
|
$time = time();
|
|
|
|
|
+ if(empty($data['yqwc_time'])){
|
|
|
|
|
+ echo json_encode(['code'=>-1,'msg'=>'预期完工事时间为填写']);
|
|
|
|
|
+ }
|
|
|
foreach($data['title'] as $k=>$v){
|
|
foreach($data['title'] as $k=>$v){
|
|
|
$insert_arr[] = [
|
|
$insert_arr[] = [
|
|
|
'sb_no'=>$sb_no,
|
|
'sb_no'=>$sb_no,
|
|
@@ -424,6 +428,11 @@ class Beihuogl extends Start_Controller {
|
|
|
'title'=>$data['title'],
|
|
'title'=>$data['title'],
|
|
|
'yqwc_time'=>empty($data['yqwc_time'])?0:strtotime($data['yqwc_time']),
|
|
'yqwc_time'=>empty($data['yqwc_time'])?0:strtotime($data['yqwc_time']),
|
|
|
];
|
|
];
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ if(empty($data['yqwc_time'])){
|
|
|
|
|
+ echo json_encode(['code'=>-1,'msg'=>'预期完工事时间为填写']);
|
|
|
|
|
+ }
|
|
|
$r = $this->bhsq->save($update_arr,$id);
|
|
$r = $this->bhsq->save($update_arr,$id);
|
|
|
if($r){
|
|
if($r){
|
|
|
echo json_encode(['msg'=>'添加成功','success'=>true]);
|
|
echo json_encode(['msg'=>'添加成功','success'=>true]);
|