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
95ac6690
authored
Mar 11, 2021
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整报价
parent
eb1555cd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
app/Model/QuoteModel.php
config/quote.php
app/Model/QuoteModel.php
View file @
95ac6690
...
...
@@ -234,7 +234,7 @@ class QuoteModel extends Model
$quote_info
[
'status'
]
=
1
;
// 已报价
$quote_info
[
'create_uid'
]
=
$input
[
'user_id'
];
$quote_info
[
'create_
uid
'
]
=
$create_name
;
$quote_info
[
'create_
name
'
]
=
$create_name
;
$res
=
$this
->
create
(
$quote_info
);
if
(
$res
===
false
)
return
[
2
,
'新增报价失败'
];
...
...
@@ -244,7 +244,7 @@ class QuoteModel extends Model
}
// 通知询价人,放入redis
RedisDB
::
s
et
(
'frq_quote_urge'
,
$quote_info
[
'inquiry_items_id'
]);
RedisDB
::
s
add
(
'frq_quote_urge'
,
$quote_info
[
'inquiry_items_id'
]);
$data
=
[];
$data
[
'types'
]
=
2
;
...
...
@@ -380,7 +380,7 @@ class QuoteModel extends Model
return
;
}
if
(
!
preg_match
(
'/
\d
/'
,
intval
(
$val
[
'quote_number'
])))
{
if
(
!
preg_match
(
'/
^\d{1,9}$
/'
,
intval
(
$val
[
'quote_number'
])))
{
$err
[]
=
'第'
.
(
$key
+
1
)
.
'行,报价数量格式错误,请填写整数'
;
return
;
}
...
...
config/quote.php
View file @
95ac6690
...
...
@@ -13,8 +13,8 @@ return [
'import_quote_map'
=>
[
// 导入报价映射
'goods_name'
,
'brand_name'
,
'quote_number'
,
'supplier_name'
,
'quote_number'
,
'currency'
,
'price_origin'
,
'price_rmb'
,
...
...
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