修改入库代码

This commit is contained in:
zhangzhuo 2025-04-11 13:26:04 +08:00
parent 6f7f0faf54
commit 5692f92c99
2 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,7 @@
<TextBlock Grid.Column="0" Grid.Row="3" VerticalAlignment="Center" Text="当前控制号" /> <TextBlock Grid.Column="0" Grid.Row="3" VerticalAlignment="Center" Text="当前控制号" />
<StackPanel Grid.Column="1" Grid.Row="3" Orientation="Horizontal"> <StackPanel Grid.Column="1" Grid.Row="3" Orientation="Horizontal">
<TextBox Width="300" Text="{Binding ViewModel.SelectedVariety.LastNo,Mode=TwoWay}" /> <TextBox Width="300" Text="{Binding ViewModel.SelectedVariety.LastNo,Mode=TwoWay}" />
<Button Margin="10,0,0,0" Classes="Outlined Accent" Content="修改" /> <Button Margin="10,0,0,0" Classes="Outlined Accent" Content="修改" Command="{Binding ViewModel.ChangeVarietyLastNoCommand }" />
</StackPanel> </StackPanel>
<TextBlock Grid.Column="0" Grid.Row="4" VerticalAlignment="Center" Text="产品编码" /> <TextBlock Grid.Column="0" Grid.Row="4" VerticalAlignment="Center" Text="产品编码" />
<TextBox IsEnabled="False" Grid.Column="1" Grid.Row="4" <TextBox IsEnabled="False" Grid.Column="1" Grid.Row="4"
@ -51,7 +51,7 @@
VerticalAlignment="Center" VerticalAlignment="Center"
HorizontalAlignment="Stretch" HorizontalAlignment="Stretch"
Text="{Binding ViewModel.SelectedVariety.TotalCount}" /> Text="{Binding ViewModel.SelectedVariety.TotalCount}" />
<Button Grid.Row="8" Grid.Column="1" Content="切换" Classes="Outlined"/> <Button Grid.Row="8" Grid.Column="1" Content="切换" Command="{Binding ViewModel.ChangeVarietyCommand }" Classes="Outlined"/>
</Grid> </Grid>
</suki:GroupBox> </suki:GroupBox>
</suki:GlassCard> </suki:GlassCard>

View File

@ -208,7 +208,7 @@ public class HyosungRuntime(
//标志下线已完成 //标志下线已完成
await hyosungPlcService.LeaveCompletedAsync(); await hyosungPlcService.LeaveCompletedAsync();
var tray = await trayService.GetByCode(info.TrayCode); var tray = await trayService.GetByCode(info.TrayCode);
await hyosungWmsService.AddPdaPutawayRecord(tray.Barcode); //await hyosungWmsService.AddPdaPutawayRecord(tray.Barcode);
logger.LogInformation($"plc leaving production line success"); logger.LogInformation($"plc leaving production line success");
} }
catch (Exception e) catch (Exception e)
@ -413,7 +413,7 @@ public class HyosungRuntime(
//var version = await hyosungWmsService.GetItemInfoByItemCode(variety.Code); //var version = await hyosungWmsService.GetItemInfoByItemCode(variety.Code);
// await varietyService.SetLastNo(variety.Id, tray.ControlNo.Value); // await varietyService.SetLastNo(variety.Id, tray.ControlNo.Value);
//await hyosungWmsService.UpdateControlNo(variety, tray.ControlNo.Value); //await hyosungWmsService.UpdateControlNo(variety, tray.ControlNo.Value);
await hyosungWmsService.AddLabelResult(new LabelResult(tray, variety)); // await hyosungWmsService.AddLabelResult(new LabelResult(tray, variety));
} }
logger.LogInformation($"plc request print label success"); logger.LogInformation($"plc request print label success");