@using System.Web.UI.HtmlControls @using Abp.Authorization @using IwbZero.Session @using ShwasherSys @using ShwasherSys.Authorization.Permissions @using ShwasherSys.Models.Layout @using ShwasherSys.Models.Modal @using ShwasherSys.Views.Shared.New.Table @{ /**/ ViewBag.ActiveMenu = PermissionNames.PagesOrderInfoOrderStatusMg; //The menu item will be active for this page. ViewBag.Title = "订单状态维护"; List OrderStatusList = ViewBag.OrderStatus; List OrderItemStatusList = ViewBag.OrderItemStatus; List emergencyLevelList = ViewBag.EmergencyLevel; Boolean isCanChangeOrderItemStatus = IsGranted(PermissionNames.PagesOrderInfoOrderStatusMgChangeStatus); Boolean isCanViewPrice = IsGranted(PermissionNames.PagesOrderInfoOrderStatusMgQueryOrderPrice); string startDate = DateTime.Now.AddMonths(-3).ToString("yyyy-MM-dd"); string endDate = DateTime.Now.AddDays(7).ToString("yyyy-MM-dd"); List OrderSaleTypeList = ViewBag.OrderSaleType; var searchForm = new SearchFormViewModal(new List() { new SearchItem("id", "流水号"), new SearchItem("orderDate", "订单日期",FiledType.D,ExpType.GreaterOrEqual,value:startDate), new SearchItem("orderDate", "到",FiledType.D,ExpType.LessOrEqual,value:endDate), new SearchItem("customerId", "客户编号").SetSearchIcon("query_customer_modal"), new SearchItem("stockNo", "客户订单号"), new SearchItem("orderStatusId", "状态",FiledType.I,ExpType.Equal).SetSearchItem(OrderStatusList), new SearchItem("saleMan", "业务员",showField:"saleManName").SetSearchIcon("query_employee_modal","SearchForm") , new SearchItem("saleType", "销售类型",FiledType.Inull,ExpType.Equal).SetSearchItem(OrderSaleTypeList), }, false); } @section css{ } @Html.Action("ToolMenu", "Layout", new { pageName = ViewBag.ActiveMenu, searchForm }) 流水号 订单状态 是否删除 客户编号 客户订单号 订单日期 联系人 电话 订单业务员 外销/内销 创建日期 @* *@ 流水号: 客户订单号: 修改货物配齐状态 @if (isCanChangeOrderItemStatus) { 修改订单明细状态 } @if (IsGranted(PermissionNames.PagesOrderInfoOrderStatusMgAuditItem)) { 审核全部新建订单 } 锁定产品库存 当前订单是否已全部完成发货:未完成 当前状态 明细流水号 产品编号 零件号 标准名称 规格 材质 型号 表色 硬度 紧急程度 是否库齐 @if (isCanViewPrice) { @*货币*@ @*货币价格(含税)*@ 含税价格 不含税价格 运费 模具费 } 总数 已发数 剩余数 @if (isCanViewPrice) { 含税总金额 不含税总金额 } 送货日期 @*检验报告*@ @section modal{ 产品编号 @if (PermissionChecker.IsGranted(PermissionNames.PagesOrderInfoOrderStatusMgReplaceSendItem)) { } @*锁定库存*@ 取消 已锁定冻结的库存记录 批次号 产品编号 库位 冻结数量(千件) 千件/每包 状态 操作 锁定冻结的库存记录锁定库存 批次号 库位 可用数量(千件) 冻结数量 千件/每包 @**@ @**@ 产品编号 @if (PermissionChecker.IsGranted(PermissionNames.PagesOrderInfoOrderStatusMgReplaceSendItem)) { } 已发/总数: 被定量: 确认发货 取消 @**@ 批次号 库位 @*包装(每包千件数)*@ 可用数量(千件) 发货数量 千件/每包 选择本次计划发货的信息 @Html.Partial("Modals/_ModalHeader", new ModalHeaderViewModel("价格变更", "")) @{ var inputs = new List { new InputViewModel("orderItemNo",displayName:"订单明细编号",name:"orderItemNo").SetDisabled(), new InputViewModel("oldPrice",displayName:"原价格",@class:"number",other:"min=0.001").SetReadOnly(), new InputViewModel("newPrice", displayName:"修改的价格",@class:"number",other:"min=0.001"), }; //var specials = new List(); } @Html.Partial("Modals/_ModalBody", new ModalBodyViewModel(inputs)) @Html.Partial("Modals/_SwModalFooter", new ModelFooterModel("modalChangePrice", "ChangePrice()")) @Html.Partial("Modals/_ModalHeader", new ModalHeaderViewModel("税后价格变更", "")) @{ var inputs5 = new List { new InputViewModel("orderItemNo5",displayName:"订单明细编号",name:"orderItemNo").SetDisabled(), new InputViewModel("oldPrice2",displayName:"原税后价格",@class:"number",name:"oldPrice",other:"min=0").SetReadOnly().SetNotRequired(), new InputViewModel("newAfterTaxPrice", displayName:"修改的价格",@class:"number",other:"min=0"), }; //var specials = new List(); } @Html.Partial("Modals/_ModalBody", new ModalBodyViewModel(inputs5)) @Html.Partial("Modals/_SwModalFooter", new ModelFooterModel("modalChangeAfterTaxPrice", "ChangeAfterTaxPrice()")) @Html.Partial("Modals/_ModalHeader", new ModalHeaderViewModel("数量变更", "")) @{ var inputs2 = new List { new InputViewModel("orderItemNo2",displayName:"订单明细编号",name:"orderItemNo").SetDisabled(), new InputViewModel("oldQuantity",displayName:"原数量",@class:"number",other:"min=0.001").SetReadOnly(), new InputViewModel("newQuantity", displayName:"修改的数量",@class:"number",other:"min=0.001"), }; //var specials = new List(); } @Html.Partial("Modals/_ModalBody", new ModalBodyViewModel(inputs2)) @Html.Partial("Modals/_SwModalFooter", new ModelFooterModel("modalChangeQuantity", "ChangeQuantity()")) @Html.Partial("Modals/_ModalHeader", new ModalHeaderViewModel("发货日期变更", "")) @{ var inputs3 = new List { new InputViewModel("orderItemNo3",displayName:"订单明细编号",name:"orderItemNo").SetDisabled(), new InputViewModel("oldSendDate",displayName:"原发货日期",@class:"date").SetDisabled(), new InputViewModel("newSendDate", displayName:"修改日期",@class:"date"), }; //var specials = new List(); } @Html.Partial("Modals/_ModalBody", new ModalBodyViewModel(inputs3)) @Html.Partial("Modals/_SwModalFooter", new ModelFooterModel("modalChangeSendDate", "ChangeSendDate()")) @Html.Partial("Modals/_ModalHeader", new ModalHeaderViewModel("订单明细状态变更", "")) @{ var inputs4 = new List { new InputViewModel("orderItemStatusId",InputTypes.List,"变更状态").SetSelectOptions(OrderItemStatusList) }; } @Html.Partial("Modals/_ModalBody", new ModalBodyViewModel(inputs4)) @Html.Partial("Modals/_SwModalFooter", new ModelFooterModel("modalChangeStatus", "ChangeOrderItemStatus()")) @Html.Partial("Modals/_ModalHeader", new ModalHeaderViewModel("货物配齐状态变更", "")) @{ var inputs6 = new List { new InputViewModel("storeCompleteStateId",InputTypes.List,"货物配齐状态").SetSelectOptions(new List(){new SelectListItem(){Text = "到齐",Value = "1"},new SelectListItem(){ Text = "未到齐", Value = "0" },new SelectListItem(){ Text = "货物已齐,待改包", Value = "2" } }) }; } @Html.Partial("Modals/_ModalBody", new ModalBodyViewModel(inputs6)) @Html.Partial("Modals/_SwModalFooter", new ModelFooterModel("modalChangeStatus", "ChangeCompleteStoreStatus()")) @Html.Partial("Modals/_ModalHeader", new ModalHeaderViewModel("生产进度", "")) @Html.Partial("Modals/_ModalFooter", "1") @Html.Partial("Modals/_ModalHeader", new ModalHeaderViewModel("订单明细发货记录", "")) @**@ 客户订单号 数量 单位 @*客户编号*@ 产品编号 产品名称 规格 @*表色 硬度*@ 订单日期 送货日期 联系人 @Html.Partial("Modals/_ModalFooter", "1") @Html.Partial("Modals/Query/_Customer", "KeyWords-4") @Html.Partial("Modals/Query/_Product", "productId|productId_lockstore") @Html.Partial("Modals/Query/_Employee", "saleMan|KeyWords-7,saleManName|KeyWords-saleManName-7,saleManId") } @Html.Partial("_searchInfoByProductNo") @section scripts { @**@ } @Html.DropDownList("hid-emergencyLevel", emergencyLevelList); @*@Html.DropDownList("hide-StoreHouses", storeHouses)*@