Commit f9aeb4c4 by 朱继来

调整

parent b389ea04
...@@ -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);
......
...@@ -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: true //开启分页 ,page: false //开启分页
,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,]
}); });
} }
......
...@@ -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>
...@@ -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>
...@@ -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">
...@@ -22,37 +18,3 @@ ...@@ -22,37 +18,3 @@
<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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment