ComplianceServer/oldcode/Core.Web/Views/ComplianceOrder/Detail.cshtml

130 lines
4.2 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@model CRM.Core.Model.Entity.WX_SZZYORDER
@{
ViewBag.Title = "Audit";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<style>
.mnas li {
margin-top: 5px;
}
.layui-input-block {
margin-left: 20px;
}
.hide {
display: none;
}
.red {
color: red;
font-weight: bold;
}
.green {
color: green;
font-weight: bold;
}
.interspace p {
margin: 5px 0;
}
#real-name p {
margin: 5px 0;
}
.norightborder {
border-right: none !important;
}
.noleftborder {
border-left: none !important;
}
</style>
<div class="x-body">
<div class="layui-form">
<table class="layui-table">
<colgroup>
<col width="150">
<col>
</colgroup>
<tbody>
<tr>
<td class="norightborder">订单号:</td>
<td class="noleftborder">@Model.ORDERID</td>
<td class="norightborder">姓名:</td>
<td class="noleftborder">@Model.CNAME</td>
</tr>
<tr>
<td class="norightborder">到款金额:</td>
<td class="noleftborder">@Model.ARRIVALPAY</td>
<td class="norightborder">到款时间:</td>
<td class="noleftborder">@Model.ARRIVALTIME</td>
</tr>
<tr>
<td class="norightborder">订单状态值:</td>
<td class="noleftborder">@Model.ORDERSTATUS</td>
<td class="norightborder">订单状态:</td>
<td class="noleftborder">@Model.ORDERSTATUSNAME</td>
</tr>
<tr>
<td class="norightborder">订单时长:</td>
<td class="noleftborder">@Model.OPENDAYS</td>
<td class="norightborder">开通时间:</td>
<td class="noleftborder">@Model.OTIME</td>
</tr>
<tr>
<td class="norightborder">赠送1</td>
<td class="noleftborder">@Model.giftdays</td>
<td class="norightborder">赠送2</td>
<td class="noleftborder">@Model.giftdays2</td>
</tr>
<tr>
<td>赠送产品编码:</td>
<td colspan="3">@Model.activeproductcode</td>
</tr>
<tr>
<td>赠送详细JSON</td>
<td colspan="3">
@{ bool isCanBu = false;
if (Model.ORDERSTATUS=="220" &&((Model.giftdays ?? 0) > 0 || (Model.giftdays2 ?? 0) > 0) && string.IsNullOrWhiteSpace(Model.activeproductext))
{
isCanBu = true;
}
}
@if (isCanBu)
{
<input type="button" value="补充赠送" id="SuperOrderGifBtn" class="layui-btn layui-bg-purple" />
<span> 提醒:订单开通了,但是赠送没成功,可以点击此按钮进行补充赠送。如果系统已经赠送,点击此按钮将会失效。</span>
}
else
{
@Model.activeproductext
}
</td>
</tr>
</tbody>
</table>
</div>
</div>
<script>
$(function () {
var orderId = @Model.ORDERID;
var orderAuditStatus;
layui.use(['layer', 'form'], function () {
var layer = layui.layer;
var form = layui.form;
$("#SuperOrderGifBtn").click(function () {
$.r_post('/ComplianceOrder/SuperOrderGif', { orderId: orderId, status: 2 }, function (result) {
if (result.result) {
window.location.reload();
} else {
layer.msg('操作失败!' + result.retmsg, { icon: 2 });
}
});
});
});
});
</script>