rabin 3 years ago
parent
commit
3d163f1ee3

+ 32 - 7
service/agent/lib/Agreement.php

@@ -1503,15 +1503,39 @@ class Agreement
             }
         }
 
+        $pdf->AddPage();
+
+        $pdf->br(1, 1);
+        $pdf->font($this->font_size, 'B');
+        $pdf->left('【以下为签署页,无正文】', 100);
+        $pdf->br();
+
         $pdf->br(1, 20);
         $pdf->font($this->font_size, '');
-        $pdf->left('甲 方(盖章):', 90)->left('乙 方(盖章/签字):', 90);
+        $pdf->left('甲 方(盖章):', 100);
+        $pdf->br();
+
+        $pdf->br(1, 20);
+        $pdf->left('法定代表人或授权代表(签字):', 100);
         $pdf->br();
 
         $pdf->br(1, 1);
         $pdf->font($this->font_size, '');
-        $pdf->left('日                      期:'.$qdate, 90);
-        $pdf->left('日                      期:'.$qdate, 80);
+        $pdf->left('签署时间:'.$qdate, 90);
+        $pdf->br();
+
+        $pdf->br(1, 20);
+        $pdf->font($this->font_size, '');
+        $pdf->left('乙方(盖章):', 100);
+        $pdf->br();
+
+        $pdf->br(1, 20);
+        $pdf->left('法定代表人或授权代表(签字):王雷', 100);
+        $pdf->br();
+
+        $pdf->br(1, 1);
+        $pdf->font($this->font_size, '');
+        $pdf->left('签署时间:'.$qdate, 90);
         $pdf->br();
 
         $pic = Dever::pic($base['agreement_sign']);
@@ -1520,16 +1544,17 @@ class Agreement
         $cy = $pdf->GetY();
 
         $x = $cx + 50;
-        $y = $cy - 25;
+        $y = $cy - 50;
 
-        $pdf->Image($pic, $x, $y, 15, 15);
+        $pdf->Image($pic, $x, $y, 30, 30);
 
-        $x += 100;
+        $x += 20;
+        $y -= 48;
 
         if ($info['sign']) {
             $info['sign'] = Dever::pic($info['sign']);
             if (strstr($info['sign'], 'http')) {
-                $pdf->Image($info['sign'], $x, $y, 15, 15);
+                $pdf->Image($info['sign'], $x, $y, 30, 30);
             }
         }
 

+ 3 - 0
service/agent/lib/Import.php

@@ -344,6 +344,9 @@ class Import
         $data['type'] = $type;
         $data['before'] = $before;
         $data['after'] = $after;
+        if ($type == 5) {
+            $data['status'] = 2;
+        }
         Dever::db('agent/import_log')->insert($data);
     }
 

+ 1 - 1
service/agent/lib/Order.php

@@ -1026,7 +1026,7 @@ class Order
         $table['body'] = array();
         $agreement_type = Dever::db('setting/agreement')->config['config_type'];
         $agreement_status = Dever::db('agent/member_agreement')->config['status'];
-        if ((isset($process[3]['type']) && is_array($process[3]['type']) && in_array(5, $process[3]['type'])) || $info['import'] > 1) {
+        if (!$table) {
             $agreement_title = '(已生成合同)';
             $agreement_button = array();
 

+ 4 - 0
service/agent/src/My.php

@@ -7,6 +7,10 @@ use Agent\Lib\Core;
 
 class My extends Core
 {
+    public function getCounty()
+    {
+        return Dever::load('area/import')->getCounty(440000, 441900, '44/4419.html');
+    }
     public function test()
     {
         # 1000 邀请 1001 1001 邀请 1002