116 lines
4.2 KiB
Plaintext
116 lines
4.2 KiB
Plaintext
@model WX.CRM.Model.Entity.WX_SZZYORDER
|
|
@{
|
|
ViewBag.Title = "查看合同";
|
|
Layout = "~/Views/Shared/_Index_LayoutEdit.cshtml";
|
|
}
|
|
<style>
|
|
.mnas li {
|
|
line-height: 25px;
|
|
}
|
|
a:link, a:visited {
|
|
color: white !important;
|
|
}
|
|
</style>
|
|
@if (Model == null)
|
|
{
|
|
<span>参数错误</span>
|
|
}
|
|
else
|
|
{
|
|
if (ViewBag.htUrl == null)
|
|
{
|
|
<span>请先提交退款申请</span>
|
|
}
|
|
else
|
|
{
|
|
<div class="x-body">
|
|
<div class="layui-form">
|
|
<table class="layui-table">
|
|
<colgroup>
|
|
<col width="120">
|
|
<col>
|
|
</colgroup>
|
|
<tbody>
|
|
<tr>
|
|
<td>订单号:</td>
|
|
<td>@Model.ORDERID</td>
|
|
</tr>
|
|
<tr>
|
|
<td>合同地址:</td>
|
|
<td>
|
|
<textarea rows="10" cols="50" class="layui-textarea" disabled>@Html.Raw(ViewBag.htUrl)</textarea>
|
|
</td>
|
|
</tr>
|
|
@if (!string.IsNullOrEmpty(ViewBag.contract))
|
|
{
|
|
<tr>
|
|
<td>合同号:</td>
|
|
<td>@Html.Raw(ViewBag.contract)</td>
|
|
</tr>
|
|
<tr>
|
|
<td>合同:</td>
|
|
<td>
|
|
<ul class="mnas">
|
|
<li><a href="@ViewBag.tkpdf" target="_blank" class="layui-btn layui-btn-normal layui-btn-sm">退款协议.pdf</a></li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
}
|
|
<tr>
|
|
<td>合规状态:</td>
|
|
<td>
|
|
@if (ViewBag.contractstatus == -1)
|
|
{
|
|
<span style="color:orange; font-weight:bold;padding-right:20px;">未通过</span>
|
|
}
|
|
else if (ViewBag.contractstatus == 0)
|
|
{
|
|
<span style="font-weight:bold;">待审核</span>
|
|
}
|
|
else if (ViewBag.contractstatus == 1)
|
|
{
|
|
<span style="font-weight:bold;">分部审核,总部待审核</span>
|
|
}
|
|
else if (ViewBag.contractstatus == 2)
|
|
{
|
|
<span style="color: green; font-weight:bold;">已通过</span>
|
|
}
|
|
else
|
|
{
|
|
<span>未知</span>
|
|
}
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<button class="layui-btn" id="save">确定</button>
|
|
|
|
</div>
|
|
</div>
|
|
<script>
|
|
$(function () {
|
|
$("#save").click(function () {
|
|
$.r_ajax({
|
|
url: "/WeiXin/SzzyOrderRefund/AuditRefundContract",
|
|
type: "Post",
|
|
data: { orderId : @Model.ORDERID },
|
|
dataType: "json",
|
|
loading: true,
|
|
success: function (data) {
|
|
if (data.type == 1) {
|
|
window.parent.frameReturnByMes('提交成功');
|
|
window.parent.frameReturnByReload(true);
|
|
window.parent.frameReturnByClose();
|
|
}
|
|
else {
|
|
$.messager.alert("警告", data.message, "error");
|
|
}
|
|
}
|
|
});
|
|
});
|
|
});
|
|
</script>
|
|
}
|
|
}
|