合同状态设置bug修正
This commit is contained in:
parent
4a7d8af51b
commit
727b9d2d09
@ -167,11 +167,13 @@ class Index extends BaseController
|
||||
View::assign('auth', isAuth($this->uid,'contract_admin'));
|
||||
if ($id > 0) {
|
||||
$detail = (new ContractList())->detail($id);
|
||||
if($detail['check_status']>1){
|
||||
if($detail['check_status'] == 0 || $detail['check_status'] == 4){
|
||||
View::assign('detail', $detail);
|
||||
return view('edit');
|
||||
}
|
||||
else{
|
||||
echo '<div style="text-align:center;color:red;margin-top:20%;">当前状态不开放编辑,请联系合同管理员</div>';exit;
|
||||
}
|
||||
View::assign('detail', $detail);
|
||||
return view('edit');
|
||||
}
|
||||
if($pid>0){
|
||||
$p_contract = Db::name('Contract')->where(['id' => $pid])->find();
|
||||
|
@ -207,7 +207,7 @@ html{background-color:#fff;}
|
||||
</td>
|
||||
</tr>
|
||||
{/notempty}
|
||||
{eq name="$detail.check_status" value="3" }
|
||||
{eq name="$detail.check_status" value="2" }
|
||||
<tr>
|
||||
<td class="layui-td-gray-2">归档状态</td>
|
||||
{eq name="$detail.archive_status" value="0" }
|
||||
@ -254,7 +254,7 @@ html{background-color:#fff;}
|
||||
{/eq}
|
||||
|
||||
{gt name="$auth" value="0"}
|
||||
{eq name="$detail.check_status" value="3" }
|
||||
{eq name="$detail.check_status" value="2" }
|
||||
<div class="py-4">
|
||||
{eq name="$detail.archive_status" value="1" }
|
||||
<span class="layui-btn layui-btn-danger" data-event="archive" data-status="0">反确认归档</span>
|
||||
|
Loading…
x
Reference in New Issue
Block a user