@model ClientEditViewModel
@{
ViewBag.Title = "客户信息";
Layout = "~/Views/Shared/_InfoLayout.cshtml";
var clientModel = Model.client;
var sections = Model.editConfig.sections.Where(n => n.visible).ToArray();
var pageObj = new
{
is华西 = PS.Config.Company == CompanyEnum.华西,
isGuoJun = PS.Config.IsGuoJun,
isZhaoZheng = YLErp.PS.Config.Company == CompanyEnum.招证,
isDongWu = YLErp.PS.Config.Company == CompanyEnum.东吴,
isDongGuan = YLErp.PS.Config.Company == CompanyEnum.东莞,
isApproval = ViewBag.isApproval,
//编辑是否直接进入审批
isDirectSubApp = true
};
}
@section CSS{
}
@section JS{
}
@foreach (var item in sections)
{
@if (!string.IsNullOrEmpty(item.viewPath))
{
@await Html.PartialAsync(item.viewPath)
}
else if (item.fields != null)
{
@await Html.PartialAsync("_ClientViewFields", new EditFieldViewModel { fields = item.fields, Tags = Model.Tags })
}
}
@if (Model.canEditList)
{
@await Html.PartialAsync("_ClientBankcardEdit")
@await Html.PartialAsync("_ClientDutyEdit")
@await Html.PartialAsync("_ClientDutyDirectorEdit")
@await Html.PartialAsync("_ClientFileEdit")
@await Html.PartialAsync("_UploadProgress")
}
@if (clientModel.ClientType == "产品")
{
@await Html.PartialAsync("_ClientInvestorsEdit")
}