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
ba5d834d
authored
Dec 26, 2018
by
PRY5YKGJ82EZEPX\Administrator
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
更新pcb后台
parent
543bd3fe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
9 deletions
app/Http/Controllers/WebController.php
app/Model/Pcb/PcbOrderModel.php
app/Http/Controllers/WebController.php
View file @
ba5d834d
...
...
@@ -204,10 +204,6 @@ class WebController extends Controller
//拼接基本信息
$orderBase
=
objectToArray
(
$orderBase
);
$orderBase
[
'tiaojia'
]
=
""
;
if
(
!
$purchase
){
$orderBase
[
'tiaojia'
]
=
$purchase
[
'purchase_amount'
]
!=
$purchase
[
'order_amount'
]
?
"是"
:
"否"
;
//是否调价、
}
$orderBase
[
'order_type'
]
=
PcbOrderMap
::
$order_type
[
$orderBase
[
'order_type'
]];
$orderBase
[
'status_name'
]
=
PcbOrderMap
::
$status
[
$orderBase
[
'status'
]];
$orderBase
[
'create_time'
]
=
$orderBase
[
'create_time'
]
>
0
?
date
(
'Y-m-d H:i:s'
,
$orderBase
[
'create_time'
])
:
""
;
...
...
@@ -222,6 +218,15 @@ class WebController extends Controller
$purchase
[
'shipping_time'
]
=
$purchase
[
'shipping_time'
]
>
0
?
date
(
'Y-m-d H:i:s'
,
$purchase
[
'shipping_time'
])
:
""
;
$purchase
[
'purchase_amount'
]
=
$purchase
[
'purchase_amount'
]
>
0
?
$purchase
[
'purchase_amount'
]
:
""
;
$purchase
[
'order_pay_type'
]
=
PcbOrderMap
::
$order_pay_type
[
$purchase
[
'order_pay_type'
]];
if
(
$purchase
[
'purchase_amount'
]
==
0
){
$orderBase
[
'tiaojia'
]
=
""
;
}
else
{
if
(
$purchase
[
'purchase_amount'
]
>
0
&&
$purchase
[
'purchase_amount'
]
!=
$purchase
[
'order_amount'
]){
$orderBase
[
'tiaojia'
]
=
"是"
;
}
else
{
$orderBase
[
'tiaojia'
]
=
"否"
;
}
}
}
//拼接订单详细信息
$orderInfo
=
objectToArray
(
$orderInfo
);
...
...
app/Model/Pcb/PcbOrderModel.php
View file @
ba5d834d
...
...
@@ -76,16 +76,18 @@ class PcbOrderModel extends Model
$con
=
DB
::
connection
(
"pcb"
);
foreach
(
$data
as
$k
=>&
$v
){
//查询采购
$puchase
=
$PcbPurchaseModel
->
where
(
"order_id"
,
$v
[
'order_id'
])
->
first
();
$pu
r
chase
=
$PcbPurchaseModel
->
where
(
"order_id"
,
$v
[
'order_id'
])
->
first
();
$v
[
'tiaojia'
]
=
$v
[
'purchase_amount'
]
=
$v
[
'purchase_sn'
]
=
""
;
if
(
$puchase
){
if
(
$pu
chase
[
'purchase_amount'
]
>
0
&&
$pu
chase
[
'purchase_amount'
]
!=
$v
[
'order_amount'
]){
if
(
$pu
r
chase
){
if
(
$pu
rchase
[
'purchase_amount'
]
>
0
&&
$pur
chase
[
'purchase_amount'
]
!=
$v
[
'order_amount'
]){
$v
[
'tiaojia'
]
=
"是"
;
}
elseif
(
$purchase
[
'purchase_amount'
]
==
0
){
$v
[
'tiaojia'
]
=
""
;
}
else
{
$v
[
'tiaojia'
]
=
"否"
;
}
$v
[
'purchase_amount'
]
=
$pu
chase
[
'purchase_amount'
]
>
0
?
$pu
chase
[
'purchase_amount'
]
:
""
;
$v
[
'purchase_sn'
]
=
$puchase
[
'purchase_sn'
];
$v
[
'purchase_amount'
]
=
$pu
rchase
[
'purchase_amount'
]
>
0
?
$pur
chase
[
'purchase_amount'
]
:
""
;
$v
[
'purchase_sn'
]
=
$pu
r
chase
[
'purchase_sn'
];
}
//查询支付
$v
[
'order_pay_type'
]
=
$PcbPublicModel
->
getPay
(
$v
[
'order_id'
]);
...
...
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