!132 【修复】广告列表:添加数据,类型列表显示,重复出显文章分类问题。【修复】订单管理列表,对于已经删除的订单,还原按钮出现失效的问题。

* 1、【修复】广告列表:添加数据,类型列表显示,重复出显文章分类问题。 #I4A5UO;2、【修复】订单管理列表,对于已经删除的订单,还原按钮…
pull/133/MERGE
大灰灰 3 years ago
parent 9a181d6f82
commit 5c57bc1ad7

@ -1641,7 +1641,7 @@ namespace CoreCms.Net.Configuration
/// 智能表单
/// </summary>
[Description("智能表单")]
IntelligenceForm = 4
IntelligenceForm = 5
}
/// <summary>

@ -696,6 +696,34 @@ namespace CoreCms.Net.Web.Admin.Controllers
}
#endregion
#region 还原订单============================================================
// POST: Api/CoreCmsOrder/DoRestore/10
/// <summary>
/// 还原订单
/// </summary>
/// <param name="entity"></param>
/// <returns></returns>
[HttpPost]
[Description("还原订单")]
public async Task<JsonResult> DoRestore([FromBody] FMStringId entity)
{
var jm = new AdminUiCallBack();
var model = await _coreCmsOrderServices.QueryByIdAsync(entity.id);
if (model == null)
{
jm.msg = GlobalConstVars.DataisNo;
return Json(jm);
}
//还原
var bl = await _coreCmsOrderServices.UpdateAsync(p => new CoreCmsOrder() { isdel = false }, p => p.orderId == model.orderId);
jm.code = bl ? 0 : 1;
jm.msg = bl ? GlobalConstVars.EditSuccess : GlobalConstVars.EditFailure;
return Json(jm);
}
#endregion
#region 判断是否存在售后============================================================
// POST: Api/CoreCmsOrder/GetDoHaveAfterSale/10
/// <summary>

@ -492,6 +492,11 @@
var id = $(this).attr('data-id');
delOrder(id);
},
//还原订单
restoreOrder: function () {
var id = $(this).attr('data-id');
restoreOrder(id);
},
//打印购物订单
shoppingPrint: function () {
var id = $(this).attr('data-id');
@ -565,6 +570,21 @@
}
});
}
//还原订单
function restoreOrder(id) {
layer.confirm('确认还原:' + id + ' 的订单吗?', {
title: '提示', btn: ['确认', '取消'] //按钮
}, function () {
coreHelper.Post("Api/CoreCmsOrder/DoRestore", { id: id }, function (e) {
layer.msg(e.msg, { time: 1300 }, function () {
layui.table.reloadData('LAY-app-CoreCmsOrder-tableBox'); //重载表格
doreLoadOrderCount();
});
});
});
return false;
}
//秒发货
function doSecondsShip(id) {

Loading…
Cancel
Save