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
9b8d3f77
authored
Apr 23, 2019
by
朱继来
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'zjl_iteration_20190416' into development
parents
d46ea5f0
c95f35bb
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
32 additions
and
14 deletions
app/Http/Controllers/AddOrderController.php
app/Http/Controllers/OrderController.php
public/js/add_order.js
resources/views/addOffline/content.blade.php
resources/views/addOnline/content.blade.php
resources/views/addOrder/content.blade.php
resources/views/detail/changeOrder.blade.php
resources/views/detail/content.blade.php
resources/views/erpOrder/content.blade.php
resources/views/orderlist/content.blade.php
resources/views/selfOrder/content.blade.php
app/Http/Controllers/AddOrderController.php
View file @
9b8d3f77
...
...
@@ -632,7 +632,7 @@ Class AddOrderController extends Controller
Excel
::
load
(
$filePath
,
function
(
$reader
)
use
(
&
$excel
){
$data
=
$reader
->
getSheet
(
0
);
$excel
=
$data
->
toArray
();
});
}
,
'GBK'
);
if
(
empty
(
$excel
))
return
[
'errcode'
=>
1
,
'errmsg'
=>
'未获取到模板内容,请检查模板内容数据格式'
];
...
...
@@ -651,6 +651,8 @@ Class AddOrderController extends Controller
return
[
'errcode'
=>
1
,
'errmsg'
=>
'导入模板错误,需导入'
.
$type_val
.
'模板'
];
}
$excel
=
$this
->
handleData
(
$excel
,
$map
);
// 处理数据
// 验证excel内容
$valid
=
$this
->
excelValid
(
$excel
);
...
...
@@ -661,10 +663,8 @@ Class AddOrderController extends Controller
array_shift
(
$excel
);
// 删除第一行
$goods_info
=
$this
->
handleData
(
$excel
,
$map
);
// 处理数据
// 推送到API
$data
[
'data'
]
=
$
goods_info
;
$data
[
'data'
]
=
$
excel
;
$data
[
'operator_id'
]
=
$request
->
user
->
userId
;
$data
[
'type'
]
=
3
;
// 后台批量添加标记
$data
[
'uid'
]
=
$request
->
input
(
'user_id'
);
...
...
@@ -709,6 +709,14 @@ Class AddOrderController extends Controller
break
;
}
}
// 自营ID、采购数量和单价为数字类型
if
(
$k
==
'id'
||
$k
==
'num'
||
$k
==
'goods_price'
)
{
if
(
!
preg_match
(
'/\d/'
,
$v
))
{
$err
=
[
'errcode'
=>
2
,
'errmsg'
=>
$required
[
$k
]
.
'列,第'
.
$key
.
'行格式错误'
];
break
;
}
}
}
}
});
...
...
app/Http/Controllers/OrderController.php
View file @
9b8d3f77
...
...
@@ -752,6 +752,7 @@ Class OrderController extends Controller
"k2"
=>
$check
[
'k2'
],
"client_source"
=>
$client_source
,
"change_extend_fee"
=>
$request
->
input
(
'change_extend_fee'
,
''
),
"kefu_remark"
=>
$request
->
input
(
'kefu_remark'
,
''
),
];
$temp
=
json_decode
(
curlApi
(
$url
,
$resData
,
"POST"
),
true
);
...
...
public/js/add_order.js
View file @
9b8d3f77
...
...
@@ -582,7 +582,7 @@
// 上传文件
var
form
=
$
(
'<form id="formUpload" method="post" enctype="multipart/form-data">\
<input type="file" name="upload" id="fileInput" accept="application/vnd.ms-excel, application/x-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet">\
<input type="file" name="upload" id="fileInput" accept="application/vnd.ms-excel, application/x-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
, .csv
">\
</form>'
);
var
type
=
$
(
this
).
data
(
'type'
);
// 1-联营模板,2-自营模板
...
...
resources/views/addOffline/content.blade.php
View file @
9b8d3f77
...
...
@@ -93,7 +93,7 @@
<div
class=
"batch-btn"
>
<a
class=
"btn btn-success goods_import"
data-type=
"2"
>
批量导入物料
</a>
<a
class=
"btn btn-info"
href=
"http://img.ichunt.com/doc/excel/template/%E8%87%AA%E8%90%A5%E8%AE%A2%E5%8D%95%E6%89%B9%E9%87%8F%E6%B7%BB%E5%8A%A0%E6%A8%A1%E6%9D%BF.
xlsx
"
>
自营物料模板下载
</a>
<a
class=
"btn btn-info"
href=
"http://img.ichunt.com/doc/excel/template/%E8%87%AA%E8%90%A5%E8%AE%A2%E5%8D%95%E6%89%B9%E9%87%8F%E6%B7%BB%E5%8A%A0%E6%A8%A1%E6%9D%BF.
csv
"
>
自营物料模板下载
</a>
</div>
</div>
</div>
...
...
resources/views/addOnline/content.blade.php
View file @
9b8d3f77
...
...
@@ -228,7 +228,7 @@
<div
class=
"batch-btn"
>
<a
class=
"btn btn-success goods_import"
data-type=
"2"
>
批量导入物料
</a>
<a
class=
"btn btn-info"
href=
"http://img.ichunt.com/doc/excel/template/%E8%87%AA%E8%90%A5%E8%AE%A2%E5%8D%95%E6%89%B9%E9%87%8F%E6%B7%BB%E5%8A%A0%E6%A8%A1%E6%9D%BF.
xlsx
"
>
自营物料模板下载
</a>
<a
class=
"btn btn-info"
href=
"http://img.ichunt.com/doc/excel/template/%E8%87%AA%E8%90%A5%E8%AE%A2%E5%8D%95%E6%89%B9%E9%87%8F%E6%B7%BB%E5%8A%A0%E6%A8%A1%E6%9D%BF.
csv
"
>
自营物料模板下载
</a>
</div>
</div>
</div>
...
...
resources/views/addOrder/content.blade.php
View file @
9b8d3f77
...
...
@@ -247,7 +247,7 @@
<div
class=
"batch-btn"
>
<a
class=
"btn btn-success goods_import"
data-type=
"1"
>
批量导入物料
</a>
<a
class=
"btn btn-info"
href=
"http://img.ichunt.com/doc/excel/template/%E8%81%94%E8%90%A5%E8%AE%A2%E5%8D%95%E6%89%B9%E9%87%8F%E6%B7%BB%E5%8A%A0%E6%A8%A1%E6%9D%BF.
xlsx
"
>
联营物料模板下载
</a>
<a
class=
"btn btn-info"
href=
"http://img.ichunt.com/doc/excel/template/%E8%81%94%E8%90%A5%E8%AE%A2%E5%8D%95%E6%89%B9%E9%87%8F%E6%B7%BB%E5%8A%A0%E6%A8%A1%E6%9D%BF.
csv
"
>
联营物料模板下载
</a>
</div>
</div>
</div>
...
...
resources/views/detail/changeOrder.blade.php
View file @
9b8d3f77
...
...
@@ -147,6 +147,8 @@
</tbody>
</table>
<textarea
name=
"kefu_remark"
id=
"kefu_remark"
class=
"form-control"
placeholder=
"客服备注信息"
style=
"resize: none;"
>
{{$order_temp_info['kefu_remark']}}
</textarea>
@if ($order_info['order_goods_type'] == 2)
<table
class=
"table table-bordered table-hover"
>
<tr>
...
...
resources/views/detail/content.blade.php
View file @
9b8d3f77
...
...
@@ -478,6 +478,13 @@
<td
colspan=
"10"
>
{{$order_info['order_remark']}}
</td>
</tr>
@endif
@if ($order_temp_info['kefu_remark'])
<tr>
<td>
客服备注信息:
</td>
<td
colspan=
"10"
>
{{$order_temp_info['kefu_remark']}}
</td>
</tr>
@endif
</tfoot>
</table>
...
...
resources/views/erpOrder/content.blade.php
View file @
9b8d3f77
...
...
@@ -18,8 +18,8 @@
<dd
style=
"width:auto !important;"
>
<div
class=
"droplist"
data-default=
"{{$condition['order_type']}}"
id=
"order_type"
name=
"order_type"
>
<ul
class=
"dropdown-menu"
>
<li
class=
"order_type_tab active"
data-val=
""
>
会员账
号
</li>
<li
class=
"order_type_tab"
data-val=
"1"
>
订单编
号
</li>
<li
class=
"order_type_tab active"
data-val=
""
>
订单编
号
</li>
<li
class=
"order_type_tab"
data-val=
"1"
>
会员账
号
</li>
<li
class=
"order_type_tab"
data-val=
"2"
>
型号名称
</li>
</ul>
</div>
...
...
resources/views/orderlist/content.blade.php
View file @
9b8d3f77
...
...
@@ -18,8 +18,8 @@
<dd
style=
"width:auto !important;"
>
<div
class=
"droplist"
data-default=
"{{$condition['order_type']}}"
id=
"order_type"
name=
"order_type"
>
<ul
class=
"dropdown-menu"
>
<li
class=
"order_type_tab active"
data-val=
""
>
会员账号
</li>
<li
class=
"order_type_tab"
data-val=
"1"
>
订单编号
</li>
<li
class=
"order_type_tab active"
data-val=
""
>
订单编号
</li>
<li
class=
"order_type_tab"
data-val=
"1"
>
会员账号
</li>
<li
class=
"order_type_tab"
data-val=
"2"
>
型号名称
</li>
</ul>
</div>
...
...
resources/views/selfOrder/content.blade.php
View file @
9b8d3f77
...
...
@@ -18,8 +18,8 @@
<dd
style=
"width:auto !important;"
>
<div
class=
"droplist"
data-default=
"{{$condition['order_type']}}"
id=
"order_type"
name=
"order_type"
>
<ul
class=
"dropdown-menu"
>
<li
class=
"order_type_tab active"
data-val=
""
>
会员账号
</li>
<li
class=
"order_type_tab"
data-val=
"1"
>
订单编号
</li>
<li
class=
"order_type_tab active"
data-val=
""
>
订单编号
</li>
<li
class=
"order_type_tab"
data-val=
"1"
>
会员账号
</li>
<li
class=
"order_type_tab"
data-val=
"2"
>
型号名称
</li>
<li
class=
"order_type_tab"
data-val=
"3"
>
发票抬头
</li>
</ul>
...
...
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