You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DS7/BookingJieFeng/pub/Views/Booking/OpFeeList.cshtml

206 lines
8.1 KiB
Plaintext

2 years ago
@{
}
<div class="wrapper-content J_mainContent gray-bg-right">
<div class="row">
<div class="col-lg-12 col-md-12">
<div class="ibox-title">
<h5>费用信息</h5>
</div>
<div class="ibox-content cost-b">
<table>
<tbody>
<tr class="No">
<td><label>@Resources.LangAll.LabelMBLNO</label></td>
<td><div id="spanMBLNO"></div></td>
</tr>
<tr>
<td><label>@Resources.LangAll.LabelVESSEL</label></td>
<td><div id="spanVESSEL"></div></td>
</tr>
<tr>
<td><label>@Resources.LangAll.LabelVOYNO</label></td>
<td><div id="spanVOYNO"></div></td>
</tr>
<tr style="display:none;">
<td><label>发票号:</label></td>
<td><div>0575563</div></td>
</tr>
<tr style="display:none">
<td><label>报关单号:</label></td>
<td><div>5688957</div></td>
</tr>
<tr style="display:none">
<td><label>场站:</label></td>
<td><div>捷丰</div></td>
</tr>
<tr class="interval-days" style="display:none;">
<td><label>开船日期:</label></td>
<td><div>2019-03-20</div></td>
<td><div class="day">5天</div></td>
<td><div>2019-03-25</div></td>
</tr>
</tbody>
</table>
<div class="clearfix"></div>
<div class="row-b"></div>
<table>
<tbody>
<tr>
<td></td>
<td><label>@ViewBag.ClientName</label></td>
</tr>
<tr>
<td><label>@Resources.LangFee.LabelADDRESS</label></td>
<td><div>@ViewBag.ClientAddress</div></td>
</tr>
<tr>
<td><label>@Resources.LangFee.LabelTEL</label></td>
<td><div>@ViewBag.ClientTel</div></td>
</tr>
<tr>
<td><label>@Resources.LangFee.LabelACCOUNT_RMB</label></td>
<td><div>@ViewBag.ClientAccountRMB</div></td>
</tr>
<tr>
<td><label>@Resources.LangFee.LabelACCOUNT_USD</label></td>
<td><div>@ViewBag.ClientAccountUSD</div></td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="col-lg-12 col-md-12">
<div class="ibox-title">
<h5></h5>
</div>
<div class="ibox-content">
<div class="table-responsive m-t">
<table class="table invoice-table">
<thead>
<tr>
<th>@Resources.LangFee.LabelFee</th>
<th>@Resources.LangFee.LabelNum</th>
<th>@Resources.LangFee.LabelPrice</th>
<th>@Resources.LangFee.LabelTax</th>
<th>@Resources.LangFee.LabelTotal</th>
</tr>
</thead>
<tbody id="tbodyList"></tbody>
</table>
</div>
<!-- /table-responsive -->
<table class="table invoice-total">
<tbody>
<tr class="money">
<td>
<strong>@Resources.LangFee.LabelFeeSumRMB</strong>
</td>
<td id="tdAmountRMB">0</td>
</tr>
<tr class="money">
<td>
<strong>@Resources.LangFee.LabelFeeSumUSD</strong>
</td>
<td id="tdAmountUSD">0</td>
</tr>
</tbody>
</table>
<div class="text-right">
<button class="btn btn-primary" id="btnConfirmFee" style="display:none;">确认费用</button>
<button class="btn btn-primary btnPrint" id="btnPrint">@Resources.LangAll.BtnPrint</button>
</div>
</div>
</div>
</div>
</div>
@section styles
{
<link type="text/css" rel="stylesheet" href="~/Content/css/orderlist.css" />
<link type="text/css" rel="stylesheet" href="~/Content/css/opfeelist.css" />
}
@section scripts{
<script>
$(function () {
$.ajax({
url: "@Url.Action("OpSeaeList")",
method: 'POST',
data: { condition: '{"BSNO":"@ViewBag.BSNO"}' },
dataType: 'json',
success: function (data) {
if (data.Data.length > 0) {
$("#spanVESSEL").text(data.Data[0].VESSEL)
$("#spanVOYNO").text(data.Data[0].VOYNO)
$("#spanMBLNO").text(data.Data[0].MBLNO)
$("#tdAmountRMB").html('&yen;' + (data.Data[0].AMOUNT_RMB==null?0: data.Data[0].AMOUNT_RMB))
$("#tdAmountUSD").html('$' + (data.Data[0].AMOUNT_USD == null ? 0 : data.Data[0].AMOUNT_USD))
}
}
})
$.ajax({
url: "@Url.Action("OpFeeListData")?BSNO=@ViewBag.BSNO",
method: 'POST',
dataType:'json',
success: function (data) {
var hasNoConfirm = false;
$.each(data.Data, function (idx, item) {
var currency = item.Currency == 'USD' ? '$' : '&yen;';
var html = '<tr>'
+ ' <td>'
+ ' <strong>' + item.FeeName + '('+item.Unit+')'+'</strong>'
+ ' </td>'
+ ' <td>' + item.Quantity + '</td>'
+ ' <td>' + currency + item.UnitPrice + '</td>'
+ ' <td>' + item.ExChangerate + '</td>'
+ ' <td>' + currency+ item.Amount + '</td>'
+ '</tr>'
$("#tbodyList").append(html);
if (item.IsConfirm != "1") {
hasNoConfirm = true;
}
})
if (hasNoConfirm) {
$("#btnConfirmFee").show();
} else {
$("#btnConfirmFee").hide();
}
}
})
$("#btnPrint").click(function () {
$("#btnPrint").hide();
window.print()
$("#btnPrint").show();
})
$("#btnConfirmFee").click(function () {
layer.confirm('确定要确认费用?', function () {
$.ajax({
url: "@Url.Action("OpFeeConfirmData")?BSNO=@ViewBag.BSNO",
method: 'POST',
success: function (data) {
layer.alert(data.Message, function () {
location.reload()
})
}
})
})
})
})
</script>
}