Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄成意
/
php_frq_api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9b0e4a9b
authored
Mar 05, 2021
by
hcy001
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1
parent
a420f07e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
5 deletions
app/Http/Controllers/HdController.php
app/Model/InquiryItemsReportModel.php
app/Model/InquiryModel.php
app/Http/Controllers/HdController.php
View file @
9b0e4a9b
...
@@ -29,6 +29,7 @@ class HdController extends Controller
...
@@ -29,6 +29,7 @@ class HdController extends Controller
$dompdf
->
setPaper
(
'A4'
,
'portrait'
);
$dompdf
->
setPaper
(
'A4'
,
'portrait'
);
$dompdf
->
setOptions
(
$options
);
$dompdf
->
setOptions
(
$options
);
$dompdf
->
render
();
$dompdf
->
render
();
$dompdf
->
save
(
storage_path
(
'app/public/pdf/date.pdf'
));
return
$dompdf
->
stream
(
'44444.pdf'
);
return
$dompdf
->
stream
(
'44444.pdf'
);
}
}
...
...
app/Model/InquiryItemsReportModel.php
View file @
9b0e4a9b
...
@@ -7,6 +7,7 @@ use App\Model\InquiryItemsAssignModel;
...
@@ -7,6 +7,7 @@ use App\Model\InquiryItemsAssignModel;
use
App\Model\OplogModel
;
use
App\Model\OplogModel
;
use
App\Model\UserModel
;
use
App\Model\UserModel
;
use
DB
;
use
DB
;
use
PDF
;
// 销售/报价 单
// 销售/报价 单
class
InquiryItemsReportModel
extends
Model
class
InquiryItemsReportModel
extends
Model
...
@@ -18,11 +19,12 @@ class InquiryItemsReportModel extends Model
...
@@ -18,11 +19,12 @@ class InquiryItemsReportModel extends Model
//生成报价单
//生成报价单
public
function
addOffer
(){
public
function
addOffer
(){
if
(
!
Request
::
has
(
"abnormal_id"
)){
return
false
;
$path
=
'pdf/销售报价单'
.
date
(
"Y-m-d"
)
.
'.pdf'
;
}
PDF
::
loadHTML
(
"<h1>gagagagag</h1>"
)
$input
=
Request
::
all
();
->
setPaper
(
'a4'
,
'portrait'
)
print_r
(
$input
);
->
setWarnings
(
false
)
->
save
(
$path
);
die
();
die
();
$insertArr
=
[];
//批量插入数组
$insertArr
=
[];
//批量插入数组
...
...
app/Model/InquiryModel.php
View file @
9b0e4a9b
...
@@ -124,6 +124,12 @@ class InquiryModel extends Model
...
@@ -124,6 +124,12 @@ class InquiryModel extends Model
}
}
$v
[
'quote_price'
]
=
@
$quote
[
"quote_price"
]
>
0
?
$quote
[
"quote_price"
]
:
"------"
;
//存在报价
$v
[
'quote_price'
]
=
@
$quote
[
"quote_price"
]
>
0
?
$quote
[
"quote_price"
]
:
"------"
;
//存在报价
// 在Redis集合中检查是否有新的报价
$res
=
RedisDB
::
sIsMember
(
'frq_quote_urge'
,
$v
[
'id'
]);
if
(
$res
)
{
$v
[
'inquiry_sn'
]
=
$v
[
'inquiry_sn'
]
.
"<span style='color:red;'> *</span>"
;
}
}
}
$data
=
$list
[
'data'
];
$data
=
$list
[
'data'
];
if
(
@
$input
[
"is_export"
]
==
1
){
#如果是导出
if
(
@
$input
[
"is_export"
]
==
1
){
#如果是导出
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment