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
0885c14f
authored
May 26, 2021
by
duwenjun
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
过期时间,关闭报价同步
parent
29689d40
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletions
app/Http/Controllers/ApiController.php
app/Model/QuoteModel.php
app/Http/Controllers/ApiController.php
View file @
0885c14f
...
...
@@ -67,7 +67,13 @@ class ApiController extends Controller
}
//关闭单条询价明细
public
function
ApiInquiryItemsClose
(
$input
,
$id
){
Export
((
new
InquiryItemsModel
())
->
inquiryItemsClose
(
$input
));
$res
=
(
new
InquiryItemsModel
())
->
inquiryItemsClose
(
$input
);
$url
=
Config
(
'website.cloud_domain'
)
.
"/inner/inquiry/closeautoinquiry"
;
$http
=
new
\GuzzleHttp\Client
;
$response
=
$http
->
post
(
$url
,
[
"form_params"
=>
[
"inquiry_items_id"
=>
$input
[
'inquiry_items_id'
]]]);
Export
(
$res
);
}
//询价: 选中 撤销 确认 -》 报价
public
function
ApiQuoteSure
(
$input
,
$id
){
...
...
app/Model/QuoteModel.php
View file @
0885c14f
...
...
@@ -319,6 +319,7 @@ class QuoteModel extends Model
$v
[
'delivery_time'
]
=
$v
[
'delivery_time'
]
.
'天'
;
}
$v
[
"effect_days"
]
=
$v
[
"effect_days"
]
.
"天"
;
$v
[
'expire_time'
]
=
(
$v
[
'expire_time'
])
?
date
(
'Y-m-d'
,
$v
[
'expire_time'
])
:
''
;
$v
[
'price_rmb'
]
=
$v
[
'currency'
]
==
1
?
$v
[
'price_rmb'
]
:
''
;
$v
[
"digikey"
]
=
"包装:"
.
$v
[
"raw_goods_packing"
];
$v
[
'source_val'
]
=
array_get
(
Config
(
'quote.quote_source'
),
$v
[
'source'
],
''
);
...
...
@@ -703,6 +704,7 @@ class QuoteModel extends Model
public
function
add
(
$input
)
{
$quote_info
=
$input
[
'quote_info'
];
$quote_info
[
'expire_time'
]
=
(
is_numeric
(
$quote_info
[
'expire_time'
]))
?
$quote_info
[
'expire_time'
]
:
strtotime
(
$quote_info
[
'expire_time'
]);
if
(
!
$quote_info
)
{
return
[
1
,
'报价数据不存在'
];
}
...
...
@@ -1160,6 +1162,7 @@ class QuoteModel extends Model
}
$quote_info
=
$input
[
'quote_info'
];
$quote_info
[
'expire_time'
]
=
(
is_numeric
(
$quote_info
[
'expire_time'
]))
?
$quote_info
[
'expire_time'
]
:
strtotime
(
$quote_info
[
'expire_time'
]);
$CommonModel
=
new
CommonModel
;
...
...
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