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
a87b496c
authored
May 15, 2018
by
朱继来
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'master' of
http://119.23.72.7/zhujilai/Order
into zjl_self_order_20180502
parents
b0d17eed
1dff8f27
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
40 additions
and
19 deletions
app/Http/Controllers/OrderController.php
config/perm.php
config/website.php
public/js/order.js
resources/views/detail/changeOrder.blade.php
resources/views/erpOrder/content.blade.php
resources/views/orderlist/content.blade.php
app/Http/Controllers/OrderController.php
View file @
a87b496c
...
...
@@ -1270,7 +1270,7 @@ Class OrderController extends Controller
{
$order
=
DB
::
connection
(
'order'
)
->
table
(
'lie_order'
)
->
where
In
(
'status'
,
[
'2'
,
'3'
]
)
->
where
(
'status'
,
'='
,
2
)
->
whereNotIn
(
'user_id'
,
$this
->
testMobile
())
->
where
(
'is_type'
,
'='
,
0
)
->
where
(
'pay_time'
,
'>'
,
time
())
...
...
@@ -1328,7 +1328,7 @@ Class OrderController extends Controller
$order
=
DB
::
connection
(
'order'
)
->
table
(
'lie_order'
)
->
where
In
(
'status'
,
[
'2'
,
'3'
]
)
->
where
(
'status'
,
'='
,
2
)
->
whereNotIn
(
'user_id'
,
$this
->
testMobile
())
->
where
(
'is_type'
,
'='
,
0
)
->
where
(
'pay_time'
,
'>='
,
$time
)
...
...
@@ -1343,7 +1343,7 @@ Class OrderController extends Controller
$update
=
DB
::
connection
(
'order'
)
->
table
(
'lie_order'
)
->
where
(
'order_id'
,
'='
,
$v
->
order_id
)
->
update
([
'status'
=>
-
1
,
'pay_time'
=>
0
]);
->
update
([
'status'
=>
-
1
,
'pay_time'
=>
0
,
'cancel_time'
=>
time
()
]);
if
(
$update
)
{
continue
;
...
...
config/perm.php
View file @
a87b496c
...
...
@@ -2,7 +2,7 @@
return
[
// 菜单权限
'订单管理'
=>
[
'平台订单'
=>
[
'orderlist_check'
,
'export'
,
'check_order'
,
'cancel_order'
,
'check_account'
,
'order_send'
,
'send_invoice'
,
'update_address'
,
'update_invoice'
,
'check_test_order'
,
'check_offline_order'
],
'平台订单'
=>
[
'orderlist_check'
,
'export'
,
'check_order'
,
'cancel_order'
,
'check_account'
,
'order_send'
,
'send_invoice'
,
'update_address'
,
'update_invoice'
,
'check_test_order'
,
'check_offline_order'
,
'download_contract'
],
'ERP订单'
=>
[
'erp_order_check'
],
...
...
config/website.php
View file @
a87b496c
...
...
@@ -22,5 +22,5 @@ return [
'check_access_api'
=>
'http://perm.liexin.net/api/perms/access'
,
// 竞调账户配置显示时间
'vp_time_set'
=>
'2018-0
4
-01'
,
'vp_time_set'
=>
'2018-0
5
-01'
,
];
public/js/order.js
View file @
a87b496c
...
...
@@ -1030,6 +1030,12 @@
}
}
if
(
$
(
this
).
val
()
<
0
)
{
layer
.
msg
(
'只能是正整数'
);
$
(
this
).
val
(
''
);
return
false
;
}
if
(
$
(
this
).
val
()
>
999999.9999
){
$
(
this
).
val
(
999999.9999
);
}
...
...
resources/views/detail/changeOrder.blade.php
View file @
a87b496c
...
...
@@ -88,7 +88,7 @@
<tr>
<td><p>
{{$v['goods_name']}}
</p></td>
<td>
<input
class=
"only_positive_nubme num"
name=
"change_info[{{$v['rec_id']}}][goods_number]"
value=
"{{$v['goods_number']}}"
>
<input
class=
"only_positive_nubme
only_number
num"
name=
"change_info[{{$v['rec_id']}}][goods_number]"
value=
"{{$v['goods_number']}}"
>
</td>
<td>
<input
class=
"price only_number"
name=
"change_info[{{$v['rec_id']}}][goods_price]"
value=
"{{$v['goods_price']}}"
>
...
...
resources/views/erpOrder/content.blade.php
View file @
a87b496c
...
...
@@ -266,13 +266,15 @@
</table>
</div>
<div
class=
"row-fluid pagination"
>
<span>
共{{$count ? $count : 0}}单,
应付金额 ¥{{$pay_count['rmb_count'] ? $pay_count['rmb_count'] : 0}}, ${{$pay_count['usd_count'] ? $pay_count['usd_count'] : 0}},
实收金额 ¥{{$pay_count['rmb_pay'] ? $pay_count['rmb_pay'] : 0}},
${{$pay_count['usd_pay'] ? $pay_count['usd_pay'] : 0}}
</span>
@if ($username != 'vpadmin@ichunt.com')
<span>
共{{$count ? $count : 0}}单,
应付金额 ¥{{$pay_count['rmb_count'] ? $pay_count['rmb_count'] : 0}}, ${{$pay_count['usd_count'] ? $pay_count['usd_count'] : 0}},
实收金额 ¥{{$pay_count['rmb_pay'] ? $pay_count['rmb_pay'] : 0}},
${{$pay_count['usd_pay'] ? $pay_count['usd_pay'] : 0}}
</span>
@endif
<?php
echo
$page
;
?>
</div>
</div>
...
...
resources/views/orderlist/content.blade.php
View file @
a87b496c
...
...
@@ -273,6 +273,17 @@
@if (in_array('check_order', $userPerms))
<a
class=
"btn btn-success"
href=
"{{URL('change', ['order_id'=>$v['order_id']])}}"
target=
"_blank"
>
人工审单
</a>
@endif
<?php
$apiUrl
=
Config
(
'website.api_domain'
);
$k1
=
time
();
$k2
=
md5
(
md5
(
$k1
)
.
'fh6y5t4rr351d2c3bryi'
);
$downLoadUrl
=
$apiUrl
.
'contract/pdfinfo?id='
.
$v
[
'order_id'
]
.
'&k1='
.
$k1
.
'&k2='
.
$k2
;
?>
@if (in_array('download_contract', $userPerms))
<a
class=
"btn btn-info"
href=
"{{$downLoadUrl}}"
>
下载合同
</a>
@endif
</div>
</td>
</tr>
...
...
@@ -367,12 +378,14 @@
</table>
</div>
<div
class=
"row-fluid pagination"
>
<span>
共{{$count ? $count : 0}}单,
应付金额 ¥{{$pay_count['rmb_count'] ? $pay_count['rmb_count'] : 0}}, ${{$pay_count['usd_count'] ? $pay_count['usd_count'] : 0}},
实收金额 ¥{{$pay_count['rmb_pay'] ? $pay_count['rmb_pay'] : 0}},
${{$pay_count['usd_pay'] ? $pay_count['usd_pay'] : 0}}
</span>
@if ($username != 'vpadmin@ichunt.com')
<span>
共{{$count ? $count : 0}}单,
应付金额 ¥{{$pay_count['rmb_count'] ? $pay_count['rmb_count'] : 0}}, ${{$pay_count['usd_count'] ? $pay_count['usd_count'] : 0}},
实收金额 ¥{{$pay_count['rmb_pay'] ? $pay_count['rmb_pay'] : 0}},
${{$pay_count['usd_pay'] ? $pay_count['usd_pay'] : 0}}
</span>
@endif
<?php
echo
$page
;
?>
</div>
...
...
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