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.
244 lines
9.2 KiB
Plaintext
244 lines
9.2 KiB
Plaintext
<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Dispatch/Views/Shared/MP.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="Body" runat="server">
|
|
<%
|
|
DispatchDetailViewModel model = ViewData["Data"] as DispatchDetailViewModel;
|
|
List<MpFeeListViewModel> list = (List<MpFeeListViewModel>)ViewData["FeeList"];
|
|
int noDuiCount = (int)ViewData["NoDuiCount"];
|
|
bool hideFee = (bool)ViewData["HideFee"];
|
|
%>
|
|
<header class='demos-header'>
|
|
<h2 class="demos-title">派车详情</h2>
|
|
</header>
|
|
<div class="weui-cells weui-cells_form">
|
|
<div class="weui-cell">
|
|
<div class="weui-cell__hd">
|
|
<label class="weui-label">船名</label>
|
|
</div>
|
|
<div class="weui-cell__bd">
|
|
<input class="weui-input" type="text" value="<%=model.VESSEL %>" readonly />
|
|
</div>
|
|
</div>
|
|
<div class="weui-cell">
|
|
<div class="weui-cell__hd">
|
|
<label class="weui-label">航次</label>
|
|
</div>
|
|
<div class="weui-cell__bd">
|
|
<input class="weui-input" type="text" value="<%=model.VOYNO %>" readonly />
|
|
</div>
|
|
</div>
|
|
<div class="weui-cell">
|
|
<div class="weui-cell__hd">
|
|
<label class="weui-label">箱型</label>
|
|
</div>
|
|
<div class="weui-cell__bd">
|
|
<input class="weui-input" type="text" value="<%=model.CTNS %>" readonly />
|
|
</div>
|
|
</div>
|
|
<div class="weui-cell">
|
|
<div class="weui-cell__hd">
|
|
<label class="weui-label">吨位</label>
|
|
</div>
|
|
<div class="weui-cell__bd">
|
|
<input class="weui-input" type="text" value="<%=model.KGS %>" readonly />
|
|
</div>
|
|
</div>
|
|
<div class="weui-cell">
|
|
<div class="weui-cell__hd">
|
|
<label class="weui-label">提单号</label>
|
|
</div>
|
|
<div class="weui-cell__bd">
|
|
<input class="weui-input" type="text" value="<%=model.MBLNO %>" readonly />
|
|
</div>
|
|
</div>
|
|
<div class="weui-cell">
|
|
<div class="weui-cell__hd">
|
|
<label class="weui-label">场站</label>
|
|
</div>
|
|
<div class="weui-cell__bd">
|
|
<input class="weui-input" type="text" value="<%=model.YARD %>" readonly />
|
|
</div>
|
|
</div>
|
|
<% if (!hideFee)
|
|
{ %>
|
|
<div class="weui-cell">
|
|
<div class="weui-cell__hd">
|
|
<label class="weui-label">运费</label>
|
|
</div>
|
|
<div class="weui-cell__bd">
|
|
<input class="weui-input" type="text" value="<%=model.TRUCKFEE %>" readonly />
|
|
</div>
|
|
</div>
|
|
<%} %>
|
|
<div class="weui-cell">
|
|
<div class="weui-cell__hd">
|
|
<label class="weui-label">装货工厂</label>
|
|
</div>
|
|
<div class="weui-cell__bd">
|
|
<input class="weui-input" type="text" value="<%=model.FACTRYNAME %>" readonly />
|
|
</div>
|
|
</div>
|
|
<div class="weui-cell">
|
|
<div class="weui-cell__hd">
|
|
<label class="weui-label">地址</label>
|
|
</div>
|
|
<div class="weui-cell__bd">
|
|
<%--<input class="weui-input" type="text" value="<%=model.FACTRYADDR %>" readonly />--%>
|
|
<span class="fac-addr-text-break"><%=model.FACTRYADDR.Replace("\n","<br>") %></span>
|
|
</div>
|
|
</div>
|
|
<div class="weui-cell">
|
|
<div class="weui-cell__hd">
|
|
<label class="weui-label">装货时间</label>
|
|
</div>
|
|
<div class="weui-cell__bd">
|
|
<input class="weui-input" type="text" value="<%=model.FACTRYTIME %>" readonly />
|
|
</div>
|
|
</div>
|
|
<div class="weui-cell">
|
|
<div class="weui-cell__hd">
|
|
<label class="weui-label">截港时间</label>
|
|
</div>
|
|
<div class="weui-cell__bd">
|
|
<input class="weui-input" type="text" value="<%=model.CLOSINGDATE_STR %>" readonly />
|
|
</div>
|
|
</div>
|
|
<div class="weui-cell">
|
|
<div class="weui-cell__hd">
|
|
<label class="weui-label">操作联系方式</label>
|
|
</div>
|
|
<div class="weui-cell__bd">
|
|
<input class="weui-input" type="text" value="<%=model.INPUTBY+"-"+model.HEAD_FMTEL%>" readonly />
|
|
</div>
|
|
</div>
|
|
<div class="weui-cell">
|
|
<div class="weui-cell__hd">
|
|
<label class="weui-label">备注</label>
|
|
</div>
|
|
<div class="weui-cell__bd">
|
|
<%--<input class="fac-addr-text-break" type="text" value="<%=model.REMARK %>" readonly />--%>
|
|
<span class="fac-addr-text-break"><%=model.REMARK %></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<% if (!hideFee)
|
|
{ %>
|
|
|
|
<header class='demos-header'>
|
|
<h2 class="demos-title">费用列表</h2>
|
|
</header>
|
|
<div class="weui-panel">
|
|
<div class="weui-panel__bd" id="listContainer">
|
|
<%
|
|
if (list.Count > 0)
|
|
{
|
|
foreach (var item in list)
|
|
{
|
|
%>
|
|
<div class="weui-form-preview">
|
|
<div class="weui-form-preview__bd">
|
|
<div class="weui-form-preview__item">
|
|
<label class="weui-form-preview__label">费用名称</label>
|
|
<span class="weui-form-preview__value"><%=item.FEENAME %></span>
|
|
</div>
|
|
<div class="weui-form-preview__item">
|
|
<label class="weui-form-preview__label">金额</label>
|
|
<span class="weui-form-preview__value"><%=item.AMOUNT %></span>
|
|
</div>
|
|
<div class="weui-form-preview__item">
|
|
<label class="weui-form-preview__label">单价</label>
|
|
<span class="weui-form-preview__value"><%=item.UNITPRICE %></span>
|
|
</div>
|
|
<div class="weui-form-preview__item">
|
|
<label class="weui-form-preview__label">数量</label>
|
|
<span class="weui-form-preview__value"><%=item.QUANTITY %></span>
|
|
</div>
|
|
<div class="weui-form-preview__item">
|
|
<label class="weui-form-preview__label">核对状态</label>
|
|
<span class="weui-form-preview__value"><%=item.CUSTDUI_STR %></span>
|
|
</div>
|
|
<div class="weui-form-preview__item">
|
|
<label class="weui-form-preview__label">备注</label>
|
|
<span class="weui-form-preview__value"><%=item.REMARK %></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<%
|
|
}
|
|
|
|
if (noDuiCount > 0)
|
|
{
|
|
%>
|
|
<div class="weui-btn-area">
|
|
<a class="weui-btn weui-btn_primary" href="javascript:void(0);" id="btnFeeDui">费用核对</a>
|
|
</div>
|
|
<%
|
|
}
|
|
else
|
|
{
|
|
%>
|
|
<div class="weui-btn-area">
|
|
<a class="weui-btn weui-btn_default weui-btn_disabled" href="javascript:">费用已核对</a>
|
|
</div>
|
|
<%
|
|
}
|
|
|
|
}
|
|
else
|
|
{
|
|
%>
|
|
<div class='demos-content-padded'>
|
|
<div class="weui-loadmore weui-loadmore_line" id="noMoreTip">
|
|
<span class="weui-loadmore__tips">暂无数据</span>
|
|
</div>
|
|
</div>
|
|
<%
|
|
}
|
|
%>
|
|
</div>
|
|
</div>
|
|
|
|
<%}
|
|
else
|
|
{
|
|
%>
|
|
<div class="weui-btn-area">
|
|
<a class="weui-btn weui-btn_primary" href="/Dispatch/Dispatch/DispatchFeeList?leid=<%=model.LE_ID %>">费用明细</a>
|
|
<div class="page__bd">
|
|
<article class="weui-article">
|
|
<h2><a style="color: red; text-decoration: underline;" href="https://mp.weixin.qq.com/s/Z1j-8CKyruW8hDlStEJqAg">注意事项(请仔细阅读,否则后果自负)</a></h2>
|
|
</article>
|
|
</div>
|
|
</div>
|
|
<%
|
|
}
|
|
%>
|
|
</asp:Content>
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="FooterScript" runat="server">
|
|
<%
|
|
DispatchDetailViewModel model = ViewData["Data"] as DispatchDetailViewModel;
|
|
bool hideFee = (bool)ViewData["HideFee"];
|
|
%>
|
|
<% if (!hideFee)
|
|
{ %>
|
|
<script>
|
|
$(function () {
|
|
$("#btnFeeDui").on('click', function () {
|
|
$.ajax({
|
|
type: "POST",
|
|
url: "/Dispatch/Dispatch/FeeDuiForTruck?leid=<%=model.LE_ID%>",
|
|
dataType: "json",
|
|
success: function (data) {
|
|
$.alert(data.Message, "提示", function () { location.reload(); });
|
|
}
|
|
});
|
|
})
|
|
})
|
|
</script>
|
|
<%} %>
|
|
</asp:Content>
|