| | |
| | | key: "id", |
| | | footer: "Foots", |
| | | cnName: "è°æ¨å", |
| | | name: "Dt_AllocateOrder", |
| | | name: "AllocateOrder", |
| | | url: "/AllocateOrder/", |
| | | sortName: "id", |
| | | }); |
| | |
| | | const table = ref({ |
| | | key: "id", |
| | | footer: "Foots", |
| | | cnName: "è°æ¨å(æºä»è°å¤é¨ä»åº)", |
| | | name: "inboundOrder", |
| | | url: "/InboundOrder/", |
| | | cnName: "è°æ¨å(å¤é¨ä»è°å
¥æºä»)", |
| | | name: "AllocateOrder", |
| | | url: "/AllocateOrder/", |
| | | sortName: "id", |
| | | }); |
| | | const editFormFields = ref({ |
| | |
| | | field: "materielCode", |
| | | title: "ç©æç¼å·", |
| | | type: "select", |
| | | width: 150, |
| | | width: 120, |
| | | align: "left", |
| | | edit: { type: "" }, |
| | | required: true, |
| | |
| | | field: "materielCode", |
| | | title: "ç©æåç§°", |
| | | type: "string", |
| | | width: 100, |
| | | width: 120, |
| | | align: "left", |
| | | bind: { key: "MaterielNames", data: [] }, |
| | | }, |
| | |
| | | field: "batchNo", |
| | | title: "æ¹æ¬¡å·", |
| | | type: "decimal", |
| | | width: 90, |
| | | width: 150, |
| | | align: "left", |
| | | edit: { type: "" }, |
| | | required: true, |
| | |
| | | field: "supplyCode", |
| | | title: "ä¾åºåç¼å·", |
| | | type: "decimal", |
| | | width: 90, |
| | | width: 100, |
| | | align: "left", |
| | | edit: { type: "" }, |
| | | required: true, |
| | |
| | | field: "barcode", |
| | | title: "æ¡ç ", |
| | | type: "decimal", |
| | | width: 90, |
| | | width: 180, |
| | | align: "left", |
| | | edit: { type: "" }, |
| | | required: true, |
| | |
| | | field: "receiptQuantity", |
| | | title: "ç»çæ°é", |
| | | type: "int", |
| | | width: 120, |
| | | width: 90, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "overInQuantity", |
| | | title: "䏿¶æ°é", |
| | | type: "string", |
| | | width: 200, |
| | | width: 90, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "orderDetailStatus", |
| | | title: "订åæç»ç¶æ", |
| | | type: "string", |
| | | width: 180, |
| | | width: 100, |
| | | align: "left", |
| | | bind: { key: "orderDetailStatusEnum", data: [] }, |
| | | }, |
| | |
| | | const table = ref({ |
| | | key: "id", |
| | | footer: "Foots", |
| | | cnName: "è°æ¨å(å¤é¨ä»åºè°æºä»)", |
| | | cnName: "è°æ¨å(æºä»è°åºå¤é¨ä»)", |
| | | name: "outboundOrder", |
| | | url: "/OutboundOrder/", |
| | | sortName: "id", |
| | |
| | | using Microsoft.AspNetCore.Authorization; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using Newtonsoft.Json; |
| | | using System.Data.Common; |
| | | using System.Diagnostics.Eventing.Reader; |
| | | using System.Threading.Tasks; |
| | |
| | | [HttpPost, Route("ReceiveAllocateOrder"), MethodParamsValidate, AllowAnonymous] |
| | | public async Task<WebResponseContent> ReceiveAllocateOrder([FromBody] AllocateDto model) |
| | | { |
| | | _logger.LogInformation("AllocateOrderController ReceiveAllocateOrder: " + JsonConvert.SerializeObject(model)); |
| | | Dt_AllocateOrder allocateOrder = new Dt_AllocateOrder |
| | | { |
| | | OrderNo = model.OrderNo, |
| | |
| | | FactoryArea = model.FactoryArea, |
| | | IsBatch = model.IsBatch, |
| | | CreateType = model.OperationType, |
| | | FromWarehouse=model.fromWarehouse, |
| | | ToWarehouse=model.toWarehouse, |
| | | FromWarehouse = model.fromWarehouse, |
| | | ToWarehouse = model.toWarehouse, |
| | | Details = new List<Dt_AllocateOrderDetail>() |
| | | }; |
| | | Enum.TryParse<BusinessTypeEnum>(allocateOrder.BusinessType, out var businessType); |
| | | |
| | | //allocateOrder.OrderType = businessType == BusinessTypeEnum.æºä»è°å¤é¨ä»åº ? 215 : 115; |
| | | if (businessType == BusinessTypeEnum.æºä»è°å¤é¨ä»åº) |
| | | { |
| | | allocateOrder.OrderType = 115; |
| | | } |
| | | else if (businessType == BusinessTypeEnum.å¤é¨ä»åºè°æºä») |
| | | { |
| | | allocateOrder.OrderType = 215; |
| | | } |
| | | |
| | | foreach (var detailDto in model.Details) |
| | | { |
| | |
| | | BatchNo = barcodeDto.BatchNo, |
| | | BarcodeQty = barcodeDto.Qty, |
| | | BarcodeUnit = barcodeDto.Unit, |
| | | ValidDate=barcodeDto.validDate, |
| | | ValidDate = barcodeDto.validDate, |
| | | |
| | | }; |
| | | allocateOrder.Details.Add(orderDetail); |