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
f9aeb4c4
authored
Jun 15, 2020
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整
parent
b389ea04
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
52 deletions
public/js/change_order.js
public/js/standardBrand.js
resources/views/addOffline/js.blade.php
resources/views/changeOrder/js.blade.php
resources/views/common/selectBrand.blade.php
public/js/change_order.js
View file @
f9aeb4c4
...
@@ -565,17 +565,21 @@
...
@@ -565,17 +565,21 @@
data
:
$
(
'#checkOrderForm'
).
serialize
(),
data
:
$
(
'#checkOrderForm'
).
serialize
(),
dataType
:
'json'
,
dataType
:
'json'
,
success
:
function
(
resp
)
{
success
:
function
(
resp
)
{
if
(
resp
.
errcode
==
=
0
){
if
(
resp
.
errcode
==
0
){
layer
.
msg
(
resp
.
errmsg
||
'操作成功'
);
layer
.
msg
(
resp
.
errmsg
||
'操作成功'
);
setTimeout
(
function
(){
setTimeout
(
function
(){
// location.reload();
// location.reload();
location
.
href
=
url
;
location
.
href
=
url
;
},
1000
);
},
1000
);
}
else
{
layer
.
alert
(
resp
.
errmsg
||
'网络异常'
,
function
()
{
return
false
;
location
.
reload
();
}
});
}
layer
.
alert
(
resp
.
errmsg
);
return
false
;
// layer.alert(resp.errmsg || '网络异常', function() {
// location.reload();
// });
},
},
error
:
function
(
res
)
{
error
:
function
(
res
)
{
...
@@ -583,7 +587,7 @@
...
@@ -583,7 +587,7 @@
}
}
})
})
//
layer.msg('审核提交中...', {icon: 16, time: 0, shade: 0.3}); // 阻止重复提交
layer
.
msg
(
'审核提交中...'
,
{
icon
:
16
,
time
:
0
,
shade
:
0.3
});
// 阻止重复提交
},
},
btn2
:
function
(
index
,
layero
){
btn2
:
function
(
index
,
layero
){
layer
.
close
(
index
);
layer
.
close
(
index
);
...
...
public/js/standardBrand.js
View file @
f9aeb4c4
...
@@ -9,13 +9,13 @@ layui.use(['table', 'form'], function() {
...
@@ -9,13 +9,13 @@ layui.use(['table', 'form'], function() {
,
url
:
'/api/getStandardBrandList'
//数据接口
,
url
:
'/api/getStandardBrandList'
//数据接口
,
method
:
'post'
,
method
:
'post'
,
cellMinWidth
:
80
//全局定义常规单元格的最小宽度
,
cellMinWidth
:
80
//全局定义常规单元格的最小宽度
,
page
:
tru
e
//开启分页
,
page
:
fals
e
//开启分页
,
cols
:
[[
//表头
,
cols
:
[[
//表头
{
type
:
'radio'
,
width
:
80
}
{
type
:
'radio'
,
width
:
80
}
,{
field
:
'erp_brand_name'
,
title
:
'品牌名称'
,
width
:
596
}
,{
field
:
'erp_brand_name'
,
title
:
'品牌名称'
,
width
:
596
}
]]
]]
,
limit
:
10
//
,limit: 10
,
limits
:
[
10
,
20
,
50
,]
//
,limits: [10, 20, 50,]
});
});
}
}
...
...
resources/views/addOffline/js.blade.php
View file @
f9aeb4c4
...
@@ -10,4 +10,4 @@
...
@@ -10,4 +10,4 @@
<script
src=
"/js/common.js"
></script>
<script
src=
"/js/common.js"
></script>
<script
src=
"/js/add_order.js?v=
<?=
time
()
?>
"
></script>
<script
src=
"/js/add_order.js?v=
<?=
time
()
?>
"
></script>
<script
src=
"/js/plugins/DatePicker/WdatePicker.js"
></script>
<script
src=
"/js/plugins/DatePicker/WdatePicker.js"
></script>
<script
src=
"/js/standardBrand.js"
></script>
<script
src=
"/js/standardBrand.js
?v=
<?=
time
()
?>
"
></script>
resources/views/changeOrder/js.blade.php
View file @
f9aeb4c4
...
@@ -12,4 +12,4 @@
...
@@ -12,4 +12,4 @@
<script
src=
"/js/common.js"
></script>
<script
src=
"/js/common.js"
></script>
<script
src=
"/js/change_order.js?v=
<?=
time
()
?>
"
></script>
<script
src=
"/js/change_order.js?v=
<?=
time
()
?>
"
></script>
<script
src=
"/js/goods.js?v=
<?=
time
()
?>
"
></script>
<script
src=
"/js/goods.js?v=
<?=
time
()
?>
"
></script>
<script
src=
"/js/standardBrand.js"
></script>
<script
src=
"/js/standardBrand.js
?v=
<?=
time
()
?>
"
></script>
resources/views/common/selectBrand.blade.php
View file @
f9aeb4c4
...
@@ -6,10 +6,6 @@
...
@@ -6,10 +6,6 @@
#select-brand-pop
.label-prompt
{
padding
:
6px
!important
;
}
#select-brand-pop
.label-prompt
{
padding
:
6px
!important
;
}
</style>
</style>
<!-- <div class="shop-table">
<i class="fa fa-exclamation-triangle fa-2x select-standard-brand" aria-hidden="true"></i>
</div> -->
<div
id=
"select-brand-pop"
class=
"select-content"
>
<div
id=
"select-brand-pop"
class=
"select-content"
>
<form
class=
"layui-form layui-box"
method=
"post"
>
<form
class=
"layui-form layui-box"
method=
"post"
>
<div
class=
"layui-input-inline"
>
<div
class=
"layui-input-inline"
>
...
@@ -21,38 +17,4 @@
...
@@ -21,38 +17,4 @@
</form>
</form>
<table
id=
"brandList"
lay-filter=
"brandList"
></table>
<table
id=
"brandList"
lay-filter=
"brandList"
></table>
</div>
</div>
\ No newline at end of file
<script>
// layui.use(['table', 'form'], function() {
// var table = layui.table;
// var form = layui.form;
// table.render({
// id: 'list'
// ,elem: '#brandList'
// ,url: '/api/getStandardBrandList' //数据接口
// ,method:'post'
// ,cellMinWidth: 80 //全局定义常规单元格的最小宽度
// ,page: true //开启分页
// ,cols: [[ //表头
// {type:'radio', width: 80}
// ,{field: 'erp_brand_name', title: '品牌名称', width: 596}
// ]]
// ,limit: 10
// ,limits: [10, 20, 50,]
// });
// form.on('submit(load)', function(data) {
// //执行重载
// table.reload('list', {
// page: {
// curr: 1
// }
// ,where: data.field
// });
// return false;
// });
// })
</script>
\ No newline at end of file
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