初始化
This commit is contained in:
97
Face.Web/Content/Views/CxwJournalLog/DeliverList.cshtml
Normal file
97
Face.Web/Content/Views/CxwJournalLog/DeliverList.cshtml
Normal file
@@ -0,0 +1,97 @@
|
||||
@model List<Face.Domain.Entities.DeliverGoodsLog>
|
||||
@{
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
|
||||
<div class="row wrapper border-bottom white-bg page-heading">
|
||||
<div class="col-lg-10">
|
||||
<ol class="breadcrumb">
|
||||
<li>
|
||||
<a href="@Url.Action("Index", "CxwHome")">主页</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="@Url.Action("JournalLog","CxwHome")">交易信息</a>
|
||||
</li>
|
||||
<li class="active">
|
||||
<strong>流水账列表</strong>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="col-lg-2">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="wrapper wrapper-content animated fadeInRight">
|
||||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
<div class="ibox float-e-margins">
|
||||
<div class="ibox-title">
|
||||
<h5>送货记录表</h5>
|
||||
<div class="ibox-tools">
|
||||
|
||||
<button class="btn btn-md btn-primary" type="button" id="btnaddPLine" onclick="gotoCommonPartialNeedDate('@Url.Action("DeliverDetails", "CxwJournalLog")','orderBox_Content')">添加送货记录</button>
|
||||
|
||||
<a class="collapse-link">
|
||||
<i class="fa fa-chevron-up"></i>
|
||||
</a>
|
||||
|
||||
<a class="close-link">
|
||||
<i class="fa fa-times"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered table-hover dataTables-example">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>订单号</th>
|
||||
<th>送货人</th>
|
||||
<th>送货时间</th>
|
||||
<th>签收图片</th>
|
||||
<th>备注</th>
|
||||
<th>创建时间</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if (Model != null && Model.Count > 0)
|
||||
{
|
||||
for (int i = 0; i < Model.Count; i++)
|
||||
{
|
||||
<tr onclick="gotoDetailPartialNeedDate('@Url.Action("DeliverDetails", "CxwJournalLog")',@Model[i].ID,'orderBox_Content')">
|
||||
<td>@(i + 1)</td>
|
||||
<td>@Model[i].OrderNo</td>
|
||||
<td>@(Model[i].DeliverName)</td>
|
||||
<td>@(Model[i].DeliverGoodsTime.ToString("yyyy/MM/dd"))</td>
|
||||
@if (Model[i].Image != null && Model[i].Image != "")
|
||||
{
|
||||
<td><img src="/CxwBasicFunc/FileImage?url=@(Model[i].Image)" alt="暂无图片" style="width:30px;height:30px;" /></td>
|
||||
}
|
||||
else
|
||||
{
|
||||
<td></td>
|
||||
}
|
||||
<td>@Model[i].Remark</td>
|
||||
<td>@(Model[i].CreateTime.ToString("yyyy/MM/dd HH:mm"))</td>
|
||||
|
||||
</tr>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4" id="orderBox_Content">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="~/CxwPlugin/mobile-detect.min.js"></script>
|
||||
<script src="~/CxwPlugin/AddCookie.js"></script>
|
||||
286
Face.Web/Content/Views/CxwJournalLog/JournalList.cshtml
Normal file
286
Face.Web/Content/Views/CxwJournalLog/JournalList.cshtml
Normal file
@@ -0,0 +1,286 @@
|
||||
@model List<Face.Domain.Entities.JournalLog>
|
||||
@{
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
List<Face.Domain.Entities.Income> IncomeList = Face.Services.Cache.CxwCacheHelp.GetIncomeList();//收支类型
|
||||
List<Face.Domain.Entities.Bill> BillList = Face.Services.Cache.CxwCacheHelp.GetBillList();//单据类型
|
||||
}
|
||||
<link href="~/Content/css/JournalList.css" rel="stylesheet" />
|
||||
|
||||
<link href="~/Theme/css/plugins/sweetalert/sweetalert.css" rel="stylesheet" />
|
||||
<link href="~/Theme/css/plugins/datapicker/datepicker3.css" rel="stylesheet">
|
||||
|
||||
<div class="content-wrapper">
|
||||
<section class="content" style="padding:0px;">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
<!-- Default box -->
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">流水账列表</h3>
|
||||
|
||||
<div class="card-tools">
|
||||
<button class="btn btn-md btn-primary" type="button" id="btnaddPLine" onclick="gotoCommonPartialNeedDate('@Url.Action("JournaDetails", "CxwJournalLog")','orderBox_Content')"><a href="#orderBox_Content" style="color:white;">添加流水帐</a></button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
|
||||
<i class="fas fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
|
||||
<i class="fas fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@*条件筛选*@
|
||||
<div class="card-body">
|
||||
<select id="selectTime" class="form-control" style="display:inline;width:115px;">
|
||||
<option value="all">所有时间</option>
|
||||
<option value="month">按年月</option>
|
||||
<option value="appoint">指定</option>
|
||||
</select>
|
||||
<select class="SpendingType form-control" style="display:inline;width:130px;" name="SpendingType">
|
||||
<option value="0">所有类型</option>
|
||||
@foreach (var item in IncomeList)
|
||||
{
|
||||
<option value="@item.ID">@item.IncomeType</option>
|
||||
}
|
||||
</select>
|
||||
@*时间筛选*@
|
||||
<div style="display:inline;">
|
||||
<select class="year form-control" style="width:100px;" name="Year">
|
||||
<option value="2020">2020</option>
|
||||
<option value="2021" selected="selected">2021</option>
|
||||
<option value="2022">2022</option>
|
||||
</select>
|
||||
<select class="Months form-control" style="display:inline;width:100px;" name="Months">
|
||||
<option value="1">一月</option>
|
||||
<option value="2">二月</option>
|
||||
<option value="3">三月</option>
|
||||
<option value="4">四月</option>
|
||||
<option value="5">五月</option>
|
||||
<option value="6">六月</option>
|
||||
<option value="7">七月</option>
|
||||
<option value="8">八月</option>
|
||||
<option value="9">九月</option>
|
||||
<option value="10">十月</option>
|
||||
<option value="11">十一月</option>
|
||||
<option value="12">十二月</option>
|
||||
</select>
|
||||
|
||||
<div class="form-inline visible-*-block" id="data_5">
|
||||
<div class="input-daterange input-group visible-xs-2" id="datepicker">
|
||||
<input type="text" class="input-sm form-control" name="start" id="start" readonly />
|
||||
<span class="input-group-addon">至</span>
|
||||
<input type="text" class="input-sm form-control" name="end" id="end" readonly />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@*交易信息*@
|
||||
<div id="Info" class="row">
|
||||
<table class="table">
|
||||
<tr role="row">
|
||||
<td align="center">总记录<br /><strong><span class="numOrder" style="font-size:15px"> @ViewBag.num</span> </strong></td>
|
||||
<td align="center">合计支出<br /> <strong><span class="expenditure" style="font-size:15px"> @ViewBag.expenditure</span></strong></td>
|
||||
<td align="center">合计收入 <br /><strong><span class="income" style="font-size:15px"> @ViewBag.income</span></strong></td>
|
||||
<td align="center">
|
||||
合计盈余 <br /><strong>
|
||||
@if (ViewBag.money > 0)
|
||||
{<span class="money" style="font-size:15px;color:green;">@ViewBag.money</span>}
|
||||
else
|
||||
{<span class="money" style="font-size:15px;color:red;">@ViewBag.money</span>}
|
||||
</strong>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="ibox-content">
|
||||
<div class="table-responsive" id="contentx">
|
||||
@*信息*@
|
||||
<div id="orderList" style="display:none;">
|
||||
<span class="numOrder"> @ViewBag.num</span>
|
||||
<span class="expenditure"> @ViewBag.expenditure</span>
|
||||
<span class="income"> @ViewBag.income</span>
|
||||
<span class="money">@ViewBag.money</span>
|
||||
</div>
|
||||
<table class="table dataTables-example" border="0">
|
||||
@if (Model != null && Model.Count > 0)
|
||||
{
|
||||
for (int i = 0; i < Model.Count; i++)
|
||||
{
|
||||
<tbody class="tbodyList" onclick="gotoDetailPartialNeedDate('@Url.Action("JournaDetails", "CxwJournalLog")',@Model[i].ID,'orderBox_Content')">
|
||||
<tr>
|
||||
<td rowspan="5" style="margin:0px;padding:0px;width:75px">
|
||||
<input type="hidden" id="ID" value="@Model[i].ID" />
|
||||
<div class="lightBoxGallery">
|
||||
<a href="/CxwBasicFunc/FileImage?url=@(Model[i].Image)&ftp=Image" data-gallery=""><img id="images" src="/CxwBasicFunc/FileImage?url=@(Model[i].Image)" width="85" height="85"></a>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<td style="text-align:left" height="20px">ID :<span class="grey ID">@(Model[i].ID)</span></td>
|
||||
|
||||
<td rowspan="3" style="text-align:left;font-size:16px;height:60px;">
|
||||
<span class="HandlerName" style="margin:10px 0px;">@Model[i].HandlerName</span><br />
|
||||
@if (Model[i].IncomeMoney != null)
|
||||
{
|
||||
<p style="color:green;">收入:<span style="font-size:15.5px" class="IncomeMoney">@Model[i].IncomeMoney</span></p>
|
||||
}
|
||||
else
|
||||
{
|
||||
<p style="color:red;">支出:<span style="font-size:15.5px" class="ExpenditureMoney">@Model[i].ExpenditureMoney</span></p>
|
||||
}
|
||||
</td>
|
||||
|
||||
|
||||
<td rowspan="3" style="height:80px">
|
||||
|
||||
@if (Model[i].HandlerConfirm == true)
|
||||
{
|
||||
<button type="button" id="HandlerConfirm" onclick="Confirm(@Model[i].ID,'HandlerConfirm',@i)" class="btn btn-success btn-xs">经手人</button><br />
|
||||
}
|
||||
else
|
||||
{
|
||||
<button type="button" id="HandlerConfirm" onclick="Confirm(@Model[i].ID,'HandlerConfirm',@i)" class="btn btn-danger btn-xs">经手人</button><br />
|
||||
}
|
||||
|
||||
@if (Model[i].FinanceConfirm == true)
|
||||
{
|
||||
<button type="button" id="FinanceConfirm" onclick="Confirm(@Model[i].ID,'FinanceConfirm',@i)" class="btn btn-success btn-xs">财务</button>
|
||||
<br />
|
||||
}
|
||||
else
|
||||
{
|
||||
<button type="button" id="FinanceConfirm" onclick="Confirm(@Model[i].ID,'FinanceConfirm',@i)" class="btn btn-danger btn-xs">财务</button>
|
||||
<br />
|
||||
}
|
||||
@if (Model[i].ShareholdersConfirm == true)
|
||||
{
|
||||
<button type="button" id="ShareholdersConfirm" onclick="Confirm(@Model[i].ID,'ShareholdersConfirm',@i)" class="btn btn-primary btn-xs">股东</button>
|
||||
<br />
|
||||
}
|
||||
else
|
||||
{
|
||||
<button type="button" id="ShareholdersConfirm" onclick="Confirm(@Model[i].ID,'ShareholdersConfirm',@i)" class="btn btn-danger btn-xs">股东</button>
|
||||
<br />
|
||||
}
|
||||
|
||||
@if (Model[i].FinanceConfirm != true && Model[i].Exist != true)
|
||||
{
|
||||
<button type="button" id="del" onclick="DelJournal(@Model[i].ID,@i)" class="btn btn-danger btn-xs">删除</button>
|
||||
}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr style="height:18px">
|
||||
<td style="text-align:left" height="20">日期:<span class="grey OccurrenceTime">@(Model[i].OccurrenceTime == null ? null : @Model[i].OccurrenceTime.Value.ToString("yyyy/MM/dd"))</span></td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr style="height:18px">
|
||||
<td style="text-align:left" height="20">交易方:<span class="grey OccurrenceTime">@Model[i].Barterer</span></td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr height="18px">
|
||||
|
||||
@if (BillList != null && BillList.Count > 0)
|
||||
{
|
||||
foreach (var item in BillList)
|
||||
{
|
||||
if (Model[i].BillID == item.ID)
|
||||
{
|
||||
<td style="text-align:left" height="18px">单据:<span class="grey BillType"> @(item.BillType)</span></td>
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
@if (IncomeList != null && IncomeList.Count > 0)
|
||||
{
|
||||
foreach (var item in IncomeList)
|
||||
{
|
||||
if (Model[i].IncomeID == item.ID)
|
||||
{
|
||||
<td colspan="2" style="text-align:left" height="18px">
|
||||
类型:
|
||||
<span class="grey IncomeType">
|
||||
@(item.IncomeType)
|
||||
@if (item.ID == 15 || item.ID == 18)
|
||||
{
|
||||
@(Model[i].ChequeID == null ? "" : "ID:" + Model[i].ChequeID)
|
||||
}
|
||||
</span>
|
||||
</td>
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
</tr>
|
||||
<tr style="height:18px">
|
||||
<td style="text-align:left" colspan="3">备注:<span class="grey Remark">@Model[i].Remark</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
}
|
||||
}
|
||||
|
||||
</table>
|
||||
<ul class="pagination" id="page">
|
||||
<li class="first"><a>«</a></li>
|
||||
<li class="left"><a>…</a></li>
|
||||
@for (int i = 0; i < ViewBag.allpage; i++)
|
||||
{
|
||||
<li class="pages"><a>@(i + 1)</a></li>
|
||||
}
|
||||
<li class="right"><a>…</a></li>
|
||||
<li class="finally"><a>»</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.card-body -->
|
||||
@*<div class="card-footer">
|
||||
|
||||
</div>*@
|
||||
<!-- /.card-footer-->
|
||||
</div>
|
||||
<!-- /.card -->
|
||||
</div>
|
||||
|
||||
<div class="col-sm-4" id="orderBox_Content">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@*自定义*@
|
||||
<script src="~/CxwPlugin/page.js"></script>
|
||||
<script src="~/CxwPlugin/JournalList.js"></script>
|
||||
|
||||
@*<script src="~/Theme/js/plugins/blueimp/jquery.blueimp-gallery.min.js"></script>*@
|
||||
<script src="~/Theme/js/plugins/sweetalert/sweetalert.min.js"></script>
|
||||
<script src="~/Theme/js/plugins/iCheck/icheck.min.js"></script>
|
||||
|
||||
@*时间*@
|
||||
<script src="~/Theme/js/plugins/datapicker/bootstrap-datepicker.js"></script>
|
||||
<script src="~/Theme/js/plugins/datapicker/locales/bootstrap-datepicker.zh-CN.js"></script>
|
||||
@*获取客户端信息*@
|
||||
<script src="~/CxwPlugin/mobile-detect.min.js"></script>
|
||||
<script src="~/CxwPlugin/AddCookie.js"></script>
|
||||
|
||||
<script>
|
||||
$(".year").hide();
|
||||
$(".Months").hide();
|
||||
$("#data_5").hide();//隐藏时间
|
||||
|
||||
$('#data_5 .input-daterange').datepicker({
|
||||
language: "zh-CN",//语言
|
||||
todayBtn: "linked",//今日按钮
|
||||
autoclose: true,//选择后关闭日期选择
|
||||
format: "yyyy/mm/dd"//日期格式
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
132
Face.Web/Content/Views/CxwJournalLog/_DeliverDetails.cshtml
Normal file
132
Face.Web/Content/Views/CxwJournalLog/_DeliverDetails.cshtml
Normal file
@@ -0,0 +1,132 @@
|
||||
@model Face.Domain.Entities.DeliverGoodsLog
|
||||
@{
|
||||
Layout = null;
|
||||
|
||||
}
|
||||
|
||||
@*<link href="~/Theme/css/bootstrap.min.css" rel="stylesheet"/>*@
|
||||
<link href="~/Theme/css/plugins/datapicker/datepicker3.css" rel="stylesheet">
|
||||
|
||||
<div class="ibox float-e-margins">
|
||||
<div class="ibox-title">
|
||||
<h5>@ViewBag.title</h5>
|
||||
<div class="ibox-tools">
|
||||
<a class="collapse-link-partial">
|
||||
<i class="fa fa-chevron-up"></i>
|
||||
</a>
|
||||
|
||||
<a class="close-link-partial">
|
||||
<i class="fa fa-times"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
<form class="form-horizontal" id="modifyOrderInternalForm">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">订单号</label>
|
||||
<div class="col-md-9">
|
||||
<input type="hidden" name="ID" value="@Model.ID" />
|
||||
<input type="text" placeholder="请输入订单号" name="OrderNo" class="form-control" value="@Model.OrderNo">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">送货人</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入送货人" name="DeliverName" class="form-control" value="@Model.DeliverName">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group" id="data_1">
|
||||
<label class="col-md-3 control-label">送货时间</label>
|
||||
<div class="col-md-9">
|
||||
<div class="input-group date">
|
||||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span><input type="text" class="form-control" name="DeliverGoodsTime" value="@Model.DeliverGoodsTime" />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">备注</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入备注" name="Remark" class="form-control" value="@Model.Remark">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-3 control-label">签收图片</label>
|
||||
<div class="col-md-9">
|
||||
<div class="layui-upload">
|
||||
<button type="button" class="layui-btn layui-btn-normal" id="testList">选择一张图片</button>
|
||||
<div class="layui-upload-list">
|
||||
<table class="layui-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>图片</th>
|
||||
<th>大小</th>
|
||||
<th>状态</th>
|
||||
<th>操作</th>
|
||||
</tr>@if (Model.Image != null && Model.Image != "")
|
||||
{
|
||||
<tr id="upload-1">
|
||||
<th> <img src="/CxwBasicFunc/FileImage?url=@(Model.Image)" alt="暂无图片" style="width:30px;height:30px;" /></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th><button class="layui-btn layui-btn-xs layui-btn-danger demo-delete" id="delImg">删除</button></th>
|
||||
</tr>
|
||||
}
|
||||
</thead>
|
||||
<tbody id="demoList"></tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div id="img">
|
||||
@if (Model.Image != null && Model.Image != "")
|
||||
{
|
||||
<input type="hidden" id="images" name="Image" value="@(Model.Image)" />
|
||||
}
|
||||
</div>
|
||||
<div class="layui-progress layui-progress-big" lay-showpercent="true" lay-filter="demo" id="progress">
|
||||
<div class="layui-progress-bar" lay-percent="0%" style="width: 0%;">
|
||||
<span class="layui-progress-text">0%</span>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<button type="button" class="layui-btn" id="testListAction">开始上传</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-3 col-md-9">
|
||||
<button class="btn btn-md btn-primary" type="button" id="btnModifyOrderInternal" onclick="excutedUpDate('btnModifyOrderInternal','@Url.Action("ModifyPLine", "CxwJournalLog")','modifyOrderInternalForm','@Url.Action("DeliverList", "CxwJournalLog")')">保存</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
$.when(
|
||||
$.getScript("/CxwPlugin/basicfunc.js"),
|
||||
$.getScript("/Theme/js/jquery.form.min.js"),
|
||||
$.getScript("/CxwPlugin/inspinia-partial.js"),
|
||||
).done(function () {
|
||||
$('#data_1 .input-group.date').datepicker({
|
||||
language: "zh-CN",//语言
|
||||
todayBtn: "linked",//今日按钮
|
||||
autoclose: true,//选择后关闭日期选择
|
||||
format: "yyyy/mm/dd"//日期格式
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script src="~/Theme/js/bootstrap.min.js"></script>
|
||||
<script src="~/CxwPlugin/Images.js"></script>
|
||||
283
Face.Web/Content/Views/CxwJournalLog/_JournaDetails.cshtml
Normal file
283
Face.Web/Content/Views/CxwJournalLog/_JournaDetails.cshtml
Normal file
@@ -0,0 +1,283 @@
|
||||
@model Face.Domain.Entities.JournalLog
|
||||
@{
|
||||
Layout = null;
|
||||
List<Face.Domain.Entities.Income> IncomeList = Face.Services.Cache.CxwCacheHelp.GetIncomeList();//收支类型
|
||||
List<Face.Domain.Entities.Bill> BillList = Face.Services.Cache.CxwCacheHelp.GetBillList();//单据类型
|
||||
List<Face.Domain.Entities.AdminUser> UserList = Face.Services.Cache.CxwCacheHelp.GetUserList();//用户
|
||||
List<Face.Domain.Entities.Company> CompanyList = Face.Services.Cache.CxwCacheHelp.GetUserDBCustomerList();//客户
|
||||
List<Face.Domain.Entities.Supplier> SupplierList = Face.Services.Cache.CxwCacheHelp.GetSupplierList();//供应商
|
||||
}
|
||||
|
||||
<style>
|
||||
tbody > tr > td:nth-child(3) {
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
tbody > tr > td:nth-child(4) {
|
||||
margin-right: -15px;
|
||||
}
|
||||
</style>
|
||||
|
||||
@*<link href="/Content/layui/layui.js" />
|
||||
<link href="/Content/layui/css/modules/laydate/default/laydate.css" />
|
||||
<link href="/Content/layui/css/modules/layer/default/layer.css" />
|
||||
<link href="/Content/layui/css/modules/code.css" />*@
|
||||
|
||||
|
||||
|
||||
|
||||
<section class="content" style="padding:0px;">
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title" style="@(ViewBag.title!="添加流水账"?"color:blue;":"color:red;")">@ViewBag.title</h3>
|
||||
|
||||
<div class="card-tools">
|
||||
|
||||
<button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
|
||||
<i class="fas fa-minus"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
|
||||
<i class="fas fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<div class="ibox-content">
|
||||
<form class="form-horizontal" id="modifyOrderInternalForm">
|
||||
@if (Model.ID > 0)
|
||||
{
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">ID</label>
|
||||
<div class="col-md-9">
|
||||
<input class="form-control" type="text" value="@Model.ID" name="ID" readonly>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">经手人</label>
|
||||
<div class="col-md-9">
|
||||
<select class="form-control m-b" name="HandlerName">
|
||||
|
||||
@if (UserList != null && UserList.Count > 0)
|
||||
{
|
||||
foreach (var item in UserList)
|
||||
{
|
||||
if (item.AdminName != "admin")
|
||||
{
|
||||
<option @(Model.HandlerName == item.AdminName ? "selected" : "" ) value="@item.AdminName">@item.AdminName</option>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">收入</label>
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入收入" name="IncomeMoney" id="IncomeMoney" class="form-control" value="@Model.IncomeMoney">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">支出</label>
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入支出" name="ExpenditureMoney" id="ExpenditureMoney" class="form-control" value="@Model.ExpenditureMoney">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">收支类型</label>
|
||||
<div class="col-md-9">
|
||||
<select class="form-control m-b" name="IncomeID">
|
||||
<option value="">请选择收支类型</option>
|
||||
@if (IncomeList != null && IncomeList.Count > 0)
|
||||
{
|
||||
foreach (var item in IncomeList)
|
||||
{
|
||||
<option @(Model.IncomeID == item.ID ? "selected" : "" ) value="@item.ID">@item.IncomeType</option>
|
||||
}
|
||||
}
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<!--客户 供应商 临时-->
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">交易方</label>
|
||||
<div class="col-md-9">
|
||||
|
||||
<div class="i-checks">
|
||||
<label> <input type="radio" value="option2" name="a"> <i></i> 供应商</label>
|
||||
<label> <input type="radio" value="option1" name="a"> <i></i> 客户</label>
|
||||
<label> <input type="radio" checked value="option3" name="a"> <i></i> 临时</label>
|
||||
<input class="form-control" id="Barterers" type="hidden" name="Barterer" value="@Model.Barterer" />
|
||||
<select class="Supplier form-control m-b" name="SupplierName" style="display:none;">
|
||||
@if (SupplierList != null && SupplierList.Count > 0)
|
||||
{
|
||||
foreach (var item in SupplierList)
|
||||
{
|
||||
<option value="@item.SupplierName">@item.SupplierName</option>
|
||||
}
|
||||
}
|
||||
</select>
|
||||
<select class="Company form-control m-b" name="CompanyName" style="display:none;">
|
||||
@if (CompanyList != null && CompanyList.Count > 0)
|
||||
{
|
||||
foreach (var item in CompanyList)
|
||||
{
|
||||
<option value="@item.CompanyName">@item.CompanyName</option>
|
||||
}
|
||||
}
|
||||
</select>
|
||||
<input class="form-control temporary" type="text" placeholder="请输入临时交易方" value="" />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--应收 应付 默认 单选框-->
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">交易方</label>
|
||||
<div class="col-md-9">
|
||||
<input type="hidden" id="counterparty" name="c" value="" />
|
||||
<div class="i-checks">
|
||||
<label> <input type="radio" class="receipt0" id="zero" value="receipt0" name="receivable"> <i></i> 应付账单</label>
|
||||
<label> <input type="radio" class="receipt1" id="two" value="receipt1" name="receivable"> <i></i> 应收账单</label>
|
||||
<label> <input type="radio" class="receipt2" id="one" value="receipt2" name="receivable" checked> <i></i> 默认账单</label>
|
||||
</div>
|
||||
<div id="Bill">
|
||||
<table class="table" style="margin-left:14px;" id="BillLog">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>ID</th>
|
||||
<th>日期</th>
|
||||
<th>金额</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
<p>输入金额:<span class="receipts"></span></p>
|
||||
<p>账单笔数:<span class="BillCount"></span></p>
|
||||
<p>账单总额:<span class="BillMoney" style="font-size:15px"></span></p>
|
||||
<p>账单-金额差额:<span class="BillPrice" style="font-size:15px"></span></p>
|
||||
<p style="color:blue;">差额将自动录入到对应账单</p><!--<i class="fa fa-exclamation" style="color:red;"></i>-->
|
||||
<input type="hidden" id="BillingID" name="BillingID" placeholder="应收账单ID" />
|
||||
<input type="hidden" id="PaymentID" name="PaymentID" placeholder="应付账单ID" />
|
||||
<input type="hidden" id="margin" name="margin" placeholder="差额" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">单据类型</label>
|
||||
<div class="col-md-9">
|
||||
<select class="form-control m-b" name="billID">
|
||||
|
||||
@if (BillList != null && BillList.Count > 0)
|
||||
{
|
||||
foreach (var item in BillList)
|
||||
{
|
||||
<option @(Model.BillID == item.ID ? "selected" : "" ) value="@item.ID">@item.BillType</option>
|
||||
}
|
||||
}
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row" id="data_1">
|
||||
<label class="col-md-3 control-label">发生时间</label>
|
||||
<div class="col-md-9">
|
||||
<div class="input-group date">
|
||||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span><input type="text" name="OccurrenceTime" class="form-control" value="@(Model.OccurrenceTime!=null ? Model.OccurrenceTime.Value.ToString("yyyy/MM/dd"):DateTime.Now.ToString("yyyy/MM/dd"))" />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">备注</label>
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="请输入备注" name="Remark" class="form-control" value="@Model.Remark">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 control-label">单据图片</label>
|
||||
<div class="col-md-9">
|
||||
<div class="layui-upload">
|
||||
<button type="button" class="layui-btn layui-btn-normal" id="testList">选择图片</button>
|
||||
<div class="layui-upload-list">
|
||||
<table class="layui-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>图片</th>
|
||||
<th>大小</th>
|
||||
<th>状态</th>
|
||||
<th>操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="demoList"></tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div id="img">
|
||||
@if (Model.Image != null && Model.Image != "")
|
||||
{
|
||||
<input type="hidden" id="images" name="Image" value="@(Model.Image)" />
|
||||
}
|
||||
</div>
|
||||
<div class="layui-progress layui-progress-big" lay-showpercent="true" lay-filter="demo" id="progress">
|
||||
<div class="layui-progress-bar" lay-percent="0%" style="width: 0%;">
|
||||
<span class="layui-progress-text">0%</span>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
|
||||
<button type="button" class="layui-btn" id="testListAction">开始上传</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-md-offset-3 col-md-9">
|
||||
<button class="btn btn-md btn-primary" style="width:94px" type="button" id="btnModifyOrderInternal" onclick="excutedUpDate('btnModifyOrderInternal','@Url.Action("ModifyProject", "CxwJournalLog")','modifyOrderInternalForm','@Url.Action("JournalList", "CxwJournalLog")')">保存</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script>
|
||||
$.when(
|
||||
$.getScript("/CxwPlugin/basicfunc.js"),
|
||||
$.getScript("/Theme/js/jquery.form.min.js"),
|
||||
$.getScript("/CxwPlugin/inspinia-partial.js"),
|
||||
).done(function () {
|
||||
$('#data_1 .input-group.date').datepicker({
|
||||
language: "zh-CN",//语言
|
||||
todayBtn: "linked",//今日按钮
|
||||
autoclose: true,//选择后关闭日期选择
|
||||
format: "yyyy/mm/dd"//日期格式
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
<!--layui-->
|
||||
@*<script src="~/Theme/layui/layui.js"></script>*@
|
||||
<script src="~/CxwPlugin/Images.js"></script>
|
||||
<script src="~/CxwPlugin/JournaDetails.js"></script>
|
||||
127
Face.Web/Content/Views/CxwJournalLog/_JournalInfo.cshtml
Normal file
127
Face.Web/Content/Views/CxwJournalLog/_JournalInfo.cshtml
Normal file
@@ -0,0 +1,127 @@
|
||||
@model Face.Domain.Entities.JournalLog
|
||||
|
||||
|
||||
<style>
|
||||
*{
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
}
|
||||
tr>td:first-child{
|
||||
text-align:right;
|
||||
}
|
||||
tr>td:last-child{
|
||||
text-align:left;
|
||||
}
|
||||
</style>
|
||||
|
||||
<table class="table small m-b-xs">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
ID:
|
||||
</td>
|
||||
<td>
|
||||
@Model.ID
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
经手人:
|
||||
</td>
|
||||
<td>
|
||||
@Model.HandlerName
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
收入:
|
||||
</td>
|
||||
<td>
|
||||
@Model.IncomeMoney
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
支出:
|
||||
</td>
|
||||
<td>
|
||||
@Model.ExpenditureMoney
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
交易方:
|
||||
</td>
|
||||
<td>
|
||||
@Model.Barterer
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
收支类型:
|
||||
</td>
|
||||
<td>
|
||||
@Model.IncomeID
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
经手人确认时间:
|
||||
|
||||
</td>
|
||||
<td>
|
||||
@Model.HandlerTime
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
财务确认:
|
||||
</td>
|
||||
<td>
|
||||
@Model.FinanceConfirm
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
财务确认时间:
|
||||
|
||||
</td>
|
||||
<td>
|
||||
@Model.FinanceTime
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
股东确认:
|
||||
</td>
|
||||
<td>
|
||||
@Model.ShareholdersConfirm
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
股东确认时间:
|
||||
</td>
|
||||
<td>
|
||||
@Model.ShareholdersTime
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
录入时间:
|
||||
</td>
|
||||
<td>
|
||||
@Model.OccurrenceTime.Value.ToString("yyyy/MM/dd")
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
备注:
|
||||
</td>
|
||||
<td>
|
||||
@Model.Remark
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
148
Face.Web/Content/Views/CxwJournalLog/_JournalListdata.cshtml
Normal file
148
Face.Web/Content/Views/CxwJournalLog/_JournalListdata.cshtml
Normal file
@@ -0,0 +1,148 @@
|
||||
@model List<Face.Domain.Entities.JournalLog>
|
||||
@{
|
||||
Layout = null;
|
||||
List<Face.Domain.Entities.Income> IncomeList = Face.Services.Cache.CxwCacheHelp.GetIncomeList();//收支类型
|
||||
List<Face.Domain.Entities.Bill> BillList = Face.Services.Cache.CxwCacheHelp.GetBillList();//单据类型
|
||||
}
|
||||
<div id="orderList" style="display:none;">
|
||||
<span class="numOrder"> @ViewBag.num</span>
|
||||
<span class="expenditure"> @ViewBag.expenditure</span>
|
||||
<span class="income"> @ViewBag.income</span>
|
||||
<span class="money">@ViewBag.money</span>
|
||||
</div>
|
||||
<table class="table dataTables-example" border="0">
|
||||
@if (Model != null && Model.Count > 0)
|
||||
{
|
||||
for (int i = 0; i < Model.Count; i++)
|
||||
{
|
||||
<tbody class="tbodyList" onclick="gotoDetailPartialNeedDate('@Url.Action("JournaDetails", "CxwJournalLog")',@Model[i].ID,'orderBox_Content')">
|
||||
<tr>
|
||||
<td rowspan="5" style="margin:0px;padding:0px;width:75px">
|
||||
<input type="hidden" id="ID" value="@Model[i].ID" />
|
||||
<div class="lightBoxGallery">
|
||||
<a href="/CxwBasicFunc/FileImage?url=@(Model[i].Image)&ftp=Image" data-gallery=""><img id="images" src="/CxwBasicFunc/FileImage?url=@(Model[i].Image)" width="85" height="85"></a>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<td style="text-align:left" height="20px">ID :<span class="grey ID">@(Model[i].ID)</span></td>
|
||||
|
||||
<td rowspan="3" style="text-align:left;font-size:16px;height:60px;">
|
||||
<span class="HandlerName" style="margin:10px 0px;">@Model[i].HandlerName</span><br />
|
||||
@if (Model[i].IncomeMoney != null)
|
||||
{
|
||||
<p style="color:green;">收入:<span style="font-size:15.5px" class="IncomeMoney">@Model[i].IncomeMoney</span></p>
|
||||
}
|
||||
else
|
||||
{
|
||||
<p style="color:red;">支出:<span style="font-size:15.5px" class="ExpenditureMoney">@Model[i].ExpenditureMoney</span></p>
|
||||
}
|
||||
</td>
|
||||
|
||||
|
||||
<td rowspan="3" style="height:80px">
|
||||
|
||||
@if (Model[i].HandlerConfirm == true)
|
||||
{
|
||||
<button type="button" id="HandlerConfirm" onclick="Confirm(@Model[i].ID,'HandlerConfirm',@i)" class="btn btn-primary btn-xs">经手人</button><br />
|
||||
}
|
||||
else
|
||||
{
|
||||
<button type="button" id="HandlerConfirm" onclick="Confirm(@Model[i].ID,'HandlerConfirm',@i)" class="btn btn-danger btn-xs">经手人</button><br />
|
||||
}
|
||||
|
||||
@if (Model[i].FinanceConfirm == true)
|
||||
{
|
||||
<button type="button" id="FinanceConfirm" onclick="Confirm(@Model[i].ID,'FinanceConfirm',@i)" class="btn btn-primary btn-xs">财务</button>
|
||||
<br />
|
||||
}
|
||||
else
|
||||
{
|
||||
<button type="button" id="FinanceConfirm" onclick="Confirm(@Model[i].ID,'FinanceConfirm',@i)" class="btn btn-danger btn-xs">财务</button>
|
||||
<br />
|
||||
}
|
||||
@if (Model[i].ShareholdersConfirm == true)
|
||||
{
|
||||
<button type="button" id="ShareholdersConfirm" onclick="Confirm(@Model[i].ID,'ShareholdersConfirm',@i)" class="btn btn-primary btn-xs">股东</button>
|
||||
<br />
|
||||
}
|
||||
else
|
||||
{
|
||||
<button type="button" id="ShareholdersConfirm" onclick="Confirm(@Model[i].ID,'ShareholdersConfirm',@i)" class="btn btn-danger btn-xs">股东</button>
|
||||
<br />
|
||||
}
|
||||
|
||||
@if (Model[i].FinanceConfirm != true && Model[i].Exist != true)
|
||||
{
|
||||
<button type="button" id="del" onclick="DelJournal(@Model[i].ID,@i)" class="btn btn-danger btn-xs">删除</button>
|
||||
}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr style="height:18px">
|
||||
<td style="text-align:left" height="20">日期:<span class="grey OccurrenceTime">@(Model[i].OccurrenceTime == null ? null : @Model[i].OccurrenceTime.Value.ToString("yyyy/MM/dd"))</span></td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr style="height:18px">
|
||||
<td style="text-align:left" height="20">交易方:<span class="grey OccurrenceTime">@Model[i].Barterer</span></td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr height="18px">
|
||||
|
||||
@if (BillList != null && BillList.Count > 0)
|
||||
{
|
||||
foreach (var item in BillList)
|
||||
{
|
||||
if (Model[i].BillID == item.ID)
|
||||
{
|
||||
<td style="text-align:left" height="18px">单据:<span class="grey BillType"> @(item.BillType)</span></td>
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
@if (IncomeList != null && IncomeList.Count > 0)
|
||||
{
|
||||
foreach (var item in IncomeList)
|
||||
{
|
||||
if (Model[i].IncomeID == item.ID)
|
||||
{
|
||||
<td colspan="2" style="text-align:left" height="18px">
|
||||
类型:
|
||||
<span class="grey IncomeType">
|
||||
@(item.IncomeType)
|
||||
@if (item.ID == 15 || item.ID == 18)
|
||||
{
|
||||
@(Model[i].ChequeID == null ? "" : "ID:" + Model[i].ChequeID)
|
||||
}
|
||||
</span>
|
||||
</td>
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
</tr>
|
||||
<tr style="height:18px">
|
||||
<td style="text-align:left" colspan="3">备注:<span class="grey Remark">@Model[i].Remark</span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
}
|
||||
}
|
||||
|
||||
</table>
|
||||
<ul class="pagination" id="page">
|
||||
<li class="first"><a>«</a></li>
|
||||
<li class="left"><a>…</a></li>
|
||||
@for (int i = 0; i < ViewBag.allpage; i++)
|
||||
{
|
||||
<li class="pages"><a>@(i + 1)</a></li>
|
||||
}
|
||||
<li class="right"><a>…</a></li>
|
||||
<li class="finally"><a>»</a></li>
|
||||
</ul>
|
||||
|
||||
<script src="~/CxwPlugin/page.js"></script>
|
||||
<script src="~/CxwPlugin/JournalList.js"></script>
|
||||
Reference in New Issue
Block a user