|
|
@ -325,18 +325,18 @@ |
|
|
|
that.query(); |
|
|
|
}); |
|
|
|
$("#NF-InstructionBill").click(function () { |
|
|
|
|
|
|
|
|
|
|
|
var objList = $("#gridList").jqGrid('getGridParam', 'selarrrow'); |
|
|
|
|
|
|
|
|
|
|
|
if (objList.length == 0) { |
|
|
|
$.modalMsg("请选择一条数据", "warning"); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
let lines = []; |
|
|
|
for (var i = 0; i < objList.length; i++) { |
|
|
|
let line = $("#gridList").jqGrid('getRowData', objList[i]).DepName; |
|
|
|
|
|
|
|
|
|
|
|
lines.push(line); |
|
|
|
} |
|
|
|
if (lines.length==0) { |
|
|
@ -481,7 +481,7 @@ |
|
|
|
} |
|
|
|
}); |
|
|
|
$("#NF-UpdateMoOrderStatus").click(function () { |
|
|
|
|
|
|
|
|
|
|
|
var ids = $("#gridList").jqGrid('getGridParam', 'selarrrow'); //获取 多行数据 |
|
|
|
if (ids.length == 0) { |
|
|
|
$.modalMsg("请选择一条数据", "warning"); |
|
|
@ -493,7 +493,7 @@ |
|
|
|
ids: ids.join(), |
|
|
|
orderStatus: status==''?'Close':'' |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
$.ajax({ |
|
|
|
url: "/OMAY/Aps/UpdateMoOrderStatus" + "?" + Math.random(), |
|
|
|
type: "POST", |
|
|
@ -514,6 +514,39 @@ |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
$("#NF-CancelMoPlan").click(function () { |
|
|
|
var ids = $("#gridList").jqGrid('getGridParam', 'selarrrow'); //获取 多行数据 |
|
|
|
if (ids.length == 0) { |
|
|
|
$.modalMsg("请选择一条数据", "warning"); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
// let status = $("#txt_OrderStatus").val(); |
|
|
|
let obj = { |
|
|
|
ids: ids.join() |
|
|
|
}; |
|
|
|
|
|
|
|
$.ajax({ |
|
|
|
url: "/OMAY/Aps/CancelSendMo" + "?" + Math.random(), |
|
|
|
type: "POST", |
|
|
|
dataType: "json", |
|
|
|
async: false, |
|
|
|
data: { |
|
|
|
keyValue: JSON.stringify(obj) |
|
|
|
}, |
|
|
|
success: function (data) { |
|
|
|
// |
|
|
|
console.log(data); |
|
|
|
if (data.state == "success") { |
|
|
|
$.modalMsg("取消成功", "success"); |
|
|
|
that.query(); |
|
|
|
} |
|
|
|
else |
|
|
|
$.modalMsg(data.message, "warning"); |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -534,6 +567,7 @@ |
|
|
|
<a id="NF-ViewSubItem" authorize="no" style="margin-left:3px;" class="btn btn-primary"><i class="fa fa-pencil-square-o"></i>预览子料</a> |
|
|
|
<a id="NF-PrintLabel" authorize="no" style="margin-left:3px;" class="btn btn-primary"><i class="fa fa-pencil-square-o"></i>生成条码</a> |
|
|
|
<a id="NF-UpdateMoPlan" authorize="yes" style="margin-left:3px;" class="btn btn-primary"><i class="fa fa-pencil-square-o"></i>修改</a> |
|
|
|
<a id="NF-CancelMoPlan" authorize="no" style="margin-left:3px;" class="btn btn-primary"><i class="fa fa-pencil-square-o"></i>取消下发</a> |
|
|
|
<a id="NF-UpdateMoOrderStatus" authorize="yes" style="margin-left:3px;" class="btn btn-primary"><i class="fa fa-pencil-square-o"></i>变更订单状态</a> |
|
|
|
@*<a id="NF-ExportAll" authorize="yes" class="btn btn-default" onclick="btn_ExportAll()"><i class="fa fa-download"></i>导出</a>*@ |
|
|
|
<a class="btn btn-primary" onclick="$.reload()"><span class="glyphicon glyphicon-refresh"></span></a> |
|
|
|
xxxxxxxxxx