TG.WXCRM.V4/WEB/Views/WeiXin/JZOrder/ContractFreeOrderView.cshtml

184 lines
7.7 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>
<textarea rows="8" cols="50" disabled>@Html.Raw(ViewBag.htUrl)</textarea>
<p style="color: red">如签名模糊需要重新签订,只需要在原链接上让客户重新签名即可!</p>
</td>
</tr>
<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>
@if (ViewBag.CONTRACTSTATUS == 1)
{
<span style="color: green; font-weight:bold;">已签订</span>
}
else
{
<span style="color: green; font-weight:bold;">未签订</span>
}
</td>
</tr>
</table>
<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: '&nbsp;', 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
}
}