diff --git a/app/contract/controller/Index.php b/app/contract/controller/Index.php
index 5bc952b..ad39801 100644
--- a/app/contract/controller/Index.php
+++ b/app/contract/controller/Index.php
@@ -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 '
当前状态不开放编辑,请联系合同管理员
';exit;
}
- View::assign('detail', $detail);
- return view('edit');
}
if($pid>0){
$p_contract = Db::name('Contract')->where(['id' => $pid])->find();
diff --git a/app/contract/view/index/view.html b/app/contract/view/index/view.html
index b5ccae1..90b1837 100644
--- a/app/contract/view/index/view.html
+++ b/app/contract/view/index/view.html
@@ -207,7 +207,7 @@ html{background-color:#fff;}
{/notempty}
- {eq name="$detail.check_status" value="3" }
+ {eq name="$detail.check_status" value="2" }
归档状态 |
{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" }
{eq name="$detail.archive_status" value="1" }
反确认归档