|
@@ -6,13 +6,14 @@
|
|
|
@using ShwasherSys.Models.Modal
|
|
@using ShwasherSys.Models.Modal
|
|
|
|
|
|
|
|
@{
|
|
@{
|
|
|
- /**/
|
|
|
|
|
- ViewBag.ActiveMenu = PermissionNames.PagesOrderInfoNotCompleteOrderItem; //The menu item will be active for this page.
|
|
|
|
|
- ViewBag.Title = "未完成订单明细查询";
|
|
|
|
|
- bool isCanViewPrice = IsGranted(PermissionNames.PagesOrderInfoOrderMgQueryOrderPrice);
|
|
|
|
|
- List<SelectListItem> OrderStatusList = ViewBag.OrderStatus;
|
|
|
|
|
- List<SelectListItem> OrderSaleTypeList = ViewBag.OrderSaleType;
|
|
|
|
|
- List<SelectListItem> OrderItemStatusList = new List<SelectListItem>()
|
|
|
|
|
|
|
+ /**/
|
|
|
|
|
+ ViewBag.ActiveMenu = PermissionNames.PagesOrderInfoNotCompleteOrderItem; //The menu item will be active for this page.
|
|
|
|
|
+ ViewBag.Title = "未完成订单明细查询";
|
|
|
|
|
+ bool isCanViewPrice = IsGranted(PermissionNames.PagesOrderInfoOrderMgQueryOrderPrice);
|
|
|
|
|
+ List<SelectListItem> OrderStatusList = ViewBag.OrderStatus;
|
|
|
|
|
+ List<SelectListItem> emergencyLevelList = ViewBag.EmergencyLevel;
|
|
|
|
|
+ List<SelectListItem> OrderSaleTypeList = ViewBag.OrderSaleType;
|
|
|
|
|
+ List<SelectListItem> OrderItemStatusList = new List<SelectListItem>()
|
|
|
{
|
|
{
|
|
|
new SelectListItem()
|
|
new SelectListItem()
|
|
|
{
|
|
{
|
|
@@ -20,8 +21,8 @@ Text = "未完成",
|
|
|
Value = "N"
|
|
Value = "N"
|
|
|
}
|
|
}
|
|
|
};//ViewBag.OrderItemStatus;
|
|
};//ViewBag.OrderItemStatus;
|
|
|
- OrderItemStatusList.AddRange((List<SelectListItem>)ViewBag.OrderItemStatus);
|
|
|
|
|
- List<SelectListItem> isOverdue = new List<SelectListItem>()
|
|
|
|
|
|
|
+ OrderItemStatusList.AddRange((List<SelectListItem>)ViewBag.OrderItemStatus);
|
|
|
|
|
+ List<SelectListItem> isOverdue = new List<SelectListItem>()
|
|
|
{
|
|
{
|
|
|
|
|
|
|
|
new SelectListItem()
|
|
new SelectListItem()
|
|
@@ -36,27 +37,27 @@ Text = "超期",
|
|
|
Value = "1"
|
|
Value = "1"
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
- List<SelectListItem> storeCompleteState = new List<SelectListItem>()
|
|
|
|
|
- {
|
|
|
|
|
|
|
+ List<SelectListItem> storeCompleteState = new List<SelectListItem>()
|
|
|
|
|
+ {
|
|
|
|
|
|
|
|
- new SelectListItem()
|
|
|
|
|
- {
|
|
|
|
|
- Text = "货物不齐全",
|
|
|
|
|
- Value = "0"
|
|
|
|
|
- }
|
|
|
|
|
- ,
|
|
|
|
|
- new SelectListItem()
|
|
|
|
|
- {
|
|
|
|
|
- Text = "货物已齐",
|
|
|
|
|
- Value = "1"
|
|
|
|
|
- },
|
|
|
|
|
- new SelectListItem()
|
|
|
|
|
- {
|
|
|
|
|
- Text = "货物已齐,待改包",
|
|
|
|
|
- Value = "2"
|
|
|
|
|
- }
|
|
|
|
|
- };
|
|
|
|
|
- var searchForm = new SearchFormViewModal(new List<SearchItem>()
|
|
|
|
|
|
|
+ new SelectListItem()
|
|
|
|
|
+ {
|
|
|
|
|
+ Text = "货物不齐全",
|
|
|
|
|
+ Value = "0"
|
|
|
|
|
+ }
|
|
|
|
|
+ ,
|
|
|
|
|
+ new SelectListItem()
|
|
|
|
|
+ {
|
|
|
|
|
+ Text = "货物已齐",
|
|
|
|
|
+ Value = "1"
|
|
|
|
|
+ },
|
|
|
|
|
+ new SelectListItem()
|
|
|
|
|
+ {
|
|
|
|
|
+ Text = "货物已齐,待改包",
|
|
|
|
|
+ Value = "2"
|
|
|
|
|
+ }
|
|
|
|
|
+ };
|
|
|
|
|
+ var searchForm = new SearchFormViewModal(new List<SearchItem>()
|
|
|
{
|
|
{
|
|
|
|
|
|
|
|
new SearchItem("sendDate", "发货日期",FiledType.D,ExpType.GreaterOrEqual),
|
|
new SearchItem("sendDate", "发货日期",FiledType.D,ExpType.GreaterOrEqual),
|
|
@@ -64,15 +65,15 @@ new SearchItem("sendDate", "到",FiledType.D,ExpType.LessOrEqual),
|
|
|
new SearchItem("customerId", "客户编号").SetSearchIcon("query_customer_modal"),
|
|
new SearchItem("customerId", "客户编号").SetSearchIcon("query_customer_modal"),
|
|
|
new SearchItem("isOverdue", "已超过送货日期").SetSearchItem(isOverdue),
|
|
new SearchItem("isOverdue", "已超过送货日期").SetSearchItem(isOverdue),
|
|
|
new SearchItem("orderNo", "订单流水号"),
|
|
new SearchItem("orderNo", "订单流水号"),
|
|
|
- new SearchItem("saleType", "内销/外销",FiledType.Inull,ExpType.Equal).SetSearchItem(OrderSaleTypeList),
|
|
|
|
|
|
|
+ new SearchItem("saleType", "内销/外销",FiledType.Inull,ExpType.Equal).SetSearchItem(OrderSaleTypeList),
|
|
|
new SearchItem("orderItemStatusId", "订单明细状态",FiledType.Inull,ExpType.Equal).SetSearchItem(OrderItemStatusList,isAddBlank:false),
|
|
new SearchItem("orderItemStatusId", "订单明细状态",FiledType.Inull,ExpType.Equal).SetSearchItem(OrderItemStatusList,isAddBlank:false),
|
|
|
- new SearchItem("productName", "产品名称"),
|
|
|
|
|
- new SearchItem("model", "规格"),
|
|
|
|
|
- new SearchItem("material", "材质"),
|
|
|
|
|
- new SearchItem("surfaceColor", "表色"),
|
|
|
|
|
- new SearchItem("partNo", "零件号"),
|
|
|
|
|
- new SearchItem("stockNo", "客户订单号"),
|
|
|
|
|
- new SearchItem("StoreCompleteState", "是否库齐",FiledType.I,ExpType.Equal).SetSearchItem(storeCompleteState),
|
|
|
|
|
|
|
+ new SearchItem("productName", "产品名称"),
|
|
|
|
|
+ new SearchItem("model", "规格"),
|
|
|
|
|
+ new SearchItem("material", "材质"),
|
|
|
|
|
+ new SearchItem("surfaceColor", "表色"),
|
|
|
|
|
+ new SearchItem("partNo", "零件号"),
|
|
|
|
|
+ new SearchItem("stockNo", "客户订单号"),
|
|
|
|
|
+ new SearchItem("StoreCompleteState", "是否库齐",FiledType.I,ExpType.Equal).SetSearchItem(storeCompleteState),
|
|
|
}, false);
|
|
}, false);
|
|
|
}
|
|
}
|
|
|
@section css{
|
|
@section css{
|
|
@@ -124,35 +125,36 @@ new SearchItem("orderItemStatusId", "订单明细状态",FiledType.Inull,ExpType
|
|
|
data-single-select="false"
|
|
data-single-select="false"
|
|
|
data-show-jumpto="true">
|
|
data-show-jumpto="true">
|
|
|
<thead>
|
|
<thead>
|
|
|
- <tr class="row" id="header">
|
|
|
|
|
- <th data-field="state" data-checkbox="true"></th>
|
|
|
|
|
- <th data-align="center" data-field="orderNo" data-width="100">订单流水号</th>
|
|
|
|
|
- <th data-align="center" data-field="stockNo">客户订单号</th>
|
|
|
|
|
- <th data-align="center" data-field="customerName">客户</th>
|
|
|
|
|
- <th data-align="center" data-field="orderDate" data-formatter="OrderDateFormatter">订单日期</th>
|
|
|
|
|
- <th data-align="center" data-field="partNo">零件号</th>
|
|
|
|
|
- <th data-align="center" data-field="productName">产品名称</th>
|
|
|
|
|
- <th data-align="center" data-field="model">型号</th>
|
|
|
|
|
- <th data-align="center" data-field="material">材质</th>
|
|
|
|
|
- <th data-align="center" data-field="surfaceColor">表色</th>
|
|
|
|
|
- <th data-align="center" data-field="rigidity">硬度</th>
|
|
|
|
|
- <th data-align="center" data-field="quantity" data-formatter="QuantityFormatter">数量</th>
|
|
|
|
|
- <th data-align="center" data-field="isSendQuantity">已发数量</th>
|
|
|
|
|
- <th data-align="center" data-field="remainingQuantity">剩余数</th>
|
|
|
|
|
- <th data-align="center" data-field="sendDate" data-formatter="SendDateFormatter">送货日期</th>
|
|
|
|
|
- @*<th data-align="center" data-field="saleType" data-formatter="SaleTypeFormatter">外销/内销</th>
|
|
|
|
|
- <th data-align="center" data-field="isReport" data-formatter="IsReportFormatter">检验报告</th>*@
|
|
|
|
|
- <th data-align="center" data-field="isPartSend" data-formatter="IsPartSendFormatter">部分送货</th>
|
|
|
|
|
- <th data-align="center" data-field="orderItemStatusName" data-formatter="OrderItemStatusFormatter">状态</th>
|
|
|
|
|
- <th data-align="center" data-field="storeCompleteState" data-formatter="StoreCompleteStateFormatter">是否库齐</th>
|
|
|
|
|
- <th data-align="center" data-field="productNo">产品编号</th>
|
|
|
|
|
- @if (isCanViewPrice)
|
|
|
|
|
- {
|
|
|
|
|
- <th data-align="center" data-field="currencyId">货币</th>
|
|
|
|
|
- <th data-align="center" data-field="totalPrice" data-formatter="TotalPriceFormatter">含税总价</th>
|
|
|
|
|
- <th data-align="center" data-field="afterTaxTotalPrice" data-formatter="TotalPriceFormatter">不含税总价</th>
|
|
|
|
|
- }
|
|
|
|
|
- </tr>
|
|
|
|
|
|
|
+ <tr class="row" id="header">
|
|
|
|
|
+ <th data-field="state" data-checkbox="true"></th>
|
|
|
|
|
+ <th data-align="center" data-field="orderNo" data-width="100">订单流水号</th>
|
|
|
|
|
+ <th data-align="center" data-field="stockNo">客户订单号</th>
|
|
|
|
|
+ <th data-align="center" data-field="customerName">客户</th>
|
|
|
|
|
+ <th data-align="center" data-field="orderDate" data-formatter="OrderDateFormatter">订单日期</th>
|
|
|
|
|
+ <th data-align="center" data-field="partNo">零件号</th>
|
|
|
|
|
+ <th data-align="center" data-field="productName">产品名称</th>
|
|
|
|
|
+ <th data-align="center" data-field="model">型号</th>
|
|
|
|
|
+ <th data-align="center" data-field="material">材质</th>
|
|
|
|
|
+ <th data-align="center" data-field="surfaceColor">表色</th>
|
|
|
|
|
+ <th data-align="center" data-field="rigidity">硬度</th>
|
|
|
|
|
+ <th data-align="center" data-field="quantity" data-formatter="QuantityFormatter">数量</th>
|
|
|
|
|
+ <th data-align="center" data-field="isSendQuantity">已发数量</th>
|
|
|
|
|
+ <th data-align="center" data-field="remainingQuantity">剩余数</th>
|
|
|
|
|
+ <th data-align="center" data-field="sendDate" data-formatter="SendDateFormatter">送货日期</th>
|
|
|
|
|
+ @*<th data-align="center" data-field="saleType" data-formatter="SaleTypeFormatter">外销/内销</th>
|
|
|
|
|
+ <th data-align="center" data-field="isReport" data-formatter="IsReportFormatter">检验报告</th>*@
|
|
|
|
|
+ @*<th data-align="center" data-field="isPartSend" data-formatter="IsPartSendFormatter">部分送货</th>*@
|
|
|
|
|
+ <th data-align="center" data-field="emergencyLevel" data-formatter="EmergencyLevelFormatter">紧急程度</th>
|
|
|
|
|
+ <th data-align="center" data-field="orderItemStatusName" data-formatter="OrderItemStatusFormatter">状态</th>
|
|
|
|
|
+ <th data-align="center" data-field="storeCompleteState" data-formatter="StoreCompleteStateFormatter">是否库齐</th>
|
|
|
|
|
+ <th data-align="center" data-field="productNo">产品编号</th>
|
|
|
|
|
+ @if (isCanViewPrice)
|
|
|
|
|
+ {
|
|
|
|
|
+ <th data-align="center" data-field="currencyId">货币</th>
|
|
|
|
|
+ <th data-align="center" data-field="totalPrice" data-formatter="TotalPriceFormatter">含税总价</th>
|
|
|
|
|
+ <th data-align="center" data-field="afterTaxTotalPrice" data-formatter="TotalPriceFormatter">不含税总价</th>
|
|
|
|
|
+ }
|
|
|
|
|
+ </tr>
|
|
|
</thead>
|
|
</thead>
|
|
|
</table>
|
|
</table>
|
|
|
</div>
|
|
</div>
|
|
@@ -426,7 +428,16 @@ new SearchItem("orderItemStatusId", "订单明细状态",FiledType.Inull,ExpType
|
|
|
var orderDate = new Date(v);
|
|
var orderDate = new Date(v);
|
|
|
return '<span style="text-decoration:underline;" >' + orderDate.Format('yyyy-MM-dd') + '</span>';
|
|
return '<span style="text-decoration:underline;" >' + orderDate.Format('yyyy-MM-dd') + '</span>';
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ function EmergencyLevelFormatter(v, r) {
|
|
|
|
|
+ let result = '';
|
|
|
|
|
+ var name = $('#hid-emergencyLevel option[value="' + v + '"]').text();
|
|
|
|
|
+ if (v === 1) {
|
|
|
|
|
+ result += '<span class="label label-success">' + name + '</span>';
|
|
|
|
|
+ } else {
|
|
|
|
|
+ result += '<span class="label label-danger">' + name + '</span>';
|
|
|
|
|
+ }
|
|
|
|
|
+ return result;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
</script>
|
|
</script>
|
|
|
<script>
|
|
<script>
|
|
@@ -515,6 +526,14 @@ new SearchItem("orderItemStatusId", "订单明细状态",FiledType.Inull,ExpType
|
|
|
return len;
|
|
return len;
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
+}
|
|
|
|
|
+<section style="display: none">
|
|
|
|
|
+ <select id="hid-type">
|
|
|
|
|
+ <option value=""></option>
|
|
|
|
|
+ </select>
|
|
|
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ @Html.DropDownList("hid-emergencyLevel", emergencyLevelList);
|
|
|
|
|
+ @*@Html.DropDownList("hide-StoreHouses", storeHouses)*@
|
|
|
|
|
+</section>
|