dever 3 лет назад
Родитель
Сommit
7514a90188
2 измененных файлов с 6 добавлено и 6 удалено
  1. 1 1
      service/agent/database/member_agreement.php
  2. 5 5
      service/agent/lib/Agreement.php

+ 1 - 1
service/agent/database/member_agreement.php

@@ -365,7 +365,7 @@ return array
         'button' => $button,
         'list_button' => array
         (
-            'new' => array('查看', '"lib/agreement.location?id={id}"', 'agent', '"{status} != 3"'),
+            'new' => array('查看', '"lib/agreement.location?id={id}"', 'agent'),
             'oper' => array('作废并生成', '"agent/lib/manage.dropAgreement?id={id}"', "{status} == 2"),
             'oper1' => array('更新', '"agent/lib/manage.upAgreement?id={id}"', "{status} == 2"),
         ),

+ 5 - 5
service/agent/lib/Agreement.php

@@ -292,7 +292,7 @@ class Agreement
     {
     	$base = Dever::db('setting/base')->find();
 
-        if (isset($info['sdate'])) {
+        if (isset($info['sdate']) && $info['sdate']) {
         	$qdate = date('Y年m月d日', $info['qdate']);
         } else {
         	$qdate = date('Y年m月d日');
@@ -366,7 +366,7 @@ class Agreement
             $oagreement = Dever::db('setting/agreement')->find(1);
             $oname = $this->name($oagreement, $info, $role);
 
-            if (isset($info['sdate'])) {
+            if (isset($info['sdate']) && $info['sdate']) {
                 $sdate = date('Y年m月d日', $info['sdate']);
                 $edate = date('Y年m月d日', $info['edate']);
                 $qdate = date('Y年m月d日', $info['qdate']);
@@ -420,7 +420,7 @@ class Agreement
 
         $area = Dever::load("area/api.string", $info['area'], '-');
 
-        if (isset($info['sdate'])) {
+        if (isset($info['sdate']) && $info['sdate']) {
         	$sdate = date('Y年m月d日', $info['sdate']);
         	$edate = date('Y年m月d日', $info['edate']);
         	$qdate = date('Y年m月d日', $info['qdate']);
@@ -677,7 +677,7 @@ class Agreement
 
             $area = '【' . Dever::load("area/api.string", $info['area'], '') . '】';
 
-            if (isset($info['sdate'])) {
+            if (isset($info['sdate']) && $info['sdate']) {
                 $sdate = date('Y年m月d日', $info['sdate']);
                 $edate = date('Y年m月d日', $info['edate']);
                 $qdate = date('Y年m月d日', $info['qdate']);
@@ -849,7 +849,7 @@ class Agreement
 
         $area = '【' . Dever::load("area/api.string", $info['area'], '') . '】';
 
-        if (isset($info['sdate'])) {
+        if (isset($info['sdate']) && $info['sdate']) {
         	$sdate = date('Y年m月d日', $info['sdate']);
         	$edate = date('Y年m月d日', $info['edate']);
         	$qdate = date('Y年m月d日', $info['qdate']);