Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
朱继来
/
后台订单管理
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
b059eabd
authored
May 19, 2021
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
下单修改询报价状态
parent
53b6b3af
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
6 deletions
app/Http/Controllers/AddOrderController.php
public/js/add_inquiry_order.js
resources/views/addInquiryOrder/goodsInfo.blade.php
app/Http/Controllers/AddOrderController.php
View file @
b059eabd
...
@@ -711,12 +711,24 @@ Class AddOrderController extends Controller
...
@@ -711,12 +711,24 @@ Class AddOrderController extends Controller
// dd(curlApi($url, $data));
// dd(curlApi($url, $data));
$response
=
json_decode
(
curlApi
(
$url
,
$data
),
true
);
$response
=
json_decode
(
curlApi
(
$url
,
$data
),
true
);
if
(
$response
[
'err_code'
]
==
0
)
{
if
(
$response
[
'err_code'
]
!=
0
)
return
[
'errcode'
=>
$response
[
'err_code'
],
'errmsg'
=>
$response
[
'err_msg'
]];
return
[
'errcode'
=>
$response
[
'err_code'
],
'errmsg'
=>
$response
[
'err_msg'
],
'data'
=>
[
'order_id'
=>
$response
[
'data'
],
'type'
=>
$data
[
'type'
]]];
}
return
[
'errcode'
=>
$response
[
'err_code'
],
'errmsg'
=>
$response
[
'err_msg'
]];
// 若存在销售报价明细ID,则修改对应报价单状态为已成单
$report_ids
=
$request
->
input
(
'report_ids'
,
''
);
if
(
$report_ids
)
{
$ids
=
explode
(
','
,
$report_ids
);
foreach
(
$ids
as
$v
)
{
$quote_id
=
DB
::
connection
(
'frq'
)
->
table
(
'inquiry_items_report'
)
->
where
(
'id'
,
$v
)
->
value
(
'quote_id'
);
if
(
!
$quote_id
)
continue
;
DB
::
connection
(
'frq'
)
->
table
(
'quote'
)
->
where
(
'id'
,
$quote_id
)
->
update
([
'status'
=>
4
,
'update_time'
=>
time
()]);
}
}
return
[
'errcode'
=>
$response
[
'err_code'
],
'errmsg'
=>
$response
[
'err_msg'
],
'data'
=>
[
'order_id'
=>
$response
[
'data'
],
'type'
=>
$data
[
'type'
]]];
}
}
}
}
...
...
public/js/add_inquiry_order.js
View file @
b059eabd
...
@@ -759,6 +759,7 @@ layui.config({
...
@@ -759,6 +759,7 @@ layui.config({
remark
:
remark
,
remark
:
remark
,
user_coupon_id
:
user_coupon_id
,
user_coupon_id
:
user_coupon_id
,
cart_ids
:
cart_ids
,
cart_ids
:
cart_ids
,
report_ids
:
report_ids
,
// 询价明细ID
}
}
// if (is_dgk) { // 联营包含digikey商品,则填写终端资料
// if (is_dgk) { // 联营包含digikey商品,则填写终端资料
...
@@ -875,7 +876,7 @@ layui.config({
...
@@ -875,7 +876,7 @@ layui.config({
,{
field
:
'goods_price'
,
title
:
'采购单价'
,
edit
:
'text'
,
style
:
'cursor: pointer;'
}
,{
field
:
'goods_price'
,
title
:
'采购单价'
,
edit
:
'text'
,
style
:
'cursor: pointer;'
}
,{
field
:
'goods_amount_format'
,
title
:
'小计'
}
,{
field
:
'goods_amount_format'
,
title
:
'小计'
}
,{
field
:
'delivery_time'
,
title
:
'货期'
,
edit
:
'text'
,
style
:
'cursor: pointer;'
}
,{
field
:
'delivery_time'
,
title
:
'货期'
,
edit
:
'text'
,
style
:
'cursor: pointer;'
}
,{
field
:
'buyer_id'
,
title
:
'采购员'
,
templet
:
'#t_buyer_id'
,
style
:
'overflow: visible;'
}
,{
field
:
'buyer_id'
,
title
:
'采购员'
,
templet
:
'#t_buyer_id'
}
,{
field
:
'batch'
,
title
:
'批次'
,
edit
:
'text'
,
style
:
'cursor: pointer;'
}
,{
field
:
'batch'
,
title
:
'批次'
,
edit
:
'text'
,
style
:
'cursor: pointer;'
}
,{
title
:
'操作'
,
align
:
'center'
,
fixed
:
'right'
,
toolbar
:
'#list_action'
,
width
:
80
}
,{
title
:
'操作'
,
align
:
'center'
,
fixed
:
'right'
,
toolbar
:
'#list_action'
,
width
:
80
}
]]
]]
...
...
resources/views/addInquiryOrder/goodsInfo.blade.php
View file @
b059eabd
...
@@ -96,7 +96,7 @@
...
@@ -96,7 +96,7 @@
<style>
<style>
.carts-info
{
display
:
none
;
}
.carts-info
{
display
:
none
;
}
.carts-info
.lay
table-cell-1-0-9
{
overflow
:
visible
;
}
/* 指定采购列 */
.carts-info
.lay
ui-table-cell
{
overflow
:
visible
;
}
</style>
</style>
<!-- 商品列表 -->
<!-- 商品列表 -->
<div
class=
"carts-info"
>
<div
class=
"carts-info"
>
...
...
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