diff --git a/admin/debug/index.php b/admin/debug/index.php
index b181040..c07a6f8 100644
--- a/admin/debug/index.php
+++ b/admin/debug/index.php
@@ -83,7 +83,7 @@ body,input,td,select,div,li,ul,textarea,form {
$tmp=get_db_msg("select count(*) 'num' from ".$table_pre."kh where ka='y' or color_ka<>''");
if($tmp["num"]>0)
echo " 删除款明细";
- ?> 数据库源文件 单客户明细表 明细总表 明细总表(鞋子版本) 明细总表(尺码竖排) 大货单 弹幕导出 图片资料(请复制attachments文件夹)
+ ?> 数据库源文件 单客户明细表 明细总表 明细总表(鞋子版本) 明细总表(尺码竖排) 大货单 工厂下单表 弹幕导出 图片资料(请复制attachments文件夹)
| 订单处理 |
diff --git a/admin/debug/order.php b/admin/debug/order.php
new file mode 100644
index 0000000..1bec681
--- /dev/null
+++ b/admin/debug/order.php
@@ -0,0 +1,545 @@
+
+
+
+
+
+
+ connect($dbhost,$dbuser,$dbpw,$dbname,"p");
+ $sys_size_num=get_max_size_num();
+
+ error_reporting(E_ERROR | E_WARNING | E_PARSE);
+
+
+// 查询web_order表中的订单款号和颜色
+$sql = "SELECT DISTINCT no, color FROM web_order ORDER BY no";
+$result = $db->query($sql);
+$order_items = array();
+while($row = $db->fetch_array($result)) {
+ $order_items[] = $row;
+}
+
+
+// 在表格中显示查询结果
+$counter = 1;
+foreach($order_items as $item) {
+ // 查询当前货号的店铺定量
+ $shop_order_row = array();
+ $shop_order_query = "SELECT no,
+ SUM(num_1) as c32,
+ SUM(num_2) as c33,
+ SUM(num_3) as c34,
+ SUM(num_4) as c35,
+ SUM(num_5) as c36,
+ SUM(num_6) as c37,
+ SUM(num_7) as c38,
+ SUM(num_8) as c39,
+ SUM(num_9) as c40,
+ SUM(num_10) as c41,
+ SUM(num) as num
+ FROM web_order
+ WHERE uid IN (SELECT id FROM web_client WHERE dpsx='店铺')
+ AND no = '{$item['no']}'
+ GROUP BY no";
+
+ $shop_result = $db->query($shop_order_query);
+ if($db->num_rows($shop_result) > 0) {
+ $shop_order_row = $db->fetch_array($shop_result);
+ }
+// 查询当前货号的批发定量
+ $pf_order_row = array();
+ $pf_order_query = "SELECT no,
+ SUM(num_1) as c32,
+ SUM(num_2) as c33,
+ SUM(num_3) as c34,
+ SUM(num_4) as c35,
+ SUM(num_5) as c36,
+ SUM(num_6) as c37,
+ SUM(num_7) as c38,
+ SUM(num_8) as c39,
+ SUM(num_9) as c40,
+ SUM(num_10) as c41,
+ SUM(num) as num
+FROM web_order
+WHERE uid IN (SELECT id FROM web_client WHERE dpsx='批发')
+ AND no = '{$item['no']}'
+GROUP BY no";
+
+$pf_result = $db->query($pf_order_query);
+if($db->num_rows($pf_result) > 0) {
+ $pf_order_row = $db->fetch_array($pf_result);
+}
+
+ // 包含orderlist.php文件并传递当前item数据
+ include 'orderlist.php';
+ $counter++;
+}
+
+
+
diff --git a/admin/debug/orderlist.php b/admin/debug/orderlist.php
new file mode 100644
index 0000000..f9c550e
--- /dev/null
+++ b/admin/debug/orderlist.php
@@ -0,0 +1,1899 @@
+
+
+
+