|
@@ -8,7 +8,7 @@
|
|
|
<meta http-equiv="Cache-Control" content="no-siteapp" />
|
|
|
<link rel="Bookmark" href="/favicon.ico" >
|
|
|
<link rel="Shortcut Icon" href="/favicon.ico" />
|
|
|
-<#include "/base/list_base.ftl">
|
|
|
+<#include "/base/add_base.ftl">
|
|
|
<title>出库列表</title>
|
|
|
<style>
|
|
|
.tit{position: relative;text-align: left;font-size: 16px;padding-left: 10px;}
|
|
@@ -49,7 +49,7 @@
|
|
|
|
|
|
<article class="page-container" style="padding: 10px;">
|
|
|
<div class="pd-20 cl">
|
|
|
- <form action="" method="post" class="form form-horizontal" id="form-order-add" onkeydown="if(event.keyCode==13)return false;">
|
|
|
+ <form action="${path}/admin/await_send/deliver" method="post" class="form form-horizontal" id="form-order-add" >
|
|
|
|
|
|
<div class="row cl">
|
|
|
<label class="form-label col-3">
|
|
@@ -66,9 +66,9 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="formControls col-1 col-sm-1" style="width: 100px;">
|
|
|
- <input type="button" style="" class="btn btn-primary add-order-button" onclick="deliver()" value="出库" >
|
|
|
+ <input type="submit" style="" class="btn btn-primary add-order-button" value="出库" >
|
|
|
</div>
|
|
|
- <div class="formControls col-2 col-sm-2 " id="msg" style="display: none; line-height: 31px;color:#f00">
|
|
|
+ <div class="formControls col-6 col-sm-6" id="msg" style="display: none; line-height: 31px;color:#f00">
|
|
|
</div>
|
|
|
</div>
|
|
|
<#--<div class="row cl">-->
|
|
@@ -78,61 +78,50 @@
|
|
|
<#--<div class="formControls col-9">-->
|
|
|
<#--</div>-->
|
|
|
<#--</div>-->
|
|
|
-
|
|
|
-
|
|
|
</form>
|
|
|
</div>
|
|
|
</article>
|
|
|
|
|
|
<tfoot>
|
|
|
-<script type="text/javascript" src="${path}/common/lib/ueditor/1.4.3/ueditor.config.js"></script>
|
|
|
-<script type="text/javascript" src="${path}/common/lib/ueditor/1.4.3/ueditor.all.min.js"> </script>
|
|
|
-<script type="text/javascript" src="${path}/common/lib/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>
|
|
|
-<script type="text/plain" id="upload_ue"></script>
|
|
|
</tfoot>
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
- var isAutomaticDeliver = 1; // 1:自动 2:手动点
|
|
|
-
|
|
|
$(function(){
|
|
|
- $('#postNum').bind('input propertychange', function() {
|
|
|
- var value = $('#postNum').val();
|
|
|
- $(this).val(value);
|
|
|
-
|
|
|
- $("#msg").hide();
|
|
|
-
|
|
|
- if(isAutomaticDeliver == 1){
|
|
|
- deliver();
|
|
|
- }
|
|
|
- });
|
|
|
- })
|
|
|
-
|
|
|
- /**
|
|
|
- * 出库
|
|
|
- * @param postNum
|
|
|
- */
|
|
|
- function deliver(){
|
|
|
- var postNum =$("#postNum").val();
|
|
|
-
|
|
|
- var index = layer.load(1, {
|
|
|
- shade: [0.5,'#fff'] //0.1透明度的白色背景
|
|
|
- });
|
|
|
-
|
|
|
- $.ajax({
|
|
|
- url: root_path +"/admin/await_send/deliver",
|
|
|
- type: "POST",
|
|
|
- data: { postNum : postNum},
|
|
|
- success: function(data){
|
|
|
- $("#msg").show();
|
|
|
- $("#msg").html(data.resultMsg);
|
|
|
- layer.close(index);
|
|
|
+ var loadIndex = 0;
|
|
|
+ $("#form-order-add").Validform({
|
|
|
+ tiptype: function (msg, o, cssctl) {
|
|
|
+ if (o.type == 3) {//失败
|
|
|
+ layer.msg(msg, {icon: 5, time: 3000});
|
|
|
+ $(window).scrollTop(o.obj.offset().top - 40);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ datatype: {//自定义验证类型
|
|
|
},
|
|
|
- error: function(){
|
|
|
- layer.close(index);
|
|
|
+ ignoreHidden: true,
|
|
|
+ tipSweep: true, //若为true,则只在表单提交时验证
|
|
|
+ ajaxPost: true, //异步提交
|
|
|
+ beforeCheck: function (curform) { //验证通过之前执行的函数
|
|
|
+ var flag = false;
|
|
|
+ },
|
|
|
+ beforeSubmit: function (curform) { //验证通过之后执行的函数
|
|
|
+ loadIndex = layer.load(1, {
|
|
|
+ shade: [0.5,'#fff'] //0.1透明度的白色背景
|
|
|
+ });
|
|
|
+ },
|
|
|
+ callback: function (data) {//异步回调函数
|
|
|
+ if (data) {
|
|
|
+ $("#msg").show();
|
|
|
+ $("#msg").html(data.resultMsg);
|
|
|
+ if(data.returnCode == 200){
|
|
|
+ $("#postNum").val();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ layer.close(loadIndex);
|
|
|
+ return false;
|
|
|
}
|
|
|
});
|
|
|
- layer.close(index);
|
|
|
- }
|
|
|
+ });
|
|
|
+
|
|
|
</script>
|
|
|
</body>
|
|
|
</html>
|