From aec6d8fd5d031cd8efef553f90501ee92ebda050 Mon Sep 17 00:00:00 2001 From: "HDM58\\hdm58" Date: Thu, 14 Sep 2023 11:57:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E5=90=88=E5=90=8C?= =?UTF-8?q?=E5=8D=8F=E8=AE=AE=E5=9C=A8=E6=9C=AA=E5=AE=A1=E6=A0=B8=E5=89=8D?= =?UTF-8?q?=E7=9A=84=E4=B8=AD=E6=AD=A2=E3=80=81=E4=BD=9C=E5=BA=9F=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E6=8F=90=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/contract/controller/Api.php | 4 ++-- app/contract/model/Contract.php | 2 +- app/contract/view/index/view.html | 24 ++++++++++++------------ app/contract/view/index/view_set.html | 6 +++--- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/app/contract/controller/Api.php b/app/contract/controller/Api.php index 92e80e9..b54949a 100644 --- a/app/contract/controller/Api.php +++ b/app/contract/controller/Api.php @@ -164,12 +164,12 @@ class Api extends BaseController $param['check_time'] = time(); $param['check_remark'] = $param['mark']; } - if($param['check_status'] == 4){ + if($param['check_status'] == 5){ $param['stop_uid'] = $this->uid; $param['stop_time'] = time(); $param['stop_remark'] = $param['mark']; } - if($param['check_status'] == 5){ + if($param['check_status'] == 6){ $param['void_uid'] = $this->uid; $param['void_time'] = time(); $param['void_remark'] = $param['mark']; diff --git a/app/contract/model/Contract.php b/app/contract/model/Contract.php index d9e21eb..54a294f 100644 --- a/app/contract/model/Contract.php +++ b/app/contract/model/Contract.php @@ -106,7 +106,7 @@ class Contract extends Model //作废信息 if($detail['void_uid'] > 0){ $detail['void_name'] = Db::name('Admin')->where(['id' => $detail['void_uid']])->value('name'); - $detail['voidtime'] = date('Y-m-d', $detail['void_time']); + $detail['void_time'] = date('Y-m-d', $detail['void_time']); } //归档信息 if($detail['archive_status'] == 1){ diff --git a/app/contract/view/index/view.html b/app/contract/view/index/view.html index 4898aa0..de6661d 100644 --- a/app/contract/view/index/view.html +++ b/app/contract/view/index/view.html @@ -93,7 +93,7 @@ html{background-color:#fff;} {notempty name="$detail.remark"} 备注信息 - {$detail.remark} + {$detail.remark|default=''} {/notempty} {notempty name="$detail.file_ids"} @@ -149,9 +149,9 @@ html{background-color:#fff;} 合同状态 {$detail.status_name} 录入人 - {$detail.admin_name} + {$detail.admin_name|default=''} 录入时间 - {$detail.create_time} + {$detail.create_time|default=''} {notempty name="$check_record"} @@ -175,7 +175,7 @@ html{background-color:#fff;} {elseif ($detail.check_status == 0) OR ($detail.check_status == 4)} {include file="/index/view_set" /} {else /} - +
{eq name="$detail.check_status" value="2" } @@ -184,9 +184,9 @@ html{background-color:#fff;} {else/} - + - + {/eq} {/eq} @@ -194,26 +194,26 @@ html{background-color:#fff;} {eq name="$detail.check_status" value="5" } - + - + - + {/eq} {eq name="$detail.check_status" value="6" } - + - + - + {/eq}
归档状态{$detail.archive_status_name} 归档人{$detail.archive_name} {$detail.archive_name|default=''} 归档时间{$detail.archive_time}{$detail.archive_time|default=''}
中止人{$detail.stop_name} {$detail.stop_name|default=''} 中止时间{$detail.stop_time}{$detail.stop_time|default=''}
中止备注{$detail.stop_remark}{$detail.stop_remark|default=''}
作废人{$detail.void_name} {$detail.void_name|default=''} 作废时间{$detail.void_time}{$detail.void_time|default=''}
作废备注{$detail.void_remark}{$detail.void_remark|default=''}
diff --git a/app/contract/view/index/view_set.html b/app/contract/view/index/view_set.html index 48d88dd..cfa1c08 100644 --- a/app/contract/view/index/view_set.html +++ b/app/contract/view/index/view_set.html @@ -33,13 +33,13 @@ 编辑合同 {/eq} {gt name="$auth" value="0"} - 中止合同 - 作废合同 + 中止合同 + 作废合同 {/gt}