| 2 天以前 | dengjunjie | ![]() |
| 2 天以前 | dengjunjie | ![]() |
´úÂë¹ÜÀí/WIDESEAWCS_Client/src/views/basicinfo/boxing.vue
@@ -68,7 +68,13 @@ require: true, }, ], [ [{ title: "便¹ä»£ç ", field: "supplierCode", type: "input", width: 200, require: true, }, { title: "主é®ID", field: "id", @@ -88,6 +94,7 @@ boxingNo: "", // æµæ°´å·æ¥è¯¢å段 creater: "", createDate: "", supplierCode: "", }); const searchFormOptions = ref([ @@ -99,6 +106,7 @@ { title: "æµæ°´å·", field: "boxingNo", type: "like" }, ], [ { title: "便¹ä»£ç ", field: "supplierCode", type: "like" }, { title: "å建人", field: "creater", type: "like" }, { title: "å建æ¶é´", field: "createDate", type: "datetime" }, ], @@ -138,6 +146,13 @@ width: 200, align: "left", }, { field: "supplierCode", title: "便¹ä»£ç ", type: "string", width: 200, align: "left", }, // æ°å¢ï¼æµæ°´å·è¡¨æ ¼åï¼å®½åº¦åå ¶ä»ç¼å·ä¿æ200ï¼å¯æ ¹æ®éæ±è°æ´ï¼ { field: "boxingNo", ´úÂë¹ÜÀí/WIDESEAWCS_Server/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/DesignTimeBuild/.dtbcache.v2Binary files differ
´úÂë¹ÜÀí/WIDESEAWCS_Server/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/a92150fa-07f2-4b35-842d-8af5d93da741.vsidxBinary files differ
´úÂë¹ÜÀí/WIDESEAWCS_Server/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/v17/.futdcache.v2Binary files differ
´úÂë¹ÜÀí/WIDESEAWCS_Server/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/v17/.suoBinary files differ
´úÂë¹ÜÀí/WIDESEAWCS_Server/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/BoxingDetailService.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using WIDESEAWCS_Common; using WIDESEAWCS_Common.PLCEnum; @@ -25,7 +26,7 @@ private readonly IFormulaDetailService _formulaDetailService; private readonly IProcessInfoDetailService _processInfoDetailService; private readonly IScanStationService _scanStationService; private readonly IUnitOfWorkManage _unitOfWorkManage; @@ -45,7 +46,7 @@ _processInfoDetailService = processInfoDetailService; _scanStationService = scanStationService; _unitOfWorkManage = unitOfWorkManage; } public IRepository<Dt_BoxingDetail> Repository => BaseDal; @@ -152,26 +153,39 @@ { return WebResponseContent.Instance.Error("æäº¤åæ°ä¸è½ä¸ºç©º"); } string productCode = toolingBoardSubmitDto.FinishedProductCode?.Trim(); string productCode = toolingBoardSubmitDto.FinishedProductCode.Trim(); string proCode = string.Empty; string proOther = string.Empty; string supplierCode = string.Empty; if (!string.IsNullOrWhiteSpace(productCode)) { string[] parts = productCode.Split(new char[] { ' ', '|' }, StringSplitOptions.RemoveEmptyEntries); if (parts.Length < 3) return WebResponseContent.Instance.Error("ç¼ç è§åæè¯¯ï¼"); proCode = parts[0]; proOther = parts[1]; supplierCode = parts[2]; var proCodeMatch = System.Text.RegularExpressions.Regex.Match(productCode, @"TX(\d+)(?=\s|\||$)", System.Text.RegularExpressions.RegexOptions.IgnoreCase); if (proCodeMatch.Success) { proCode = $"TX{proCodeMatch.Groups[1].Value.Trim()}"; } #region è·åæåç¼å·ãæµæ°´å·ã便¹ä»£ç //var proCodeMatch = Regex.Match(productCode, @"TX(\d+)(?=\s|\||$)", RegexOptions.IgnoreCase); //if (proCodeMatch.Success) //{ // proCode = $"TX{proCodeMatch.Groups[1].Value.Trim()}"; //} // æ£å2ï¼å¹é è¿ç»ç10ä½çº¯æ°åï¼å ¨å±å¹é ï¼å第ä¸ä¸ªç¬¦åçå³å¯ï¼ var proOtherMatch = System.Text.RegularExpressions.Regex.Match(productCode, @"\d{10}"); if (proOtherMatch.Success) { proOther = proOtherMatch.Value.Trim(); } //// æ£å2ï¼å¹é è¿ç»ç10ä½çº¯æ°åï¼å ¨å±å¹é ï¼å第ä¸ä¸ªç¬¦åçå³å¯ï¼ //var proOtherMatch = Regex.Match(productCode, @"\d{10}"); //if (proOtherMatch.Success) //{ // proOther = proOtherMatch.Value.Trim(); //} //var supplierCodeMatch = Regex.Match(productCode, @"[A-Z]+$", RegexOptions.IgnoreCase); //if (supplierCodeMatch.Success) //{ // supplierCode = supplierCodeMatch.Value.Trim(); //} #endregion toolingBoardSubmitDto.PartsList = toolingBoardSubmitDto.PartsList.Where(code => !string.IsNullOrEmpty(code)).ToList(); // 2. æ¥è¯¢æåé æ¹ä¿¡æ¯ Dt_Formula formulaModel = _formulaService.Repository.QueryFirst(x => x.ProductCode == proCode); @@ -181,7 +195,7 @@ } Dt_ScanStation dt_ScanStation = _scanStationService.Repository.QueryFirst(x => x.StationCode == "001"); if (dt_ScanStation.StationEndProduct != proCode) if (dt_ScanStation.StationEndProduct != proCode) { return WebResponseContent.Instance.Error("æåç¼å·é误"); } @@ -194,10 +208,10 @@ return WebResponseContent.Instance.Error($"ç©æã{IsCode}ãé误ï¼è¯·æ ¸å¯¹ç©æç¼å·"); } //Dt_Boxing existBoxinModel = _boxingService.Repository.QueryFirst(x => x.PalletCode == PalletCode); //if (existBoxinModel == null) //{ // return WebResponseContent.Instance.Error($"æçæªæ·»å ï¼è¯·ç¨åéè¯"); @@ -214,14 +228,16 @@ throw new InvalidOperationException("æçç æªæ«å°ï¼è¯·éè¯"); } Dt_Boxing dt_Boxing = _boxingService.Repository.QueryFirst(x => x.PalletCode == PalletCode); if(dt_Boxing != null) if (dt_Boxing != null) { throw new InvalidOperationException("æçç é夿«æ"); } Dt_Boxing existBoxinModel = new Dt_Boxing(); existBoxinModel.PalletCode = PalletCode; existBoxinModel.ProductCode = proCode; existBoxinModel.ProductName = formulaModel.ProductName; existBoxinModel.BoxingNo = proOther; existBoxinModel.SupplierCode = supplierCode; int id = _boxingService.Repository.AddData(existBoxinModel); @@ -240,7 +256,7 @@ uow.Commit(); } OtherDevice? device = Storage.Devices.FirstOrDefault(x => x.DeviceName == "主æ§PLC") as OtherDevice; if (device == null) throw new Exception("æªæ¾å°ä¸»æ§PLC设å¤ä¿¡æ¯"); @@ -355,7 +371,7 @@ .QueryData(x => x.ProductSn == proOther && x.ProductCode == proCode).ToList(); // 3. 夿æ¥è¯¢ç»æï¼åå¨åèµå¼æç¤ºä¿¡æ¯ if (dt_ProcessInfoDetail.Count<=3 && dt_ProcessInfoDetail.Count != 0) if (dt_ProcessInfoDetail.Count <= 3 && dt_ProcessInfoDetail.Count != 0) { msg = "å·²ææµæ°´å·"; } ´úÂë¹ÜÀí/WIDESEAWCS_Server/WIDESEAWCS_Server/WIDESEAWCS_Model/Models/BasicInfo/Dt_Boxing.cs
@@ -41,6 +41,12 @@ [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "æµæ°´å·")] public string BoxingNo { get; set; } /// <summary> /// 便¹ä»£ç /// </summary> [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "便¹ä»£ç ")] public string SupplierCode { get; set; } [SugarColumn(IsIgnore = true)]//ä¸å䏿°æ®åºæ å°ï¼æµè¯ä½¿ç¨ [Navigate(NavigateType.OneToMany, nameof(Dt_BoxingDetail.BoxingId), nameof(Id))] public List<Dt_BoxingDetail> Details { get; set; } ´úÂë¹ÜÀí/WIDESEAWCS_Server/WIDESEAWCS_Server/WIDESEAWCS_Server/WIDESEAWCS_Server.csproj
@@ -68,7 +68,6 @@ </ItemGroup> <ItemGroup> <ProjectReference Include="..\WIDESEAWCS_IProductRecordServer\WIDESEAWCS_IProductRecordService.csproj" /> <ProjectReference Include="..\WIDESEAWCS_SystemServices\WIDESEAWCS_SystemServices.csproj" /> <ProjectReference Include="..\WIDESEAWCs_TaskInfoService\WIDESEAWCs_TaskInfoService.csproj" /> <ProjectReference Include="..\WIDESEAWCS_Tasks\WIDESEAWCS_Tasks.csproj" /> ´úÂë¹ÜÀí/WIDESEAWCS_Server/WIDESEAWCS_Server/WIDESEAWCS_Server/appsettings.json
@@ -17,7 +17,7 @@ //5.PostgreSQL "DBType": "SqlServer", //è¿æ¥å符串 "ConnectionString": "Data Source=.;Initial Catalog=WIDESEAWCS_FDJ;User ID=sa;Password=123456;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", "ConnectionString": "Data Source=.;Initial Catalog=WIDESEAWCS_FDJ;User ID=sa;Password=P@ssw0rd;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", //è·¨å "Cors": { "PolicyName": "CorsIpAccess", //çç¥åç§° @@ -32,9 +32,9 @@ "QuartzJobAutoStart": true, "DBSeedEnable": false, "QuartzDBSeedEnable": false, "LogDeubgEnable": true, //æ¯å¦è®°å½è°è¯æ¥å¿ "LogDeubgEnable": false, //æ¯å¦è®°å½è°è¯æ¥å¿ "PrintSql": false, //æå°SQLè¯å¥ "LogAOPEnable": true, //æ¯å¦è®°å½AOPæ¥å¿ "LogAOPEnable": false, //æ¯å¦è®°å½AOPæ¥å¿ "WebSocketEnable": true, //æ¯å¦å¼å¯WebSocketæå¡ "WebSocketPort": 9296 //WebSocketæå¡ç«¯å£ } ´úÂë¹ÜÀí/WIDESEAWCS_Server/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/obj/Debug/net6.0/WIDESEAWCS_TaskInfoService.AssemblyInfo.cs
@@ -14,7 +14,7 @@ [assembly: System.Reflection.AssemblyCompanyAttribute("WIDESEAWCS_TaskInfoService")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+8aa5f0e094e6ff51aa7c47d5b4e8331a16eb09ff")] [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+b784d019c3848718eb95eb0d34dde34c6a262b06")] [assembly: System.Reflection.AssemblyProductAttribute("WIDESEAWCS_TaskInfoService")] [assembly: System.Reflection.AssemblyTitleAttribute("WIDESEAWCS_TaskInfoService")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] ´úÂë¹ÜÀí/WIDESEAWCS_Server/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/obj/Debug/net6.0/WIDESEAWCS_TaskInfoService.AssemblyInfoInputs.cache
@@ -1 +1 @@ c97e13df12cbbd7b4f052106b0c5e3e54606d4e7d7c3571cbd36adfdc2f442d8 809539e918c0b7200ed3ceea689801d3a0fc42f6df33f9133fa5d11ccbf70930 ´úÂë¹ÜÀí/WIDESEAWCS_Server/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/obj/Debug/net6.0/WIDESEAWCS_TaskInfoService.GeneratedMSBuildEditorConfig.editorconfig
@@ -8,8 +8,6 @@ build_property.EnforceExtendedAnalyzerRules = build_property._SupportedPlatformList = Linux,macOS,Windows build_property.RootNamespace = WIDESEAWCS_TaskInfoService build_property.ProjectDir = E:\gsxm\FaDianJi\代ç 管ç\WIDESEAWCS_Server\WIDESEAWCS_Server\WIDESEAWCS_TaskInfoService\ build_property.ProjectDir = E:\项ç®é\FaDianJi\代ç 管ç\WIDESEAWCS_Server\WIDESEAWCS_Server\WIDESEAWCS_TaskInfoService\ build_property.EnableComHosting = build_property.EnableGeneratedComInterfaceComImportInterop = build_property.EffectiveAnalysisLevelStyle = 6.0 build_property.EnableCodeStyleSeverity = ´úÂë¹ÜÀí/WIDESEAWCS_Server/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/obj/Debug/net6.0/WIDESEAWCs_TaskInfoService.assets.cacheBinary files differ
ÏîÄ¿×ÊÁÏ/dbo.sqlBinary files differ