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
1610a590
authored
Dec 27, 2018
by
PRY5YKGJ82EZEPX\Administrator
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'hcy_pcb_20181221-r' into development
parents
30d3f72d
84a6f0dd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
app/Model/Pcb/PcbPublicModel.php
public/js/PcbOrderList.js
app/Model/Pcb/PcbPublicModel.php
View file @
1610a590
...
...
@@ -42,7 +42,7 @@ class PcbPublicModel
return
$result
[
'name'
];
}
/*
*
插入后台客服审核结果
*
后台填写发货信息
*/
public
function
orderShipping
(
$user_id
,
$data
){
...
...
@@ -68,10 +68,15 @@ class PcbPublicModel
if
(
!
$in
){
throw
new
Exception
(
"插入发货信息失败"
);
}
//修改
发货时间
$updete
=
(
new
PcbOrderModel
())
->
where
(
"order_id"
,
$data
[
'order_id'
])
->
update
([
'shipping_time'
=>
time
()]);
//修改
订单发货时间和状态
$updete
=
(
new
PcbOrderModel
())
->
where
(
"order_id"
,
$data
[
'order_id'
])
->
update
([
'shipping_time'
=>
time
()
,
'status'
=>
15
,
'purchase_status'
=>
15
]);
if
(
!
$updete
){
throw
new
Exception
(
"更新订单发货时间失败"
);
throw
new
Exception
(
"更新订单发货时间、状态失败"
);
}
//修改采购发货时间和状态
$updete
=
(
new
PcbPurchaseModel
())
->
where
(
"order_id"
,
$data
[
'order_id'
])
->
update
([
'shipping_time'
=>
time
(),
'status'
=>
15
]);
if
(
!
$updete
){
throw
new
Exception
(
"更新采购发货时间、状态失败"
);
}
//日志
PcbActionLogModel
::
log
(
1
,
'admin_add_shipping'
,
"后台填写发货信息"
,
""
,
$data
[
'order_id'
],
$user_id
);
...
...
public/js/PcbOrderList.js
View file @
1610a590
...
...
@@ -156,6 +156,10 @@ layui.use(['table','form','element','layer', 'laydate'], function() {
//确定发货
function
SendStock
()
{
if
(
$
(
"#shipping_no"
).
val
()
==
""
){
alert_err
(
"请填写发货物流单号"
)
return
false
;
}
layer
.
msg
(
'加载中'
,
{
icon
:
16
,
shade
:
0.01
...
...
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