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
e57c2b3c
authored
May 20, 2021
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整询价导入
parent
78dc49e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletions
app/Model/InquiryItemsModel.php
app/Model/InquiryItemsModel.php
View file @
e57c2b3c
...
...
@@ -449,6 +449,14 @@ class InquiryItemsModel extends Model
"create_time"
=>
time
()
,
"update_time"
=>
time
()
,
];
if
(
$b
[
'is_quote'
]
==
'否'
)
{
$insertArr
[
'is_quote'
]
=
-
1
;
$insertArr
[
'status'
]
=
5
;
}
else
{
$insertArr
[
'is_quote'
]
=
1
;
}
#判断是否已经存在此品牌+型号
$check
=
$this
->
where
([
"inquiry_id"
=>
$inquiry_id
,
"goods_name"
=>
$b
[
"goods_name"
],
"brand_name"
=>
$b
[
"brand_name"
]])
->
count
();
if
(
$check
>
0
){
...
...
@@ -512,6 +520,7 @@ class InquiryItemsModel extends Model
"target_price"
,
//可空
"batch"
,
"delivery_time"
,
"is_quote"
,
"assign"
,
//指定采购,可空
];
$filer_need
=
[
//必填字段
...
...
@@ -526,7 +535,7 @@ class InquiryItemsModel extends Model
foreach
(
$excel
as
$k
=>
$v
)
{
if
(
$k
==
0
)
continue
;
//排除第一
行表头
if
(
$k
==
0
||
$k
==
1
)
continue
;
//排除第一、二
行表头
$temp
=
[];
$c
=
0
;
foreach
(
$v
as
$a
=>
$b
){
...
...
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