|
|
@@ -3040,7 +3040,7 @@ XL;
|
|
|
}
|
|
|
$distId = $custom->distId ?? '';
|
|
|
$dist = DistClass::getById($distId, true);
|
|
|
- $distName = $dist->name ?? '';
|
|
|
+ $distName = $dist->name ?? '未分区';
|
|
|
|
|
|
$address = $order->address ?? '';
|
|
|
$floor = $order->floor ?? '';
|
|
|
@@ -3101,14 +3101,10 @@ XL;
|
|
|
$itemNum = floatval($itemNum);
|
|
|
$payTime = $order->payTime ?? '';
|
|
|
$payDate = date('m-d H:i', strtotime($payTime));
|
|
|
- $content = '<TEXT x="400" y="30" font="12" w="4" h="4" r="90">' . $shortName . '</TEXT>';
|
|
|
- $content .= '<TEXT x="290" y="30" font="12" w="2" h="3" r="90">' . $customName . '</TEXT>';
|
|
|
- $content .= '<TEXT x="195" y="30" font="12" w="1" h="2" r="90">' . $fullAddress . '</TEXT>';
|
|
|
- $content .= '<TEXT x="128" y="30" font="12" w="2" h="2" r="90">' . $customMobile . ' ' . $itemNum . '扎</TEXT>';
|
|
|
- //福州易批花,温州易批花,不仅要自动打印,还要打印出物流名称
|
|
|
- if ($orderMainId == 25119 || $orderMainId == 28500 || $orderMainId == 828) {
|
|
|
- $content .= '<TEXT x="70" y="30" font="12" w="2" h="2" r="90">片区 ' . $distName . ' ' . $payDate . '</TEXT>';
|
|
|
- }
|
|
|
+ $content = '<TEXT x="400" y="30" font="12" w="3" h="3" r="90">' . $customName . '</TEXT>';
|
|
|
+ $content .= '<TEXT x="280" y="30" font="12" w="2" h="2" r="90">' . $fullAddress . '</TEXT>';
|
|
|
+ $content .= '<TEXT x="180" y="30" font="12" w="2" h="2" r="90">' . $customMobile . ' ' . $itemNum . '扎</TEXT>';
|
|
|
+ $content .= '<TEXT x="86" y="30" font="12" w="2" h="2" r="90">' . $distName . ' ' . $payDate . '</TEXT>';
|
|
|
/**************************如果是好多花的云仓还要再打一下标签纸,多处要同步修改,关键词 hdh_yc *****************************/
|
|
|
}
|
|
|
$p->printLabelMsg($content);
|