277 lines
11 KiB
Plaintext
277 lines
11 KiB
Plaintext
@{
|
||
ViewBag.Title = "查看合同";
|
||
Layout = "~/Views/Shared/_Index_LayoutEdit.cshtml";
|
||
}
|
||
<style>
|
||
.mnas li {
|
||
line-height: 25px;
|
||
}
|
||
|
||
a:link, a:visited {
|
||
color: white !important;
|
||
}
|
||
|
||
.hide {
|
||
display: none;
|
||
}
|
||
|
||
#threeBtn {
|
||
display: none;
|
||
cursor: pointer;
|
||
color: white;
|
||
}
|
||
</style>
|
||
@{
|
||
if (string.IsNullOrEmpty(ViewBag.ViewMsg))
|
||
{
|
||
<table class="fromEditTable ">
|
||
|
||
<tr>
|
||
<td style="width:120px;">
|
||
订单号:
|
||
</td>
|
||
<td>
|
||
@ViewBag.OrderId
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="width:120px;">
|
||
真实姓名:
|
||
</td>
|
||
<td>
|
||
<span id="username"></span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="width:120px;">
|
||
实名状态:
|
||
</td>
|
||
<td>
|
||
<span id="statusStr"></span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="width:120px;">
|
||
实名驳回备注:
|
||
</td>
|
||
<td>
|
||
<span id="auditRemark"></span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="width:120px;">
|
||
合同地址:
|
||
</td>
|
||
<td>
|
||
<textarea rows="8" cols="50" disabled>@Html.Raw(ViewBag.htUrl)</textarea>
|
||
<p style="color: red">如签名模糊需要重新签订,只需要在原链接上让客户重新签名即可!</p>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>客户等级:</td>
|
||
<td style="color:red">
|
||
@if (ViewBag.IsC0User)
|
||
{
|
||
@Html.Raw("不符合准入条件")
|
||
}
|
||
else if (ViewBag.IsC1_0User)
|
||
{
|
||
@Html.Raw("C1_0(最低风险承受类别)")
|
||
}
|
||
else
|
||
{
|
||
@Html.Raw("C" + ViewBag.RiskLevel)
|
||
}
|
||
</td>
|
||
</tr>
|
||
@if (!string.IsNullOrEmpty(ViewBag.CONTRACTCODE))
|
||
{
|
||
<tr>
|
||
<td>
|
||
合同号:
|
||
</td>
|
||
<td class="contract">
|
||
@Html.Raw(ViewBag.CONTRACTCODE)
|
||
</td>
|
||
</tr>
|
||
<tr class="contract">
|
||
<td>合同:</td>
|
||
<td>
|
||
<ul class="mnas">
|
||
<li><a href="@ViewBag.fxjssUrl" target="_blank" class="layui-btn layui-btn-normal layui-btn-sm">风险揭示书.pdf</a></li>
|
||
@if (ViewBag.businesstype == "smallAmount")
|
||
{
|
||
<li><a href="@ViewBag.tgfwxyUrl" target="_blank" class="layui-btn layui-btn-normal layui-btn-sm">投教服务协议.pdf</a></li>
|
||
}
|
||
else
|
||
{
|
||
<li><a href="@ViewBag.tgfwxyUrl" target="_blank" class="layui-btn layui-btn-normal layui-btn-sm">投顾服务协议.pdf</a></li>
|
||
}
|
||
@if (ViewBag.cphfwUrl != null)
|
||
{
|
||
<li><a href="@ViewBag.cphfwUrl" target="_blank" class="layui-btn layui-btn-warm" layui-btn-sm">产品或服务不适当警示及投资者确认书.pdf</a></li>
|
||
}
|
||
@if (ViewBag.sdxpgUrl != null)
|
||
{
|
||
<li><a href="@ViewBag.sdxpgUrl" target="_blank" class="layui-btn layui-btn-normal layui-btn-sm">适当性评估结果确认书.pdf</a></li>
|
||
}
|
||
@if (ViewBag.fxpcUrl != null)
|
||
{
|
||
<li><a href="@ViewBag.fxpcUrl" target="_blank" class="layui-btn layui-btn-normal layui-btn-sm">风险测评</a></li>
|
||
}
|
||
</ul>
|
||
</td>
|
||
</tr>
|
||
<tr class="contract">
|
||
<td>
|
||
<p>合同状态:</p>
|
||
</td>
|
||
<td>
|
||
<p id="showContractStatus"></p>
|
||
</td>
|
||
</tr>
|
||
<tr id="ContractRemark">
|
||
<td>
|
||
<p>合同驳回备注:</p>
|
||
</td>
|
||
<td>
|
||
<p id="showContractRemark"></p>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<p>合规状态:</p>
|
||
</td>
|
||
<td>
|
||
@if (ViewBag.RiskCtrlStatus == -1)
|
||
{
|
||
<span style="color:orange; font-weight:bold;padding-right:20px;">驳回</span>
|
||
}
|
||
else if (ViewBag.RiskCtrlStatus == 0)
|
||
{
|
||
<span style="font-weight:bold;">未审核</span>
|
||
}
|
||
else if (ViewBag.RiskCtrlStatus == 1)
|
||
{
|
||
<span style="font-weight:bold;">分部已审核</span>
|
||
}
|
||
else if (ViewBag.RiskCtrlStatus == 2)
|
||
{
|
||
<span style="color: green; font-weight:bold;">已通过</span>
|
||
}
|
||
else
|
||
{
|
||
<span>未知</span>
|
||
}
|
||
</td>
|
||
</tr>
|
||
<tr id="ContractRemark">
|
||
<td>
|
||
<p>合规驳回备注:</p>
|
||
</td>
|
||
<td>
|
||
@if (ViewBag.RiskCtrlStatus == -1)
|
||
{
|
||
<p id="RejectRemark"></p>
|
||
}
|
||
</td>
|
||
</tr>
|
||
}
|
||
else
|
||
{
|
||
<tr>
|
||
<td></td>
|
||
<td>未签订合同</td>
|
||
</tr>
|
||
}
|
||
</table>
|
||
@*<a id="threeBtn">切回二要素</a>*@
|
||
@*<div id="rejectRemarkDiv">
|
||
@System.Web.HttpUtility.JavaScriptStringEncode(ViewBag.RejectRemark)
|
||
</div>*@
|
||
<script type="text/javascript">
|
||
$(function () {
|
||
$.r_ajax({
|
||
url: '@ViewBag.hgapi' + "/api/TraceUser/ContractUser",
|
||
type: "get",
|
||
data: { orderId: @ViewBag.OrderId, eid: @ViewBag.eid, ename: '@ViewBag.username' },
|
||
dataType: "json",
|
||
loading: true,
|
||
success: function (da) {
|
||
if (da.code == 0) {
|
||
document.getElementById('showContractStatus').innerHTML = da.data.contractStatusStr;
|
||
document.getElementById('showContractRemark').innerHTML = da.data.contractRemark;
|
||
document.getElementById('username').innerHTML = da.data.username;
|
||
document.getElementById('statusStr').innerHTML = da.data.statusStr;
|
||
var reject = '@ViewBag.RejectRemark';
|
||
var riskCtrlStatus = '@ViewBag.RiskCtrlStatus';
|
||
if (reject != '' && riskCtrlStatus == '-1') {
|
||
var titles = reject.split('###');
|
||
str = titles[1];
|
||
document.getElementById('RejectRemark').innerHTML = str;
|
||
}
|
||
if (da.data.status == -1) {
|
||
document.getElementById('statusStr').setAttribute("style", "color:orange; font-weight:bold;padding-right:20px;");
|
||
var contracts = document.getElementsByClassName("contract");
|
||
if (contracts) {
|
||
for (var i = 0; i < contracts.length; i++) {
|
||
contracts[i].setAttribute("class", "contract hide");
|
||
}
|
||
}
|
||
}
|
||
if (da.data.contractStatus == -1) {
|
||
document.getElementById('showContractStatus').setAttribute("style", "color:orange; font-weight:bold;padding-right:20px;");
|
||
} else {
|
||
document.getElementById('showContractRemark').setAttribute("class", "hide");
|
||
}
|
||
if (da.data.status == -1) {
|
||
document.getElementById('auditRemark').innerHTML = da.data.auditRemark;
|
||
}
|
||
}
|
||
else {
|
||
$.messager.alert("警告", da.message, "error");
|
||
}
|
||
}
|
||
});
|
||
$("#btnSave").click(function () {
|
||
$.r_ajax({
|
||
url: "/WeiXin/JZOrder/AuditContract",
|
||
type: "Post",
|
||
data: { orderId : @ViewBag.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");
|
||
}
|
||
}
|
||
});
|
||
});
|
||
|
||
$("#showRejectRemark").click(function () {
|
||
$('#rejectRemarkDiv').window({
|
||
title: ' ', width: 350, height: 200, shadow: true,
|
||
modal: true,
|
||
closed: true,
|
||
minimizable: false,
|
||
maximizable: false,
|
||
collapsible: false
|
||
}).window('open');
|
||
});
|
||
|
||
$("#threeBtn").click(function () {
|
||
window.parent.ContractView('@ViewBag.OrderId');
|
||
});
|
||
});
|
||
</script>
|
||
}
|
||
else
|
||
{
|
||
@ViewBag.ViewMsg
|
||
}
|
||
} |