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
73ff9ad8
authored
Mar 26, 2021
by
hcy001
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'master' of
ssh://119.23.72.7:22611/q578953158/php_frq_api
parents
64479bb8
2dab6b04
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletions
app/Model/QuoteModel.php
app/Model/QuoteModel.php
View file @
73ff9ad8
...
...
@@ -316,6 +316,10 @@ class QuoteModel extends Model
$quote_info
[
'brand_name'
]
=
$brand
[
0
][
'brand_name'
];
unset
(
$quote_info
[
'brand_s'
]);
if
(
$quote_info
[
'currency'
]
==
2
)
{
// 美元时,含税单价为0
$quote_info
[
'price_rmb'
]
=
0
;
}
$params
=
[];
$params
[
'spu_name'
]
=
strtoupper
(
$quote_info
[
'goods_name'
]);
$params
[
'brand_name'
]
=
$quote_info
[
'brand_name'
];
...
...
@@ -402,8 +406,14 @@ class QuoteModel extends Model
$ApiController
=
new
ApiController
;
foreach
(
$excel
as
&
$v
)
{
if
(
$v
[
'currency'
]
==
'RMB'
)
{
$v
[
'currency'
]
=
1
;
}
else
{
$v
[
'currency'
]
=
2
;
$v
[
'price_rmb'
]
=
0
;
// 美元时,含税单价为0
}
$v
[
'quote_sn'
]
=
$ApiController
->
createSn
(
$this
,
'quote_sn'
,
'B'
);
$v
[
'currency'
]
=
$v
[
'currency'
]
==
'RMB'
?
1
:
2
;
$v
[
'inquiry_id'
]
=
$input
[
'inquiry_id'
];
$v
[
'inquiry_sn'
]
=
$input
[
'inquiry_sn'
];
$v
[
'inquiry_items_id'
]
=
$input
[
'inquiry_items_id'
];
...
...
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