CC/iWareCC_ASRS/ThreadService/03_BZ12(»úÆ÷ÈËÂë°ü¹¤Î»)/1¡¢DataProcess_BZ12.cs
@@ -117,64 +117,77 @@ //æ¥å¤è¿å ææçæ°é var upiList = wmsDB.mes_batchOrderUPI_new.Where(x => x.PackageCode == upiObj.PackageCode).ToList(); //æ¥è¯¢æ¯å¦æ«æ¿å¹¶ä¸å¤æææ²¡ææ··æ¹ var wms_rbline_runmode = wmsDB.wms_rbline_runmode.FirstOrDefault(); if (wms_rbline_runmode != null) //å¢å 坹忰é ç½®ç管ç ãEditby shaocx,2024-12-13ã var sysConfig = wmsDB.SysConfig.Where(x => x.Code == "LastPalletizingData").FirstOrDefault(); if (sysConfig == null) { //æ¥è¯¢æ¯å¦æ··æ¹ if (!string.IsNullOrEmpty(wms_rbline_runmode.PalletizingUPI)) { if (upiObj.PackageCode != wms_rbline_runmode.PalletizingUPI) { //åå ¥æ¥è¦ä¿¡æ¯ await MyExtendHelper.WriteBoolPlcDataForWarning(PlcWarningAddressGloble.Num_BZ12_4); SystemWarningMsg._lbl_alert_DataProcess_BZ12 = $"{rgvLocation.ToString()},UPI:{upiCode}ç å é¨ä»¶æ··æ¹ "; continue; } } //è·åç åç®æ ä½ if (wms_rbline_runmode.PalletizingStation != 0) { place = wms_rbline_runmode.PalletizingStation.ToString(); } else {//è¡¨ç¤ºè¿æ¯ å ç第ä¸åæ¿ lastnum = 1; wms_rbline_runmode.PalletizingUPI = upiObj.PackageCode; if (obj.R_PalletizingStation1 == 1) { place = "1"; } else if (obj.R_PalletizingStation2 == 1) { place = "2"; } else { //åå ¥æ¥è¦ä¿¡æ¯ await MyExtendHelper.WriteBoolPlcDataForWarning(PlcWarningAddressGloble.Num_BZ12_6); SystemWarningMsg._lbl_alert_DataProcess_BZ12 = $"{rgvLocation.ToString()},UPI:{upiCode}æ å¯ç¨ç åç®æ ä½ "; continue; } wms_rbline_runmode.PalletizingStation = int.Parse(place); } //å¦ææ¬¡åºçäºå½é±å æ»æ°éï¼æ¯å¦æ«æ¿ç½®ä¸ºtrue if (upiObj.Shelf == upiList.Count()) { lastnum = 2; wms_rbline_runmode.PalletizingUPI = null; wms_rbline_runmode.PalletizingStation = 0; } } else { SystemWarningMsg._lbl_alert_DataProcess_BZ12 = $"{rgvLocation.ToString()},表wms_rbline_runmodeæ æ°æ® "; SystemWarningMsg._lbl_alert_DataProcess_BZ01 = $"没æè·åå° LastPalletizingData çé ç½®ä¿¡æ¯ "; continue; } string palletizingUPI = ""; int palletizingStation = 0; var config_value = sysConfig.Value; if (config_value.IndexOf('|') > -1) {//æ ¼å¼ä¸º å è£ å·|ç«ç¹ var arr = config_value.Split('|'); palletizingUPI = arr[0]; palletizingStation = Convert.ToInt32(arr[1]); } else {//è¡¨ç¤ºè¿æ²¡æé ç½® } //æ¥è¯¢æ¯å¦æ··æ¹ if (!string.IsNullOrEmpty(palletizingUPI)) { if (upiObj.PackageCode != palletizingUPI) { //åå ¥æ¥è¦ä¿¡æ¯ await MyExtendHelper.WriteBoolPlcDataForWarning(PlcWarningAddressGloble.Num_BZ12_4); SystemWarningMsg._lbl_alert_DataProcess_BZ12 = $"{rgvLocation.ToString()},UPI:{upiCode}ç å é¨ä»¶æ··æ¹ "; continue; } } //è·åç åç®æ ä½ if (palletizingStation != 0) { place = palletizingStation.ToString(); } else {//è¡¨ç¤ºè¿æ¯ å ç第ä¸åæ¿ lastnum = 1; palletizingUPI = upiObj.PackageCode; if (obj.R_PalletizingStation1 == 1) { place = "1"; } else if (obj.R_PalletizingStation2 == 1) { place = "2"; } else { //åå ¥æ¥è¦ä¿¡æ¯ await MyExtendHelper.WriteBoolPlcDataForWarning(PlcWarningAddressGloble.Num_BZ12_6); SystemWarningMsg._lbl_alert_DataProcess_BZ12 = $"{rgvLocation.ToString()},UPI:{upiCode}æ å¯ç¨ç åç®æ ä½ "; continue; } palletizingStation = int.Parse(place); } //å¦ææ¬¡åºçäºå½é±å æ»æ°éï¼æ¯å¦æ«æ¿ç½®ä¸ºtrue if (upiObj.Shelf == upiList.Count()) { lastnum = 2; palletizingUPI = null; palletizingStation = 0; } //æ¥è¯¢ææ²¡ææ¬¡åºå°äºå½å次åºå¹¶ä¸æ²¡æç åç var oldupi = upiList.Where(x => x.Shelf < upiObj.Shelf && (x.UpiStatus != (int)UpiStatusEnum.å·²ç å && x.UpiStatus != (int)UpiStatusEnum.ç åä¸)).FirstOrDefault(); if (oldupi != null) @@ -220,7 +233,8 @@ wmsDB.wms_rbline_task.Add(task); //æ´æ°é ç½® sysConfig.Value = palletizingUPI + "|" + palletizingStation; WmsRecordUpiProcessHandler.SaveWmsRecordUpiProcess(wmsDB, upiObj, "BZ12ç«ç¹", "ç å "); LA24030_LuLiPackageLine_Web/src/views/main/WmsOrder/wmsRbLineRunMode/component/editDialog.vue
@@ -50,27 +50,6 @@ </el-form-item> </el-col> <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20"> <el-form-item label="è¿è¡æ¨¡å¼åç§°" prop="lineRunModeName"> <el-input v-model="ruleForm.lineRunModeName" placeholder="请è¾å ¥è¿è¡æ¨¡å¼åç§°" maxlength="50" show-word-limit clearable /> </el-form-item> </el-col> <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20"> <el-form-item label="ä¸ä¸æ¬¡ç åæ¿ä»¶" prop="palletizingUPI"> <el-input v-model="ruleForm.palletizingUPI" placeholder="请è¾å ¥ä¸ä¸æ¬¡ç åæ¿ä»¶" maxlength="50" show-word-limit clearable /> </el-form-item> </el-col> <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20"> <el-form-item label="ä¸ä¸æ¬¡ç åç«ç¹" prop="palletizingStation"> <el-input-number v-model="ruleForm.palletizingStation" placeholder="请è¾å ¥ä¸ä¸æ¬¡ç åç«ç¹" clearable /> </el-form-item> </el-col> </el-row> </el-form> <template #footer> LA24030_LuLiPackageLine_Web/src/views/main/WmsOrder/wmsRbLineRunMode/index.vue
@@ -5,7 +5,7 @@ <el-row> <el-col :xs="24" :sm="12" :md="12" :lg="8" :xl="4" class="mb10"> <el-form-item label="å ³é®å"> <el-input v-model="queryParamsWmsRbLineRunMode.searchKey" clearable="" placeholder="BZ01å¤ççæ¿ä»¶,BZ01å¤ççæ¹æ¬¡å·,BZ01å¤çç订åå·,BZ01å¤ççå è£ å·,è¿è¡æ¨¡å¼åç§°,å建人,ä¿®æ¹äºº,ä¸ä¸æ¬¡ç åæ¿ä»¶"/> <el-input v-model="queryParamsWmsRbLineRunMode.searchKey" clearable="" placeholder="BZ01å¤ççæ¿ä»¶,BZ01å¤ççæ¹æ¬¡å·,BZ01å¤çç订åå·,BZ01å¤ççå è£ å·,å建人,ä¿®æ¹äºº"/> </el-form-item> </el-col> @@ -39,24 +39,6 @@ <el-option v-for="(item,index) in getEnumLineRunModeData_Index" :key="index" :value="item.value" :label="`${item.describe}`" /> </el-select> </el-form-item> </el-col> <el-col :xs="24" :sm="12" :md="12" :lg="8" :xl="4" class="mb10" v-if="showAdvanceQueryUIWmsRbLineRunMode"> <el-form-item label="è¿è¡æ¨¡å¼åç§°"> <el-input v-model="queryParamsWmsRbLineRunMode.lineRunModeName" clearable="" placeholder="请è¾å ¥è¿è¡æ¨¡å¼åç§°"/> </el-form-item> </el-col> <el-col :xs="24" :sm="12" :md="12" :lg="8" :xl="4" class="mb10" v-if="showAdvanceQueryUIWmsRbLineRunMode"> <el-form-item label="ä¸ä¸æ¬¡ç åæ¿ä»¶"> <el-input v-model="queryParamsWmsRbLineRunMode.palletizingUPI" clearable="" placeholder="请è¾å ¥ä¸ä¸æ¬¡ç åæ¿ä»¶"/> </el-form-item> </el-col> <el-col :xs="24" :sm="12" :md="12" :lg="8" :xl="4" class="mb10" v-if="showAdvanceQueryUIWmsRbLineRunMode"> <el-form-item label="ä¸ä¸æ¬¡ç åç«ç¹"> <el-input-number v-model="queryParamsWmsRbLineRunMode.palletizingStation" clearable="" placeholder="请è¾å ¥ä¸ä¸æ¬¡ç åç«ç¹"/> </el-form-item> </el-col> @@ -95,13 +77,10 @@ <el-tag>{{ getEnumDesc(scope.row.lineRunMode, getEnumLineRunModeData_Index)}}</el-tag> </template> </el-table-column> <el-table-column prop="lineRunModeName" label="è¿è¡æ¨¡å¼åç§°" show-overflow-tooltip="" /> <el-table-column prop="createTime" label="å建æ¶é´" width="130" :formatter="formatDate_T_Time" show-overflow-tooltip="" /> <el-table-column prop="updateTime" label="ä¿®æ¹æ¶é´" width="130" :formatter="formatDate_T_Time" show-overflow-tooltip="" /> <el-table-column prop="createUserName" label="å建人" show-overflow-tooltip="" /> <el-table-column prop="updateUserName" label="ä¿®æ¹äºº" show-overflow-tooltip="" /> <el-table-column prop="palletizingUPI" label="ä¸ä¸æ¬¡ç åæ¿ä»¶" show-overflow-tooltip="" /> <el-table-column prop="palletizingStation" label="ä¸ä¸æ¬¡ç åç«ç¹" show-overflow-tooltip="" /> <el-table-column label="æä½" width="140" align="center" fixed="right" show-overflow-tooltip="" v-if="auth('wmsRbLineRunMode:update') || auth('wmsRbLineRunMode:delete')"> <template #default="scope"> <el-button icon="ele-Edit" size="small" text="" type="primary" @click="openEditWmsRbLineRunMode(scope.row)" v-auth="'wmsRbLineRunMode:update'"> ç¼è¾ </el-button> LA24030_LuLiPackageLine_Wms/Admin.NET.Application/Entity/WmsTask/WmsRbLineRunMode.cs
@@ -54,7 +54,7 @@ public string? LineRunModeName { get; set; } /// <summary> /// ä¸ä¸æ¬¡ç åç¼å· /// ä¸ä¸æ¬¡ç åå è£ å· /// </summary> [SugarColumn(ColumnName = "PalletizingUPI", ColumnDescription = "ä¸ä¸æ¬¡ç åå è£ å·", Length = 50)] public string? PalletizingUPI { get; set; } LA24030_LuLiPackageLine_Wms/Admin.NET.Application/Service/WmsOrder/WmsRbLineRunMode/Dto/WmsRbLineRunModeInput.cs
@@ -120,21 +120,6 @@ /// </summary> public Admin.NET.Application.RbRunModeEnum? LineRunMode { get; set; } /// <summary> /// è¿è¡æ¨¡å¼åç§° /// </summary> public string? LineRunModeName { get; set; } /// <summary> /// ä¸ä¸æ¬¡ç åæ¿ä»¶ /// </summary> public string? PalletizingUPI { get; set; } /// <summary> /// ä¸ä¸æ¬¡ç åç«ç¹ /// </summary> public int? PalletizingStation { get; set; } } /// <summary> LA24030_LuLiPackageLine_Wms/Admin.NET.Application/Service/WmsOrder/WmsRbLineRunMode/WmsRbLineRunModeService.cs
@@ -130,19 +130,14 @@ || u.PlanNo.Contains(input.SearchKey.Trim()) || u.OrderId.Contains(input.SearchKey.Trim()) || u.PackageCode.Contains(input.SearchKey.Trim()) || u.LineRunModeName.Contains(input.SearchKey.Trim()) || u.CreateUserName.Contains(input.SearchKey.Trim()) || u.UpdateUserName.Contains(input.SearchKey.Trim()) || u.PalletizingUPI.Contains(input.SearchKey.Trim()) ) .WhereIF(!string.IsNullOrWhiteSpace(input.UPI), u => u.UPI.Contains(input.UPI.Trim())) .WhereIF(!string.IsNullOrWhiteSpace(input.PlanNo), u => u.PlanNo.Contains(input.PlanNo.Trim())) .WhereIF(!string.IsNullOrWhiteSpace(input.OrderId), u => u.OrderId.Contains(input.OrderId.Trim())) .WhereIF(!string.IsNullOrWhiteSpace(input.PackageCode), u => u.PackageCode.Contains(input.PackageCode.Trim())) .WhereIF(input.LineRunMode.HasValue, u => u.LineRunMode == input.LineRunMode) .WhereIF(!string.IsNullOrWhiteSpace(input.LineRunModeName), u => u.LineRunModeName.Contains(input.LineRunModeName.Trim())) .WhereIF(!string.IsNullOrWhiteSpace(input.PalletizingUPI), u => u.PalletizingUPI.Contains(input.PalletizingUPI.Trim())) .WhereIF(input.PalletizingStation>0, u => u.PalletizingStation == input.PalletizingStation) .Select<WmsRbLineRunModeOutput>(); return query; }