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
6f1500da
authored
Mar 26, 2021
by
肖康
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
x
parent
72ad0d02
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
app/Http/Controllers/ApiController.php
resources/views/pdf/sale.blade.php
app/Http/Controllers/ApiController.php
View file @
6f1500da
...
...
@@ -121,7 +121,7 @@ class ApiController extends Controller
Export
((
new
InquiryModel
())
->
editInquiry
(
$input
));
}
//生成报价/销售 询价单
private
function
ApiAddInquiryReport
(
$input
,
$id
){
private
function
ApiAddInquiryReport
(
$input
,
$id
){
$InquiryItemsReportModel
=
new
InquiryItemsReportModel
();
if
(
@
$_REQUEST
[
"debug"
]
!=
100
){
$data
=
$InquiryItemsReportModel
->
addOffer
(
$input
);
...
...
resources/views/pdf/sale.blade.php
View file @
6f1500da
...
...
@@ -7,12 +7,12 @@
<style
type=
"text/css"
media=
"screen"
>
*
{
font-family
:
"simsun"
;
font-weight
:
normal
;
margin
:
0px
;
padding
:
0px
;
}
/*.pdf-box{margin:0 auto;font-size: 14px;color:#333;width:900px;padding:50px;}*/
.pdf-box
{
margin
:
0
auto
;
font-size
:
14px
;
color
:
#333
;
width
:
900px
;
padding
:
5
0px
;
box-sizing
:
border-box
;}
.pdf-box
{
margin
:
0
auto
;
font-size
:
14px
;
color
:
#333
;
padding
:
1
0px
;
box-sizing
:
border-box
;}
.header
{
text-align
:
center
;
font-size
:
28px
;
color
:
#000
;
position
:
relative
;}
.header
img
{
width
:
120px
;
position
:
absolute
;
left
:
60px
;
top
:
10px
;}
.bjdx
{
background
:
#ccffff
;
font-size
:
28px
;
color
:
#0000DA
;
text-align
:
center
;}
table
{
width
:
100%
;
border-collapse
:
collapse
;}
table
,
th
,
td
{
border
:
1px
solid
#000
;}
table
{
width
:
100%
;
border-collapse
:
collapse
;
table-layout
:
fixed
;
}
table
,
th
,
td
{
border
:
1px
solid
#000
;
}
table
td
{
padding
:
10px
;}
table
td
b
,
.table-tips
b
,
.footer
b
{
font-weight
:
bold
;}
.table-tips
{
font-weight
:
bold
;
padding
:
20px
0
;
font-weight
:
normal
;}
...
...
@@ -20,6 +20,11 @@
.footer
.pr30
{
position
:
relative
;
left
:
80px
;}
.footer
.pr60
{
position
:
relative
;
left
:
107px
;}
.footer
img
{
position
:
absolute
;
left
:
731px
;
top
:
40px
;}
.table2
td
{
height
:
auto
;
overflow
:
hidden
;
white-space
:
normal
;
word-break
:
break-all
;}
</style>
</head>
<body>
...
...
@@ -60,9 +65,9 @@
<div
class=
"table2"
>
<table>
<tr>
<td>
客户型号 Cust PartNo
</td>
<td>
原厂型号 Mfr PartNo
</td>
<td>
品牌 Mfr Name
</td>
<td
width=
"18%"
>
客户型号 Cust PartNo
</td>
<td
width=
"18%"
>
原厂型号 Mfr PartNo
</td>
<td
width=
"18%"
>
品牌 Mfr Name
</td>
<td>
报价(RMB含税)Quoted Price (RMB with 13%VAT,freight fee to factory and import fee )
</td>
<td>
报价(美金)QuotedPrice In USD
</td>
<td>
数量 Quantity
</td>
...
...
@@ -74,7 +79,7 @@
@if(!empty($itemsArr)
&&
is_array($itemsArr))
@foreach($itemsArr as $k=>$v)
<tr>
<td>
{{ @$v["goods_name"] }}
</td>
<td
>
{{ @$v["goods_name"] }}
</td>
<td>
{{ @$v["goods_name_pro"] }}
</td>
<td>
{{ @$v["brand_name"] }}
</td>
<td>
{{ @$v["price_rmb"] }}
</td>
...
...
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