Files
zszq-trs/YLErpWeb/Views/entryexit/entryexitView.cshtml
T
2025-10-15 14:10:23 +08:00

133 lines
5.5 KiB
Plaintext

@model ClientCashInCashOut
@{
ViewBag.Title = "出入金信息|查看";
Layout = "~/Views/Shared/_InfoLayout.cshtml";
Layout = "~/Views/Shared/_InfoLayout.cshtml";
var isCompanyCash = ViewBag.IsCompanyCash == true;
List<string> needImportState = new List<string> { ClientCashInCashOut.已确认, ClientCashInCashOut.已结算 };
var approval = ViewBag.approval == true;
var canGenerateExit = Model.Direction == "出金";
}
@section JS{
<script src="~/scripts/app/client/entryexitview.js"></script>
}
<div class="toolbarDiv">
@if (CurUser.结算管理_修改资金记录)
{
//已确认交易资金记录维护先禁掉
@*if ((UserInfo.结算管理_已确认资金记录维护 && Model.TradeId > 0 && ConsTrade.TradeTypesForOtcOptions.Contains(Model.TradeType) && Model.Action != ClientCashInCashOut.系统操作_票息) || (Model.State == "未确认" || Model.State == ""))
{
@MyControls.Btn("修改", "window.location.href=('/entryexit/entryexitEdit/?enid=" + Model.EncryptId + "');")
}
else
{
@MyControls.Btn("修改备注", "setComments('" + Model.EncryptId + "')")
}*@
if (Model.State == "未确认" || Model.State == "")//还未审批的资金也可修改
{
@MyControls.Btn("修改", "window.location.href=('/entryexit/entryexitEdit/?enid=" + Model.EncryptId + "');")
}
else
{
@MyControls.Btn("修改备注", "setComments('" + Model.EncryptId + "')")
}
}
@MyControls.Btn("操作历史", "window.location.href=('/entryexit/ClientCashLogList?id=" + Model.id + "');")
@if (canGenerateExit && CurUser.结算管理_下载出金付款单)
{
@MyControls.Btn("导出付款单", "downloadOutEntryExitPayment('" + Model.EncryptId + "');")
}
@if (canGenerateExit && CurUser.结算管理_下载出金结算单)
{
@MyControls.Btn("导出结算报告", "downloadAccount('" + Model.EncryptId + "');")
}
@if (Model.ApprovalProcess == 1 && CurUser.结算管理_出入金新增)
{
@MyControls.Btn("撤回", "goback('" + Model.EncryptId + "');")
}
@MyControls.Btn("关闭", "layer.closeMe();")
<div style="display:inline-block;float:right;">
@if (approval)
{
@MyControls.Btn("审批通过", "audit('" + Model.EncryptId + "','pass');")
@MyControls.Btn("拒绝", "audit('" + Model.EncryptId + "','reject');")
}
@if (Model.State == ClientCashInCashOut.拒绝 && CurUser.结算管理_已拒绝资金重新发起)
{
@MyControls.Btn("重新发起", "resend('" + Model.EncryptId + "');")
}
</div>
</div> @Html.HiddenFor(model => model.id)
<div class="yc-panel">
<table class="table table-bordered">
<colgroup>
<col span="1" width="200" />
</colgroup>
<tr>@Html.MyDisplayFor(m => m.Number)</tr>
<tr>@Html.MyDisplayFor(m => m.ClientName)</tr>
<tr>@Html.MyDisplayFor(m => m.DirectionType)</tr>
<tr>@Html.MyDisplayFor(m => m.cash_type)</tr>
@if (Model.Direction != "入金")
{
<tr>@Html.MyDisplayFor(m => m.TransferOutAccount)</tr>
<tr>@Html.MyDisplayFor(m => m.TransferInAccount)</tr>
}
<tr>@Html.MyDisplayFor(m => m.Money, (((Model.Direction == "出金" ? (-1) : 1) * Model.Money) ?? 0).ToString("N"))</tr>
<tr>@Html.MyDisplayFor(m => m.CurrencyCode)</tr>
<tr>@Html.MyDisplayFor(m => m.HappenDate, Utilities.ShowValidDatetime(Model.HappenDate, "yyyy-MM-dd HH:mm:ss"))</tr>
<tr>@Html.MyDisplayFor(m => m.TradeNumber)</tr>
<tr>@Html.MyDisplayFor(m => m.State)</tr>
<tr>@Html.MyDisplayFor(m => m.OptName)</tr>
<tr>@Html.MyDisplayFor(m => m.OpenBankCard)</tr>
<tr>@Html.MyDisplayFor(m => m.Uses)</tr>
<tr>
<th class="tdRight">备注</th>
<td>
@if (Model != null)
{
if (Model.Comments != null && Model.Comments.StartsWith("http://"))
{
<a href="@(Model.Comments)" style="text-decoration:underline;" target="_blank">@(Model.Comments)</a>
}
else
{
@Html.Raw(Model.Comments)
}
}
</td>
</tr>
<tr>@Html.MyDisplayFor(m => m.OptDate, Utilities.ShowValidDatetime(Model.OptDate, "yyyy-MM-dd HH:mm:ss"))</tr>
@if (approval)
{
<tr>
<th class="tdRight">审批说明</th>
<td><textarea class='text-box text-left' rows='3' id='AuditComment' style="width:700px;height:70px;"></textarea></td>
</tr>
}
</table>
</div>
<div class="modal fade" id="myModal" data-backdrop="static">
<div class="modal-dialog">
<div class="modal-content">
<!-- 模态框头部 -->
<div class="modal-header">
<h4 class="modal-title">修改备注</h4>
<button type="button" class="close" v-on:click="closeModal()">&times;</button>
</div>
<!-- 模态框主体 -->
<div class="modal-body">
<lable>备注</lable>
<input v-model="Comments" />
<input hidden v-model="EncryptId" />
</div>
<!-- 模态框底部 -->
<div class="modal-footer">
<button type="button" class="btn" v-on:click="saveModal()">保存</button>
</div>
</div>
</div>
</div>