130 lines
5.4 KiB
Plaintext
130 lines
5.4 KiB
Plaintext
@using WX.CRM.WebHelper;
|
|
@model WX.CRM.WEB.ViewModel.Level2.Soft_RefundOrder
|
|
@{
|
|
ViewBag.Title = "bas_agent";
|
|
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
|
|
}
|
|
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
|
|
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
|
|
<script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")" type="text/javascript"></script>
|
|
<div class="mvctool">
|
|
@Html.ToolButton("btnQuery", "icon-search", "查询", true)
|
|
@Html.Action("ToolBar", "Control", ViewBag.ToolBar as ToolBar)
|
|
</div>
|
|
<div class="bas_datagrid">
|
|
<div id="tb" style="padding:5px;height:auto" class="grid_toolbar">
|
|
@using (Html.BeginForm())
|
|
{
|
|
<ul class="toolBar_ul">
|
|
<li>
|
|
订单号:@Html.TextBoxFor(p => p.org_orderid)
|
|
</li>
|
|
<li>
|
|
用户名:@Html.TextBoxFor(p => p.org_username)
|
|
</li>
|
|
<li>退款状态: @Html.DropDownList("slt_status", ViewBag.Status as List<SelectListItem>)</li>
|
|
<li>
|
|
申请时间:@Html.WdatePickerText("txt_ctime", "")~@Html.WdatePickerText("txt_etime", "")
|
|
</li>
|
|
</ul>
|
|
}
|
|
</div>
|
|
@Html.Raw(ViewBag.gridTable)
|
|
</div>
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$('#tablist').tablegrid({
|
|
url: '/Level2/RefundApplay/RefundApplayList',
|
|
height: $(window).height() - 110,
|
|
loadNow: true,
|
|
onLoadSuccess: function (data) {
|
|
//成功
|
|
}, onLoadError: function (ex) {
|
|
//失败
|
|
}
|
|
});
|
|
|
|
$("#btnQuery").click(function () {//搜索按钮点击事件
|
|
$('#tablist').tablegrid("Search");
|
|
});
|
|
$(window).resize(function () {//自动适应大小
|
|
$('#tablist').tablegrid('resize', {
|
|
height: $(window).height() - 110
|
|
});
|
|
});
|
|
});
|
|
function frameReturnByClose() {
|
|
$("#modalwindow").window('close');
|
|
}
|
|
function frameReturnByReload(flag) {
|
|
$("#tablist").tablegrid("Load");
|
|
}
|
|
function frameReturnByMes(mes) {
|
|
$.messageBox5s('提示', mes);
|
|
}
|
|
</script>
|
|
@*ToolBar事件处理*@
|
|
<script type="text/javascript">
|
|
function GetIframeHtml(src) {
|
|
return "<iframe width='100%' height='98%' scrolling='no' frameborder='0'' src='" + src + "'></iframe>";
|
|
}
|
|
function RefundCheck_Click() {
|
|
var row = $('#tablist').tablegrid('getSelected');
|
|
if (row != null) {
|
|
if (confirm("确认审核?")) {
|
|
if (row.applaystatus === "已申请") {
|
|
$.r_post("/Level2/RefundApplay/RefundApplayOrderCheck?orderid=" + row.orderid + "&username=" + row.hid_username + "&applayType=180", function (data) {
|
|
if (data.type)
|
|
$('#tablist').tablegrid("Load");
|
|
$.messageBox5s('提示', data.message);
|
|
}, "json");
|
|
}
|
|
else { $.messageBox5s('提示', '非已申请状态无法审核!'); }
|
|
}
|
|
} else { $.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords'); }
|
|
}
|
|
|
|
//删除申请
|
|
function RefundDelete_Click() {
|
|
var row = $('#tablist').tablegrid('getSelected');
|
|
if (row != null) {
|
|
if (confirm("确认删除?")) {
|
|
if (row.applaystatus === "已申请") {
|
|
$.r_post("/Level2/RefundApplay/RefundDeletOrderCheck?orderid=" + row.orderid + "&username=" + row.hid_username + "&applayType=180", function (data) {
|
|
if (data.type) {
|
|
$('#tablist').tablegrid("Load");
|
|
}
|
|
$.messageBox5s('提示', data.message);
|
|
|
|
}, "json");
|
|
}
|
|
else { $.messageBox5s('提示', '非已申请状态无法删除!'); }
|
|
}
|
|
} else { $.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords'); }
|
|
}
|
|
|
|
function RefundApplay_Click() {
|
|
var row = $('#tablist').tablegrid('getSelected');
|
|
if (row != null) {
|
|
if (confirm("确认退款?")) {
|
|
if (row.applaystatus === "已审核") {
|
|
$.r_post("/Level2/RefundApplay/RefundApplayOrderIsChecked?orderid=" + row.orderid + "&username=" + row.hid_username + "&applayType=200", function (data) {
|
|
if (data.type)
|
|
$('#tablist').tablegrid("Load");
|
|
$.messageBox5s('提示', data.message);
|
|
}, "json");
|
|
}
|
|
else { $.messageBox5s('提示', '非已审核状态无法确认退款!'); }
|
|
}
|
|
} else { $.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords'); }
|
|
}
|
|
//查看用户名
|
|
function RefundModMoney_Click() {
|
|
var row = $('#tablist').tablegrid('getSelected');
|
|
if (row != null) {
|
|
$("#modalwindow").html(GetIframeHtml("/Level2/RefundApplay/L2_ModRefundMoney?orderid=" + row.orderid + "&username=" + row.hid_username));
|
|
$("#modalwindow").window({ title: '修改退款金额', width: 400, height: 300, iconCls: 'icon-details' }).window('open');
|
|
} else { $.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords'); }
|
|
};
|
|
</script>
|