rabin 3 rokov pred
rodič
commit
ad49f67459
1 zmenil súbory, kde vykonal 7 pridanie a 7 odobranie
  1. 7 7
      app/cash/lib/Set.php

+ 7 - 7
app/cash/lib/Set.php

@@ -153,6 +153,7 @@ class Set
         $type = Dever::input('type', 'shop');
         $pay_type = 1;
         $table = 'cash/' . $type;
+        $source = $type;
         if ($type == 'shop') {
             $search_option_type = 1;
             $name = '门店';
@@ -239,28 +240,28 @@ class Set
         if ($show == 1) {
             if ($info['status'] == 1) {
 
-                $url = Dever::url('lib/set.audit&id='.$id.'&type=' . $type, 'cash');
-                $button[] = '<button class="layui-btn layui-btn-primary" onclick="load(\''.$url.'\', \''.$this->statYes($info, $type).'\', \'请确认\')">立即确认</button>';
+                $url = Dever::url('lib/set.audit&id='.$id.'&type=' . $source, 'cash');
+                $button[] = '<button class="layui-btn layui-btn-primary" onclick="load(\''.$url.'\', \''.$this->statYes($info, $source).'\', \'请确认\')">立即确认</button>';
             }
             $config['phone'] = '联系人:' . $other['truename'] . ',联系电话:' . $other['mobile'];
             $button[] = '<button class="layui-btn layui-btn-primary" onclick="showAlert(\''.$config['phone'].'\')">联系'.$name.'</button>';
 
             $start = date('Y-m-d H:i:s', $info['start']);
             $end = date('Y-m-d H:i:s', $info['end']);
-            $out = Dever::url('lib/set.excel?id=' . $info['id'] . '&type=' . $type, 'cash');
+            $out = Dever::url('lib/set.excel?id=' . $info['id'] . '&type=' . $source, 'cash');
             
             $button[] = '<a class="layui-btn layui-btn-primary" href="'.$out.'">导出对账单</a>';
         } elseif ($show == 2) {
             if ($info[$type . '_status'] == 1 && $show != 1) {
 
-                $url = Dever::url('lib/set.audit_other&id='.$id.'&type=' . $type, 'cash');
-                $button[] = '<button class="layui-btn layui-btn-primary" onclick="load(\''.$url.'\', \''.$this->statYes($info, $type).'\', \'请确认\')">立即确认</button>';
+                $url = Dever::url('lib/set.audit_other&id='.$id.'&type=' . $source, 'cash');
+                $button[] = '<button class="layui-btn layui-btn-primary" onclick="load(\''.$url.'\', \''.$this->statYes($info, $source).'\', \'请确认\')">立即确认</button>';
             }
             $config = Dever::load('factory/admin/auth.config');
             $config['phone'] = '联系电话:' . $config['dz_phone'];
             $button[] = '<button class="layui-btn layui-btn-primary" onclick="showAlert(\''.$config['phone'].'\')">联系对账专员</button>';
             
-            $print = Dever::url('admin/stat.print?id=' . $info['id'] . '&type=' . $type, $type);
+            $print = Dever::url('admin/stat.print?id=' . $info['id'] . '&type=' . $source, $type);
 
             $button[] = '<a class="layui-btn layui-btn-primary" href="'.$print.'" target="_blank">打印对账单</a>';
         }
@@ -410,7 +411,6 @@ class Set
         $config = Dever::db($table)->config;
 
         $info = Dever::db($table)->one($id);
-        print_r($info);die;
 
         $data = $this->getOrderData($type, $info, 'NoPage', $pay_type);