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
1db080fe
authored
Sep 16, 2020
by
朱继来
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'zjl_merge_20200821'
parents
d04b6c23
66957556
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
77 additions
and
18 deletions
app/Http/Controllers/AddOrderController.php
public/css/detail.css
public/js/add_order.js
public/js/change_order.js
public/js/goods.js
resources/views/addOrder/content.blade.php
resources/views/changeOrder/content.blade.php
resources/views/changeOrder/tempSave.blade.php
resources/views/detail/content.blade.php
resources/views/detail/detail_base_info.blade.php
app/Http/Controllers/AddOrderController.php
View file @
1db080fe
...
...
@@ -562,6 +562,7 @@ Class AddOrderController extends Controller
$data
[
'role'
]
=
$request
->
input
(
'role'
,
''
);
$data
[
'tax_id'
]
=
$request
->
input
(
'tax_id'
);
$data
[
'user_coupon_id'
]
=
$request
->
input
(
'user_coupon_id'
);
$data
[
'send_type'
]
=
$request
->
input
(
'zy_delivery_type'
);
// 发货方式
if
(
$data
[
'type'
]
==
1
)
{
// 联营
$data
[
'customer_cn'
]
=
$request
->
input
(
'customer_cn'
,
''
);
...
...
public/css/detail.css
View file @
1db080fe
...
...
@@ -161,6 +161,11 @@ li {
width
:
100px
;
}
@media
screen
and
(
max-width
:
1550px
)
{
.shop-lists
input
{
width
:
80px
;
}
.select-standard-brand
{
width
:
20px
;
}
}
.amount-section
{
margin-top
:
40px
;
text-align
:
right
;
...
...
public/js/add_order.js
View file @
1db080fe
This diff is collapsed.
Click to expand it.
public/js/change_order.js
View file @
1db080fe
...
...
@@ -138,7 +138,8 @@
var
extra_fee
=
$
(
'input[name="extra_fee"]'
).
val
()
?
parseFloat
(
$
(
'input[name="extra_fee"]'
).
val
())
:
0
;
var
freight_fee
=
$
(
'input[name="freight_fee"]'
).
val
()
?
parseFloat
(
$
(
'input[name="freight_fee"]'
).
val
())
:
0
;
// 运费
var
total
=
parseFloat
(
goods_total
+
freight_fee
+
extra_fee
).
toFixed
(
2
);
var
discount_amount
=
$
(
'input[name="discount_amount"]'
).
val
()
?
parseFloat
(
$
(
'input[name="discount_amount"]'
).
val
())
:
0
;
// 优惠券
var
total
=
parseFloat
(
goods_total
+
extra_fee
+
freight_fee
+
discount_amount
).
toFixed
(
2
);
goods_total
=
goods_total
.
toFixed
(
2
);
...
...
@@ -546,15 +547,13 @@
var
order_amount
=
parseFloat
(
$
(
'.total'
).
text
());
var
extra_fee
=
$
(
'input[name=extra_fee]'
).
val
()
?
$
(
'input[name=extra_fee]'
).
val
()
:
0
;
var
freight_fee
=
$
(
'input[name=freight_fee]'
).
val
()
?
$
(
'input[name=freight_fee]'
).
val
()
:
0
;
var
discount_amount
=
$
(
'input[name="discount_amount"]'
).
val
()
?
parseFloat
(
$
(
'input[name="discount_amount"]'
).
val
())
:
0
;
// 优惠券
var
last_paid
=
parseFloat
(
order_amount
+
parseFloat
(
pay_preferential
)).
toFixed
(
2
);
// 实际支付金额
var
order_type_extend
=
$
(
'#order_type_extend'
).
val
();
var
content
=
'<div class="submit-check">'
;
content
+=
'<p class="error">请核对订单金额,谨慎操作!</p>'
;
content
+=
'<p><label>商品总金额:</label>'
+
currencySign
+
goods_amount
+
'</p>'
;
content
+=
'<p><label>优惠金额:</label>'
+
discount_amount
+
'</p>'
+
'<p><label>附加费金额:</label>'
+
extra_fee
+
'</p>'
+
'<p><label>运费金额:</label>'
+
freight_fee
+
'</p>'
+
...
...
@@ -605,7 +604,7 @@
}
})
// layer.msg('审核提交中...', {icon: 16, time: 0, shade: 0.3}); // 阻止重复提交
layer
.
msg
(
'审核提交中...'
,
{
icon
:
16
,
time
:
0
,
shade
:
0.3
});
// 阻止重复提交
},
btn2
:
function
(
index
,
layero
){
layer
.
close
(
index
);
...
...
public/js/goods.js
View file @
1db080fe
...
...
@@ -100,6 +100,8 @@
buyers_option
+=
'<option value="'
+
buyers
[
i
].
userId
+
'">'
+
buyers
[
i
].
name
+
'</option>'
;
}
var
sale_type
=
order_item
.
sale_type
==
1
?
'现卖'
:
'预售'
;
html
+=
'<tr data-sup="'
+
sup
+
'" data-brand_name="'
+
order_item
.
brand_name
+
'">\
<td>'
+
curr_no
+
'</td>\
<td>\
...
...
@@ -107,6 +109,7 @@
<input type="hidden" name="change_info['
+
curr_no
+
'][supplier_name]" value="'
+
order_item
.
supplier_name
+
'">\
<p>'
+
order_item
.
supplier_name
+
'</p>\
</td>\
<td>'
+
sale_type
+
'</td>\
<td>\
<input class="change_goods_name" type="hidden" name="change_info['
+
curr_no
+
'][goods_name]" value="'
+
order_item
.
goods_name
+
'">\
<p>'
+
order_item
.
goods_name
+
'</p>\
...
...
@@ -311,12 +314,15 @@
}
}
var
sale_type
=
order_item
.
sale_type
==
1
?
'现卖'
:
'预售'
;
html
+=
'<tr data-brand_name="'
+
add_brand_name
+
'">\
<td>'
+
curr_no
+
'</td>\
<td>\
<input type="hidden" name="change_info['
+
curr_no
+
'][supplier_name]" value="'
+
add_supplier_name
+
'">\
<p>'
+
add_supplier_name
+
'</p>\
</td>\
<td>'
+
sale_type
+
'</td>\
<td>\
<input class="change_goods_name" type="hidden" name="change_info['
+
curr_no
+
'][goods_name]" value="'
+
add_goods_name
+
'">\
<p>'
+
add_goods_name
+
'</p>\
...
...
resources/views/addOrder/content.blade.php
View file @
1db080fe
...
...
@@ -97,6 +97,23 @@
</div>
</div>
<div
class=
"shipping-info"
>
<h4>
发货方式
<span
class=
"title-tips"
><i
class=
"fa fa-info-circle"
></i>
现货发货创建的自营通知单,账户为原客户账户,公司和原客户地址; 拼单发货创建的自营通知单,账户为15011111111,猎芯公司以及星火仓的地址
</span></h4>
<div
class=
"row"
>
<div
class=
"col-sm-6"
>
<div
class=
"form-group"
>
<span><i
class=
"text-danger"
>
*
</i>
选择发货方式:
</span>
<select
name=
"zy_delivery_type"
class=
"zy_delivery_type"
>
<option
value=
""
>
请选择
</option>
<option
value=
"1"
>
现货发货
</option>
<option
value=
"2"
>
拼单发货
</option>
</select>
</div>
</div>
</div>
</div>
<div
class=
"invoice-info"
>
<h4>
发票信息
<span
class=
"title-tips"
><i
class=
"fa fa-info-circle"
></i>
可在订单中心完善发票信息,需要在订单审核通过前填写发票信息,否则无法同步至ERP
</span></h4>
...
...
@@ -314,7 +331,8 @@
<span>
快捷入口:
<a
href=
"{{Config('website.add-sku-url')}}"
target=
"_blank"
style=
"margin-right: 10px;"
>
+新增SKU
</a>
<a
href=
"{{Config('website.search-sku-url-1')}}"
target=
"_blank"
>
查询SKU
</a>
<a
href=
"{{Config('website.search-sku-url-1')}}"
target=
"_blank"
style=
"margin-right: 10px;"
>
查询联营SKU
</a>
<a
href=
"{{Config('website.search-sku-url-2')}}"
target=
"_blank"
>
查询自营SKU
</a>
</span>
<div
class=
"batch-btn"
>
...
...
@@ -406,22 +424,26 @@
</div>
<!-- 商品列表 -->
<style>
.shop-table
tbody
tr
td
{
word-break
:
break-all
;
}
</style>
<div
class=
"shop-lists table-responsive"
>
<table
class=
"table table-bordered table-hover shop-table"
>
<thead>
<tr>
<th
width=
"
5
%"
>
序号
</th>
<th
width=
"
4
%"
>
序号
</th>
<th
width=
"10%"
>
SKUID
</th>
<th
width=
"1
5
%"
>
商品名称
</th>
<th
width=
"1
0
%"
>
商品名称
</th>
<th
width=
"10%"
>
制造商
</th>
<th
width=
"10%"
>
标准品牌
</th>
<th
width=
"4%"
>
倍数
</th>
<th
width=
"8%"
>
采购数量
</th>
<th
width=
"7%"
>
采购单价
</th>
<th
width=
"7%"
>
小计
</th>
<th
width=
"7%"
>
货期
</th>
<th
width=
"
7
%"
>
供应商
</th>
<th
width=
"
7
%"
>
采购员
</th>
<th
width=
"
10
%"
>
批次
</th>
<th
width=
"
6
%"
>
供应商
</th>
<th
width=
"
6
%"
>
采购员
</th>
<th
width=
"
7
%"
>
批次
</th>
<th
width=
"5%"
>
操作
</th>
</tr>
</thead>
...
...
@@ -464,6 +486,11 @@
</div>
<div
class=
"row"
>
<p
class=
"con-title"
><span>
运费:
</span></p>
<p
class=
"con-val express_fee_val"
>
0.00
</p>
</div>
<div
class=
"row"
>
<p
class=
"con-title"
><span>
应付金额:
</span></p>
<p
class=
"con-val text-danger order_amount"
></p>
</div>
...
...
resources/views/changeOrder/content.blade.php
View file @
1db080fe
...
...
@@ -11,6 +11,7 @@
/* 提交审核弹框label */
.submit-check
label
{
display
:
inline-block
;
width
:
120px
;
text-align
:
right
;}
input
[
type
=
"text"
]
{
width
:
120px
;}
</style>
<div
class=
"tabs-box"
>
...
...
@@ -144,6 +145,7 @@
<thead>
<th
width=
"5%"
>
序号
</th>
<th
width=
"10%"
>
供应商
</th>
<th
width=
"5%"
>
销售类型
</th>
<th
width=
"10%"
>
型号
</th>
<th
width=
"10%"
>
品牌
</th>
@if ($order_info['order_goods_type'] == 1)
...
...
@@ -175,6 +177,7 @@
<input
type=
"hidden"
name=
"change_info[{{$v['rec_id']}}][supplier_name]"
value=
"{{$v['supplier_name']}}"
>
<p>
{{$v['supplier_name']}}
</p>
</td>
<td>
{{ $v['sale_type'] == 1 ? '现卖' : '预售' }}
</td>
<td>
<input
class=
"change_goods_id"
type=
"hidden"
name=
"change_info[{{$v['rec_id']}}][goods_id]"
value=
"{{$v['goods_id']}}"
>
<input
class=
"change_goods_name"
type=
"hidden"
name=
"change_info[{{$v['rec_id']}}][goods_name]"
value=
"{{$v['goods_name']}}"
>
...
...
@@ -367,11 +370,20 @@
</tr>
@endif
@if ($order_price_info['discount_amount'])
<tr>
<th>
优惠金额
</th>
<td>
<span>
{{ $order_price_info['discount_amount'] }}
</span>
<input
class=
"only_number discount_amount"
type=
"hidden"
name=
"discount_amount"
value=
"{{ $order_price_info['discount_amount'] }}"
>
</td>
</tr>
@endif
@if (($order_info['order_goods_type'] == 1
&&
$order_price_info['shipping_price']) || $order_info['order_goods_type'] == 2)
<tr>
<th>
运费
</th>
<td>
<span>
{{$currency}}
</span>
<input
class=
"only_number freight_fee"
type=
"text"
name=
"freight_fee"
value=
"{{ $order_price_info['shipping_price'] }}"
>
</td>
</tr>
...
...
resources/views/changeOrder/tempSave.blade.php
View file @
1db080fe
...
...
@@ -3,10 +3,10 @@
#tempSaveForm
{
padding
:
15px
;
}
</style>
<div
id=
"temp-save-info"
>
<div
class=
"order-change-main"
>
<form
id=
"tempSaveForm"
class=
"form-horizontal
table-responsive
"
>
<div
class=
"order-change-main
row-fluid table-responsive
"
>
<form
id=
"tempSaveForm"
class=
"form-horizontal"
>
@if ($order_temp_info['temp_save_info']['customer_cn'])
<table
class=
"table table-bordered table-hover"
>
<table
class=
"table table-bordered table-hover
text-nowrap
"
>
<tr
class=
"caption"
>
<th
colspan=
"4"
style=
"text-align: center; background: #f9f9f9;"
>
终端客户信息
</th>
</tr>
...
...
@@ -25,7 +25,8 @@
</table>
@endif
<table
class=
"table table-bordered table-hover"
>
<div
class=
"row-fluid table-responsive"
>
<table
class=
"table table-bordered table-hover text-nowrap"
>
<thead>
<tr>
<th
width=
"20%"
>
型号
</th>
...
...
@@ -60,6 +61,8 @@
@endif
</tbody>
</table>
</div>
<hr>
<table
class=
"table table-bordered table-hover"
>
<tr>
...
...
resources/views/detail/content.blade.php
View file @
1db080fe
...
...
@@ -207,7 +207,7 @@
@endif
@if (in_array($order_info['status'], array(3, 4, 7))
&&
in_array('order_refund', $userPerms))
<
a
href=
"{{URL('refund', ['order_id'=>$order_info['order_id']])}}"
class=
"btn btn-info order_refund"
>
退货退款
</a
>
<
!-- <a href="{{URL('refund', ['order_id'=>$order_info['order_id']])}}" class="btn btn-info order_refund">退货退款</a> --
>
@endif
<!-- 已发货之后的状态 -->
...
...
@@ -244,7 +244,7 @@
@endif
@if (in_array($order_info['status'], [7, 8, 10])
&&
in_array('self_order_refund', $userPerms))
<
a
href=
"/return/{{$order_info['order_id']}}?tags=self"
class=
"btn btn-info order_refund"
>
退货申请
</a
>
<
!-- <a href="/return/{{$order_info['order_id']}}?tags=self" class="btn btn-info order_refund">退货申请</a> --
>
@endif
<!-- 订单状态大于4,且处于开票状态,且存在权限 -->
...
...
resources/views/detail/detail_base_info.blade.php
View file @
1db080fe
...
...
@@ -27,6 +27,9 @@
<th>
支付方式
</th>
<th>
支付状态
</th>
<th>
支付类型
</th>
@if ($order_info['order_goods_type'] == 1)
<th>
发货方式
</th>
@endif
<th>
发货状态
</th>
<th>
物流单号
</th>
<th>
京东订单编号
</th>
...
...
@@ -100,6 +103,9 @@
}
?>
</td>
@if ($order_info['order_goods_type'] == 1)
<td>
{{ $order_temp_info['zy_delivery_type'] == 1 ? '现货发货' : '拼单发货' }}
</td>
@endif
<td>
<?php
if
(
$order_shipping_info
)
{
...
...
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