Commit ff9acd37 by 孙龙

打印

parent e00dcea4
...@@ -57,5 +57,5 @@ MAIL_ENCRYPTION=tls ...@@ -57,5 +57,5 @@ MAIL_ENCRYPTION=tls
ADMIN=liuzhiyong@teshehui.com ADMIN=liuzhiyong@teshehui.com
LOGIN_DOMAIN='user.liexin.net' LOGIN_DOMAIN='user.liexin.net'
ERP_DOMAIN=http://192.168.1.235:6886 ERP_DOMAIN=http://192.168.1.238:6888
ERP_DB_NAME=ICHUNT ERP_DB_NAME=DEMO
\ No newline at end of file \ No newline at end of file
...@@ -156,7 +156,7 @@ Class AjaxController extends Controller ...@@ -156,7 +156,7 @@ Class AjaxController extends Controller
$template = TemplateListModel::find($t_id); $template = TemplateListModel::find($t_id);
//登录 //登录
$soap = new \SoapClient(env("ERP_DOMAIN").'/ormrpc/services/EASLogin?wsdl'); $soap = new \SoapClient(env("ERP_DOMAIN").'/ormrpc/services/EASLogin?wsdl');
$res = $soap->login( 'TC', 'unicom', 'eas', env('ERP_DB_NAME'), 'L2', 1, 'BaseDB'); // $res = $soap->login( 'TC', 'unicom', 'eas', env('ERP_DB_NAME'), 'L2', 1, 'BaseDB');
//接口 //接口
$this->erp = new \SoapClient(ENV("ERP_DOMAIN").'/ormrpc/services/WSIchuntjKFacade?wsdl'); $this->erp = new \SoapClient(ENV("ERP_DOMAIN").'/ormrpc/services/WSIchuntjKFacade?wsdl');
$res = $this->erp->createIssueLabel(json_encode([ $res = $this->erp->createIssueLabel(json_encode([
......
...@@ -225,7 +225,7 @@ class LabelService { ...@@ -225,7 +225,7 @@ class LabelService {
$returnHtml = []; $returnHtml = [];
foreach($datas as $item){ foreach($datas as $item){
$pringNums = $item["print_num"]; $pringNums = $item["print_num"];
for ($i=0;$i<=$pringNums;$i++){ for ($i=0;$i<$pringNums;$i++){
$html = $templateList[$item["template_id"]]["template_extend"]["html"]; $html = $templateList[$item["template_id"]]["template_extend"]["html"];
$createHtml = (new \App\Services\LabelService)->getLabelOfflineHtml($html,$item); $createHtml = (new \App\Services\LabelService)->getLabelOfflineHtml($html,$item);
if($createHtml){ if($createHtml){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment