|
@@ -554,6 +554,11 @@ class Buy
|
|
$type = 1;
|
|
$type = 1;
|
|
$type = Dever::input('type', $type);
|
|
$type = Dever::input('type', $type);
|
|
|
|
|
|
|
|
+ $noprice = Dever::input('noprice', 2);
|
|
|
|
+ if ($type == 3) {
|
|
|
|
+ $noprice = 1;
|
|
|
|
+ }
|
|
|
|
+
|
|
$cash_type = Dever::input('cash', 1);
|
|
$cash_type = Dever::input('cash', 1);
|
|
|
|
|
|
$config = Dever::db('shop/buy_order')->config;
|
|
$config = Dever::db('shop/buy_order')->config;
|
|
@@ -689,7 +694,7 @@ class Buy
|
|
'content' => $config['phone'],
|
|
'content' => $config['phone'],
|
|
'name' => '联系平台',
|
|
'name' => '联系平台',
|
|
);
|
|
);
|
|
- } elseif ($type == 3) {
|
|
|
|
|
|
+ } elseif ($noprice == 1) {
|
|
$config = Dever::load('factory/admin/auth.config');
|
|
$config = Dever::load('factory/admin/auth.config');
|
|
|
|
|
|
$button[] = array
|
|
$button[] = array
|
|
@@ -790,7 +795,7 @@ class Buy
|
|
}
|
|
}
|
|
|
|
|
|
$info['ps_info']['order_num'] = str_replace("\r\n", ',', $info['ps_info']['order_num']);
|
|
$info['ps_info']['order_num'] = str_replace("\r\n", ',', $info['ps_info']['order_num']);
|
|
- if ($type == 3) {
|
|
|
|
|
|
+ if ($noprice == 1) {
|
|
$result['物流信息'] = array
|
|
$result['物流信息'] = array
|
|
(
|
|
(
|
|
'type' => 'info',
|
|
'type' => 'info',
|
|
@@ -933,7 +938,7 @@ class Buy
|
|
|
|
|
|
if ($tk && $v['status'] == 3 && $tk['status'] != 3) {
|
|
if ($tk && $v['status'] == 3 && $tk['status'] != 3) {
|
|
$d['status'] = $tk_status[$tk['status']];
|
|
$d['status'] = $tk_status[$tk['status']];
|
|
- if ($type == 3) {
|
|
|
|
|
|
+ if ($noprice == 1) {
|
|
unset($d['price']);
|
|
unset($d['price']);
|
|
}
|
|
}
|
|
$refund_body[] = $d;
|
|
$refund_body[] = $d;
|
|
@@ -941,7 +946,7 @@ class Buy
|
|
$refund_body_total['price'] += $price;
|
|
$refund_body_total['price'] += $price;
|
|
$refund_body_total['num'] += $v['num'];
|
|
$refund_body_total['num'] += $v['num'];
|
|
} else {
|
|
} else {
|
|
- if ($type == 3) {
|
|
|
|
|
|
+ if ($noprice == 1) {
|
|
unset($d['price']);
|
|
unset($d['price']);
|
|
}
|
|
}
|
|
$body[] = $d;
|
|
$body[] = $d;
|
|
@@ -960,7 +965,7 @@ class Buy
|
|
$body_total['set_num'] = $body_total['num'] - $refund_body_total['num'];
|
|
$body_total['set_num'] = $body_total['num'] - $refund_body_total['num'];
|
|
}
|
|
}
|
|
|
|
|
|
- if ($type == 3) {
|
|
|
|
|
|
+ if ($noprice == 1) {
|
|
unset($body_total['price']);
|
|
unset($body_total['price']);
|
|
unset($body_total['set_price']);
|
|
unset($body_total['set_price']);
|
|
}
|
|
}
|
|
@@ -975,7 +980,7 @@ class Buy
|
|
|
|
|
|
if ($refund_body) {
|
|
if ($refund_body) {
|
|
|
|
|
|
- if ($type == 3) {
|
|
|
|
|
|
+ if ($noprice == 1) {
|
|
unset($refund_body_total['price']);
|
|
unset($refund_body_total['price']);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -991,7 +996,6 @@ class Buy
|
|
if ($cash_type == 1) {
|
|
if ($cash_type == 1) {
|
|
if ($search_option_type == 1) {
|
|
if ($search_option_type == 1) {
|
|
# 门店结算单
|
|
# 门店结算单
|
|
- echo 11;die;
|
|
|
|
$cash_order = Dever::db('cash/order')->select(array('type' => $info['type'], 'type_id' => $info['type_id'], 'source_order_id' => $info['id']));
|
|
$cash_order = Dever::db('cash/order')->select(array('type' => $info['type'], 'type_id' => $info['type_id'], 'source_order_id' => $info['id']));
|
|
|
|
|
|
$col = 'cash';
|
|
$col = 'cash';
|