|
|
|
@ -51,6 +51,7 @@ class FeiePrintService implements FeiePrintServiceInterface |
|
|
|
->orderBy('s.id') |
|
|
|
->get() |
|
|
|
->toArray(); |
|
|
|
|
|
|
|
if (empty($data)) { |
|
|
|
return ; |
|
|
|
} |
|
|
|
@ -59,6 +60,7 @@ class FeiePrintService implements FeiePrintServiceInterface |
|
|
|
} |
|
|
|
|
|
|
|
$content = $this->printFormat($data, 14, 6, 3, 6); |
|
|
|
|
|
|
|
$res = $this->printMsg($data[0]['sn'], $content, 1); |
|
|
|
return ($res); |
|
|
|
} |
|
|
|
@ -82,7 +84,6 @@ class FeiePrintService implements FeiePrintServiceInterface |
|
|
|
'content' => $content, |
|
|
|
'times' => $times//打印次数
|
|
|
|
); |
|
|
|
|
|
|
|
$client = new FeiePrintClient($this->feieHost, $this->feiePort); |
|
|
|
if (!$client->post($this->feieApiPath, $msgInfo)) { |
|
|
|
echo 'error'; |
|
|
|
@ -110,14 +111,10 @@ class FeiePrintService implements FeiePrintServiceInterface |
|
|
|
$shopname = $v5['shopname']; |
|
|
|
} |
|
|
|
$name = $v5['name']; |
|
|
|
if(!empty($v5['spec'])) { |
|
|
|
$name .= "(规格:". $v5['spec'].")"; |
|
|
|
}elseif (!empty($v5['good_unit'])){ |
|
|
|
$name .= "(规格:". $v5['good_unit'].")"; |
|
|
|
} |
|
|
|
$price = $v5['money']; |
|
|
|
$name .= "(规格:". $v5['goods_unit'].")"; |
|
|
|
$price = $v5['m_money']; |
|
|
|
$num = $v5['number']; |
|
|
|
$prices = sprintf("%.2f",$v5['money']*$v5['number']); |
|
|
|
$prices = sprintf("%.2f",$v5['m_money']*$v5['number']); |
|
|
|
$kw3 = ''; |
|
|
|
$kw1 = ''; |
|
|
|
$kw2 = ''; |
|
|
|
|