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
5b7d289b
authored
Nov 01, 2018
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整导出和联营筛选项
parent
74fbd5bb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
122 additions
and
54 deletions
app/Model/OrderModel.php
public/js/order.js
public/js/self_order.js
resources/views/orderlist/content.blade.php
resources/views/selfOrder/content.blade.php
app/Model/OrderModel.php
View file @
5b7d289b
...
@@ -43,11 +43,6 @@ class OrderModel extends Model
...
@@ -43,11 +43,6 @@ class OrderModel extends Model
$map
[
'order_goods_type'
]
=
$request
->
input
(
'order_goods_type'
,
''
);
$map
[
'order_goods_type'
]
=
$request
->
input
(
'order_goods_type'
,
''
);
}
}
// 若没有'查看线下订单'权限,则仅查看线上订单
if
(
!
in_array
(
'check_offline_order'
,
$info
[
'userPerms'
]))
{
$map
[
'online_order'
]
=
1
;
}
/* 临时添加 所有人只能查看线上订单 */
/* 临时添加 所有人只能查看线上订单 */
$map
[
'online_order'
]
=
1
;
$map
[
'online_order'
]
=
1
;
...
@@ -142,12 +137,6 @@ class OrderModel extends Model
...
@@ -142,12 +137,6 @@ class OrderModel extends Model
}
}
}
}
})
})
// ->where(function ($query) use ($map) {
// // adtags来源
// if (!empty($map['order_source_adtag'])) {
// $query->whereRaw('FIND_IN_SET("adtag='.$map['order_source_adtag'].'", o.order_source)');
// }
// })
->
where
(
function
(
$query
)
use
(
$map
)
{
->
where
(
function
(
$query
)
use
(
$map
)
{
// adtags来源
// adtags来源
if
(
!
empty
(
$map
[
'order_source_adtag'
]))
{
if
(
!
empty
(
$map
[
'order_source_adtag'
]))
{
...
@@ -291,7 +280,7 @@ class OrderModel extends Model
...
@@ -291,7 +280,7 @@ class OrderModel extends Model
$tmp
[
$i
][
'order_id'
]
=
$order
[
$i
][
'order_id'
];
$tmp
[
$i
][
'order_id'
]
=
$order
[
$i
][
'order_id'
];
$tmp
[
$i
][
'order_sn'
]
=
"
\t
"
.
$order
[
$i
][
'order_sn'
]
.
"
\t
"
;
$tmp
[
$i
][
'order_sn'
]
=
"
\t
"
.
$order
[
$i
][
'order_sn'
]
.
"
\t
"
;
$tmp
[
$i
][
'user_account'
]
=
$order
[
$i
][
'mobile'
]
?
$order
[
$i
][
'mobile'
]
:
$order
[
$i
][
'email'
];
$tmp
[
$i
][
'user_account'
]
=
$order
[
$i
][
'mobile'
]
?
$order
[
$i
][
'mobile'
]
:
$order
[
$i
][
'email'
];
$tmp
[
$i
][
'is_new'
]
=
$
user_tags
[
$order
[
$i
][
'is_new'
]]
;
$tmp
[
$i
][
'is_new'
]
=
$
order
[
$i
][
'is_new'
]
!=
''
?
$user_tags
[
$order
[
$i
][
'is_new'
]]
:
''
;
$tmp
[
$i
][
'consignee'
]
=
isset
(
$order
[
$i
][
'consignee'
])
?
$order
[
$i
][
'consignee'
]
:
''
;
$tmp
[
$i
][
'consignee'
]
=
isset
(
$order
[
$i
][
'consignee'
])
?
$order
[
$i
][
'consignee'
]
:
''
;
$tmp
[
$i
][
'create_time_date'
]
=
date
(
'Y-m-d'
,
$order
[
$i
][
'create_time'
]);
$tmp
[
$i
][
'create_time_date'
]
=
date
(
'Y-m-d'
,
$order
[
$i
][
'create_time'
]);
$tmp
[
$i
][
'create_time_sec'
]
=
date
(
'H:i:s'
,
$order
[
$i
][
'create_time'
]);
$tmp
[
$i
][
'create_time_sec'
]
=
date
(
'H:i:s'
,
$order
[
$i
][
'create_time'
]);
...
...
public/js/order.js
View file @
5b7d289b
...
@@ -72,7 +72,7 @@
...
@@ -72,7 +72,7 @@
time_start
=
$
(
'input[name="time_start"]'
).
val
(),
time_start
=
$
(
'input[name="time_start"]'
).
val
(),
time_end
=
$
(
'input[name="time_end"]'
).
val
(),
time_end
=
$
(
'input[name="time_end"]'
).
val
(),
// order_type_a = $('#order_type_a').data('default'),
// order_type_a = $('#order_type_a').data('default'),
order_pay_type
=
$
(
'#order_pay_type'
).
data
(
'default'
),
order_pay_type
=
$
(
'#order_pay_type'
).
val
(
),
order_status
=
$
(
'#order_status'
).
val
(),
order_status
=
$
(
'#order_status'
).
val
(),
shipping_name
=
$
(
'#shipping_name'
).
data
(
'default'
),
shipping_name
=
$
(
'#shipping_name'
).
data
(
'default'
),
order_send
=
$
(
'#order_send'
).
val
(),
order_send
=
$
(
'#order_send'
).
val
(),
...
@@ -81,7 +81,7 @@
...
@@ -81,7 +81,7 @@
order_source_ptag
=
$
(
'input[name="order_source_ptag"]'
).
val
(),
order_source_ptag
=
$
(
'input[name="order_source_ptag"]'
).
val
(),
test_order
=
$
(
'input[name=test_order]'
),
test_order
=
$
(
'input[name=test_order]'
),
erp_order_id
=
$
(
'#erp_order_id'
).
data
(
'default'
),
erp_order_id
=
$
(
'#erp_order_id'
).
data
(
'default'
),
is_new
=
$
(
'#is_new'
).
data
(
'default'
),
is_new
=
$
(
'#is_new'
).
val
(
),
listUrl
=
'/list'
;
listUrl
=
'/list'
;
listUrl
+=
'?order_type='
+
order_type
;
listUrl
+=
'?order_type='
+
order_type
;
...
@@ -138,7 +138,7 @@
...
@@ -138,7 +138,7 @@
listUrl
+=
'&erp_order_id='
+
erp_order_id
;
listUrl
+=
'&erp_order_id='
+
erp_order_id
;
}
}
if
(
is_new
!==
''
)
{
if
(
is_new
)
{
listUrl
+=
'&is_new='
+
is_new
;
listUrl
+=
'&is_new='
+
is_new
;
}
}
...
@@ -160,15 +160,16 @@
...
@@ -160,15 +160,16 @@
time_start
=
$
(
'input[name="time_start"]'
).
val
(),
time_start
=
$
(
'input[name="time_start"]'
).
val
(),
time_end
=
$
(
'input[name="time_end"]'
).
val
(),
time_end
=
$
(
'input[name="time_end"]'
).
val
(),
// order_type_a = $('#order_type_a').data('default'),
// order_type_a = $('#order_type_a').data('default'),
order_pay_type
=
$
(
'#order_pay_type'
).
data
(
'default'
)
,
order_pay_type
=
$
(
'#order_pay_type'
).
val
()
?
$
(
'#order_pay_type'
).
val
()
:
''
,
order_status
=
$
(
'#order_status'
).
val
(),
order_status
=
$
(
'#order_status'
).
val
(),
shipping_name
=
$
(
'#shipping_name'
).
data
(
'default'
),
shipping_name
=
$
(
'#shipping_name'
).
data
(
'default'
),
order_send
=
$
(
'#order_send'
).
val
(),
order_send
=
$
(
'#order_send'
).
val
(),
order_source_pf
=
$
(
'#order_source_pf'
).
data
(
'default'
),
order_source_pf
=
$
(
'#order_source_pf'
).
data
(
'default'
),
order_source_adtag
=
$
(
'input[name="order_source_adtag"]'
).
val
(),
order_source_adtag
=
$
(
'input[name="order_source_adtag"]'
).
val
(),
order_source_ptag
=
$
(
'input[name="order_source_ptag"]'
).
val
(),
order_source_ptag
=
$
(
'input[name="order_source_ptag"]'
).
val
(),
erp_order_id
=
$
(
'#erp_order_id'
).
data
(
'default'
),
erp_order_id
=
$
(
'#erp_order_id'
).
data
(
'default'
),
test_order
=
$
(
'input[name=test_order]'
);
test_order
=
$
(
'input[name=test_order]'
),
is_new
=
$
(
'#is_new'
).
val
()
?
$
(
'#is_new'
).
val
()
:
''
;
if
(
test_order
.
length
)
{
if
(
test_order
.
length
)
{
if
(
!
order_contain
&&
!
time_start
&&
!
time_end
&&
!
order_pay_type
&&
!
order_status
&&
!
shipping_name
&&
!
order_send
&&
!
order_source_pf
&&
!
order_source_adtag
&&
!
order_source_ptag
&&
!
erp_order_id
&&
!
test_order
.
is
(
':checked'
))
{
if
(
!
order_contain
&&
!
time_start
&&
!
time_end
&&
!
order_pay_type
&&
!
order_status
&&
!
shipping_name
&&
!
order_send
&&
!
order_source_pf
&&
!
order_source_adtag
&&
!
order_source_ptag
&&
!
erp_order_id
&&
!
test_order
.
is
(
':checked'
))
{
...
@@ -200,7 +201,7 @@
...
@@ -200,7 +201,7 @@
test_order
=
''
;
test_order
=
''
;
}
}
location
.
href
=
'/export?order_type='
+
order_type
+
'&order_contain='
+
order_contain
+
'&time_start='
+
time_start
+
'&time_end='
+
time_end
+
'&order_pay_type='
+
order_pay_type
+
'&order_status='
+
order_status
+
'&shipping_name='
+
shipping_name
+
'&order_send='
+
order_send
+
'&order_source_pf='
+
order_source_pf
+
'&order_source_adtag='
+
order_source_adtag
+
'&order_source_ptag='
+
order_source_ptag
+
'&erp_order_id='
+
erp_order_id
+
'&test_order='
+
test_order
+
'&order_goods_type='
+
1
;
location
.
href
=
'/export?order_type='
+
order_type
+
'&order_contain='
+
order_contain
+
'&time_start='
+
time_start
+
'&time_end='
+
time_end
+
'&order_pay_type='
+
order_pay_type
+
'&order_status='
+
order_status
+
'&shipping_name='
+
shipping_name
+
'&order_send='
+
order_send
+
'&order_source_pf='
+
order_source_pf
+
'&order_source_adtag='
+
order_source_adtag
+
'&order_source_ptag='
+
order_source_ptag
+
'&erp_order_id='
+
erp_order_id
+
'&test_order='
+
test_order
+
'&
is_new='
+
is_new
+
'&
order_goods_type='
+
1
;
})
})
// 选择查看测试订单
// 选择查看测试订单
...
...
public/js/self_order.js
View file @
5b7d289b
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
time_start
=
$
(
'input[name="time_start"]'
).
val
(),
time_start
=
$
(
'input[name="time_start"]'
).
val
(),
time_end
=
$
(
'input[name="time_end"]'
).
val
(),
time_end
=
$
(
'input[name="time_end"]'
).
val
(),
order_status
=
$
(
'#order_status'
).
data
(
'default'
),
order_status
=
$
(
'#order_status'
).
data
(
'default'
),
order_send
=
$
(
'#order_send'
).
data
(
'default'
),
//
order_send = $('#order_send').data('default'),
order_source_pf
=
$
(
'#order_source_pf'
).
data
(
'default'
),
order_source_pf
=
$
(
'#order_source_pf'
).
data
(
'default'
),
order_payment_mode
=
$
(
'#order_payment_mode'
).
data
(
'default'
),
order_payment_mode
=
$
(
'#order_payment_mode'
).
data
(
'default'
),
order_invoice_status
=
$
(
'#order_invoice_status'
).
data
(
'default'
),
order_invoice_status
=
$
(
'#order_invoice_status'
).
data
(
'default'
),
...
@@ -44,9 +44,9 @@
...
@@ -44,9 +44,9 @@
listUrl
+=
'&order_status='
+
order_status
;
listUrl
+=
'&order_status='
+
order_status
;
}
}
if
(
order_send
)
{
//
if (order_send) {
listUrl
+=
'&order_send='
+
order_send
;
//
listUrl += '&order_send=' + order_send;
}
//
}
if
(
order_source_pf
)
{
if
(
order_source_pf
)
{
listUrl
+=
'&order_source_pf='
+
order_source_pf
;
listUrl
+=
'&order_source_pf='
+
order_source_pf
;
...
@@ -90,7 +90,7 @@
...
@@ -90,7 +90,7 @@
time_start
=
$
(
'input[name="time_start"]'
).
val
(),
time_start
=
$
(
'input[name="time_start"]'
).
val
(),
time_end
=
$
(
'input[name="time_end"]'
).
val
(),
time_end
=
$
(
'input[name="time_end"]'
).
val
(),
order_status
=
$
(
'#order_status'
).
data
(
'default'
),
order_status
=
$
(
'#order_status'
).
data
(
'default'
),
order_send
=
$
(
'#order_send'
).
data
(
'default'
),
//
order_send = $('#order_send').data('default'),
order_source_pf
=
$
(
'#order_source_pf'
).
data
(
'default'
),
order_source_pf
=
$
(
'#order_source_pf'
).
data
(
'default'
),
order_payment_mode
=
$
(
'#order_payment_mode'
).
data
(
'default'
),
order_payment_mode
=
$
(
'#order_payment_mode'
).
data
(
'default'
),
order_invoice_status
=
$
(
'#order_invoice_status'
).
data
(
'default'
),
order_invoice_status
=
$
(
'#order_invoice_status'
).
data
(
'default'
),
...
@@ -99,12 +99,12 @@
...
@@ -99,12 +99,12 @@
test_order
=
$
(
'input[name=test_order]'
);
test_order
=
$
(
'input[name=test_order]'
);
if
(
test_order
.
length
)
{
if
(
test_order
.
length
)
{
if
(
!
order_contain
&&
!
time_start
&&
!
time_end
&&
!
order_payment_mode
&&
!
order_status
&&
!
order_invoice_status
&&
!
order_s
end
&&
!
order_s
ource_pf
&&
!
order_source_adtag
&&
!
order_source_ptag
&&
!
test_order
.
is
(
':checked'
))
{
if
(
!
order_contain
&&
!
time_start
&&
!
time_end
&&
!
order_payment_mode
&&
!
order_status
&&
!
order_invoice_status
&&
!
order_source_pf
&&
!
order_source_adtag
&&
!
order_source_ptag
&&
!
test_order
.
is
(
':checked'
))
{
layer
.
msg
(
'请选择筛选条件,再导出!'
);
layer
.
msg
(
'请选择筛选条件,再导出!'
);
return
false
;
return
false
;
}
}
}
else
{
}
else
{
if
(
!
order_contain
&&
!
time_start
&&
!
time_end
&&
!
order_payment_mode
&&
!
order_status
&&
!
order_invoice_status
&&
!
order_s
end
&&
!
order_s
ource_pf
&&
!
order_source_adtag
&&
!
order_source_ptag
)
{
if
(
!
order_contain
&&
!
time_start
&&
!
time_end
&&
!
order_payment_mode
&&
!
order_status
&&
!
order_invoice_status
&&
!
order_source_pf
&&
!
order_source_adtag
&&
!
order_source_ptag
)
{
layer
.
msg
(
'请选择筛选条件,再导出!'
);
layer
.
msg
(
'请选择筛选条件,再导出!'
);
return
false
;
return
false
;
}
}
...
@@ -124,7 +124,7 @@
...
@@ -124,7 +124,7 @@
test_order
=
''
;
test_order
=
''
;
}
}
location
.
href
=
'/export?order_type='
+
order_type
+
'&order_contain='
+
order_contain
+
'&time_start='
+
time_start
+
'&time_end='
+
time_end
+
'&order_payment_mode='
+
order_payment_mode
+
'&order_status='
+
order_status
+
'&order_invoice_status='
+
order_invoice_status
+
'&order_s
end='
+
order_send
+
'&order_s
ource_pf='
+
order_source_pf
+
'&order_source_adtag='
+
order_source_adtag
+
'&order_source_ptag='
+
order_source_ptag
+
'&test_order='
+
test_order
+
'&order_goods_type='
+
2
;
location
.
href
=
'/export?order_type='
+
order_type
+
'&order_contain='
+
order_contain
+
'&time_start='
+
time_start
+
'&time_end='
+
time_end
+
'&order_payment_mode='
+
order_payment_mode
+
'&order_status='
+
order_status
+
'&order_invoice_status='
+
order_invoice_status
+
'&order_source_pf='
+
order_source_pf
+
'&order_source_adtag='
+
order_source_adtag
+
'&order_source_ptag='
+
order_source_ptag
+
'&test_order='
+
test_order
+
'&order_goods_type='
+
2
;
})
})
// 选择查看测试订单
// 选择查看测试订单
...
@@ -184,6 +184,72 @@
...
@@ -184,6 +184,72 @@
}
}
})
})
})
})
// 填写订单取消原因
$
(
'.input-cancel-reason'
).
click
(
function
(){
var
self
=
$
(
this
);
var
order_id
=
self
.
data
(
'oid'
);
var
content
=
'<div class="form-group">'
+
'<div class="input-radio">'
+
'<label class="radio-inline"><input type="radio" name="cancel_reason" value="平台信任度问题">平台信任度问题</label>'
+
'<label class="radio-inline"><input type="radio" name="cancel_reason" value="商品质量不放心">商品质量不放心</label>'
+
'<label class="radio-inline"><input type="radio" name="cancel_reason" value="价格问题">价格问题</label>'
+
'<label class="radio-inline"><input type="radio" name="cancel_reason" value="货期问题">货期问题</label>'
+
'<label class="radio-inline"><input type="radio" name="cancel_reason" value="配套服务问题">配套服务问题</label>'
+
'<label class="radio-inline"><input type="radio" name="cancel_reason" value="1">其他</label>'
+
'</div>'
+
'<div class="input-other-reason">'
+
'<textarea class="form-control" name="input-other-reason" placeholder="请填写其他原因"></textarea>'
+
'</div>'
+
'</div>'
;
layer
.
open
({
area
:
[
'650px'
,
'220px'
],
title
:
'填写订单取消原因'
,
content
:
content
,
btn
:[
'确认'
,
'取消'
],
btn1
:
function
(){
var
cancel_reason
=
$
(
'input[name=cancel_reason]:checked'
).
val
();
var
other_reason
=
$
(
'textarea[name=input-other-reason]'
).
val
();
if
(
cancel_reason
==
null
)
{
layer
.
tips
(
'请选择取消原因'
,
$
(
'.input-radio'
));
return
false
;
}
else
if
(
cancel_reason
==
1
)
{
if
(
other_reason
==
''
)
{
layer
.
tips
(
'请填写其他原因'
,
$
(
'.input-other-reason'
));
return
false
;
}
else
{
cancel_reason
=
other_reason
;
}
}
$
.
ajax
({
url
:
'/ajaxInputCancelReason'
,
data
:
{
order_id
:
order_id
,
cancel_reason
:
cancel_reason
},
type
:
'post'
,
dataType
:
'json'
,
success
:
function
(
resp
){
if
(
resp
.
errcode
==
0
){
self
.
remove
();
layer
.
msg
(
resp
.
errmsg
);
layer
.
close
();
}
else
{
layer
.
alert
(
resp
.
errmsg
);
}
},
error
:
function
(){
layer
.
alert
(
'网络异常'
);
}
});
},
btn2
:
function
(
index
){
layer
.
close
(
index
);
}
})
})
}
}
}
}
});
});
...
...
resources/views/orderlist/content.blade.php
View file @
5b7d289b
...
@@ -41,28 +41,25 @@
...
@@ -41,28 +41,25 @@
<dt>
订单状态:
</dt>
<dt>
订单状态:
</dt>
<dd>
<dd>
<select
id=
"order_status"
name=
"order_status"
class=
"form-control order_status selectpicker"
title=
"全部"
multiple
>
<select
id=
"order_status"
name=
"order_status"
class=
"form-control order_status selectpicker"
title=
"全部"
multiple
>
<option
class=
"order_status"
value=
"-1"
>
已取消
</option>
<option
value=
"-1"
>
已取消
</option>
<option
class=
"order_status"
value=
"1"
>
待审核
</option>
<option
value=
"1"
>
待审核
</option>
<option
class=
"order_status"
value=
"2"
>
待付款
</option>
<option
value=
"2"
>
待付款
</option>
<option
class=
"order_status"
value=
"3"
>
待付尾款
</option>
<option
value=
"3"
>
待付尾款
</option>
<option
class=
"order_status"
value=
"4"
>
待发货
</option>
<option
value=
"4"
>
待发货
</option>
<option
class=
"order_status"
value=
"7"
>
部分发货
</option>
<option
value=
"7"
>
部分发货
</option>
<option
class=
"order_status"
value=
"8"
>
待收货
</option>
<option
value=
"8"
>
待收货
</option>
<option
class=
"order_status"
value=
"10"
>
交易成功
</option>
<option
value=
"10"
>
交易成功
</option>
</select>
</select>
</dd>
</dd>
</dl>
</dl>
<dl>
<dl>
<dt>
付款类型:
</dt>
<dt>
付款类型:
</dt>
<dd
style=
"width: 115px;"
>
<dd
style=
"width: 115px;"
>
<div
class=
"droplist"
data-default=
"{{$condition['order_pay_type']}}"
id=
"order_pay_type"
name=
"order_pay_type"
>
<select
id=
"order_pay_type"
name=
"order_pay_type"
class=
"form-control order_pay_type selectpicker"
title=
"全部"
multiple
>
<ul
class=
"dropdown-menu"
>
<option
value=
"1"
>
全款
</option>
<li
data-val=
""
class=
"active"
>
全部
</li>
<option
value=
"2"
>
预付款
</option>
<li
data-val=
"1"
>
全款
</li>
<option
value=
"3"
>
账期
</option>
<li
data-val=
"2"
>
预付款
</li>
</select>
<li
data-val=
"3"
>
账期
</li>
</ul>
</div>
</dd>
</dd>
</dl>
</dl>
<dl>
<dl>
...
@@ -82,6 +79,7 @@
...
@@ -82,6 +79,7 @@
<dd
style=
"width: 115px;"
>
<dd
style=
"width: 115px;"
>
<select
id=
"order_send"
name=
"order_send"
class=
"form-control order_send selectpicker"
title=
"全部"
data-live-search=
"true"
data-size=
"7"
>
<select
id=
"order_send"
name=
"order_send"
class=
"form-control order_send selectpicker"
title=
"全部"
data-live-search=
"true"
data-size=
"7"
>
<option
value=
""
>
全部
</option>
<option
value=
""
>
全部
</option>
<option
value=
"0"
>
无推送
</option>
<optgroup
label=
"在职"
>
<optgroup
label=
"在职"
>
@foreach ($sale_list as $v)
@foreach ($sale_list as $v)
@if ($v->status != 4)
@if ($v->status != 4)
...
@@ -151,14 +149,19 @@
...
@@ -151,14 +149,19 @@
<dl>
<dl>
<dt>
用户标签:
</dt>
<dt>
用户标签:
</dt>
<dd>
<dd>
<div
class=
"droplist"
data-default=
"{{$condition['is_new']}}"
name=
"is_new"
id=
"is_new"
>
<select
id=
"is_new"
name=
"is_new"
class=
"form-control is_new selectpicker"
title=
"全部"
multiple
>
<ul
class=
"dropdown-menu"
>
<option
value=
"0"
>
用户
</option>
<li
data-val=
""
class=
"active"
>
全部
</li>
<option
value=
"1"
>
新客户
</option>
<li
data-val=
"0"
>
用户
</li>
<option
value=
"2"
>
老客户
</option>
<li
data-val=
"1"
>
新客户
</li>
</select>
<li
data-val=
"2"
>
老客户
</li>
<!-- <div class="droplist" data-default="{{$condition['is_new']}}" name="is_new" id="is_new">
</ul>
<ul class="dropdown-menu">
</div>
<li data-val="" class="active">全部</li>
<li data-val="0">用户</li>
<li data-val="1">新客户</li>
<li data-val="2">老客户</li>
</ul>
</div> -->
</dd>
</dd>
</dl>
</dl>
...
@@ -500,7 +503,9 @@
...
@@ -500,7 +503,9 @@
<script>
<script>
var
test_order
=
"{{$condition['test_order']}}"
;
var
test_order
=
"{{$condition['test_order']}}"
;
var
order_status
=
"{{$condition['order_status']}}"
;
var
order_status
=
"{{$condition['order_status']}}"
;
var
order_send
=
"{{$condition['order_send']}}"
;
var
order_send
=
"{{$condition['order_send']}}"
;
var
order_pay_type
=
"{{$condition['order_pay_type']}}"
;
var
is_new
=
"{{$condition['is_new']}}"
;
if
(
test_order
)
{
if
(
test_order
)
{
$
(
'input[name=test_order]'
).
attr
(
'checked'
,
true
);
$
(
'input[name=test_order]'
).
attr
(
'checked'
,
true
);
...
@@ -516,6 +521,8 @@
...
@@ -516,6 +521,8 @@
$
(
'.order_status'
).
selectpicker
(
'val'
,
order_status
.
split
(
','
)).
trigger
(
"change"
);
$
(
'.order_status'
).
selectpicker
(
'val'
,
order_status
.
split
(
','
)).
trigger
(
"change"
);
$
(
'#order_send'
).
selectpicker
(
'val'
,
order_send
);
$
(
'#order_send'
).
selectpicker
(
'val'
,
order_send
);
$
(
'.order_pay_type'
).
selectpicker
(
'val'
,
order_pay_type
.
split
(
','
)).
trigger
(
"change"
);
$
(
'.is_new'
).
selectpicker
(
'val'
,
is_new
.
split
(
','
)).
trigger
(
"change"
);
$
.
lie
.
order
.
index
();
$
.
lie
.
order
.
index
();
...
...
resources/views/selfOrder/content.blade.php
View file @
5b7d289b
...
@@ -40,6 +40,7 @@
...
@@ -40,6 +40,7 @@
<ul
class=
"dropdown-menu"
>
<ul
class=
"dropdown-menu"
>
<li
data-val=
""
class=
"active"
>
全部
</li>
<li
data-val=
""
class=
"active"
>
全部
</li>
<li
data-val=
"-1"
>
已取消
</li>
<li
data-val=
"-1"
>
已取消
</li>
<li
data-val=
"1"
>
待审核
</li>
<li
data-val=
"2"
>
待付款
</li>
<li
data-val=
"2"
>
待付款
</li>
<li
data-val=
"4"
>
待发货
</li>
<li
data-val=
"4"
>
待发货
</li>
<li
data-val=
"8"
>
待收货
</li>
<li
data-val=
"8"
>
待收货
</li>
...
@@ -134,7 +135,7 @@
...
@@ -134,7 +135,7 @@
<dl>
<dl>
<dt></dt>
<dt></dt>
<dd>
<dd>
<
input
type=
"checkbox"
name=
"test_order"
>
所有订单-包括测试
<
label><input
type=
"checkbox"
name=
"test_order"
>
所有订单-包括测试
</label>
</dd>
</dd>
</dl>
</dl>
@endif
@endif
...
@@ -246,6 +247,10 @@
...
@@ -246,6 +247,10 @@
@if (in_array('self_order_download_contract', $userPerms))
@if (in_array('self_order_download_contract', $userPerms))
<a
class=
"btn btn-default download-contract"
data-id=
"{{$v['order_id']}}"
href=
"javascript:;"
>
下载合同
</a>
<a
class=
"btn btn-default download-contract"
data-id=
"{{$v['order_id']}}"
href=
"javascript:;"
>
下载合同
</a>
@endif
@endif
@if ($v['status'] == -1
&&
!$v['cancel_reason'])
<a
class=
"btn btn-danger input-cancel-reason"
href=
"javascript:;"
data-oid=
"{{$v['order_id']}}"
>
填写取消原因
</a>
@endif
</div>
</div>
</td>
</td>
</tr>
</tr>
...
...
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