作者 jinglong
1 个管道 的构建 通过 耗费 1 秒

修改报表名称

... ... @@ -1803,15 +1803,16 @@ class CommonController extends RestBaseController
$arr = [];
if($flag == 'repair'){
//报修
$arr['title'] = $res['title'].'维修报表';
$company = $this->getCompanyName($res['project_id'],'报修');
}else{
//改造
$arr['title'] = $res['title'].'改造报表';
$company = $this->getCompanyName($res['project_id'],'改造');
}
if($company){
$arr['a_company'] = $company['a_company'];
$arr['b_company'] = $company['b_company'];
$arr['title'] = $company['title'];
}
//报修单号
... ... @@ -1953,16 +1954,17 @@ class CommonController extends RestBaseController
$arr = [];
if($flag == 'train'){
//培训
$arr['title'] = $res['title'].'培训报表';
$company = $this->getCompanyName($res['project_id'],'培训');
}else{
//演习
$arr['title'] = $res['title'].'演习报表';
$company = $this->getCompanyName($res['project_id'],'演习');
}
if($company){
$arr['a_company'] = $company['a_company'];
$arr['b_company'] = $company['b_company'];
$arr['title'] = $company['title'];
}
//培训单号
... ... @@ -2120,6 +2122,9 @@ class CommonController extends RestBaseController
}
if($table == 'check'){
$project = $this->getProjectName($res['project_id']);
$arr['title'] = $project['project_name'] . '月检' . date('Y-m-d', $res['ins_m_time']);
//月检时间
$arr['ins_m_time'] = $res['ins_m_time'];
//月检点
... ...
... ... @@ -279,7 +279,7 @@ class AdminProjectController extends AdminBaseController
$company_a['company_name'] = $data['company_name'];//甲方公司名称
if($data['is_children'] == 1){
$company_a['company_name_head'] = $data['company_name_head'];//甲方总公司名称
$company_a['address'] = $data['address'];//地区
//$company_a['address'] = $data['address'];//地区
}
$company_a['u_s_id'] = $u_s_id;//甲方员工uid
$company_a['is_children'] = $data['is_children'];
... ... @@ -439,7 +439,7 @@ class AdminProjectController extends AdminBaseController
$company_a['license'] = $data['license'];
if($data['is_children'] == 1){
$company_a['company_name_head'] = $data['company_name_head'];//甲方总公司名称
$company_a['address'] = $data['address'];//地区
//$company_a['address'] = $data['address'];//地区
//查询该总领导是否存在
$res = $common->getIsMobile($data['mobile2']);
$userModel = new UserModel();
... ... @@ -463,7 +463,7 @@ class AdminProjectController extends AdminBaseController
}
}else{
$company_a['company_name_head'] = '';//甲方总公司名称
$company_a['address'] = '';//地区
//$company_a['address'] = '';//地区
$company_a['u_ls_id'] = 0;//总领导
}
$companyModel->where('id',$project['a_cid'])->update($company_a);
... ...
... ... @@ -114,12 +114,12 @@
<input class="form-control" type="text" name="company_name_head" placeholder="请输入总公司名称"/>
</td>
</tr>
<tr class="address company_address">
<th>企业地区</th>
<td>
<input class="form-control" type="text" name="address" placeholder="请输入企业地区"/>
</td>
</tr>
<!--<tr class="address company_address">-->
<!--<th>企业地区</th>-->
<!--<td>-->
<!--<input class="form-control" type="text" name="address" placeholder="请输入企业地区"/>-->
<!--</td>-->
<!--</tr>-->
<tr class="address company_address">
<th>企业总领导</th>
<td>
... ...
... ... @@ -124,12 +124,12 @@
<input class="form-control" type="text" name="company_name_head" placeholder="请输入总公司名称" value="{$post.part_a.company_name_head}"/>
</td>
</tr>
<tr class="address company_address">
<th>企业地区</th>
<td>
<input class="form-control" type="text" name="address" placeholder="请输入企业地区" value="{$post.part_a.address}"/>
</td>
</tr>
<!--<tr class="address company_address">-->
<!--<th>企业地区</th>-->
<!--<td>-->
<!--<input class="form-control" type="text" name="address" placeholder="请输入企业地区" value="{$post.part_a.address}"/>-->
<!--</td>-->
<!--</tr>-->
<tr class="address company_address">
<th>企业总领导</th>
<td>
... ...