| | |
| | | using CMS.Plugin.HIAWms.Domain.Shared.Enums; |
| | | using CmsQueryExtensions; |
| | | using Volo.Abp.Application.Dtos; |
| | | using Volo.Abp.Domain.Entities; |
| | | |
| | |
| | | /// </summary> |
| | | //è¡¨ç¤ºæ¯ é«çº§æ¥è¯¢èå´æ¥è¯¢ç¹æ§ |
| | | [HighSearchRangeAttribute] |
| | | public string CreationTime { get; set; } |
| | | public List<string> CreationTime { get; set; } |
| | | |
| | | |
| | | /// <summary> |
| | |
| | | /// <summary> |
| | | /// 设å¤ç±»å |
| | | /// </summary> |
| | | public int Dodevicetype { get; set; } |
| | | public DodevicetypeEnum Dodevicetype { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 设å¤ä»»å¡ç¶æ |
| | | /// </summary> |
| | | public int TaskDodeviceStatus { get; set; } |
| | | public TaskDodeviceStatus TaskDodeviceStatus { get; set; } |
| | | |
| | | /// <summary> |
| | | /// WCSæ¯å¦å¯ä»¥è¯»å |
| | |
| | | using CMS.Plugin.HIAWms.Domain.Shared.Enums; |
| | | using CmsQueryExtensions; |
| | | using Volo.Abp.Application.Dtos; |
| | | using Volo.Abp.Data; |
| | | using Volo.Abp.Domain.Entities; |
| | | |
| | | |
| | | namespace CMS.Plugin.HIAWms.Application.Contracts.Dtos.WmsTask; |
| | | |
| | | using CMS.Plugin.HIAWms.Domain.Shared.Enums; |
| | | using CmsQueryExtensions; |
| | | using Volo.Abp.Application.Dtos; |
| | | using Volo.Abp.Data; |
| | | using Volo.Abp.Domain.Entities; |
| | | |
| | | |
| | | namespace CMS.Plugin.HIAWms.Application.Contracts.Dtos.WmsTask; |
| | | |
| | | /// <summary> |
| | | /// Wmsä»»å¡ç®¡çæ°æ®åæ°å¯¹è±¡ |
| | | /// </summary> |
| | | public class WmsTaskDto : ExtensibleEntityDto<Guid>, IHasConcurrencyStamp |
| | | { |
| | | /// <summary> |
| | | /// ä»»å¡å· |
| | | /// </summary> |
| | | public string TaskNo { get; set; } |
| | | public class WmsTaskDto: ExtensibleEntityDto<Guid>, IHasConcurrencyStamp |
| | | { |
| | | /// <summary> |
| | | /// ä»»å¡å· |
| | | /// </summary> |
| | | public string TaskNo { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä»»å¡ç±»å |
| | | /// </summary> |
| | | public TaskTypeEnum TaskType { get; set; } |
| | | /// <summary> |
| | | /// ä»»å¡ç±»å |
| | | /// </summary> |
| | | public TaskTypeEnum TaskType { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä»»å¡ç±»å |
| | | /// </summary> |
| | | public string TaskTypeDesc |
| | | { |
| | | get |
| | | { |
| | | return GetEnumDescriptionUtil.GetEnumDescription(TaskType); |
| | | } |
| | | } |
| | | /// <summary> |
| | | /// ä»»å¡ç级 |
| | | /// </summary> |
| | | public int TaskLevel { get; set; } |
| | | /// <summary> |
| | | /// ä»»å¡ç±»å |
| | | /// </summary> |
| | | public string TaskTypeDesc |
| | | { |
| | | get |
| | | { |
| | | return GetEnumDescriptionUtil.GetEnumDescription(TaskType); |
| | | } |
| | | } |
| | | /// <summary> |
| | | /// ä»»å¡ç级 |
| | | /// </summary> |
| | | public int TaskLevel { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä»»å¡ç¶æ |
| | | /// </summary> |
| | | public WmsTaskStatus TaskStatus { get; set; } |
| | | /// <summary> |
| | | /// ä»»å¡ç¶æ |
| | | /// </summary> |
| | | public WmsTaskStatus TaskStatus { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä»»å¡ç¶æ |
| | | /// </summary> |
| | | public string TaskStatusDesc |
| | | { |
| | | get |
| | | { |
| | | return GetEnumDescriptionUtil.GetEnumDescription(TaskStatus); |
| | | } |
| | | } |
| | | /// <summary> |
| | | /// æçç¼å· |
| | | /// </summary> |
| | | public string? ContainerNo { get; set; } |
| | | /// <summary> |
| | | /// ä»»å¡ç¶æ |
| | | /// </summary> |
| | | public string TaskStatusDesc |
| | | { |
| | | get |
| | | { |
| | | return GetEnumDescriptionUtil.GetEnumDescription(TaskStatus); |
| | | } |
| | | } |
| | | /// <summary> |
| | | /// æçç¼å· |
| | | /// </summary> |
| | | public string? ContainerNo { get; set; } |
| | | |
| | | /// <summary> |
| | | /// èµ·å§åºä½ |
| | | /// </summary> |
| | | public string? SourcePlace { get; set; } |
| | | /// <summary> |
| | | /// èµ·å§åºä½ |
| | | /// </summary> |
| | | public string? SourcePlace { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç®æ åºä½ |
| | | /// </summary> |
| | | public string? ToPlace { get; set; } |
| | | /// <summary> |
| | | /// ç®æ åºä½ |
| | | /// </summary> |
| | | public string? ToPlace { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å··é |
| | | /// </summary> |
| | | public int? Aisle { get; set; } |
| | | /// <summary> |
| | | /// å··é |
| | | /// </summary> |
| | | public int? Aisle { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å åæºID |
| | | /// </summary> |
| | | public int? DodeviceId { get; set; } |
| | | /// <summary> |
| | | /// å åæºID |
| | | /// </summary> |
| | | public int? DodeviceId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 设å¤ç±»å |
| | | /// </summary> |
| | | public int Dodevicetype { get; set; } |
| | | /// <summary> |
| | | /// 设å¤ç±»å |
| | | /// </summary> |
| | | public int Dodevicetype { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 设å¤ä»»å¡ç¶æ |
| | | /// </summary> |
| | | public int TaskDodeviceStatus { get; set; } |
| | | /// <summary> |
| | | /// 设å¤ä»»å¡ç¶æ |
| | | /// </summary> |
| | | public int TaskDodeviceStatus { get; set; } |
| | | |
| | | /// <summary> |
| | | /// WCSæ¯å¦å¯ä»¥è¯»å |
| | | /// </summary> |
| | | public bool IsRead { get; set; } |
| | | /// <summary> |
| | | /// WCSæ¯å¦å¯ä»¥è¯»å |
| | | /// </summary> |
| | | public bool IsRead { get; set; } |
| | | |
| | | /// <summary> |
| | | /// åä»»å¡ç±»å |
| | | /// </summary> |
| | | public SonTaskTypeEnum? SonTaskType { get; set; } |
| | | /// <summary> |
| | | /// åä»»å¡ç±»å |
| | | /// </summary> |
| | | public SonTaskTypeEnum? SonTaskType { get; set; } |
| | | |
| | | /// <summary> |
| | | /// åä»»å¡ç±»å |
| | | /// </summary> |
| | | public string? SonTaskTypeDesc |
| | | { |
| | | get |
| | | { |
| | | return GetEnumDescriptionUtil.GetEnumDescription(SonTaskType); |
| | | } |
| | | } |
| | | /// <summary> |
| | | /// æ¥æºåæ®å· |
| | | /// </summary> |
| | | public string? SourceOrderNo { get; set; } |
| | | /// <summary> |
| | | /// åä»»å¡ç±»å |
| | | /// </summary> |
| | | public string? SonTaskTypeDesc |
| | | { |
| | | get |
| | | { |
| | | return GetEnumDescriptionUtil.GetEnumDescription(SonTaskType); |
| | | } |
| | | } |
| | | /// <summary> |
| | | /// æ¥æºåæ®å· |
| | | /// </summary> |
| | | public string? SourceOrderNo { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä¸ä¸ªä»»å¡æ¯å¦çææå |
| | | /// </summary> |
| | | public int? IsNextTask { get; set; } |
| | | /// <summary> |
| | | /// ä¸ä¸ªä»»å¡æ¯å¦çææå |
| | | /// </summary> |
| | | public int? IsNextTask { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å¯ååé1 |
| | | /// </summary> |
| | | public string? MutableParam1 { get; set; } |
| | | /// <summary> |
| | | /// å¯ååé1 |
| | | /// </summary> |
| | | public string? MutableParam1 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å¯ååé2 |
| | | /// </summary> |
| | | public string? MutableParam2 { get; set; } |
| | | /// <summary> |
| | | /// å¯ååé2 |
| | | /// </summary> |
| | | public string? MutableParam2 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å¯ååé3 |
| | | /// </summary> |
| | | public string? MutableParam3 { get; set; } |
| | | /// <summary> |
| | | /// å¯ååé3 |
| | | /// </summary> |
| | | public string? MutableParam3 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æåº |
| | | /// </summary> |
| | | public int Sort { get; set; } |
| | | /// <summary> |
| | | /// æåº |
| | | /// </summary> |
| | | public int Sort { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ¯å¦ç¦ç¨ |
| | | /// </summary> |
| | | public bool? IsDisabled { get; set; } |
| | | /// <summary> |
| | | /// æ¯å¦ç¦ç¨ |
| | | /// </summary> |
| | | public bool? IsDisabled { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public ExtraPropertyDictionary? ExtraProperties { get; set; } |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public ExtraPropertyDictionary? ExtraProperties { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public string? ConcurrencyStamp { get; set; } |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public string? ConcurrencyStamp { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public DateTime CreationTime { get; set; } |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public DateTime CreationTime { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public string? CreatorId { get; set; } |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public string? CreatorId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public DateTime? LastModificationTime { get; set; } |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public DateTime? LastModificationTime { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public string? LastModifierId { get; set; } |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public string? LastModifierId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public bool IsDeleted { get; set; } |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public bool IsDeleted { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public string? DeleterId { get; set; } |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public string? DeleterId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public DateTime? DeletionTime { get; set; } |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public DateTime? DeletionTime { get; set; } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// Gets the export data. |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public Dictionary<string, object> GetExportData() |
| | | { |
| | | var exportData = new Dictionary<string, object>(); |
| | | foreach (var property in this.GetType().GetProperties()) |
| | | { |
| | | exportData.Add(property.Name, property.GetValue(this)); |
| | | } |
| | | |
| | | return exportData; |
| | | } |
| | | } |
| | | public Dictionary<string, object> GetExportData() |
| | | { |
| | | var exportData = new Dictionary<string, object>(); |
| | | foreach (var property in this.GetType().GetProperties()) |
| | | { |
| | | exportData.Add(property.Name, property.GetValue(this)); |
| | | } |
| | | |
| | | return exportData; |
| | | } |
| | | } |
| | |
| | | /// 设å¤ç±»å |
| | | /// </summary> |
| | | [ExcelColumn(Name = "设å¤ç±»å", Width = 25)] |
| | | public int Dodevicetype { get; set; } |
| | | public DodevicetypeEnum Dodevicetype { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 设å¤ä»»å¡ç¶æ |
| | | /// </summary> |
| | | [ExcelColumn(Name = "设å¤ä»»å¡ç¶æ", Width = 25)] |
| | | public int TaskDodeviceStatus { get; set; } |
| | | public TaskDodeviceStatus TaskDodeviceStatus { get; set; } |
| | | |
| | | /// <summary> |
| | | /// WCSæ¯å¦å¯ä»¥è¯»å |
| | |
| | | <ItemGroup> |
| | | <Compile Remove="Util\EnumHelper.cs" /> |
| | | <Compile Remove="Util\ExportHelper.cs" /> |
| | | <Compile Remove="Util\GetEnumDescriptionUtil.cs" /> |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | | <PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" /> |
| | | <PackageReference Include="Microsoft.Extensions.FileProviders.Embedded" Version="6.0.20" /> |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | | <Folder Include="Util\" /> |
| | | </ItemGroup> |
| | | |
| | | </Project> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | |
| | | namespace CMS.Plugin.HIAWms.Domain.Shared.Enums |
| | | { |
| | | /// <summary> |
| | | ///设å¤ç±»å. |
| | | /// </summary> |
| | | [Description("设å¤ç±»å")] |
| | | public enum DodevicetypeEnum |
| | | { |
| | | /// <summary> |
| | | /// å åæº. |
| | | /// </summary> |
| | | [Description("å åæº")] |
| | | Srm = 1, |
| | | |
| | | /// <summary> |
| | | /// è¾é线. |
| | | /// </summary> |
| | | [Description("è¾é线")] |
| | | Line, |
| | | |
| | | /// <summary> |
| | | /// AGV. |
| | | /// </summary> |
| | | [Description("AGV")] |
| | | Agv, |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | |
| | | namespace CMS.Plugin.HIAWms.Domain.Shared.Enums |
| | | { |
| | | /// <summary> |
| | | /// è®¾å¤æ§è¡ç¶æ. |
| | | /// </summary> |
| | | [Description("è®¾å¤æ§è¡ç¶æ")] |
| | | public enum TaskDodeviceStatus |
| | | { |
| | | /// <summary> |
| | | ///å åæºæªå¼å§ |
| | | /// </summary> |
| | | [Description("å åæºæªå¼å§")] |
| | | SrmNoStart = 1, |
| | | |
| | | /// <summary> |
| | | /// å åæºæ§è¡ä¸ |
| | | /// </summary> |
| | | [Description("å åæºæ§è¡ä¸")] |
| | | SrmProgress = 2, |
| | | |
| | | /// <summary> |
| | | /// å åæºå®æ |
| | | /// </summary> |
| | | [Description("å åæºå®æ")] |
| | | SrmFinish = 3, |
| | | |
| | | /// <summary> |
| | | ///è¾é线æªå¼å§ |
| | | /// </summary> |
| | | [Description("è¾é线æªå¼å§")] |
| | | LineNoStart = 4, |
| | | |
| | | /// <summary> |
| | | /// è¾é线æ§è¡ä¸ |
| | | /// </summary> |
| | | [Description("å åæºæ§è¡ä¸")] |
| | | LineProgress = 5, |
| | | |
| | | /// <summary> |
| | | /// è¾éçº¿å®æ |
| | | /// </summary> |
| | | [Description("å åæºå®æ")] |
| | | LineFinish = 6, |
| | | |
| | | |
| | | /// <summary> |
| | | ///Agvæªå¼å§ |
| | | /// </summary> |
| | | [Description("Agvæªå¼å§")] |
| | | AgvNoStart = 7, |
| | | |
| | | /// <summary> |
| | | /// Agvæ§è¡ä¸ |
| | | /// </summary> |
| | | [Description("å åæºæ§è¡ä¸")] |
| | | AgvProgress = 8, |
| | | |
| | | /// <summary> |
| | | /// Agv宿 |
| | | /// </summary> |
| | | [Description("å åæºå®æ")] |
| | | AgvFinish = 9, |
| | | } |
| | | } |
| | |
| | | /// <summary> |
| | | /// 设å¤ç±»å |
| | | /// </summary> |
| | | public int Dodevicetype { get; set; } |
| | | public DodevicetypeEnum Dodevicetype { get; set; } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 设å¤ä»»å¡ç¶æ |
| | | /// </summary> |
| | | public int TaskDodeviceStatus { get; set; } |
| | | public TaskDodeviceStatus TaskDodeviceStatus { get; set; } |
| | | |
| | | /// <summary> |
| | | /// WCSæ¯å¦å¯ä»¥è¯»å |
| | |
| | | /// å¯ååé3 |
| | | /// </summary> |
| | | public string? MutableParam3 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æåº |
| | | /// </summary> |
| | |
| | | updateCheckData() |
| | | } else { |
| | | formData.value = { |
| | | isLock: 2, |
| | | emptyContainer: 2, |
| | | isLock: 0, |
| | | emptyContainer: 0, |
| | | inStockTime: new Date(), |
| | | } |
| | | updateCheckData() |
| | |
| | | areaCode: areaList[0], // æå¨åºåº |
| | | aisle: 1, // å··é |
| | | layerNo: 1, // å± |
| | | islock: 2, // æ¯å¦éå® |
| | | emptyContainer: 2, // æ¯å¦ç©ºæ |
| | | islock: 0, // æ¯å¦éå® |
| | | emptyContainer: 0, // æ¯å¦ç©ºæ |
| | | } |
| | | updateCheckData() |
| | | } |
| | |
| | | ></el-input-number> |
| | | ) |
| | | } |
| | | const datePicker = (attrs) => { |
| | | return ( |
| | | <el-date-picker |
| | | type="datetime" |
| | | format="YYYY-MM-DD" |
| | | {...attrs} |
| | | ></el-date-picker> |
| | | ) |
| | | } |
| | | |
| | | const dateTimePicker = (attrs) => { |
| | | return ( |
| | | <el-date-picker |
| | | type="datetime" |
| | | format="YYYY-MM-DD HH:mm:ss" |
| | | {...attrs} |
| | | ></el-date-picker> |
| | | ) |
| | | } |
| | | |
| | | const visible = computed({ |
| | | get() { |
| | |
| | | ...attrs, |
| | | }) |
| | | }, |
| | | width: '100%', |
| | | step: 1, |
| | | precision: 0, |
| | | //disabled: disabled, |
| | |
| | | ...attrs, |
| | | }) |
| | | }, |
| | | width: '100%', |
| | | step: 1, |
| | | precision: 0, |
| | | //disabled: disabled, |
| | |
| | | ...attrs, |
| | | }) |
| | | }, |
| | | width: '100%', |
| | | step: 1, |
| | | precision: 0, |
| | | //disabled: disabled, |
| | |
| | | ...attrs, |
| | | }) |
| | | }, |
| | | width: '100%', |
| | | step: 1, |
| | | precision: 0, |
| | | //disabled: disabled, |
| | |
| | | ...attrs, |
| | | }) |
| | | }, |
| | | width: '100%', |
| | | step: 1, |
| | | precision: 0, |
| | | //disabled: disabled, |
| | |
| | | ...attrs, |
| | | }) |
| | | }, |
| | | width: '100%', |
| | | step: 1, |
| | | precision: 0, |
| | | //disabled: disabled, |
| | |
| | | //disabled: disabled, |
| | | placeholder: '请è¾å
¥å¯ååé3', |
| | | }, |
| | | |
| | | { |
| | | label: 'æ¯å¦ç¦ç¨', |
| | | prop: 'isDisabled', |
| | | el: 'select', |
| | | //disabled: disabled, |
| | | placeholder: '请è¾å
¥æ¯å¦ç¦ç¨', |
| | | options: [ |
| | | { label: 'æ¯', value: 'true' }, |
| | | { label: 'å¦', value: 'false' }, |
| | | ], |
| | | }, |
| | | { |
| | | label: 'å建æ¶é´', |
| | | prop: 'operateTime', |
| | | prop: 'creationTime', |
| | | el: (props: any, { attrs }: SetupContext) => { |
| | | return h(datePickerRange, { |
| | | return h(dateTimePickerRange, { |
| | | ...props, |
| | | clearable: true, |
| | | ...attrs, |
| | | }) |
| | | }, |
| | | step: 1, |
| | | precision: 0, |
| | | width: '100%', |
| | | //disabled: disabled, |
| | | placeholder: '请è¾å
¥ä¸ä¸ªä»»å¡æ¯å¦çææå', |
| | | placeholder: '请è¾å
¥', |
| | | }, |
| | | ]) |
| | | /** |
| | |
| | | return check |
| | | } |
| | | const commonGetFormData = () => { |
| | | console.log(formData.value.operateTime) |
| | | const data = { |
| | | TaskNo: formData.value.TaskNo, |
| | | TaskType: formData.value.TaskType, |
| | | TaskLevel: formData.value.TaskLevel, |
| | | TaskStatus: formData.value.TaskStatus, |
| | | ContainerNo: formData.value.ContainerNo, |
| | | SourcePlace: formData.value.SourcePlace, |
| | | ToPlace: formData.value.ToPlace, |
| | | Aisle: formData.value.Aisle, |
| | | DodeviceId: formData.value.DodeviceId, |
| | | Dodevicetype: formData.value.Dodevicetype, |
| | | TaskDodeviceStatus: formData.value.TaskDodeviceStatus, |
| | | IsRead: formData.value.IsRead, |
| | | SonTaskType: formData.value.SonTaskType, |
| | | SourceOrderNo: formData.value.SourceOrderNo, |
| | | IsNextTask: formData.value.IsNextTask, |
| | | MutableParam1: formData.value.MutableParam1, |
| | | MutableParam2: formData.value.MutableParam2, |
| | | MutableParam3: formData.value.MutableParam3, |
| | | creationTime: formData.value.operateTime, |
| | | taskNo: formData.value.taskNo || '', |
| | | taskType: formData.value.taskType || '', |
| | | taskLevel: formData.value.taskLevel || '', |
| | | taskStatus: formData.value.taskStatus || '', |
| | | containerNo: formData.value.containerNo || '', |
| | | sourcePlace: formData.value.sourcePlace || '', |
| | | toPlace: formData.value.toPlace || '', |
| | | aisle: formData.value.aisle || '', |
| | | dodeviceId: formData.value.dodeviceId || '', |
| | | dodevicetype: formData.value.dodevicetype || '', |
| | | taskDodeviceStatus: formData.value.taskDodeviceStatus || '', |
| | | isRead: formData.value.isRead || '', |
| | | sonTaskType: formData.value.sonTaskType || '', |
| | | sourceOrderNo: formData.value.sourceOrderNo || '', |
| | | isNextTask: formData.value.isNextTask || '', |
| | | mutableParam1: formData.value.mutableParam1 || '', |
| | | mutableParam2: formData.value.mutableParam2 || '', |
| | | mutableParam3: formData.value.mutableParam3 || '', |
| | | isDisabled: formData.value.isDisabled || '', |
| | | creationTime: formData.value.creationTime || '', |
| | | } |
| | | return data |
| | | } |
| | |
| | | formData.value.MutableParam1 = '' |
| | | formData.value.MutableParam2 = '' |
| | | formData.value.MutableParam3 = '' |
| | | formData.value.operateTime = [] |
| | | //åç¶ç»ä»¶åéèªå®ä¹äºä»¶ |
| | | ctx.emit('restQuery') |
| | | } |
| | |
| | | export const columns = [ |
| | | { |
| | | type: 'seq', |
| | | width: 60, |
| | | title: 'åºå·', |
| | | }, |
| | | { |
| | | field: 'taskNo', |
| | | title: 'ä»»å¡å·', |
| | | }, |
| | | { |
| | | field: 'taskTypeDesc', |
| | | title: 'ä»»å¡ç±»å', |
| | | }, |
| | | { |
| | | field: 'taskLevel', |
| | | title: 'ä»»å¡ç级', |
| | | }, |
| | | { |
| | | field: 'taskStatusDesc', |
| | | title: 'ä»»å¡ç¶æ', |
| | | }, |
| | | { |
| | | field: 'containerNo', |
| | | title: 'æçç¼å·', |
| | | }, |
| | | { |
| | | field: 'sourcePlace', |
| | | title: 'èµ·å§åºä½', |
| | | }, |
| | | { |
| | | field: 'toPlace', |
| | | title: 'ç®æ åºä½', |
| | | }, |
| | | { |
| | | field: 'aisle', |
| | | title: 'å··é', |
| | | }, |
| | | { |
| | | field: 'dodeviceId', |
| | | title: 'å åæºID', |
| | | }, |
| | | { |
| | | field: 'dodevicetype', |
| | | title: '设å¤ç±»å', |
| | | }, |
| | | { |
| | | field: 'taskDodeviceStatus', |
| | | title: '设å¤ä»»å¡ç¶æ', |
| | | }, |
| | | { |
| | | field: 'isRead', |
| | | title: 'WCSæ¯å¦å¯ä»¥è¯»å', |
| | | }, |
| | | { |
| | | field: 'sonTaskTypeDesc', |
| | | title: 'åä»»å¡ç±»å', |
| | | }, |
| | | { |
| | | field: 'sourceOrderNo', |
| | | title: 'æ¥æºåæ®å·', |
| | | }, |
| | | { |
| | | field: 'isNextTask', |
| | | title: 'ä¸ä¸ªä»»å¡æ¯å¦çææå', |
| | | }, |
| | | { |
| | | field: 'mutableParam1', |
| | | title: 'å¯ååé1', |
| | | }, |
| | | { |
| | | field: 'mutableParam2', |
| | | title: 'å¯ååé2', |
| | | }, |
| | | { |
| | | field: 'mutableParam3', |
| | | title: 'å¯ååé3', |
| | | }, |
| | | { |
| | | field: 'sort', |
| | | title: 'æåº', |
| | | }, |
| | | { |
| | | field: 'creationTime', |
| | | title: '', |
| | | }, |
| | | { |
| | | field: 'deletionTime', |
| | | title: '', |
| | | }, |
| | | ] |
| | | export const columns = [ |
| | | { |
| | | type: 'seq', |
| | | width: 60, |
| | | title: 'åºå·', |
| | | }, |
| | | { |
| | | field: 'taskNo', |
| | | title: 'ä»»å¡å·', |
| | | }, |
| | | { |
| | | field: 'taskTypeDesc', |
| | | title: 'ä»»å¡ç±»å', |
| | | }, |
| | | { |
| | | field: 'taskStatusDesc', |
| | | title: 'ä»»å¡ç¶æ', |
| | | }, |
| | | { |
| | | field: 'containerNo', |
| | | title: 'æçç¼å·', |
| | | }, |
| | | { |
| | | field: 'sourcePlace', |
| | | title: 'èµ·å§åºä½', |
| | | }, |
| | | { |
| | | field: 'toPlace', |
| | | title: 'ç®æ åºä½', |
| | | }, |
| | | { |
| | | field: 'aisle', |
| | | title: 'å··é', |
| | | }, |
| | | // { |
| | | // field: 'dodeviceId', |
| | | // title: 'å åæºID', |
| | | // }, |
| | | { |
| | | field: 'dodevicetype', |
| | | title: '设å¤ç±»å', |
| | | }, |
| | | { |
| | | field: 'taskDodeviceStatus', |
| | | title: '设å¤ç¶æ', |
| | | }, |
| | | { |
| | | field: 'isRead', |
| | | title: 'WCSå¯è¯»å', |
| | | formatter: ({ cellValue }) => 12222, |
| | | }, |
| | | { |
| | | field: 'sonTaskTypeDesc', |
| | | title: 'åä»»å¡ç±»å', |
| | | }, |
| | | { |
| | | field: 'sourceOrderNo', |
| | | title: 'æ¥æºåå·', |
| | | }, |
| | | // { |
| | | // field: 'isNextTask', |
| | | // title: 'ä¸ä¸ªä»»å¡æ¯å¦çææå', |
| | | // }, |
| | | { |
| | | field: 'taskLevel', |
| | | title: 'ä»»å¡ç级', |
| | | }, |
| | | // { |
| | | // field: 'mutableParam1', |
| | | // title: 'å¯ååé1', |
| | | // }, |
| | | // { |
| | | // field: 'mutableParam2', |
| | | // title: 'å¯ååé2', |
| | | // }, |
| | | // { |
| | | // field: 'mutableParam3', |
| | | // title: 'å¯ååé3', |
| | | // }, |
| | | // { |
| | | // field: 'sort', |
| | | // title: 'æåº', |
| | | // }, |
| | | { |
| | | field: 'creationTime', |
| | | title: 'å建æ¶é´', |
| | | }, |
| | | ] |
| | |
| | | import { computed, defineComponent, onMounted, reactive, ref } from 'vue' |
| | | import type { Ref } from 'vue' |
| | | import BaseTable from '@/components/Table/Table' |
| | | import styles from './WmsTask.module.scss' |
| | | import { useWmsTask } from '../../../Controllers/WmsTask' |
| | | import IconButton from '@/components/IconButton/IconButton' |
| | | import WmsTaskDrawer from '../Dialog/WmsTaskDrawer/WmsTaskDrawer' |
| | | import WmsTaskQueryDrawer from '../Dialog/WmsTaskQueryDrawer/WmsTaskQueryDrawer' |
| | | import Search from '@/components/Search/Search' |
| | | import { columns } from './Config' |
| | | import TdButton from '@/components/TdButton/TdButton' |
| | | import { vPermission } from '@/libs/Permission/Permission' |
| | | import { |
| | | getWmsEnumData |
| | | } from '@/widgets/WmsTask/Models/Service/WmsTaskDrawer' |
| | | import { |
| | | ElInput, |
| | | ElSelect, |
| | | ElOption, |
| | | ElDatePicker, |
| | | ElForm, |
| | | ElFormItem, |
| | | } from 'element-plus' |
| | | import { injectModel } from '@/libs/Provider/Provider' |
| | | |
| | | interface RenderTableType { |
| | | url?: string |
| | | dataSource: Ref<any[]> |
| | | isDrag?: boolean |
| | | isChecked?: boolean |
| | | isHidePagination?: boolean |
| | | params?: Record<string, any> |
| | | autoHeight?: boolean |
| | | } |
| | | |
| | | export default defineComponent({ |
| | | name: 'WmsTask', |
| | | directives: { |
| | | permission: vPermission, |
| | | }, |
| | | setup(props, ctx) { |
| | | const { |
| | | dataSource, |
| | | contextMenu, |
| | | dialogConfig, |
| | | dialogConfigForQuery, |
| | | tableRef, |
| | | current, |
| | | search, |
| | | sort, |
| | | headers, |
| | | onError, |
| | | onSearch, |
| | | onRowClick, |
| | | onConfirmWmsTask, |
| | | onCheck, |
| | | onAddWmsTask, |
| | | onAdvancedQuery, |
| | | onExport, |
| | | openDetail, |
| | | onSuccess, |
| | | onBeforeUpload, |
| | | } = useWmsTask(props, ctx) |
| | | |
| | | //å®ä¹é«çº§æ¥è¯¢å¼ç¨ |
| | | const wmsTaskQueryDrawerRef=ref(null); |
| | | // æ°å¢çæ¥è¯¢æ¡ä»¶ |
| | | const queryForm = ref({ |
| | | searchVal: '', |
| | | str_searchFormInputAttrs:[] |
| | | }) |
| | | //å®ä¹æ´ä½æ¨¡ç³æ¥è¯¢çåæ°ç»(注æï¼å¿
须大å°åè·å端çå®ä½ç±»å±æ§åä¸è´ï¼å¦åä¼å¯¼è´å¹é
ä¸å¯¹çé®é¢) |
| | | const _searchFormInputAttrs = ref([ |
| | | 'TaskNo', 'ContainerNo' |
| | | ]); |
| | | const searchFormInputAttrs_Placeholder = ref('请è¾å
¥ä»»å¡ç¼ç /æçç¼ç '); |
| | | |
| | | |
| | | // 卿æä¸¾é项 |
| | | const enumOptions = reactive({ |
| | | taskType: [] as Array<{label: string; value: any }>, |
| | | taskStatus: [] as Array<{label: string; value: any }>, |
| | | sonTaskType: [] as Array<{label: string; value: any }>, |
| | | }) |
| | | |
| | | // è·åæä¸¾æ°æ® |
| | | const fetchEnumData = async () => { |
| | | try { |
| | | const taskTypeEnumData = await getWmsEnumData({ |
| | | EnumName: 'TaskTypeEnum', |
| | | }) |
| | | enumOptions.taskType = taskTypeEnumData.map((item) => ({ |
| | | label: item.description, |
| | | value: item.value, |
| | | })) |
| | | const wmsTaskStatusData = await getWmsEnumData({ |
| | | EnumName: 'WmsTaskStatus', |
| | | }) |
| | | enumOptions.taskStatus = wmsTaskStatusData.map((item) => ({ |
| | | label: item.description, |
| | | value: item.value, |
| | | })) |
| | | const sonTaskTypeEnumData = await getWmsEnumData({ |
| | | EnumName: 'SonTaskTypeEnum', |
| | | }) |
| | | enumOptions.sonTaskType = sonTaskTypeEnumData.map((item) => ({ |
| | | label: item.description, |
| | | value: item.value, |
| | | })) |
| | | |
| | | } catch (error) { |
| | | console.error('è·åæä¸¾æ°æ®å¤±è´¥:', error) |
| | | } |
| | | } |
| | | |
| | | // ç»ä»¶æè½½æ¶è·åæä¸¾æ°æ® |
| | | onMounted(() => { |
| | | fetchEnumData() |
| | | }) |
| | | |
| | | // å®ä¹ååºå¼æ¥è¯¢æ°æ® |
| | | const _curHighQueryData = ref({ searchVal: '',str_searchFormInputAttrs:[] }); |
| | | // æ°ççæ¥è¯¢æ¹æ³ï¼ä¸»é¡µé¢ä¸çæé®ãæ¥è¯¢ãï¼ |
| | | const handleQueryForMain = async () => { |
| | | _curHighQueryData.value.searchVal = queryForm.value.searchVal; |
| | | _curHighQueryData.value.str_searchFormInputAttrs = _searchFormInputAttrs.value; |
| | | tableRef.value.getList(_curHighQueryData.value) |
| | | } |
| | | // æ°ççæ¥è¯¢æ¹æ³ï¼é«çº§æ¥è¯¢ä¸çæé®ãæ¥è¯¢ãï¼ |
| | | const handleQuery = async (extraParams = {}) => { |
| | | let filteredData = commonGetHighQueryForm(extraParams); |
| | | commonSaveCurHighQueryData(filteredData); |
| | | tableRef.value.getList(filteredData) |
| | | } |
| | | // æ°ççæ¥è¯¢éç½® |
| | | const resetQuery = () => { |
| | | queryForm.value.searchVal = '' |
| | | queryForm.value.str_searchFormInputAttrs=_searchFormInputAttrs.value; |
| | | } |
| | | //æ°ççå¯¼åºæ¹æ³ |
| | | const handleExport=()=>{ |
| | | onExport(_curHighQueryData.value); |
| | | } |
| | | // æ°ççæ¥è¯¢å¼¹åºæ¡å
³éæ¹æ³ |
| | | const closeQuery = (extraParams={}) => { |
| | | let filteredData = commonGetHighQueryForm(extraParams); |
| | | console.log("closeQueryæ¹æ³"); |
| | | console.log(filteredData); |
| | | commonSaveCurHighQueryData(filteredData); |
| | | } |
| | | //ä¿åæ¥è¯¢å¼ |
| | | const commonSaveCurHighQueryData=(filteredData={})=>{ |
| | | _curHighQueryData.value = { ..._curHighQueryData.value, ...filteredData }; |
| | | _curHighQueryData.value.searchVal = queryForm.value.searchVal |
| | | _curHighQueryData.value.str_searchFormInputAttrs =_searchFormInputAttrs.value; |
| | | } |
| | | //è·åé«çº§æ¥è¯¢å¼¹åºæ¡çæ¥è¯¢å¼ |
| | | const commonGetHighQueryForm=(extraParams={})=>{ |
| | | // è¿æ»¤æ undefined çå¼ |
| | | let filteredData = Object.assign( |
| | | {}, |
| | | ...Object.entries(extraParams).map(([key, value]) => |
| | | value !== undefined ? { [key]: value } : {} |
| | | ) |
| | | ) |
| | | //ç»åæ¨¡ç³æ¥è¯¢ |
| | | filteredData.searchVal = queryForm.value.searchVal |
| | | filteredData.str_searchFormInputAttrs =_searchFormInputAttrs.value; |
| | | return filteredData; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * @returns è¡¨æ ¼ |
| | | */ |
| | | const RenderBaseTable = (props: RenderTableType) => { |
| | | const { |
| | | url, |
| | | dataSource, |
| | | isDrag, |
| | | isChecked, |
| | | isHidePagination, |
| | | params, |
| | | autoHeight, |
| | | } = props |
| | | |
| | | return ( |
| | | <div |
| | | class={{ |
| | | [styles.wmsTaskList]: true, |
| | | }} |
| | | > |
| | | <BaseTable |
| | | ref={tableRef} |
| | | url={url} |
| | | sortUrlTpl="/api/v1/HIAWms/wmsTask/{id}/adjustsort/{sort}" |
| | | v-model:dataSource={dataSource.value} |
| | | columns={columns} |
| | | contextMenu={contextMenu} |
| | | params={params} |
| | | isDrag={isDrag} |
| | | isChecked={isChecked} |
| | | autoHeight={autoHeight} |
| | | onCheck={onCheck} |
| | | onRowClick={onRowClick} |
| | | isHidePagination={isHidePagination} |
| | | pageSize={20} |
| | | v-slots={{ |
| | | name: ({ row }: any) => { |
| | | return row?.name ? ( |
| | | <TdButton |
| | | onClick={() => openDetail(row)} |
| | | text={<span style="color:#5a84ff">详æ
</span>} |
| | | icon="scale" |
| | | tip={row?.name} |
| | | hover |
| | | > |
| | | {row?.name} |
| | | </TdButton> |
| | | ) : ( |
| | | '-' |
| | | ) |
| | | }, |
| | | }} |
| | | ></BaseTable> |
| | | </div> |
| | | ) |
| | | } |
| | | |
| | | return () => { |
| | | return ( |
| | | <div class={styles.wmsTaskContent}> |
| | | {/* æ·»å /ç¼è¾ */} |
| | | <WmsTaskDrawer |
| | | v-model={dialogConfig.visible} |
| | | title={dialogConfig.title} |
| | | row={current.value} |
| | | sort={sort.value} |
| | | onConfirm={onConfirmWmsTask} |
| | | /> |
| | | {/* é«çº§æ¥è¯¢ */} |
| | | <WmsTaskQueryDrawer |
| | | ref="wmsTaskQueryDrawerRef" |
| | | v-model={dialogConfigForQuery.visible} |
| | | title={dialogConfigForQuery.title} |
| | | row={current.value} |
| | | sort={sort.value} |
| | | onConfirmQuery={handleQuery} |
| | | onRestQuery={resetQuery} |
| | | onClose={closeQuery} |
| | | /> |
| | | |
| | | <div class={styles.headerContent}> |
| | | <div class={styles.header}> |
| | | <IconButton |
| | | v-permission="wmsTask-add" |
| | | icon="add-p" |
| | | onClick={onAddWmsTask} |
| | | type="primary" |
| | | > |
| | | æ·»å |
| | | </IconButton> |
| | | <el-divider direction="vertical" /> |
| | | |
| | | <el-divider direction="vertical" /> |
| | | <el-upload |
| | | v-permission="wmsTask-import" |
| | | name="file" |
| | | accept=".xlsx,.xls,.csv" |
| | | show-file-list={false} |
| | | onError={onError} |
| | | onSuccess={onSuccess} |
| | | before-upload={onBeforeUpload} |
| | | headers={headers.value} |
| | | action="/api/v1/HIAWms/wmsTask/import" |
| | | > |
| | | <IconButton icon="in">导å
¥</IconButton> |
| | | </el-upload> |
| | | |
| | | <IconButton |
| | | v-permission="wmsTask-output" |
| | | icon="out" |
| | | onClick={handleExport} |
| | | > |
| | | å¯¼åº |
| | | </IconButton> |
| | | </div> |
| | | <ElFormItem style={{ marginTop: '15px' }}> |
| | | <ElFormItem label="å
³é®å"> |
| | | <ElInput |
| | | v-model={queryForm.value.searchVal} |
| | | placeholder={searchFormInputAttrs_Placeholder.value} |
| | | clearable |
| | | class={styles.formItem} |
| | | /> |
| | | </ElFormItem> |
| | | <IconButton type="primary" icon="search" onClick={handleQueryForMain}> |
| | | æ¥è¯¢ |
| | | </IconButton> |
| | | import { computed, defineComponent, onMounted, reactive, ref } from 'vue' |
| | | import type { Ref } from 'vue' |
| | | import BaseTable from '@/components/Table/Table' |
| | | import styles from './WmsTask.module.scss' |
| | | import { useWmsTask } from '../../../Controllers/WmsTask' |
| | | import IconButton from '@/components/IconButton/IconButton' |
| | | import WmsTaskDrawer from '../Dialog/WmsTaskDrawer/WmsTaskDrawer' |
| | | import WmsTaskQueryDrawer from '../Dialog/WmsTaskQueryDrawer/WmsTaskQueryDrawer' |
| | | import Search from '@/components/Search/Search' |
| | | import { columns } from './Config' |
| | | import TdButton from '@/components/TdButton/TdButton' |
| | | import { vPermission } from '@/libs/Permission/Permission' |
| | | import { getWmsEnumData } from '@/widgets/WmsTask/Models/Service/WmsTaskDrawer' |
| | | import dayjs from 'dayjs' |
| | | import { |
| | | ElInput, |
| | | ElSelect, |
| | | ElOption, |
| | | ElDatePicker, |
| | | ElForm, |
| | | ElFormItem, |
| | | } from 'element-plus' |
| | | import { injectModel } from '@/libs/Provider/Provider' |
| | | |
| | | interface RenderTableType { |
| | | url?: string |
| | | dataSource: Ref<any[]> |
| | | isDrag?: boolean |
| | | isChecked?: boolean |
| | | isHidePagination?: boolean |
| | | params?: Record<string, any> |
| | | autoHeight?: boolean |
| | | } |
| | | |
| | | export default defineComponent({ |
| | | name: 'WmsTask', |
| | | directives: { |
| | | permission: vPermission, |
| | | }, |
| | | setup(props, ctx) { |
| | | const { |
| | | dataSource, |
| | | contextMenu, |
| | | dialogConfig, |
| | | dialogConfigForQuery, |
| | | tableRef, |
| | | current, |
| | | search, |
| | | sort, |
| | | headers, |
| | | onError, |
| | | onSearch, |
| | | onRowClick, |
| | | onConfirmWmsTask, |
| | | onCheck, |
| | | onAddWmsTask, |
| | | onAdvancedQuery, |
| | | onExport, |
| | | openDetail, |
| | | onSuccess, |
| | | onBeforeUpload, |
| | | } = useWmsTask(props, ctx) |
| | | |
| | | //å®ä¹é«çº§æ¥è¯¢å¼ç¨ |
| | | const wmsTaskQueryDrawerRef = ref(null) |
| | | // æ°å¢çæ¥è¯¢æ¡ä»¶ |
| | | const queryForm = ref({ |
| | | searchVal: '', |
| | | str_searchFormInputAttrs: [], |
| | | }) |
| | | //å®ä¹æ´ä½æ¨¡ç³æ¥è¯¢çåæ°ç»(注æï¼å¿
须大å°åè·å端çå®ä½ç±»å±æ§åä¸è´ï¼å¦åä¼å¯¼è´å¹é
ä¸å¯¹çé®é¢) |
| | | const _searchFormInputAttrs = ref(['TaskNo', 'ContainerNo']) |
| | | const searchFormInputAttrs_Placeholder = ref('请è¾å
¥ä»»å¡ç¼ç /æçç¼ç ') |
| | | |
| | | // 卿æä¸¾é项 |
| | | const enumOptions = reactive({ |
| | | taskType: [] as Array<{ label: string; value: any }>, |
| | | taskStatus: [] as Array<{ label: string; value: any }>, |
| | | sonTaskType: [] as Array<{ label: string; value: any }>, |
| | | }) |
| | | |
| | | // è·åæä¸¾æ°æ® |
| | | const fetchEnumData = async () => { |
| | | try { |
| | | const taskTypeEnumData = await getWmsEnumData({ |
| | | EnumName: 'TaskTypeEnum', |
| | | }) |
| | | enumOptions.taskType = taskTypeEnumData.map((item) => ({ |
| | | label: item.description, |
| | | value: item.value, |
| | | })) |
| | | const wmsTaskStatusData = await getWmsEnumData({ |
| | | EnumName: 'WmsTaskStatus', |
| | | }) |
| | | enumOptions.taskStatus = wmsTaskStatusData.map((item) => ({ |
| | | label: item.description, |
| | | value: item.value, |
| | | })) |
| | | const sonTaskTypeEnumData = await getWmsEnumData({ |
| | | EnumName: 'SonTaskTypeEnum', |
| | | }) |
| | | enumOptions.sonTaskType = sonTaskTypeEnumData.map((item) => ({ |
| | | label: item.description, |
| | | value: item.value, |
| | | })) |
| | | } catch (error) { |
| | | console.error('è·åæä¸¾æ°æ®å¤±è´¥:', error) |
| | | } |
| | | } |
| | | |
| | | // ç»ä»¶æè½½æ¶è·åæä¸¾æ°æ® |
| | | onMounted(() => { |
| | | fetchEnumData() |
| | | }) |
| | | |
| | | // å®ä¹ååºå¼æ¥è¯¢æ°æ® |
| | | const _curHighQueryData = ref({ |
| | | searchVal: '', |
| | | str_searchFormInputAttrs: [], |
| | | }) |
| | | // æ°ççæ¥è¯¢æ¹æ³ï¼ä¸»é¡µé¢ä¸çæé®ãæ¥è¯¢ãï¼ |
| | | const handleQueryForMain = async () => { |
| | | _curHighQueryData.value.searchVal = queryForm.value.searchVal |
| | | _curHighQueryData.value.str_searchFormInputAttrs = |
| | | _searchFormInputAttrs.value |
| | | tableRef.value.getList(_curHighQueryData.value) |
| | | } |
| | | // æ°ççæ¥è¯¢æ¹æ³ï¼é«çº§æ¥è¯¢ä¸çæé®ãæ¥è¯¢ãï¼ |
| | | const handleQuery = async (extraParams = {}) => { |
| | | let filteredData = commonGetHighQueryForm(extraParams) |
| | | commonSaveCurHighQueryData(filteredData) |
| | | tableRef.value.getList(filteredData) |
| | | } |
| | | // æ°ççæ¥è¯¢éç½® |
| | | const resetQuery = () => { |
| | | queryForm.value.searchVal = '' |
| | | queryForm.value.str_searchFormInputAttrs = _searchFormInputAttrs.value |
| | | } |
| | | //æ°ççå¯¼åºæ¹æ³ |
| | | const handleExport = () => { |
| | | onExport(_curHighQueryData.value) |
| | | } |
| | | // æ°ççæ¥è¯¢å¼¹åºæ¡å
³éæ¹æ³ |
| | | const closeQuery = (extraParams = {}) => { |
| | | let filteredData = commonGetHighQueryForm(extraParams) |
| | | console.log('closeQueryæ¹æ³') |
| | | console.log(filteredData) |
| | | commonSaveCurHighQueryData(filteredData) |
| | | } |
| | | //ä¿åæ¥è¯¢å¼ |
| | | const commonSaveCurHighQueryData = (filteredData = {}) => { |
| | | _curHighQueryData.value = { ..._curHighQueryData.value, ...filteredData } |
| | | _curHighQueryData.value.searchVal = queryForm.value.searchVal |
| | | _curHighQueryData.value.str_searchFormInputAttrs = |
| | | _searchFormInputAttrs.value |
| | | } |
| | | //è·åé«çº§æ¥è¯¢å¼¹åºæ¡çæ¥è¯¢å¼ |
| | | const commonGetHighQueryForm = (extraParams = {}) => { |
| | | // è¿æ»¤æ undefined çå¼ |
| | | let filteredData = Object.assign( |
| | | {}, |
| | | ...Object.entries(extraParams).map(([key, value]) => |
| | | value !== undefined ? { [key]: value } : {} |
| | | ) |
| | | ) |
| | | //ç»åæ¨¡ç³æ¥è¯¢ |
| | | filteredData.searchVal = queryForm.value.searchVal |
| | | filteredData.str_searchFormInputAttrs = _searchFormInputAttrs.value |
| | | return filteredData |
| | | } |
| | | |
| | | /** |
| | | * @returns è¡¨æ ¼ |
| | | */ |
| | | const RenderBaseTable = (props: RenderTableType) => { |
| | | const { |
| | | url, |
| | | dataSource, |
| | | isDrag, |
| | | isChecked, |
| | | isHidePagination, |
| | | params, |
| | | autoHeight, |
| | | } = props |
| | | |
| | | return ( |
| | | <div |
| | | class={{ |
| | | [styles.wmsTaskList]: true, |
| | | }} |
| | | > |
| | | <BaseTable |
| | | ref={tableRef} |
| | | url={url} |
| | | sortUrlTpl="/api/v1/HIAWms/wmsTask/{id}/adjustsort/{sort}" |
| | | v-model:dataSource={dataSource.value} |
| | | columns={columns} |
| | | contextMenu={contextMenu} |
| | | params={params} |
| | | isDrag={isDrag} |
| | | isChecked={isChecked} |
| | | autoHeight={autoHeight} |
| | | onCheck={onCheck} |
| | | onRowClick={onRowClick} |
| | | isHidePagination={isHidePagination} |
| | | pageSize={20} |
| | | v-slots={{ |
| | | creationTime: ({ row }: any) => { |
| | | return ( |
| | | <div> |
| | | {row.creationTime != null |
| | | ? dayjs(row.creationTime).format('YYYY-MM-DD HH:mm:ss') |
| | | : '-'} |
| | | </div> |
| | | ) |
| | | }, |
| | | name: ({ row }: any) => { |
| | | return row?.name ? ( |
| | | <TdButton |
| | | onClick={() => openDetail(row)} |
| | | text={<span style="color:#5a84ff">详æ
</span>} |
| | | icon="scale" |
| | | tip={row?.name} |
| | | hover |
| | | > |
| | | {row?.name} |
| | | </TdButton> |
| | | ) : ( |
| | | '-' |
| | | ) |
| | | }, |
| | | }} |
| | | ></BaseTable> |
| | | </div> |
| | | ) |
| | | } |
| | | |
| | | return () => { |
| | | return ( |
| | | <div class={styles.wmsTaskContent}> |
| | | {/* æ·»å /ç¼è¾ */} |
| | | <WmsTaskDrawer |
| | | v-model={dialogConfig.visible} |
| | | title={dialogConfig.title} |
| | | row={current.value} |
| | | sort={sort.value} |
| | | onConfirm={onConfirmWmsTask} |
| | | /> |
| | | {/* é«çº§æ¥è¯¢ */} |
| | | <WmsTaskQueryDrawer |
| | | ref="wmsTaskQueryDrawerRef" |
| | | v-model={dialogConfigForQuery.visible} |
| | | title={dialogConfigForQuery.title} |
| | | row={current.value} |
| | | sort={sort.value} |
| | | onConfirmQuery={handleQuery} |
| | | onRestQuery={resetQuery} |
| | | onClose={closeQuery} |
| | | /> |
| | | |
| | | <div class={styles.headerContent}> |
| | | <div class={styles.header}> |
| | | <IconButton |
| | | v-permission="wmsTask-add" |
| | | icon="add-p" |
| | | onClick={onAddWmsTask} |
| | | type="primary" |
| | | > |
| | | æ·»å |
| | | </IconButton> |
| | | <el-divider direction="vertical" /> |
| | | |
| | | <el-divider direction="vertical" /> |
| | | <el-upload |
| | | v-permission="wmsTask-import" |
| | | name="file" |
| | | accept=".xlsx,.xls,.csv" |
| | | show-file-list={false} |
| | | onError={onError} |
| | | onSuccess={onSuccess} |
| | | before-upload={onBeforeUpload} |
| | | headers={headers.value} |
| | | action="/api/v1/HIAWms/wmsTask/import" |
| | | > |
| | | <IconButton icon="in">导å
¥</IconButton> |
| | | </el-upload> |
| | | |
| | | <IconButton |
| | | v-permission="wmsTask-output" |
| | | icon="out" |
| | | onClick={handleExport} |
| | | > |
| | | å¯¼åº |
| | | </IconButton> |
| | | </div> |
| | | <ElFormItem style={{ marginTop: '15px' }}> |
| | | <ElFormItem label="å
³é®å"> |
| | | <ElInput |
| | | v-model={queryForm.value.searchVal} |
| | | placeholder={searchFormInputAttrs_Placeholder.value} |
| | | clearable |
| | | class={styles.formItem} |
| | | /> |
| | | </ElFormItem> |
| | | <IconButton |
| | | type="primary" |
| | | icon="search" |
| | | onClick={handleQueryForMain} |
| | | > |
| | | æ¥è¯¢ |
| | | </IconButton> |
| | | {/* <IconButton style="" icon="refresh" onClick={resetQuery}> |
| | | éç½® |
| | | </IconButton> */} |
| | | <IconButton |
| | | v-permission="wmsTask-add" |
| | | icon="search" |
| | | onClick={onAdvancedQuery} |
| | | type="primary" |
| | | > |
| | | é«çº§æ¥è¯¢ |
| | | </IconButton> |
| | | </ElFormItem> |
| | | </div> |
| | | |
| | | <RenderBaseTable |
| | | url="/api/v1/HIAWms/wmsTask/page" |
| | | dataSource={dataSource} |
| | | isChecked={true} |
| | | isDrag={true} |
| | | /> |
| | | </div> |
| | | ) |
| | | } |
| | | }, |
| | | }) |
| | | </IconButton> */} |
| | | <IconButton |
| | | v-permission="wmsTask-add" |
| | | icon="search" |
| | | onClick={onAdvancedQuery} |
| | | type="primary" |
| | | > |
| | | é«çº§æ¥è¯¢ |
| | | </IconButton> |
| | | </ElFormItem> |
| | | </div> |
| | | |
| | | <RenderBaseTable |
| | | url="/api/v1/HIAWms/wmsTask/page" |
| | | dataSource={dataSource} |
| | | isChecked={true} |
| | | isDrag={true} |
| | | /> |
| | | </div> |
| | | ) |
| | | } |
| | | }, |
| | | }) |
| | |
| | | |
| | | //æ¿æ¢æ°å¢formåè¡¨å±æ§ |
| | | string attrString = ""; |
| | | List<ColumnModel> newColumnNameList = ListHelper.RemoveAttrForUpdateMode(param.ColumnNameList); |
| | | attrString += StructStrHelper.GetVueFormOptionsStrForPageAddFormAttributes_Query(param.ColumnNameList, param); |
| | | List<ColumnModel> newColumnNameList = ListHelper.RemoveAttrForQueryMode(param.ColumnNameList); |
| | | attrString += StructStrHelper.GetVueFormOptionsStrForPageAddFormAttributes_Query(newColumnNameList, param); |
| | | str = str.Replace("$PageAddFormAttributes_Query$", attrString); |
| | | |
| | | attrString = ""; |
| | |
| | | */ |
| | | const onExport = (data={}) => { |
| | | //const params = tableRef.value?.getParams() |
| | | exportFile('/api/v1/$NameSpacePath$/$PageMenuInstanceName$/export', data, '$NameSpacePath$') |
| | | exportFile('/api/v1/$NameSpacePath$/$PageMenuInstanceName$/export', data, '$PageMenuInstanceName$') |
| | | } |
| | | |
| | | /** |
| | |
| | | return newList; |
| | | } |
| | | |
| | | public static List<ColumnModel> RemoveAttrForQueryMode(List<ColumnModel> columnNameList) |
| | | { |
| | | List<ColumnModel> newList = new List<ColumnModel>(); |
| | | ColumnModel columnModel = null; |
| | | for (int i = 0; i < columnNameList.Count; i++) |
| | | { |
| | | columnModel = columnNameList[i]; |
| | | if (columnModel.ColumnName.ToUpper() == SystemCommonVar.c_creator.ToUpper() |
| | | || columnModel.ColumnName.ToUpper() == SystemCommonVar.c_lastModifier.ToUpper() |
| | | || columnModel.ColumnName.ToUpper() == SystemCommonVar.c_lastModifyTime.ToUpper() |
| | | || columnModel.ColumnName.ToUpper() == SystemCommonVar.c_ModifyTime.ToUpper() |
| | | || columnModel.ColumnName.ToUpper() == SystemCommonVar.c_Id.ToUpper() |
| | | || columnModel.ColumnName.ToUpper() == SystemCommonVar.c_ExtraProperties.ToUpper() |
| | | || columnModel.ColumnName.ToUpper() == SystemCommonVar.c_ConcurrencyStamp.ToUpper() |
| | | || columnModel.ColumnName.ToUpper() == SystemCommonVar.c_DeleterId.ToUpper() |
| | | || columnModel.ColumnName.ToUpper() == SystemCommonVar.c_delFlag.ToUpper() |
| | | || columnModel.ColumnName.ToUpper() == SystemCommonVar.c_CreateId.ToUpper() |
| | | || columnModel.ColumnName.ToUpper() == SystemCommonVar.c_ModifyId.ToUpper() |
| | | || columnModel.ColumnName.ToUpper() == SystemCommonVar.c_Sort.ToUpper() |
| | | |
| | | ) |
| | | { |
| | | continue; |
| | | } |
| | | newList.Add(columnModel); |
| | | } |
| | | return newList; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// è·åææ°çåListéå(廿 ID) |
| | | /// </summary> |
| | |
| | | placeholder: '请è¾å
¥ç©æç¼ç ', |
| | | }, |
| | | */ |
| | | List<ColumnModel> newList = ListHelper.RemoveForPageAddFormAttributes(columnModelList); |
| | | foreach (var columnModel in newList) |
| | | //List<ColumnModel> newList = ListHelper.RemoveForPageAddFormAttributes(columnModelList); |
| | | foreach (var columnModel in columnModelList) |
| | | { |
| | | //é¦åæ¯å°å |
| | | var low_prop_ColumnName = CommonHelper.FirstLowercase(columnModel.ColumnName); |
| | |
| | | var elment = "input"; |
| | | switch (enumDT) |
| | | { |
| | | case DataTypeEnum.dt_datetime: |
| | | elment = "date-picker"; |
| | | break; |
| | | //case DataTypeEnum.dt_datetime: |
| | | // elment = "date-picker"; |
| | | // break; |
| | | case DataTypeEnum.dt_bit: |
| | | case DataTypeEnum.dt_tinyint: |
| | | elment = "select"; |
| | |
| | | /* |
| | | materialCode: formData.value.materialCode, |
| | | */ |
| | | List<ColumnModel> newList = ListHelper.RemoveForPageAddFormAttributes(columnModelList); |
| | | List<ColumnModel> newList = ListHelper.RemoveAttrForQueryMode(columnModelList); |
| | | foreach (var columnModel in newList) |
| | | { |
| | | |
| | | //é¦åæ¯å°å |
| | | var low_prop_ColumnName = CommonHelper.FirstLowercase(columnModel.ColumnName); |
| | | sb.Append($"{low_prop_ColumnName}: formData.value.{low_prop_ColumnName},|| '' \n"); |
| | | sb.Append($"{low_prop_ColumnName}: formData.value.{low_prop_ColumnName} || '', \n"); |
| | | |
| | | |
| | | } |