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
f4b6523d
authored
Aug 10, 2021
by
朱继来
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'zjl_exception_20210729' into development
parents
16cb8539
40bf4461
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
app/Http/Controllers/AddOrderController.php
public/js/add_order.js
app/Http/Controllers/AddOrderController.php
View file @
f4b6523d
...
...
@@ -452,11 +452,19 @@ Class AddOrderController extends Controller
return
[
'code'
=>
$response
[
'err_code'
],
'msg'
=>
$response
[
'err_msg'
],
'data'
=>
$data
,
'count'
=>
count
(
$data
)];
}
if
(
$response
[
'err_code'
]
==
0
)
{
return
[
'errcode'
=>
$response
[
'err_code'
],
'errmsg'
=>
$response
[
'err_msg'
],
'data'
=>
$response
[
'data'
]];
if
(
$response
[
'err_code'
]
!=
0
)
return
[
'errcode'
=>
$response
[
'err_code'
],
'errmsg'
=>
$response
[
'err_msg'
]];
$CmsModel
=
new
CmsModel
();
foreach
(
$response
[
'data'
][
'list'
]
as
&
$v
)
{
$v
[
'buyer_name'
]
=
''
;
if
(
$v
[
'buyer_id'
])
{
$v
[
'buyer_name'
]
=
$CmsModel
->
getUserName
(
$v
[
'buyer_id'
]);
}
}
return
[
'errcode'
=>
$response
[
'err_code'
],
'errmsg'
=>
$response
[
'err_msg'
]
];
return
[
'errcode'
=>
$response
[
'err_code'
],
'errmsg'
=>
$response
[
'err_msg'
]
,
'data'
=>
$response
[
'data'
]];
}
}
...
...
public/js/add_order.js
View file @
f4b6523d
...
...
@@ -1015,7 +1015,7 @@
if
(
len
==
0
)
return
false
;
var
buyer
=
''
;
//
var buyer = '';
// list = list.reverse();
// 购物车列表
for
(
var
i
=
len
-
1
;
i
>=
0
;
i
--
)
{
...
...
@@ -1048,9 +1048,9 @@
if
(
goods_type
==
1
)
{
html
+=
'<td>'
+
list
[
i
].
supplier_name
+
'</td>'
;
buyer
=
list
[
i
].
buyer_id
!=
'0'
?
list
[
i
].
buyer_id
:
''
;
//
buyer = list[i].buyer_id != '0' ? list[i].buyer_id : '';
html
+=
'<td>'
+
buyer
+
'</td>'
;
html
+=
'<td>'
+
list
[
i
].
buyer_name
+
'</td>'
;
html
+=
'<td>'
+
list
[
i
].
batch
+
'</td>'
;
}
...
...
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