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