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
84a6f0dd
authored
Dec 27, 2018
by
PRY5YKGJ82EZEPX\Administrator
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
更新pcb 后台
parent
c8780b82
Show 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 @
84a6f0dd
...
@@ -42,7 +42,7 @@ class PcbPublicModel
...
@@ -42,7 +42,7 @@ class PcbPublicModel
return
$result
[
'name'
];
return
$result
[
'name'
];
}
}
/*
/*
*
插入后台客服审核结果
*
后台填写发货信息
*/
*/
public
function
orderShipping
(
$user_id
,
$data
){
public
function
orderShipping
(
$user_id
,
$data
){
...
@@ -68,10 +68,15 @@ class PcbPublicModel
...
@@ -68,10 +68,15 @@ class PcbPublicModel
if
(
!
$in
){
if
(
!
$in
){
throw
new
Exception
(
"插入发货信息失败"
);
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
(
"更新订单发货时间、状态失败"
);
}
//修改采购发货时间和状态
$updete
=
(
new
PcbPurchaseModel
())
->
where
(
"order_id"
,
$data
[
'order_id'
])
->
update
([
'shipping_time'
=>
time
(),
'status'
=>
15
]);
if
(
!
$updete
){
if
(
!
$updete
){
throw
new
Exception
(
"更新
订单发货时间
失败"
);
throw
new
Exception
(
"更新
采购发货时间、状态
失败"
);
}
}
//日志
//日志
PcbActionLogModel
::
log
(
1
,
'admin_add_shipping'
,
"后台填写发货信息"
,
""
,
$data
[
'order_id'
],
$user_id
);
PcbActionLogModel
::
log
(
1
,
'admin_add_shipping'
,
"后台填写发货信息"
,
""
,
$data
[
'order_id'
],
$user_id
);
...
...
public/js/PcbOrderList.js
View file @
84a6f0dd
...
@@ -156,6 +156,10 @@ layui.use(['table','form','element','layer', 'laydate'], function() {
...
@@ -156,6 +156,10 @@ layui.use(['table','form','element','layer', 'laydate'], function() {
//确定发货
//确定发货
function
SendStock
()
{
function
SendStock
()
{
if
(
$
(
"#shipping_no"
).
val
()
==
""
){
alert_err
(
"请填写发货物流单号"
)
return
false
;
}
layer
.
msg
(
'加载中'
,
{
layer
.
msg
(
'加载中'
,
{
icon
:
16
icon
:
16
,
shade
:
0.01
,
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