@using ShwasherSys @using ShwasherSys.Authorization.Permissions @using ShwasherSys.Models.Layout @using ShwasherSys.Views.Shared.New.Modals @using ShwasherSys.Views.Shared.New.Table @{ ViewBag.Title = "不合格半成品处理"; string activeMenu = PermissionNames.PagesProductInspectDisqualifiedSemiProductMg; //The menu item will be active for this page. ViewBag.ActiveMenu = activeMenu; string storeHouse1 = ViewBag.StoreHouse1, storeHouse2 = ViewBag.StoreHouse2; List productType = new List() { new SelectListItem(){Value = ProductTypeDefinition.Semi+"",Text = @"半成品"}, new SelectListItem(){Value = ProductTypeDefinition.Finish+"",Text = @"成品"}, }, inspectType = new List() { new SelectListItem(){Value = DisProductStateDefinition.NormalReturn+"",Text = @"正常退货"}, new SelectListItem(){Value = DisProductStateDefinition.Downgrade+"",Text = @"检验降级"}, new SelectListItem(){Value = DisProductStateDefinition.Scrapped+"",Text = @"检验报废"}, new SelectListItem(){Value = DisProductStateDefinition.AntiPlating+"",Text = @"返工反镀"}, new SelectListItem(){Value = DisProductStateDefinition.OutPurchaseReturnGood+"",Text = @"外购退货"}, new SelectListItem(){Value = DisProductStateDefinition.SpecialPurchase+"",Text = @"特采"}, }, handleType = ViewBag.HandleType; var searchForm = new SearchFormViewModal(new List() { new SearchItem("disqualifiedNo","编号"), new SearchItem("productOrderNo","流转单号"), new SearchItem("productName","产品名称"), // new SearchItem("productType","产品类型",FiledType.I).SetSearchItem(productType), new SearchItem("handleType","处理类型",FiledType.I).SetSearchItem(handleType), }); var table = new TableViewModel("/api/services/app/DisqualifiedProduct/GetAllDisqualifiedSemiProduct", activeMenu, searchForm) .SetFields(new List() { new FieldItem("disqualifiedNo", "编号"), new FieldItem("productOrderNo", "流转单号"), new FieldItem("productNo", "产品编码"), new FieldItem("productName", "产品名称"), new FieldItem("model", "规格"), new FieldItem("productType", "产品类型","ProductTypeFormatter"), new FieldItem("quantityWeight", "产品数量(Kg)"), new FieldItem("kgWeight", "千件重"), new FieldItem("quantityPcs", "产品数量(千件)"), new FieldItem("handleType", "处理类型","HandleTypeFormatter"), new FieldItem("checkUser", "检验人员"), new FieldItem("checkDate", "检验时间","DateTimeFormatter"), new FieldItem("handleUser", "最后处理人"), new FieldItem("handleDate", "最后处理时间","DateTimeFormatter"), //new FieldItem("", "操作","ActionFormatter"), }); } @section css{ } @Html.Partial("New/Table/_Table", table) @section modal{ @{ var modal = new ModalViewModel("产品降级", "", new ModalBodyViewModel(new List() { new InputHide("id"), new Input("storeHouseId","仓库",other:"onchange=StoreHouseChange()").SetOuterBefore("
").SetSelectOptions(""), new Input("storeLocationNo", "库位编号").SetSearchIcon("query_storeHouseLocation_modal","modal"), new Input("quantity", "入库数量",@class:"number",other:"min=0.001"), new Input("productName","产品名称").SetOuterBefore("
").SetSearchIcon("query_Product_modal",".p1"), new InputHide("productNo").SetOuterAfter("
"), new Input("productName","产品名称").SetOuterBefore("
").SetSearchIcon("query_semiProduct_modal",".p2"), new InputHide("productNo").SetOuterAfter("
"), new Input("custom-name-1","客户名称",@class:"custom-name").SetNotRequired().SetOuterBefore("
").SetSearchIcon("query_customer_modal",".customer-1"), new InputHide("custom-id-1",@class:"custom-id",name:"customerNos").SetNotRequired().SetOuterAfter("
"), new Input("custom-name-2","客户名称",@class:"custom-name").SetNotRequired().SetOuterBefore("
").SetSearchIcon("query_customer_modal",".customer-2"), new InputHide("custom-id-2",@class:"custom-id",name:"customerNos").SetNotRequired().SetOuterAfter("
"), new Input("custom-name-3","客户名称",@class:"custom-name").SetNotRequired().SetOuterBefore("
").SetSearchIcon("query_customer_modal",".customer-3"), new InputHide("custom-id-3",@class:"custom-id",name:"customerNos").SetNotRequired().SetOuterAfter("
"), }),sizeClass:"lg",width:1000); var modal2 = new ModalViewModel("产品检验情况","",new ModalBodyViewModel(new List { new InputHide("id"), new InputHide("productType"), new Input("inspectType", "检验选项",other:"onchange=InspectTypeChange(this)").SetSelectOptions(inspectType), new Input("surveyReason", "调查情况",@class:"type type1").SetSelectOptions(new List(){ new SelectListItem(){Text = @"人工原因",Value = "人工原因"}, new SelectListItem(){Text = @"生产原因",Value = "生产原因"}, new SelectListItem(){Text = @"外协原因",Value = "外协原因"}, new SelectListItem(){Text = @"存放原因",Value = "存放原因"}, new SelectListItem(){Text = @"其他原因",Value = "其他原因"}, },true), new InputTextarea("surveyDetail", "调查原因",@class:"type type1"), new InputTextarea("solution", "解决办法",@class:"type type1"), new Input("storeHouseId","仓库",@class:"type type2",other:"onchange=StoreHouseChange2(this)").SetSelectOptions(storeHouse2),//成品仓库 new Input("storeHouseId2","仓库",@class:"type type3",other:"onchange=StoreHouseChange2(this)").SetSelectOptions(storeHouse1),//半成品仓库 new Input("storeLocationNo", "库位编号",@class:"type type2 type3").SetSearchIcon("query_storeHouseLocation_modal","return_modal"), new InputTextarea("SpecialPurchaseRemark", "特采备注",@class:"type type3"), }),"return_modal"); var modal3 = new ModalViewModel("退货信息","",new ModalBodyViewModel(new List { new Input("returnOrderNo", "退货单号"), new Input("productNo", "产品编码"), new Input("productName", "产品名称"), new Input("model", "规格"), new Input("surfaceColor", "表色"), new Input("material", "材质"), new Input("rigidity", "硬度"), new InputTextarea("reason", "退货原因"), }),"returnInfo_modal"); } @Html.Partial("New/Modals/_Modal", modal) @Html.Partial("New/Modals/_Modal", modal2) @Html.Partial("New/Modals/_Modal", modal3) @Html.Partial("Modals/Query/_Customer", ".custom-id,.custom-name") @Html.Partial("Modals/Query/_StoreHouseLocation", "storeHouseId,storeLocationNo") @Html.Partial("Modals/Query/_Product", "productNo,productName") @Html.Partial("Modals/Query/_SemiProduct", "productNo,productName") } @section scripts { }
@Html.DropDownList("hid-productType", productType) @Html.DropDownList("hid-handleType", handleType)