From 95909e9515f99f7aa9ead0c6e31456457363273e Mon Sep 17 00:00:00 2001 From: wangxinhui <wangxinhui@hnkhzn.com> Date: 星期四, 06 三月 2025 17:34:57 +0800 Subject: [PATCH] Merge branch 'master' of http://115.159.85.185:8098/r/MeiRuiAn/HuaiAn --- 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_Model/Models/Outbound/Dt_MesRworkOutboundOrder.cs | 40 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_OutboundRepository/MesRworkOutboundOrderRepository.cs | 18 代码管理/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/6bf34b9c-0794-4893-8fd8-d4baaae86ece.vsidx | 0 代码管理/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/82a46b6d-ee6e-4d4b-a5ed-4722238ed6c3.vsidx | 0 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/MesTaskService.cs | 42 代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/阻焊仓/AGV_ZHExtend.cs | 65 代码管理/WMS/WIDESEA_WMSClient/src/extension/stock/proStockInfo_Hty.js | 59 代码管理/WMS/WIDESEA_WMSClient/src/extension/stock/proStockInfo.js | 59 代码管理/WMS/WIDESEA_WMSClient/src/views/stock/stockView.vue | 4 代码管理/WMS/WIDESEA_WMSServer/.vs/WIDESEA_WMSServer/FileContentIndex/5172d2fd-775d-4922-be09-1cba741a2211.vsidx | 0 代码管理/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/f35b787e-9999-40a9-9b3b-3f5185443a5d.vsidx | 0 代码管理/WMS/WIDESEA_WMSClient/src/views/inbound/mesProInOrder.vue | 387 +++++ 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Inbound/MesPPBackInboundOrderController.cs | 7 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_OutboundService/OutboundService.cs | 5 代码管理/WMS/WIDESEA_WMSClient/src/views/outbound/mesPPCutOutboundOrder.vue | 278 +- 代码管理/WMS/WIDESEA_WMSClient/src/extension/outbound/extend/mesPPCutOutOrderDetail.vue | 2 代码管理/WMS/WIDESEA_WMSClient/src/views/stock/proStockInfo.vue | 168 ++ 代码管理/WMS/WIDESEA_WMSClient/src/extension/inbound/mesProInOrder.js | 58 代码管理/WMS/WIDESEA_WMSClient/src/extension/inbound/mesProInOrderDetail.js | 58 代码管理/WMS/WIDESEA_WMSClient/src/views/inbound/mesProInOrderDetail.vue | 254 +++ 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_OutboundService/MesRworkOutboundOrderService.cs | 37 代码管理/WMS/WIDESEA_WMSClient/src/extension/outbound/proOutOrder.js | 74 + 代码管理/WMS/WIDESEA_WMSClient/src/router/viewGird.js | 40 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_IOutboundService/IMesRworkOutboundOrderService.cs | 16 代码管理/WMS/WIDESEA_WMSClient/src/views/inbound/mesPPBackInboundOrderDetail.vue | 100 代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/阻焊仓/AGV_ZHJob.cs | 53 代码管理/WMS/WIDESEA_WMSClient/src/extension/stock/proStockInfoDetail_Hty.js | 59 /dev/null | 0 代码管理/WMS/WIDESEA_WMSClient/src/views/outbound/mesPPOutboundOrder.vue | 170 +- 代码管理/WMS/WIDESEA_WMSClient/src/extension/outbound/extend/proOutboundOrderDetail.vue | 471 ++++++ 代码管理/WMS/WIDESEA_WMSClient/src/views/inbound/mesPPBackInboundOrder.vue | 246 +- 代码管理/WMS/WIDESEA_WMSClient/src/views/stock/proStockInfoDetail.vue | 261 +++ 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_IOutboundRepository/IMesRworkOutboundOrderRepository.cs | 14 代码管理/WMS/WIDESEA_WMSClient/src/extension/outbound/proOutOrderDetail.js | 58 代码管理/WMS/WIDESEA_WMSClient/src/views/outbound/proOutOrder.vue | 363 +++++ 代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_Common/APIEnum/APIEnum.cs | 6 代码管理/WMS/WIDESEA_WMSClient/src/views/stock/proStockInfoDetail_Hty.vue | 300 ++++ 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_IOutboundService/IOutboundService.cs | 3 代码管理/WMS/WIDESEA_WMSClient/src/views/stock/proStockInfo_Hty.vue | 175 ++ 代码管理/WMS/WIDESEA_WMSClient/src/extension/stock/proStockInfoDetail.js | 59 代码管理/WMS/WIDESEA_WMSClient/src/views/outbound/proOutOrderDetail.vue | 278 +++ 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Inbound/MesPPBackInboundOrderDetailController.cs | 21 代码管理/WMS/WIDESEA_WMSServer/.vs/WIDESEA_WMSServer/FileContentIndex/1ceb7491-cd63-4a60-ba30-ad6b8388e302.vsidx | 0 43 files changed, 3,891 insertions(+), 417 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/5761a620-5bca-4675-84e1-2980dbca5573.vsidx" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/5761a620-5bca-4675-84e1-2980dbca5573.vsidx" deleted file mode 100644 index dbc4fec..0000000 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/5761a620-5bca-4675-84e1-2980dbca5573.vsidx" +++ /dev/null Binary files differ diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/6bf34b9c-0794-4893-8fd8-d4baaae86ece.vsidx" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/6bf34b9c-0794-4893-8fd8-d4baaae86ece.vsidx" new file mode 100644 index 0000000..26dce72 --- /dev/null +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/6bf34b9c-0794-4893-8fd8-d4baaae86ece.vsidx" Binary files differ diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/717bcd11-9eb3-4dd7-9f56-66f8e333c9e1.vsidx" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/717bcd11-9eb3-4dd7-9f56-66f8e333c9e1.vsidx" deleted file mode 100644 index b122658..0000000 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/717bcd11-9eb3-4dd7-9f56-66f8e333c9e1.vsidx" +++ /dev/null Binary files differ diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/82a46b6d-ee6e-4d4b-a5ed-4722238ed6c3.vsidx" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/82a46b6d-ee6e-4d4b-a5ed-4722238ed6c3.vsidx" new file mode 100644 index 0000000..faa0235 --- /dev/null +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/82a46b6d-ee6e-4d4b-a5ed-4722238ed6c3.vsidx" Binary files differ diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/b00cc2d5-7651-4699-bf6e-2eed65682db1.vsidx" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/b00cc2d5-7651-4699-bf6e-2eed65682db1.vsidx" deleted file mode 100644 index 5144359..0000000 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/b00cc2d5-7651-4699-bf6e-2eed65682db1.vsidx" +++ /dev/null Binary files differ diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/bdb3f2f8-4b2e-4c67-8ae2-7c2d0dafd8af.vsidx" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/bdb3f2f8-4b2e-4c67-8ae2-7c2d0dafd8af.vsidx" deleted file mode 100644 index 02d564b..0000000 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/bdb3f2f8-4b2e-4c67-8ae2-7c2d0dafd8af.vsidx" +++ /dev/null Binary files differ diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/c3720f0e-fb5a-46ef-9245-3c9faa5a877f.vsidx" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/c3720f0e-fb5a-46ef-9245-3c9faa5a877f.vsidx" deleted file mode 100644 index fee28df..0000000 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/c3720f0e-fb5a-46ef-9245-3c9faa5a877f.vsidx" +++ /dev/null Binary files differ diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/cf2ead08-c9fc-4a5b-bc2c-367a4960fc0c.vsidx" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/cf2ead08-c9fc-4a5b-bc2c-367a4960fc0c.vsidx" deleted file mode 100644 index 5439a53..0000000 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/cf2ead08-c9fc-4a5b-bc2c-367a4960fc0c.vsidx" +++ /dev/null Binary files differ diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/d2077ed1-2f92-49f2-afd2-f41f86f5fc2f.vsidx" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/d2077ed1-2f92-49f2-afd2-f41f86f5fc2f.vsidx" deleted file mode 100644 index 6a30d6a..0000000 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/d2077ed1-2f92-49f2-afd2-f41f86f5fc2f.vsidx" +++ /dev/null Binary files differ diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/f35b787e-9999-40a9-9b3b-3f5185443a5d.vsidx" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/f35b787e-9999-40a9-9b3b-3f5185443a5d.vsidx" new file mode 100644 index 0000000..d3f8426 --- /dev/null +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/f35b787e-9999-40a9-9b3b-3f5185443a5d.vsidx" Binary files differ diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/read.lock" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/read.lock" deleted file mode 100644 index e69de29..0000000 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/FileContentIndex/read.lock" +++ /dev/null diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_Common/APIEnum/APIEnum.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_Common/APIEnum/APIEnum.cs" index 0f3ddf8..d666898 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_Common/APIEnum/APIEnum.cs" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_Common/APIEnum/APIEnum.cs" @@ -34,6 +34,12 @@ Agv_PPSendTask, /// <summary> + /// ZHAGV浠诲姟鍙戦�� + /// </summary> + [Description("PPAGV浠诲姟鍙戦��")] + Agv_ZHSendTask, + + /// <summary> /// 鍥炶皟WMS浠诲姟瀹屾垚 /// </summary> [Description("鍥炶皟WMS浠诲姟瀹屾垚")] diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/\351\230\273\347\204\212\344\273\223/AGV_ZHExtend.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/\351\230\273\347\204\212\344\273\223/AGV_ZHExtend.cs" new file mode 100644 index 0000000..83d05a6 --- /dev/null +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/\351\230\273\347\204\212\344\273\223/AGV_ZHExtend.cs" @@ -0,0 +1,65 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using WIDESEA_DTO.Agv; +using WIDESEAWCS_Common.APIEnum; +using WIDESEAWCS_Common.TaskEnum; +using WIDESEAWCS_Core; +using WIDESEAWCS_Core.Helper; +using WIDESEAWCS_Model.Models; +using WIDESEAWCS_Tasks.StackerCraneJob; + +namespace WIDESEAWCS_Tasks +{ + public partial class AGV_ZHJob + { + public void SendAGVTask() + { + try + { + var newTasks = _taskService.Db.Queryable<Dt_Task>().Where(x => (x.TaskState == TaskStatusEnum.New.ObjToInt() || x.TaskState == TaskStatusEnum.AGV_Execute.ObjToInt()) && nameof(AGV_PPJob).Contains(x.DeviceCode) && !string.IsNullOrEmpty(x.DeviceCode)).ToList().OrderBy(x => x.Grade).ThenBy(x => x.CreateDate).ToList(); + foreach (var task in newTasks) + { + try + { + AgvTaskDTO TaskDTO = new AgvTaskDTO() + { + TaskCode = task.AgvTaskNum, + ReqCode = DateTime.Now.ToString("yyyyMMddHHmmss") + task.AgvTaskNum, + TaskTyp = task.TaskType < TaskTypeEnum.Inbound.ObjToInt() ? "FLC" : "FLR", + ctnrCode = task.PalletCode, + PositionCodePath = new List<CodePath>() + { + new CodePath() + { + type="00", + positionCode=task.CurrentAddress + }, + new CodePath() + { + type="00", + positionCode=task.NextAddress + } + }, + }; + WebResponseContent content = _taskService.AgvSendTask(TaskDTO, APIEnum.Agv_ZHSendTask); + if (!content.Status) throw new Exception(content.Message); + task.TaskState = TaskStatusEnum.AGV_Executing.ObjToInt(); + } + catch (Exception ex) + { + task.TaskState = TaskStatusEnum.Exception.ObjToInt(); + task.ExceptionMessage = ex.Message; + } + } + _taskService.UpdateData(newTasks); + } + catch (Exception ex) + { + WriteError(nameof(AGV_FLJob), ex.Message, ex); + } + } + } +} diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/\351\230\273\347\204\212\344\273\223/AGV_ZHJob.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/\351\230\273\347\204\212\344\273\223/AGV_ZHJob.cs" new file mode 100644 index 0000000..14ecf08 --- /dev/null +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/\351\230\273\347\204\212\344\273\223/AGV_ZHJob.cs" @@ -0,0 +1,53 @@ +锘縰sing AutoMapper; +using Newtonsoft.Json; +using Quartz; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Reflection.Metadata; +using System.Text; +using System.Threading.Tasks; +using WIDESEA_DTO.Agv; +using WIDESEAWCS_Common.TaskEnum; +using WIDESEAWCS_Core; +using WIDESEAWCS_Core.Helper; +using WIDESEAWCS_DTO.TaskInfo; +using WIDESEAWCS_IBasicInfoRepository; +using WIDESEAWCS_ITaskInfoService; +using WIDESEAWCS_Model.Models; +using WIDESEAWCS_QuartzJob; +using WIDESEAWCS_QuartzJob.Service; + +namespace WIDESEAWCS_Tasks +{ + [DisallowConcurrentExecution] + public partial class AGV_ZHJob : JobBase, IJob + { + public readonly ITaskService _taskService; + private readonly ITaskExecuteDetailService _taskExecuteDetailService; + private readonly IRouterService _routerService; + private readonly IStationMangerRepository _stationMangerRepository; + private readonly IMapper _mapper; + + public AGV_ZHJob(ITaskService taskService, ITaskExecuteDetailService taskExecuteDetailService, IRouterService routerService, IStationMangerRepository stationMangerRepository, IMapper mapper) + { + _taskService = taskService; + _taskExecuteDetailService = taskExecuteDetailService; + _routerService = routerService; + _stationMangerRepository = stationMangerRepository; + _mapper = mapper; + } + public Task Execute(IJobExecutionContext context) + { + try + { + SendAGVTask(); + } + catch (Exception ex) + { + Console.Out.WriteLine(nameof(AGV_ZHJob) + ":" + ex.Message); + } + return Task.CompletedTask; + } + } +} diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/inbound/mesProInOrder.js" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/inbound/mesProInOrder.js" new file mode 100644 index 0000000..24e1d94 --- /dev/null +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/inbound/mesProInOrder.js" @@ -0,0 +1,58 @@ + +//姝s鏂囦欢鏄敤鏉ヨ嚜瀹氫箟鎵╁睍涓氬姟浠g爜锛屽彲浠ユ墿灞曚竴浜涜嚜瀹氫箟椤甸潰鎴栬�呴噸鏂伴厤缃敓鎴愮殑浠g爜 + +let extension = { + components: { + //鏌ヨ鐣岄潰鎵╁睍缁勪欢 + gridHeader: '', + gridBody: '', + gridFooter: '', + //鏂板缓銆佺紪杈戝脊鍑烘鎵╁睍缁勪欢 + modelHeader: '', + modelBody: '', + modelFooter: '' + }, + tableAction: '', //鎸囧畾鏌愬紶琛ㄧ殑鏉冮檺(杩欓噷濉啓琛ㄥ悕,榛樿涓嶇敤濉啓) + buttons: { view: [], box: [], detail: [] }, //鎵╁睍鐨勬寜閽� + methods: { + //涓嬮潰杩欎簺鏂规硶鍙互淇濈暀涔熷彲浠ュ垹闄� + onInit() { + }, + onInited() { + //妗嗘灦鍒濆鍖栭厤缃悗 + //濡傛灉瑕侀厤缃槑缁嗚〃,鍦ㄦ鏂规硶鎿嶄綔 + //this.detailOptions.columns.forEach(column=>{ }); + }, + searchBefore(param) { + //鐣岄潰鏌ヨ鍓�,鍙互缁檖aram.wheres娣诲姞鏌ヨ鍙傛暟 + //杩斿洖false锛屽垯涓嶄細鎵ц鏌ヨ + return true; + }, + searchAfter(result) { + //鏌ヨ鍚庯紝result杩斿洖鐨勬煡璇㈡暟鎹�,鍙互鍦ㄦ樉绀哄埌琛ㄦ牸鍓嶅鐞嗚〃鏍肩殑鍊� + return true; + }, + addBefore(formData) { + //鏂板缓淇濆瓨鍓峟ormData涓哄璞★紝鍖呮嫭鏄庣粏琛紝鍙互缁欑粰琛ㄥ崟璁剧疆鍊硷紝鑷繁杈撳嚭鐪媐ormData鐨勫�� + return true; + }, + updateBefore(formData) { + //缂栬緫淇濆瓨鍓峟ormData涓哄璞★紝鍖呮嫭鏄庣粏琛ㄣ�佸垹闄よ鐨処d + return true; + }, + rowClick({ row, column, event }) { + //鏌ヨ鐣岄潰鐐瑰嚮琛屼簨浠� + this.$refs.table.$refs.table.toggleRowSelection(row); //鍗曞嚮琛屾椂閫変腑褰撳墠琛�; + }, + modelOpenAfter(row) { + //鐐瑰嚮缂栬緫銆佹柊寤烘寜閽脊鍑烘鍚庯紝鍙互鍦ㄦ澶勫啓閫昏緫锛屽锛屼粠鍚庡彴鑾峰彇鏁版嵁 + //(1)鍒ゆ柇鏄紪杈戣繕鏄柊寤烘搷浣滐細 this.currentAction=='Add'; + //(2)缁欏脊鍑烘璁剧疆榛樿鍊� + //(3)this.editFormFields.瀛楁='xxx'; + //濡傛灉闇�瑕佺粰涓嬫媺妗嗚缃粯璁ゅ�硷紝璇烽亶鍘唗his.editFormOptions鎵惧埌瀛楁閰嶇疆瀵瑰簲data灞炴�х殑key鍊� + //鐪嬩笉鎳傚氨鎶婅緭鍑虹湅锛歝onsole.log(this.editFormOptions) + } + } + }; + export default extension; + \ No newline at end of file diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/inbound/mesProInOrderDetail.js" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/inbound/mesProInOrderDetail.js" new file mode 100644 index 0000000..24e1d94 --- /dev/null +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/inbound/mesProInOrderDetail.js" @@ -0,0 +1,58 @@ + +//姝s鏂囦欢鏄敤鏉ヨ嚜瀹氫箟鎵╁睍涓氬姟浠g爜锛屽彲浠ユ墿灞曚竴浜涜嚜瀹氫箟椤甸潰鎴栬�呴噸鏂伴厤缃敓鎴愮殑浠g爜 + +let extension = { + components: { + //鏌ヨ鐣岄潰鎵╁睍缁勪欢 + gridHeader: '', + gridBody: '', + gridFooter: '', + //鏂板缓銆佺紪杈戝脊鍑烘鎵╁睍缁勪欢 + modelHeader: '', + modelBody: '', + modelFooter: '' + }, + tableAction: '', //鎸囧畾鏌愬紶琛ㄧ殑鏉冮檺(杩欓噷濉啓琛ㄥ悕,榛樿涓嶇敤濉啓) + buttons: { view: [], box: [], detail: [] }, //鎵╁睍鐨勬寜閽� + methods: { + //涓嬮潰杩欎簺鏂规硶鍙互淇濈暀涔熷彲浠ュ垹闄� + onInit() { + }, + onInited() { + //妗嗘灦鍒濆鍖栭厤缃悗 + //濡傛灉瑕侀厤缃槑缁嗚〃,鍦ㄦ鏂规硶鎿嶄綔 + //this.detailOptions.columns.forEach(column=>{ }); + }, + searchBefore(param) { + //鐣岄潰鏌ヨ鍓�,鍙互缁檖aram.wheres娣诲姞鏌ヨ鍙傛暟 + //杩斿洖false锛屽垯涓嶄細鎵ц鏌ヨ + return true; + }, + searchAfter(result) { + //鏌ヨ鍚庯紝result杩斿洖鐨勬煡璇㈡暟鎹�,鍙互鍦ㄦ樉绀哄埌琛ㄦ牸鍓嶅鐞嗚〃鏍肩殑鍊� + return true; + }, + addBefore(formData) { + //鏂板缓淇濆瓨鍓峟ormData涓哄璞★紝鍖呮嫭鏄庣粏琛紝鍙互缁欑粰琛ㄥ崟璁剧疆鍊硷紝鑷繁杈撳嚭鐪媐ormData鐨勫�� + return true; + }, + updateBefore(formData) { + //缂栬緫淇濆瓨鍓峟ormData涓哄璞★紝鍖呮嫭鏄庣粏琛ㄣ�佸垹闄よ鐨処d + return true; + }, + rowClick({ row, column, event }) { + //鏌ヨ鐣岄潰鐐瑰嚮琛屼簨浠� + this.$refs.table.$refs.table.toggleRowSelection(row); //鍗曞嚮琛屾椂閫変腑褰撳墠琛�; + }, + modelOpenAfter(row) { + //鐐瑰嚮缂栬緫銆佹柊寤烘寜閽脊鍑烘鍚庯紝鍙互鍦ㄦ澶勫啓閫昏緫锛屽锛屼粠鍚庡彴鑾峰彇鏁版嵁 + //(1)鍒ゆ柇鏄紪杈戣繕鏄柊寤烘搷浣滐細 this.currentAction=='Add'; + //(2)缁欏脊鍑烘璁剧疆榛樿鍊� + //(3)this.editFormFields.瀛楁='xxx'; + //濡傛灉闇�瑕佺粰涓嬫媺妗嗚缃粯璁ゅ�硷紝璇烽亶鍘唗his.editFormOptions鎵惧埌瀛楁閰嶇疆瀵瑰簲data灞炴�х殑key鍊� + //鐪嬩笉鎳傚氨鎶婅緭鍑虹湅锛歝onsole.log(this.editFormOptions) + } + } + }; + export default extension; + \ No newline at end of file diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/outbound/extend/mesPPCutOutOrderDetail.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/outbound/extend/mesPPCutOutOrderDetail.vue" index 9088654..557cab9 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/outbound/extend/mesPPCutOutOrderDetail.vue" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/outbound/extend/mesPPCutOutOrderDetail.vue" @@ -1,4 +1,4 @@ -a<template> +<template> <div> <vol-box v-model="showDetialBox" diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/outbound/extend/proOutboundOrderDetail.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/outbound/extend/proOutboundOrderDetail.vue" new file mode 100644 index 0000000..5941acb --- /dev/null +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/outbound/extend/proOutboundOrderDetail.vue" @@ -0,0 +1,471 @@ +<template> + <div> + <vol-box + v-model="showDetialBox" + :lazy="true" + width="75%" + :padding="15" + title="鍗曟嵁鏄庣粏淇℃伅" + > + <div class="box-head"> + <el-alert :closable="false" style="width: 100%"> + <el-row> + <el-col :span="16"> + <span>宸查�変腑 {{ selection.length }} 椤�</span> + </el-col> + <el-col :span="8"> + <el-link + type="primary" + size="small" + style="float: right; height: 20px" + @click="lockstocks" + >閿佸畾搴撳瓨</el-link + > + <el-link + type="primary" + size="small" + style="float: right; height: 20px; margin-right: 10px" + @click="outbound" + >鐩存帴鍑哄簱</el-link + > + <el-link + type="primary" + size="small" + style="float: right; height: 20px; margin-right: 10px" + @click="getData" + >鍒锋柊</el-link + ></el-col + > + </el-row> + </el-alert> + </div> + <div class="box-table" style="margin-top: 1%"> + <el-table + ref="singleTable" + :data="tableData" + style="width: 100%; height: 100%" + highlight-current-row + @current-change="handleCurrentChange" + height="500px" + @row-click="handleRowClick" + @selection-change="handleSelectionChange" + > + <el-table-column type="selection" width="55"> </el-table-column> + <el-table-column + label="搴忓彿" + type="index" + fixed="left" + width="55" + align="center" + ></el-table-column> + <el-table-column + v-for="(item, index) in tableColumns.filter((x) => !x.hidden)" + :key="index" + :prop="item.prop" + :label="item.title" + :width="item.width" + align="center" + > + <template #default="scoped"> + <div v-if="item.type == 'icon'"> + <el-tooltip + class="item" + effect="dark" + :content="item.title" + placement="bottom" + ><el-link + type="primary" + :disabled="getButtonEnable(item.prop, scoped.row)" + @click="tableButtonClick(scoped.row, item)" + ><i :class="item.icon" style="font-size: 22px"></i></el-link + ></el-tooltip> + </div> + + <div v-else-if="item.type == 'tag'"> + <el-tag size="small"> + {{ getDictionary(scoped.row, item) }} + </el-tag> + </div> + </template> + </el-table-column> + </el-table> + </div> + </vol-box> + <pp-stock-select ref="childs" ></pp-stock-select> + <selected-stock + ref="SelectedStock" + @parentCall="parentCall" + ></selected-stock> + </div> +</template> +<script> +import VolBox from "@/components/basic/VolBox.vue"; +import VolForm from "@/components/basic/VolForm.vue"; +import StockSelect from "./StockSelect.vue"; +import SelectedStock from "./SelectedStock.vue"; +export default { + components: { VolBox, VolForm, StockSelect, SelectedStock }, + data() { + return { + row: null, + showDetialBox: false, + flag: false, + currentRow: null, + selection: [], + tableData: [], + tableColumns: [ + { + prop: "id", + title: "Id", + type: "int", + width: 90, + hidden: true, + }, + { + prop: "proOrderId", + title: "鍑哄簱鍗曚富閿�", + type: "string", + width: 90, + hidden: true, + }, + { + prop: "proOrderDetailStatus", + title: "璁㈠崟鏄庣粏鐘舵��", + type: "tag", + width: 180, + bindKey: "orderDetailStatusEnum", + }, + { + prop: "saleOrder", + title: "閿�鍞鍗曞彿", + type: "string", + width: 150, + }, + { + prop: "customer", + title: "瀹㈡埛", + type: "string", + width: 150, + }, + { + prop: "factoryCode", + title: "宸ュ巶", + type: "string", + width: 150, + }, + { + prop: "pCode", + title: "浜у搧缂栫爜", + type: "string", + width: 150, + }, + { + prop: "dateCode", + title: "浜у搧鍛ㄦ湡", + type: "string", + width: 150, + }, + { + prop: "pVer", + title: "浜у搧鐗堟湰", + type: "string", + width: 150, + }, + { + prop: "pLot", + title: "浜у搧鎵规", + type: "string", + width: 150, + }, + { + prop: "qtyPcs", + title: "鍚堟牸PCS鏁�", + type: "string", + width: 150, + }, + { + prop: "overQtyPcs", + title: "宸插嚭鏁伴噺", + type: "string", + width: 150, + }, + { + prop: "xQty", + title: "x鏉挎暟", + type: "string", + width: 120, + }, + { + prop: "xSite", + title: "x鏉夸綅", + type: "string", + width: 120, + }, + { + prop: "unit", + title: "鍗曚綅", + type: "string", + width: 120, + }, + { + prop: "spareQty", + title: "澶囧搧鏁�", + type: "string", + width: 120, + }, + { + prop: "assignStock", + title: "鎸囧畾搴撳瓨", + type: "icon", + width: 90, + icon: "el-icon-s-grid", + }, + { + prop: "viewDetail", + title: "鍑哄簱璇︾粏", + type: "icon", + width: 90, + icon: "el-icon-s-operation", + }, + { + prop: "creater", + title: "鍒涘缓浜�", + type: "string", + width: 90, + }, + { + prop: "createDate", + title: "鍒涘缓鏃堕棿", + type: "datetime", + width: 160, + }, + { + prop: "modifier", + title: "淇敼浜�", + type: "string", + width: 100, + }, + { + prop: "modifyDate", + title: "淇敼鏃堕棿", + type: "datetime", + width: 160, + }, + { + prop: "remark", + title: "澶囨敞", + type: "string", + }, + ], + paginations: { + sort: "id", + order: "desc", + Foots: "", + total: 0, + // 2020.08.29澧炲姞鑷畾涔夊垎椤垫潯澶у皬 + sizes: [30, 60, 100, 120], + size: 30, // 榛樿鍒嗛〉澶у皬 + Wheres: [], + page: 1, + rows: 30, + }, + searchFormOptions: [ + [ + { + title: "鍗曟嵁缂栧彿", + field: "allocation_code", + type: "like", + }, + { + title: "鍗曟嵁绫诲瀷", + field: "allocation_type", + type: "select", + dataKey: "OrderType", + data: [], + }, + { + title: "鍗曟嵁鐘舵��", + field: "allocation_state", + type: "select", + dataKey: "OrderState", + data: [], + }, + ], + ], + searchFormFields: { + allocation_code: "", + allocation_type: "", + allocation_state: "", + }, + dictionaryList: null, + }; + }, + methods: { + open(row) { + this.row = row; + this.showDetialBox = true; + this.getDictionaryData(); + this.getData(); + }, + getData() { + var wheres = [{ name: "orderId", value: this.row.id }]; + var param = { + page: this.paginations.page, + rows: this.paginations.rows, + sort: this.paginations.sort, + order: this.paginations.order, + wheres: JSON.stringify(wheres), // 鏌ヨ鏉′欢锛屾牸寮忎负[{ name: "瀛楁", value: "xx" }] + }; + this.http + .post("api/ProOutOrderDetail/GetPageData", param, "鏌ヨ涓�") + .then((x) => { + // console.log(x.rows); + this.tableData = x.rows; + }); + }, + tableButtonClick(row, column) { + if (column.prop == "assignStock") { + console.log(row); + console.log(this.$refs.childs); + this.$refs.childs.open(row); + } else { + //鐐瑰嚮鎵撳紑鍑哄簱璇︽儏 + this.$refs.SelectedStock.open(row); + } + }, + lockstocks() { + if (this.selection.length === 0) { + return this.$message.error("璇烽�夋嫨鍗曟嵁鏄庣粏"); + } + var keys = this.selection.map((item) => item.id); // 鑾峰彇閫変腑琛岀殑id + this.http + .post("api/OutboundOrderDetail/LockOutboundStocks", keys, "鏁版嵁澶勭悊涓�") + .then((x) => { + if (!x.status) return this.$message.error(x.message); + this.$message.success("鎿嶄綔鎴愬姛"); + this.showDetialBox = false; + this.$emit("parentCall", ($vue) => { + $vue.getData(); + }); + }); + }, + outbound() { + if (this.selection.length === 0) { + return this.$message.error("璇烽�夋嫨鍗曟嵁鏄庣粏"); + } + var keys = this.selection.map((item) => item.id); // 鑾峰彇閫変腑琛岀殑id + + this.http + .post("api/Mes/PPCutOutGenerateOutboundTasks", keys, "鏁版嵁澶勭悊涓�") + .then((x) => { + if (!x.status) return this.$message.error(x.message); + this.$message.success("鎿嶄綔鎴愬姛"); + this.showDetialBox = false; + this.$emit("parentCall", ($vue) => { + $vue.getData(); + }); + }); + }, + setCurrent(row) { + this.$refs.singleTable.setCurrentRow(row); + }, + handleCurrentChange(val) { + this.currentRow = val; + }, + getButtonEnable(propName, row) { + if (propName == "assignStock") { + if ( + row.orderDetailStatus !== 0 && + row.orderDetailStatus !== 60 && + row.orderDetailStatus !== 70 && + row.orderDetailStatus !== 80 + ) { + return true; + } else { + return false; + } + } + return false; + }, + parentCall(fun) { + if (typeof fun != "function") { + return console.log("鎵╁睍缁勪欢闇�瑕佷紶鍏ヤ竴涓洖璋冩柟娉曟墠鑳借幏鍙栫埗绾ue瀵硅薄"); + } + fun(this); + }, + handleRowClick(row) { + this.$refs.singleTable.toggleRowSelection(row); + }, + handleSelectionChange(val) { + this.selection = val; + }, + getDictionaryData() { + if (this.dictionaryList) { + return; + } + var param = []; + this.tableColumns.forEach((x) => { + if (x.type == "tag" && x.bindKey != "") { + param.push(x.bindKey); + } + }); + this.http + .post("api/Sys_Dictionary/GetVueDictionary", param, "鏌ヨ涓�") + .then((x) => { + if (x.length > 0) { + this.dictionaryList = x; + } + }); + }, + getDictionary(row, column) { + if (this.dictionaryList) { + var item = this.dictionaryList.find((x) => x.dicNo == column.bindKey); + if (item) { + var dicItem = item.data.find((x) => x.key == row[column.prop]); + console.log(dicItem); + if (dicItem) { + return dicItem.value; + } else { + return row[column.prop]; + } + } else { + return row[column.prop]; + } + } + }, + }, +}; +</script> +<style scoped> +.text-button { + border: 0px; +} +</style> + +<style> +.text-button:hover { + background-color: #f0f9eb !important; +} + +.el-table .warning-row { + background: oldlace; +} + +.box-table .el-table tbody tr:hover > td { + background-color: #d8e0d4 !important; + /* color: #ffffff; */ +} + +.box-table .el-table tbody tr.current-row > td { + background-color: #f0f9eb !important; + /* color: #ffffff; */ +} + +.el-table .success-row { + background: #f0f9eb; +} + +.box-table .el-table { + border: 1px solid #ebeef5; +} +</style> diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/outbound/proOutOrder.js" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/outbound/proOutOrder.js" new file mode 100644 index 0000000..f43b89c --- /dev/null +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/outbound/proOutOrder.js" @@ -0,0 +1,74 @@ + +//姝s鏂囦欢鏄敤鏉ヨ嚜瀹氫箟鎵╁睍涓氬姟浠g爜锛屽彲浠ユ墿灞曚竴浜涜嚜瀹氫箟椤甸潰鎴栬�呴噸鏂伴厤缃敓鎴愮殑浠g爜 +import gridBody from './extend/proOutboundOrderDetail.vue' +let extension = { + components: { + //鏌ヨ鐣岄潰鎵╁睍缁勪欢 + gridHeader: '', + gridBody: gridBody, + gridFooter: '', + //鏂板缓銆佺紪杈戝脊鍑烘鎵╁睍缁勪欢 + modelHeader: '', + modelBody: '', + modelFooter: '' + }, + tableAction: '', //鎸囧畾鏌愬紶琛ㄧ殑鏉冮檺(杩欓噷濉啓琛ㄥ悕,榛樿涓嶇敤濉啓) + buttons: { view: [], box: [], detail: [] }, //鎵╁睍鐨勬寜閽� + methods: { + //涓嬮潰杩欎簺鏂规硶鍙互淇濈暀涔熷彲浠ュ垹闄� + onInit() { + //鎵╁睍椤甸潰鍒濆鍖栨搷浣� + this.columns.push({ + field: '鎿嶄綔', + title: '鎿嶄綔', + width: 90, + fixed: 'right', + align: 'center', + formatter: (row) => { + return ( + '<i style="cursor: pointer;color: #2d8cf0;"class="el-icon-view">鏌ョ湅鏄庣粏</i>' + ); + }, + click: (row) => { + this.$refs.gridBody.open(row); + } + }); + }, + onInited() { + //妗嗘灦鍒濆鍖栭厤缃悗 + //濡傛灉瑕侀厤缃槑缁嗚〃,鍦ㄦ鏂规硶鎿嶄綔 + //this.detailOptions.columns.forEach(column=>{ }); + }, + searchBefore(param) { + //鐣岄潰鏌ヨ鍓�,鍙互缁檖aram.wheres娣诲姞鏌ヨ鍙傛暟 + //杩斿洖false锛屽垯涓嶄細鎵ц鏌ヨ + return true; + }, + searchAfter(result) { + //鏌ヨ鍚庯紝result杩斿洖鐨勬煡璇㈡暟鎹�,鍙互鍦ㄦ樉绀哄埌琛ㄦ牸鍓嶅鐞嗚〃鏍肩殑鍊� + return true; + }, + addBefore(formData) { + //鏂板缓淇濆瓨鍓峟ormData涓哄璞★紝鍖呮嫭鏄庣粏琛紝鍙互缁欑粰琛ㄥ崟璁剧疆鍊硷紝鑷繁杈撳嚭鐪媐ormData鐨勫�� + return true; + }, + updateBefore(formData) { + //缂栬緫淇濆瓨鍓峟ormData涓哄璞★紝鍖呮嫭鏄庣粏琛ㄣ�佸垹闄よ鐨処d + return true; + }, + rowClick({ row, column, event }) { + //鏌ヨ鐣岄潰鐐瑰嚮琛屼簨浠� + this.$refs.table.$refs.table.toggleRowSelection(row); //鍗曞嚮琛屾椂閫変腑褰撳墠琛�; + }, + modelOpenAfter(row) { + //鐐瑰嚮缂栬緫銆佹柊寤烘寜閽脊鍑烘鍚庯紝鍙互鍦ㄦ澶勫啓閫昏緫锛屽锛屼粠鍚庡彴鑾峰彇鏁版嵁 + //(1)鍒ゆ柇鏄紪杈戣繕鏄柊寤烘搷浣滐細 this.currentAction=='Add'; + //(2)缁欏脊鍑烘璁剧疆榛樿鍊� + //(3)this.editFormFields.瀛楁='xxx'; + //濡傛灉闇�瑕佺粰涓嬫媺妗嗚缃粯璁ゅ�硷紝璇烽亶鍘唗his.editFormOptions鎵惧埌瀛楁閰嶇疆瀵瑰簲data灞炴�х殑key鍊� + //鐪嬩笉鎳傚氨鎶婅緭鍑虹湅锛歝onsole.log(this.editFormOptions) + } + } + }; + export default extension; + \ No newline at end of file diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/outbound/proOutOrderDetail.js" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/outbound/proOutOrderDetail.js" new file mode 100644 index 0000000..24e1d94 --- /dev/null +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/outbound/proOutOrderDetail.js" @@ -0,0 +1,58 @@ + +//姝s鏂囦欢鏄敤鏉ヨ嚜瀹氫箟鎵╁睍涓氬姟浠g爜锛屽彲浠ユ墿灞曚竴浜涜嚜瀹氫箟椤甸潰鎴栬�呴噸鏂伴厤缃敓鎴愮殑浠g爜 + +let extension = { + components: { + //鏌ヨ鐣岄潰鎵╁睍缁勪欢 + gridHeader: '', + gridBody: '', + gridFooter: '', + //鏂板缓銆佺紪杈戝脊鍑烘鎵╁睍缁勪欢 + modelHeader: '', + modelBody: '', + modelFooter: '' + }, + tableAction: '', //鎸囧畾鏌愬紶琛ㄧ殑鏉冮檺(杩欓噷濉啓琛ㄥ悕,榛樿涓嶇敤濉啓) + buttons: { view: [], box: [], detail: [] }, //鎵╁睍鐨勬寜閽� + methods: { + //涓嬮潰杩欎簺鏂规硶鍙互淇濈暀涔熷彲浠ュ垹闄� + onInit() { + }, + onInited() { + //妗嗘灦鍒濆鍖栭厤缃悗 + //濡傛灉瑕侀厤缃槑缁嗚〃,鍦ㄦ鏂规硶鎿嶄綔 + //this.detailOptions.columns.forEach(column=>{ }); + }, + searchBefore(param) { + //鐣岄潰鏌ヨ鍓�,鍙互缁檖aram.wheres娣诲姞鏌ヨ鍙傛暟 + //杩斿洖false锛屽垯涓嶄細鎵ц鏌ヨ + return true; + }, + searchAfter(result) { + //鏌ヨ鍚庯紝result杩斿洖鐨勬煡璇㈡暟鎹�,鍙互鍦ㄦ樉绀哄埌琛ㄦ牸鍓嶅鐞嗚〃鏍肩殑鍊� + return true; + }, + addBefore(formData) { + //鏂板缓淇濆瓨鍓峟ormData涓哄璞★紝鍖呮嫭鏄庣粏琛紝鍙互缁欑粰琛ㄥ崟璁剧疆鍊硷紝鑷繁杈撳嚭鐪媐ormData鐨勫�� + return true; + }, + updateBefore(formData) { + //缂栬緫淇濆瓨鍓峟ormData涓哄璞★紝鍖呮嫭鏄庣粏琛ㄣ�佸垹闄よ鐨処d + return true; + }, + rowClick({ row, column, event }) { + //鏌ヨ鐣岄潰鐐瑰嚮琛屼簨浠� + this.$refs.table.$refs.table.toggleRowSelection(row); //鍗曞嚮琛屾椂閫変腑褰撳墠琛�; + }, + modelOpenAfter(row) { + //鐐瑰嚮缂栬緫銆佹柊寤烘寜閽脊鍑烘鍚庯紝鍙互鍦ㄦ澶勫啓閫昏緫锛屽锛屼粠鍚庡彴鑾峰彇鏁版嵁 + //(1)鍒ゆ柇鏄紪杈戣繕鏄柊寤烘搷浣滐細 this.currentAction=='Add'; + //(2)缁欏脊鍑烘璁剧疆榛樿鍊� + //(3)this.editFormFields.瀛楁='xxx'; + //濡傛灉闇�瑕佺粰涓嬫媺妗嗚缃粯璁ゅ�硷紝璇烽亶鍘唗his.editFormOptions鎵惧埌瀛楁閰嶇疆瀵瑰簲data灞炴�х殑key鍊� + //鐪嬩笉鎳傚氨鎶婅緭鍑虹湅锛歝onsole.log(this.editFormOptions) + } + } + }; + export default extension; + \ No newline at end of file diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/stock/proStockInfo.js" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/stock/proStockInfo.js" new file mode 100644 index 0000000..6292426 --- /dev/null +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/stock/proStockInfo.js" @@ -0,0 +1,59 @@ + +//姝s鏂囦欢鏄敤鏉ヨ嚜瀹氫箟鎵╁睍涓氬姟浠g爜锛屽彲浠ユ墿灞曚竴浜涜嚜瀹氫箟椤甸潰鎴栬�呴噸鏂伴厤缃敓鎴愮殑浠g爜 + +let extension = { + components: { + //鏌ヨ鐣岄潰鎵╁睍缁勪欢 + gridHeader: '', + gridBody: '', + gridFooter: '', + //鏂板缓銆佺紪杈戝脊鍑烘鎵╁睍缁勪欢 + modelHeader: '', + modelBody: '', + modelFooter: '' + }, + tableAction: '', //鎸囧畾鏌愬紶琛ㄧ殑鏉冮檺(杩欓噷濉啓琛ㄥ悕,榛樿涓嶇敤濉啓) + buttons: { view: [], box: [], detail: [] }, //鎵╁睍鐨勬寜閽� + methods: { + //涓嬮潰杩欎簺鏂规硶鍙互淇濈暀涔熷彲浠ュ垹闄� + onInit() { + + }, + onInited() { + //妗嗘灦鍒濆鍖栭厤缃悗 + //濡傛灉瑕侀厤缃槑缁嗚〃,鍦ㄦ鏂规硶鎿嶄綔 + //this.detailOptions.columns.forEach(column=>{ }); + }, + searchBefore(param) { + //鐣岄潰鏌ヨ鍓�,鍙互缁檖aram.wheres娣诲姞鏌ヨ鍙傛暟 + //杩斿洖false锛屽垯涓嶄細鎵ц鏌ヨ + return true; + }, + searchAfter(result) { + //鏌ヨ鍚庯紝result杩斿洖鐨勬煡璇㈡暟鎹�,鍙互鍦ㄦ樉绀哄埌琛ㄦ牸鍓嶅鐞嗚〃鏍肩殑鍊� + return true; + }, + addBefore(formData) { + //鏂板缓淇濆瓨鍓峟ormData涓哄璞★紝鍖呮嫭鏄庣粏琛紝鍙互缁欑粰琛ㄥ崟璁剧疆鍊硷紝鑷繁杈撳嚭鐪媐ormData鐨勫�� + return true; + }, + updateBefore(formData) { + //缂栬緫淇濆瓨鍓峟ormData涓哄璞★紝鍖呮嫭鏄庣粏琛ㄣ�佸垹闄よ鐨処d + return true; + }, + rowClick({ row, column, event }) { + //鏌ヨ鐣岄潰鐐瑰嚮琛屼簨浠� + this.$refs.table.$refs.table.toggleRowSelection(row); //鍗曞嚮琛屾椂閫変腑褰撳墠琛�; + }, + modelOpenAfter(row) { + //鐐瑰嚮缂栬緫銆佹柊寤烘寜閽脊鍑烘鍚庯紝鍙互鍦ㄦ澶勫啓閫昏緫锛屽锛屼粠鍚庡彴鑾峰彇鏁版嵁 + //(1)鍒ゆ柇鏄紪杈戣繕鏄柊寤烘搷浣滐細 this.currentAction=='Add'; + //(2)缁欏脊鍑烘璁剧疆榛樿鍊� + //(3)this.editFormFields.瀛楁='xxx'; + //濡傛灉闇�瑕佺粰涓嬫媺妗嗚缃粯璁ゅ�硷紝璇烽亶鍘唗his.editFormOptions鎵惧埌瀛楁閰嶇疆瀵瑰簲data灞炴�х殑key鍊� + //鐪嬩笉鎳傚氨鎶婅緭鍑虹湅锛歝onsole.log(this.editFormOptions) + } + } + }; + export default extension; + \ No newline at end of file diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/stock/proStockInfoDetail.js" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/stock/proStockInfoDetail.js" new file mode 100644 index 0000000..6292426 --- /dev/null +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/stock/proStockInfoDetail.js" @@ -0,0 +1,59 @@ + +//姝s鏂囦欢鏄敤鏉ヨ嚜瀹氫箟鎵╁睍涓氬姟浠g爜锛屽彲浠ユ墿灞曚竴浜涜嚜瀹氫箟椤甸潰鎴栬�呴噸鏂伴厤缃敓鎴愮殑浠g爜 + +let extension = { + components: { + //鏌ヨ鐣岄潰鎵╁睍缁勪欢 + gridHeader: '', + gridBody: '', + gridFooter: '', + //鏂板缓銆佺紪杈戝脊鍑烘鎵╁睍缁勪欢 + modelHeader: '', + modelBody: '', + modelFooter: '' + }, + tableAction: '', //鎸囧畾鏌愬紶琛ㄧ殑鏉冮檺(杩欓噷濉啓琛ㄥ悕,榛樿涓嶇敤濉啓) + buttons: { view: [], box: [], detail: [] }, //鎵╁睍鐨勬寜閽� + methods: { + //涓嬮潰杩欎簺鏂规硶鍙互淇濈暀涔熷彲浠ュ垹闄� + onInit() { + + }, + onInited() { + //妗嗘灦鍒濆鍖栭厤缃悗 + //濡傛灉瑕侀厤缃槑缁嗚〃,鍦ㄦ鏂规硶鎿嶄綔 + //this.detailOptions.columns.forEach(column=>{ }); + }, + searchBefore(param) { + //鐣岄潰鏌ヨ鍓�,鍙互缁檖aram.wheres娣诲姞鏌ヨ鍙傛暟 + //杩斿洖false锛屽垯涓嶄細鎵ц鏌ヨ + return true; + }, + searchAfter(result) { + //鏌ヨ鍚庯紝result杩斿洖鐨勬煡璇㈡暟鎹�,鍙互鍦ㄦ樉绀哄埌琛ㄦ牸鍓嶅鐞嗚〃鏍肩殑鍊� + return true; + }, + addBefore(formData) { + //鏂板缓淇濆瓨鍓峟ormData涓哄璞★紝鍖呮嫭鏄庣粏琛紝鍙互缁欑粰琛ㄥ崟璁剧疆鍊硷紝鑷繁杈撳嚭鐪媐ormData鐨勫�� + return true; + }, + updateBefore(formData) { + //缂栬緫淇濆瓨鍓峟ormData涓哄璞★紝鍖呮嫭鏄庣粏琛ㄣ�佸垹闄よ鐨処d + return true; + }, + rowClick({ row, column, event }) { + //鏌ヨ鐣岄潰鐐瑰嚮琛屼簨浠� + this.$refs.table.$refs.table.toggleRowSelection(row); //鍗曞嚮琛屾椂閫変腑褰撳墠琛�; + }, + modelOpenAfter(row) { + //鐐瑰嚮缂栬緫銆佹柊寤烘寜閽脊鍑烘鍚庯紝鍙互鍦ㄦ澶勫啓閫昏緫锛屽锛屼粠鍚庡彴鑾峰彇鏁版嵁 + //(1)鍒ゆ柇鏄紪杈戣繕鏄柊寤烘搷浣滐細 this.currentAction=='Add'; + //(2)缁欏脊鍑烘璁剧疆榛樿鍊� + //(3)this.editFormFields.瀛楁='xxx'; + //濡傛灉闇�瑕佺粰涓嬫媺妗嗚缃粯璁ゅ�硷紝璇烽亶鍘唗his.editFormOptions鎵惧埌瀛楁閰嶇疆瀵瑰簲data灞炴�х殑key鍊� + //鐪嬩笉鎳傚氨鎶婅緭鍑虹湅锛歝onsole.log(this.editFormOptions) + } + } + }; + export default extension; + \ No newline at end of file diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/stock/proStockInfoDetail_Hty.js" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/stock/proStockInfoDetail_Hty.js" new file mode 100644 index 0000000..6292426 --- /dev/null +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/stock/proStockInfoDetail_Hty.js" @@ -0,0 +1,59 @@ + +//姝s鏂囦欢鏄敤鏉ヨ嚜瀹氫箟鎵╁睍涓氬姟浠g爜锛屽彲浠ユ墿灞曚竴浜涜嚜瀹氫箟椤甸潰鎴栬�呴噸鏂伴厤缃敓鎴愮殑浠g爜 + +let extension = { + components: { + //鏌ヨ鐣岄潰鎵╁睍缁勪欢 + gridHeader: '', + gridBody: '', + gridFooter: '', + //鏂板缓銆佺紪杈戝脊鍑烘鎵╁睍缁勪欢 + modelHeader: '', + modelBody: '', + modelFooter: '' + }, + tableAction: '', //鎸囧畾鏌愬紶琛ㄧ殑鏉冮檺(杩欓噷濉啓琛ㄥ悕,榛樿涓嶇敤濉啓) + buttons: { view: [], box: [], detail: [] }, //鎵╁睍鐨勬寜閽� + methods: { + //涓嬮潰杩欎簺鏂规硶鍙互淇濈暀涔熷彲浠ュ垹闄� + onInit() { + + }, + onInited() { + //妗嗘灦鍒濆鍖栭厤缃悗 + //濡傛灉瑕侀厤缃槑缁嗚〃,鍦ㄦ鏂规硶鎿嶄綔 + //this.detailOptions.columns.forEach(column=>{ }); + }, + searchBefore(param) { + //鐣岄潰鏌ヨ鍓�,鍙互缁檖aram.wheres娣诲姞鏌ヨ鍙傛暟 + //杩斿洖false锛屽垯涓嶄細鎵ц鏌ヨ + return true; + }, + searchAfter(result) { + //鏌ヨ鍚庯紝result杩斿洖鐨勬煡璇㈡暟鎹�,鍙互鍦ㄦ樉绀哄埌琛ㄦ牸鍓嶅鐞嗚〃鏍肩殑鍊� + return true; + }, + addBefore(formData) { + //鏂板缓淇濆瓨鍓峟ormData涓哄璞★紝鍖呮嫭鏄庣粏琛紝鍙互缁欑粰琛ㄥ崟璁剧疆鍊硷紝鑷繁杈撳嚭鐪媐ormData鐨勫�� + return true; + }, + updateBefore(formData) { + //缂栬緫淇濆瓨鍓峟ormData涓哄璞★紝鍖呮嫭鏄庣粏琛ㄣ�佸垹闄よ鐨処d + return true; + }, + rowClick({ row, column, event }) { + //鏌ヨ鐣岄潰鐐瑰嚮琛屼簨浠� + this.$refs.table.$refs.table.toggleRowSelection(row); //鍗曞嚮琛屾椂閫変腑褰撳墠琛�; + }, + modelOpenAfter(row) { + //鐐瑰嚮缂栬緫銆佹柊寤烘寜閽脊鍑烘鍚庯紝鍙互鍦ㄦ澶勫啓閫昏緫锛屽锛屼粠鍚庡彴鑾峰彇鏁版嵁 + //(1)鍒ゆ柇鏄紪杈戣繕鏄柊寤烘搷浣滐細 this.currentAction=='Add'; + //(2)缁欏脊鍑烘璁剧疆榛樿鍊� + //(3)this.editFormFields.瀛楁='xxx'; + //濡傛灉闇�瑕佺粰涓嬫媺妗嗚缃粯璁ゅ�硷紝璇烽亶鍘唗his.editFormOptions鎵惧埌瀛楁閰嶇疆瀵瑰簲data灞炴�х殑key鍊� + //鐪嬩笉鎳傚氨鎶婅緭鍑虹湅锛歝onsole.log(this.editFormOptions) + } + } + }; + export default extension; + \ No newline at end of file diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/stock/proStockInfo_Hty.js" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/stock/proStockInfo_Hty.js" new file mode 100644 index 0000000..6292426 --- /dev/null +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/stock/proStockInfo_Hty.js" @@ -0,0 +1,59 @@ + +//姝s鏂囦欢鏄敤鏉ヨ嚜瀹氫箟鎵╁睍涓氬姟浠g爜锛屽彲浠ユ墿灞曚竴浜涜嚜瀹氫箟椤甸潰鎴栬�呴噸鏂伴厤缃敓鎴愮殑浠g爜 + +let extension = { + components: { + //鏌ヨ鐣岄潰鎵╁睍缁勪欢 + gridHeader: '', + gridBody: '', + gridFooter: '', + //鏂板缓銆佺紪杈戝脊鍑烘鎵╁睍缁勪欢 + modelHeader: '', + modelBody: '', + modelFooter: '' + }, + tableAction: '', //鎸囧畾鏌愬紶琛ㄧ殑鏉冮檺(杩欓噷濉啓琛ㄥ悕,榛樿涓嶇敤濉啓) + buttons: { view: [], box: [], detail: [] }, //鎵╁睍鐨勬寜閽� + methods: { + //涓嬮潰杩欎簺鏂规硶鍙互淇濈暀涔熷彲浠ュ垹闄� + onInit() { + + }, + onInited() { + //妗嗘灦鍒濆鍖栭厤缃悗 + //濡傛灉瑕侀厤缃槑缁嗚〃,鍦ㄦ鏂规硶鎿嶄綔 + //this.detailOptions.columns.forEach(column=>{ }); + }, + searchBefore(param) { + //鐣岄潰鏌ヨ鍓�,鍙互缁檖aram.wheres娣诲姞鏌ヨ鍙傛暟 + //杩斿洖false锛屽垯涓嶄細鎵ц鏌ヨ + return true; + }, + searchAfter(result) { + //鏌ヨ鍚庯紝result杩斿洖鐨勬煡璇㈡暟鎹�,鍙互鍦ㄦ樉绀哄埌琛ㄦ牸鍓嶅鐞嗚〃鏍肩殑鍊� + return true; + }, + addBefore(formData) { + //鏂板缓淇濆瓨鍓峟ormData涓哄璞★紝鍖呮嫭鏄庣粏琛紝鍙互缁欑粰琛ㄥ崟璁剧疆鍊硷紝鑷繁杈撳嚭鐪媐ormData鐨勫�� + return true; + }, + updateBefore(formData) { + //缂栬緫淇濆瓨鍓峟ormData涓哄璞★紝鍖呮嫭鏄庣粏琛ㄣ�佸垹闄よ鐨処d + return true; + }, + rowClick({ row, column, event }) { + //鏌ヨ鐣岄潰鐐瑰嚮琛屼簨浠� + this.$refs.table.$refs.table.toggleRowSelection(row); //鍗曞嚮琛屾椂閫変腑褰撳墠琛�; + }, + modelOpenAfter(row) { + //鐐瑰嚮缂栬緫銆佹柊寤烘寜閽脊鍑烘鍚庯紝鍙互鍦ㄦ澶勫啓閫昏緫锛屽锛屼粠鍚庡彴鑾峰彇鏁版嵁 + //(1)鍒ゆ柇鏄紪杈戣繕鏄柊寤烘搷浣滐細 this.currentAction=='Add'; + //(2)缁欏脊鍑烘璁剧疆榛樿鍊� + //(3)this.editFormFields.瀛楁='xxx'; + //濡傛灉闇�瑕佺粰涓嬫媺妗嗚缃粯璁ゅ�硷紝璇烽亶鍘唗his.editFormOptions鎵惧埌瀛楁閰嶇疆瀵瑰簲data灞炴�х殑key鍊� + //鐪嬩笉鎳傚氨鎶婅緭鍑虹湅锛歝onsole.log(this.editFormOptions) + } + } + }; + export default extension; + \ No newline at end of file diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/router/viewGird.js" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/router/viewGird.js" index eb62378..95bbbba 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/router/viewGird.js" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/router/viewGird.js" @@ -216,7 +216,43 @@ path: '/takeStockOrder', name: 'takeStockOrder', component: () => import('@/views/inbound/takeStockOrder.vue') - } + },{ + path: '/proStockInfo_Hty', + name: 'proStockInfo_Hty', + component: () => import('@/views/stock/proStockInfo_Hty.vue') + }, + { + path: '/proStockInfo', + name: 'proStockInfo', + component: () => import('@/views/stock/proStockInfo.vue') + }, + { + path: '/proStockInfoDetail', + name: 'proStockInfoDetail', + component: () => import('@/views/stock/proStockInfoDetail.vue') + }, + { + path: '/proStockInfoDetail_Hty', + name: 'proStockInfoDetail_Hty', + component: () => import('@/views/stock/proStockInfoDetail_Hty.vue') + },{ + path: '/proOutOrder', + name: 'proOutOrder', + component: () => import('@/views/outbound/proOutOrder.vue') + }, { + path: '/proOutOrderDetail', + name: 'proOutOrderDetail', + component: () => import('@/views/outbound/proOutOrderDetail.vue') + }, + { + path: '/mesProInOrder', + name: 'mesProInOrder', + component: () => import('@/views/inbound/mesProInOrder.vue') + }, + { + path: '/mesProInOrderDetail', + name: 'mesProInOrderDetail', + component: () => import('@/views/inbound/mesProInOrderDetail.vue') + }, ] - export default viewgird diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/inbound/mesPPBackInboundOrder.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/inbound/mesPPBackInboundOrder.vue" index f375a69..6824fd9 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/inbound/mesPPBackInboundOrder.vue" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/inbound/mesPPBackInboundOrder.vue" @@ -202,125 +202,137 @@ ]); const detail = ref({ cnName: "鍏ュ簱鍗曟槑缁�", - table: "InboundOrderDetail", + table: "MesPPBackInboundOrderDetail", columns: [ { - field: "id", - title: "Id", - type: "int", - width: 90, - hidden: true, - readonly: true, - require: true, - align: "left", - }, - { - field: "orderId", - title: "鍏ュ簱鍗曚富閿�", - type: "string", - width: 90, - align: "left", - hidden: true, - }, - { - field: "materielCode", - title: "鐗╂枡缂栧彿", - type: "select", - width: 150, - align: "left", - edit: { type: "" }, - required: true, - }, - { - field: "materielName", - title: "鐗╂枡鍚嶇О", - type: "string", - width: 100, - align: "left", - }, - { - field: "materielSpec", - title: "鐗╂枡瑙勬牸", - type: "select", - type: "string", - width: 100, - align: "left", - }, - { - field: "batchNo", - title: "鎵规鍙�", - type: "decimal", - width: 90, - align: "left", - edit: { type: "" }, - required: true, - }, - { - field: "orderQuantity", - title: "鍗曟嵁鏁伴噺", - type: "decimal", - width: 90, - align: "left", - edit: { type: "number" }, - required: true, - }, - { - field: "receiptQuantity", - title: "缁勭洏鏁伴噺", - type: "int", - width: 120, - align: "left", - }, - { - field: "overInQuantity", - title: "涓婃灦鏁伴噺", - type: "string", - width: 200, - align: "left", - }, - { - field: "orderDetailStatus", - title: "璁㈠崟鏄庣粏鐘舵��", - type: "string", - width: 180, - align: "left", - bind: { key: "orderDetailStatusEnum", data: [] }, - }, - { - field: "creater", - title: "鍒涘缓浜�", - type: "string", - width: 90, - align: "left", - }, - { - field: "createDate", - title: "鍒涘缓鏃堕棿", - type: "datetime", - width: 160, - align: "left", - }, - { - field: "modifier", - title: "淇敼浜�", - type: "string", - width: 100, - align: "left", - }, - { - field: "modifyDate", - title: "淇敼鏃堕棿", - type: "datetime", - width: 160, - align: "left", - }, - { - field: "remark", - title: "澶囨敞", - type: "string", - width: 100, - align: "left", - }, + field: "id", + title: "Id", + type: "int", + width: 90, + hidden: true, + readonly: true, + require: true, + align: "left", + }, + { + field: "orderId", + title: "鍏ュ簱鍗曚富閿�", + type: "string", + width: 90, + align: "left", + }, + { + field: "materielCode", + title: "鐗╂枡缂栧彿", + type: "string", + width: 150, + align: "left", + }, + { + field: "materielName", + title: "鐗╂枡鍚嶇О", + type: "string", + width: 150, + align: "left", + }, + { + field: "materialLot", + title: "鎵规鍙�", + type: "string", + width: 90, + align: "left", + }, + { + field: "orderQuantity", + title: "鍗曟嵁鏁伴噺", + type: "string", + width: 90, + align: "left", + }, + { + field: "receiptQuantity", + title: "缁勭洏鏁伴噺", + type: "int", + width: 120, + align: "left", + }, + { + field: "overInQuantity", + title: "涓婃灦鏁伴噺", + type: "string", + width: 120, + align: "left", + }, + { + field: "orderDetailStatus", + title: "璁㈠崟鏄庣粏鐘舵��", + type: "string", + width: 120, + align: "left", + }, + { + field: "cutedWidth", + title: "瑁佸垏瀹�", + type: "string", + width: 100, + align: "left", + }, + { + field: "unit", + title: "鍗曚綅", + type: "string", + width: 50, + align: "left", + }, + { + field: "productionDate", + title: "鐢熶骇鏃ユ湡", + type: "string", + width: 120, + align: "left", + }, + { + field: "effectiveDate", + title: "鏈夋晥鏃ユ湡", + type: "string", + width: 120, + align: "left", + }, + { + field: "creater", + title: "鍒涘缓浜�", + type: "string", + width: 90, + align: "left", + }, + { + field: "createDate", + title: "鍒涘缓鏃堕棿", + type: "datetime", + width: 160, + align: "left", + }, + { + field: "modifier", + title: "淇敼浜�", + type: "string", + width: 100, + align: "left", + }, + { + field: "modifyDate", + title: "淇敼鏃堕棿", + type: "datetime", + width: 160, + align: "left", + }, + { + field: "remark", + title: "澶囨敞", + type: "string", + width: 100, + align: "left", + }, ], sortName: "id", key: "id", diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/inbound/mesPPBackInboundOrderDetail.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/inbound/mesPPBackInboundOrderDetail.vue" index fb7d4a2..915a940 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/inbound/mesPPBackInboundOrderDetail.vue" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/inbound/mesPPBackInboundOrderDetail.vue" @@ -111,58 +111,88 @@ align: "left", }, { - field: "inboundOrderNo", - title: "鍗曟嵁缂栧彿", - type: "string", - width: 120, - align: "left", - link: true, - }, - { - field: "warehouseId", - title: "浠撳簱", - type: "string", - width: 90, - align: "left", - bind:{key: "warehouses", data: []} - }, - { - field: "SourceAddressCode", - title: "婧愬湴鍧�鐮�", - type: "string", - width: 90, - align: "left", - }, - { - field: "CarrierCode", - title: "杞藉叿鍙�", + field: "orderId", + title: "鍏ュ簱鍗曚富閿�", type: "string", width: 90, align: "left", }, { - field: "orderType", - title: "鍗曟嵁绫诲瀷", + field: "materielCode", + title: "鐗╂枡缂栧彿", type: "string", width: 150, align: "left", - bind: { key: "inOrderType", data: [] }, }, { - field: "orderStatus", - title: "鍗曟嵁鐘舵��", - type: "decimal", + field: "materielName", + title: "鐗╂枡鍚嶇О", + type: "string", + width: 150, + align: "left", + }, + { + field: "materialLot", + title: "鎵规鍙�", + type: "string", width: 90, align: "left", - bind: { key: "inboundState", data: [] }, }, { - field: "createType", - title: "鍒涘缓鏂瑰紡", + field: "orderQuantity", + title: "鍗曟嵁鏁伴噺", + type: "string", + width: 90, + align: "left", + }, + { + field: "receiptQuantity", + title: "缁勭洏鏁伴噺", + type: "int", + width: 120, + align: "left", + }, + { + field: "overInQuantity", + title: "涓婃灦鏁伴噺", + type: "string", + width: 200, + align: "left", + }, + { + field: "orderDetailStatus", + title: "璁㈠崟鏄庣粏鐘舵��", + type: "string", + width: 180, + align: "left", + }, + { + field: "cutedWidth", + title: "瑁佸垏瀹�", + type: "string", + width: 100, + align: "left", + }, + { + field: "unit", + title: "鍗曚綅", + type: "string", + width: 50, + align: "left", + }, + { + field: "productionDate", + title: "鐢熶骇鏃ユ湡", type: "string", width: 120, align: "left", - bind: { key: "createType", data: [] }, + }, + { + field: "effectiveDate", + title: "鏈夋晥鏃ユ湡", + type: "string", + width: 120, + align: "left", }, { field: "creater", diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/inbound/mesProInOrder.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/inbound/mesProInOrder.vue" new file mode 100644 index 0000000..9895779 --- /dev/null +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/inbound/mesProInOrder.vue" @@ -0,0 +1,387 @@ + +<template> + <view-grid + ref="grid" + :columns="columns" + :detail="detail" + :editFormFields="editFormFields" + :editFormOptions="editFormOptions" + :searchFormFields="searchFormFields" + :searchFormOptions="searchFormOptions" + :table="table" + :extend="extend" + > + </view-grid> +</template> + <script> +import extend from "@/extension/inbound/mesProInOrder.js"; +import { ref, defineComponent } from "vue"; +export default defineComponent({ + setup() { + const table = ref({ + key: "id", + footer: "Foots", + cnName: "鍏ュ簱鍗�", + name: "mesProInOrder", + url: "/mesProInOrder/", + sortName: "id", + }); + const editFormFields = ref({ + orderType: "", + inboundOrderNo: "", + upperOrderNo: "", + remark: "", + }); + const editFormOptions = ref([ + [ + { + title: "鍗曟嵁绫诲瀷", + required: true, + field: "orderType", + type: "select", + dataKey: "inOrderType", + data: [], + }, + { + field: "inboundOrderNo", + title: "鍗曟嵁缂栧彿", + type: "string", + }, + { + title: "涓婃父鍗曟嵁缂栧彿", + field: "upperOrderNo", + type: "string", + }, + { + title: "澶囨敞", + field: "remark", + type: "textarea", + }, + ], + ]); + const searchFormFields = ref({ + inboundOrderNo: "", + upperOrderNo: "", + orderType: "", + orderStatus: "", + createType: "", + creater: "", + createDate: "", + }); + const searchFormOptions = ref([ + [ + { title: "鍗曟嵁缂栧彿", field: "inboundOrderNo", type: "like" }, + { title: "涓婃父鍗曟嵁缂栧彿", field: "upperOrderNo", type: "like" }, + { + title: "鍗曟嵁绫诲瀷", + field: "orderType", + type: "select", + dataKey: "inOrderType", + data: [], + }, + { + title: "鍗曟嵁鐘舵��", + field: "orderStatus", + type: "select", + dataKey: "inboundState", + data: [], + }, + ], + [ + { + title: "鍒涘缓鏂瑰紡", + field: "createType", + type: "select", + dataKey: "createType", + data: [], + }, + { title: "鍒涘缓鑰�", field: "creater", type: "like" }, + { title: "鍒涘缓鏃堕棿", field: "createDate", type: "datetime" }, + ], + ]); + const columns = ref([ + { + field: "id", + title: "Id", + type: "int", + width: 90, + hidden: true, + readonly: true, + require: true, + align: "left", + }, + { + field: "warehouseId", + title: "浠撳簱", + type: "string", + width: 90, + align: "left", + bind:{key: "warehouses", data: []} + }, + { + field: "proInOrderNo", + title: "鍏ュ簱鍗曟嵁缂栧彿", + type: "string", + width: 120, + align: "left", + link: true, + }, + { + field: "batchNo", + title: "鑳舵鐮�", + type: "string", + width: 150, + align: "left", + }, + + { + field: "mesProStatus", + title: "鍏ュ簱鍗曠姸鎬�", + type: "string", + width: 150, + align: "left", + // bind: { key: "inOrderType", data: [] }, + }, + { + field: "unPackStock", + title: "鏄惁鎷嗙鍏ュ簱", + type: "decimal", + width: 90, + align: "left", + }, + { + field: "workCenter", + title: "宸ヤ綔涓績", + type: "string", + width: 150, + align: "left", + }, + { + field: "createType", + title: "鍒涘缓鏂瑰紡", + type: "string", + width: 120, + align: "left", + bind: { key: "createType", data: [] }, + }, + { + field: "creater", + title: "鍒涘缓浜�", + type: "string", + width: 90, + align: "left", + }, + { + field: "createDate", + title: "鍒涘缓鏃堕棿", + type: "datetime", + width: 160, + align: "left", + }, + { + field: "modifier", + title: "淇敼浜�", + type: "string", + width: 100, + align: "left", + }, + { + field: "modifyDate", + title: "淇敼鏃堕棿", + type: "datetime", + width: 160, + align: "left", + }, + { + field: "remark", + title: "澶囨敞", + type: "string", + width: 100, + align: "left", + }, + ]); + const detail = ref({ + cnName: "鍏ュ簱鍗曟槑缁�", + table: "mesProInOrderDetail", + columns: [ + { + field: "id", + title: "Id", + type: "int", + width: 90, + hidden: true, + readonly: true, + require: true, + align: "left", + }, + { + field: "orderId", + title: "鍏ュ簱鍗曚富閿�", + type: "string", + width: 90, + align: "left", + }, + { + field: "bagNo", + title: "鍐呭寘鍙�", + type: "string", + width: 150, + align: "left", + }, + { + field: "productCode", + title: "浜у搧缂栫爜", + type: "string", + width: 150, + align: "left", + }, + { + field: "overInQuantity", + title: "涓婃灦鏁伴噺", + type: "string", + width: 180, + align: "left", + }, + { + field: "productVersion", + title: "鐗堟湰", + type: "string", + width: 90, + align: "left", + }, + { + field: "setQty", + title: "鍖呰SET鏁伴噺", + type: "string", + width: 120, + align: "left", + }, + { + field: "okpcsqty", + title: "鍚堟牸PCS鏁�", + type: "string", + width: 200, + align: "left", + }, + { + field: "dateCode", + title: "鍛ㄦ湡", + type: "string", + width: 200, + align: "left", + }, + { + field: "xQty", + title: "X鏁�", + type: "string", + width: 200, + align: "left", + }, + { + field: "xSite", + title: "X浣�", + type: "string", + width: 200, + align: "left", + }, + { + field: "weight", + title: "鍐呭寘閲嶉噺", + type: "string", + width: 200, + align: "left", + }, + { + field: "packingDate", + title: "鍖呰鏃堕棿", + type: "datetime", + width: 200, + align: "left", + }, + { + field: "lotNumber", + title: "鎵规鍙�", + type: "string", + width: 200, + align: "left", + }, + { + field: "erpOrder", + title: "ERP宸ュ崟", + type: "string", + width: 200, + align: "left", + }, + { + field: "moNumber", + title: "鍒堕�犺鍗�", + type: "string", + width: 200, + align: "left", + }, + { + field: "saleOrder", + title: "閿�鍞鍗�", + type: "string", + width: 200, + align: "left", + }, { + field: "remark", + title: "澶囨敞", + type: "string", + width: 200, + align: "left", + }, + { + field: "creater", + title: "鍒涘缓浜�", + type: "string", + width: 90, + align: "left", + }, + { + field: "createDate", + title: "鍒涘缓鏃堕棿", + type: "datetime", + width: 160, + align: "left", + }, + { + field: "modifier", + title: "淇敼浜�", + type: "string", + width: 100, + align: "left", + }, + { + field: "modifyDate", + title: "淇敼鏃堕棿", + type: "datetime", + width: 160, + align: "left", + }, + { + field: "remark", + title: "澶囨敞", + type: "string", + width: 100, + align: "left", + }, + ], + sortName: "id", + key: "id", + }); + return { + table, + extend, + editFormFields, + editFormOptions, + searchFormFields, + searchFormOptions, + columns, + detail, + }; + }, +}); +</script> + \ No newline at end of file diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/inbound/mesProInOrderDetail.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/inbound/mesProInOrderDetail.vue" new file mode 100644 index 0000000..89816c8 --- /dev/null +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/inbound/mesProInOrderDetail.vue" @@ -0,0 +1,254 @@ +<template> + <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields" + :editFormOptions="editFormOptions" :searchFormFields="searchFormFields" :searchFormOptions="searchFormOptions" + :table="table" :extend="extend"> + </view-grid> +</template> +<script> +import extend from "@/extension/inbound/mesProInOrderDetail.js"; +import { ref, defineComponent } from "vue"; +export default defineComponent({ + setup() { + const table = ref({ + key: "id", + footer: "Foots", + cnName: "鎴愬搧鍏ュ簱鏄庣粏淇℃伅", + name: "mesProInOrderDetail", + url: "/mesProInOrderDetail/", + sortName: "id", + }); + const editFormFields = ref({ + deviceCode: "", + deviceName: "", + deviceType: "", + deviceStatus: "", + deviceIp: "", + devicePort: "", + devicePlcType: "", + deviceRemark: "", + }); + const editFormOptions = ref([ + [ + { + title: "鐗╂枡缂栧彿", + required: true, + field: "materielCode", + type: "string", + }, + { + title: "鍗曟嵁缂栧彿", + required: true, + field: "materielName", + type: "string", + }, + { + title: "鎵规鍙�", + required: true, + field: "orderNo", + type: "string", + }, + { + title: "搴忓垪鍙�", + required: true, + field: "serialNumber", + type: "string", + }, + ], + + ]); + const searchFormFields = ref({ + materielCode: "", + materielName: "", + orderNo: "", + }); + const searchFormOptions = ref([ + [ + { title: "鐗╂枡缂栧彿", field: "materielCode" }, + { title: "鐗╂枡鍚嶇О", field: "materielName" }, + { title: "鍗曟嵁缂栧彿", field: "orderNo" }, + ], + ]); + const columns = ref([ + { + field: "id", + title: "Id", + type: "int", + width: 90, + hidden: true, + readonly: true, + require: true, + align: "left", + }, + { + field: "orderId", + title: "鍏ュ簱鍗曚富閿�", + type: "string", + width: 90, + align: "left", + }, + { + field: "bagNo", + title: "鍐呭寘鍙�", + type: "string", + width: 150, + align: "left", + }, + { + field: "productCode", + title: "浜у搧缂栫爜", + type: "string", + width: 150, + align: "left", + }, + { + field: "overInQuantity", + title: "涓婃灦鏁伴噺", + type: "string", + width: 180, + align: "left", + }, + { + field: "productVersion", + title: "鐗堟湰", + type: "string", + width: 90, + align: "left", + }, + { + field: "setQty", + title: "鍖呰SET鏁伴噺", + type: "string", + width: 120, + align: "left", + }, + { + field: "okpcsqty", + title: "鍚堟牸PCS鏁�", + type: "string", + width: 200, + align: "left", + }, + { + field: "dateCode", + title: "鍛ㄦ湡", + type: "string", + width: 200, + align: "left", + }, + { + field: "xQty", + title: "X鏁�", + type: "string", + width: 200, + align: "left", + }, + { + field: "xSite", + title: "X浣�", + type: "string", + width: 200, + align: "left", + }, + { + field: "weight", + title: "鍐呭寘閲嶉噺", + type: "string", + width: 200, + align: "left", + }, + { + field: "packingDate", + title: "鍖呰鏃堕棿", + type: "datetime", + width: 200, + align: "left", + }, + { + field: "lotNumber", + title: "鎵规鍙�", + type: "string", + width: 200, + align: "left", + }, + { + field: "erpOrder", + title: "ERP宸ュ崟", + type: "string", + width: 200, + align: "left", + }, + { + field: "moNumber", + title: "鍒堕�犺鍗�", + type: "string", + width: 200, + align: "left", + }, + { + field: "saleOrder", + title: "閿�鍞鍗�", + type: "string", + width: 200, + align: "left", + }, { + field: "remark", + title: "澶囨敞", + type: "string", + width: 200, + align: "left", + }, + { + field: "creater", + title: "鍒涘缓浜�", + type: "string", + width: 90, + align: "left", + }, + { + field: "createDate", + title: "鍒涘缓鏃堕棿", + type: "datetime", + width: 160, + align: "left", + }, + { + field: "modifier", + title: "淇敼浜�", + type: "string", + width: 100, + align: "left", + }, + { + field: "modifyDate", + title: "淇敼鏃堕棿", + type: "datetime", + width: 160, + align: "left", + }, + { + field: "remark", + title: "澶囨敞", + type: "string", + width: 100, + align: "left", + }, + ]); + const detail = ref({ + cnName: "#detailCnName", + table: "", + columns: [], + sortName: "", + }); + return { + table, + extend, + editFormFields, + editFormOptions, + searchFormFields, + searchFormOptions, + columns, + detail, + }; + }, +}); +</script> \ No newline at end of file diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/outbound/mesPPCutOutboundOrder.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/outbound/mesPPCutOutboundOrder.vue" index f8a3c72..22e5153 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/outbound/mesPPCutOutboundOrder.vue" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/outbound/mesPPCutOutboundOrder.vue" @@ -194,148 +194,144 @@ ]); const detail = ref({ cnName: "鍑哄簱鏄庣粏鍗�", - table: "mesPPCutOutOrderDetail", + table: "MesPPCutOutOrderDetail", columns: [ - { - field: "id", - title: "Id", - type: "int", - width: 90, - hidden: true, - readonly: true, - require: true, - align: "left", - }, - { - field: "orderId", - title: "鍑哄簱鍗曚富閿�", - type: "string", - width: 90, - align: "left", - hidden: true, - }, - { - field: "materielCode", - title: "鐗╂枡缂栧彿", - type: "string", - width: 150, - align: "left", - edit: { type: "string" }, - required: true, - }, - { - field: "materielName", - title: "鐗╂枡鍚嶇О", - type: "string", - width: 150, - align: "left", - edit: { type: "string" }, - }, - { - field: "batchNo", - title: "鎵规鍙�", - type: "decimal", - width: 90, - align: "left", - edit: { type: "string" }, - required: true, - }, - { - field: "orderQuantity", - title: "鍗曟嵁鏁伴噺", - type: "string", - width: 90, - align: "left", - edit: { type: "number" }, - required: true, - }, - { - field: "rowNo", - title: "琛屽彿", - type: "string", - width: 90, - align: "left", - edit: { type: "number" }, - required: true, - }, - { - field: "lockQuantity", - title: "閿佸畾鏁伴噺", - type: "int", - width: 120, - align: "left", - }, - { - field: "overOutQuantity", - title: "宸插嚭鏁伴噺", - type: "string", - width: 200, - align: "left", - }, - { - field: "orderDetailStatus", - title: "璁㈠崟鏄庣粏鐘舵��", - type: "string", - width: 180, - align: "left", - bind: { key: "orderDetailStatusEnum", data: [] }, - }, - { - field: "unit", - title: "鍗曚綅", - type: "string", - width: 90, - align: "left", - }, - { - field: "LayerCode", - title: "灞傚埆", - type: "string", - width: 180, - align: "left", - }, - { - field: "Sequence", - title: "搴忓垪", - type: "int", - width: 180, - align: "left", - }, - { - field: "creater", - title: "鍒涘缓浜�", - type: "string", - width: 90, - align: "left", - }, - { - field: "createDate", - title: "鍒涘缓鏃堕棿", - type: "datetime", - width: 160, - align: "left", - }, - { - field: "modifier", - title: "淇敼浜�", - type: "string", - width: 100, - align: "left", - }, - { - field: "modifyDate", - title: "淇敼鏃堕棿", - type: "datetime", - width: 160, - align: "left", - }, - { - field: "remark", - title: "澶囨敞", - type: "string", - width: 100, - align: "left", - }, + { + field: "id", + title: "Id", + type: "int", + width: 90, + hidden: true, + readonly: true, + align: "left", + }, + { + field: "orderId", + title: "鍑哄簱鍗曚富閿�", + type: "string", + width: 90, + align: "left", + hidden: true, + }, + { + field: "materielCode", + title: "鐗╂枡缂栧彿", + type: "string", + width: 150, + align: "left", + }, + { + field: "materielName", + title: "鐗╂枡鍚嶇О", + type: "string", + width: 150, + align: "left", + }, + { + field: "batchNo", + title: "鎵规鍙�", + type: "decimal", + width: 90, + align: "left", + }, + { + field: "orderQuantity", + title: "鍗曟嵁鏁伴噺", + type: "string", + width: 90, + align: "left", + }, + { + field: "lockQuantity", + title: "閿佸畾鏁伴噺", + type: "int", + width: 120, + align: "left", + }, + { + field: "overOutQuantity", + title: "宸插嚭鏁伴噺", + type: "string", + width: 200, + align: "left", + }, + { + field: "unit", + title: "鍗曚綅", + type: "string", + width: 90, + align: "left", + }, + { + field: "targetAddressCode", + title: "绾胯竟浠撳湴鍧�鐮�", + type: "string", + width: 100, + align: "left", + }, + { + field: "width", + title: "瑁佸垏瀹�", + type: "string", + width: 100, + align: "left", + }, + { + field: "orderDetailStatus", + title: "璁㈠崟鏄庣粏鐘舵��", + type: "string", + width: 180, + align: "left", + }, + { + field: "LayerCode", + title: "灞傚埆", + type: "string", + width: 180, + align: "left", + }, + { + field: "Sequence", + title: "搴忓垪", + type: "int", + width: 180, + align: "left", + }, + { + field: "creater", + title: "鍒涘缓浜�", + type: "string", + width: 90, + align: "left", + }, + { + field: "createDate", + title: "鍒涘缓鏃堕棿", + type: "datetime", + width: 160, + align: "left", + }, + { + field: "modifier", + title: "淇敼浜�", + type: "string", + width: 100, + align: "left", + }, + { + field: "modifyDate", + title: "淇敼鏃堕棿", + type: "datetime", + width: 160, + align: "left", + }, + { + field: "remark", + title: "澶囨敞", + type: "string", + width: 100, + align: "left", + }, ], sortName: "id", key: "id", diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/outbound/mesPPOutboundOrder.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/outbound/mesPPOutboundOrder.vue" index 2c6d599..622fcdd 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/outbound/mesPPOutboundOrder.vue" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/outbound/mesPPOutboundOrder.vue" @@ -79,13 +79,13 @@ // width: 90, // align: "left", // }, - { - field: "OrderStatus", - title: "璁㈠崟鐘舵��", - type: "string", - width: 180, + { + field: "orderStatus", + title: "鍗曟嵁鐘舵��", + type: "decimal", + width: 90, align: "left", - bind: { key: "orderDetailStatusEnum", data: [] }, + bind: { key: "outboundStatusEnum", data: [] }, }, { field: "materialCode", @@ -161,83 +161,89 @@ ]); const detail = ref({ cnName: "鍑哄簱鏄庣粏鍗�", - table: "OnboundOrderDetail", + table: "MesPPOutboundOrderDetail", columns: [ - { - field: "id", - title: "Id", - type: "int", - width: 90, - hidden: true, - readonly: true, - require: true, - align: "left", - }, - { - field: "orderId", - title: "鍑哄簱鍗曚富閿�", - type: "string", - width: 90, - align: "left", - hidden: true, - }, - { - field: "Warehouse", - title: "搴撳尯", - type: "string", - width: 150, - align: "left", - }, - { - field: "CarrierCode", - title: "杞藉叿鍙�", - type: "string", - width: 150, - align: "left", - }, - { - field: "orderDetailStatus", - title: "璁㈠崟鏄庣粏鐘舵��", - type: "string", - width: 180, - align: "left", - bind: { key: "orderDetailStatusEnum", data: [] }, - }, - { - field: "creater", - title: "鍒涘缓浜�", - type: "string", - width: 90, - align: "left", - }, - { - field: "createDate", - title: "鍒涘缓鏃堕棿", - type: "datetime", - width: 160, - align: "left", - }, - { - field: "modifier", - title: "淇敼浜�", - type: "string", - width: 100, - align: "left", - }, - { - field: "modifyDate", - title: "淇敼鏃堕棿", - type: "datetime", - width: 160, - align: "left", - }, - { - field: "remark", - title: "澶囨敞", - type: "string", - width: 100, - align: "left", - }, + { + field: "id", + title: "Id", + type: "int", + width: 90, + hidden: true, + readonly: true, + align: "left", + }, + { + field: "OrderId", + title: "鍑哄簱鍗曚富閿�", + type: "string", + width: 80, + align: "left", + bind: { key: "warehouses", data: [] }, + }, + { + field: "Warehouse", + title: "搴撳尯", + type: "string", + width: 150, + align: "left", + }, + { + field: "CarrierCode", + title: "杞藉叿鍙�", + type: "string", + width: 150, + align: "left", + }, + { + field: "createType", + title: "鍒涘缓鏂瑰紡", + type: "string", + width: 120, + align: "left", + bind: { key: "createType", data: [] }, + }, + { + field: "orderDetailStatus", + title: "璁㈠崟鏄庣粏鐘舵��", + type: "string", + width: 180, + align: "left", + }, + { + field: "creater", + title: "鍒涘缓浜�", + type: "string", + width: 90, + align: "left", + }, + { + field: "createDate", + title: "鍒涘缓鏃堕棿", + type: "datetime", + width: 160, + align: "left", + }, + { + field: "modifier", + title: "淇敼浜�", + type: "string", + width: 100, + align: "left", + }, + { + field: "modifyDate", + title: "淇敼鏃堕棿", + type: "datetime", + width: 160, + align: "left", + }, + { + field: "remark", + title: "澶囨敞", + type: "string", + width: 100, + align: "left", + }, ], sortName: "id", key: "id", diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/outbound/proOutOrder.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/outbound/proOutOrder.vue" new file mode 100644 index 0000000..46b9965 --- /dev/null +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/outbound/proOutOrder.vue" @@ -0,0 +1,363 @@ + +<template> + <view-grid + ref="grid" + :columns="columns" + :detail="detail" + :editFormFields="editFormFields" + :editFormOptions="editFormOptions" + :searchFormFields="searchFormFields" + :searchFormOptions="searchFormOptions" + :table="table" + :extend="extend" + > + </view-grid> +</template> + <script> +import extend from "@/extension/outbound/proOutOrder.js"; +import { ref, defineComponent } from "vue"; +export default defineComponent({ + setup() { + const table = ref({ + key: "id", + footer: "Foots", + cnName: "鎴愬搧鍑哄簱鍗�", + name: "proOutOrder", + url: "/proOutOrder/", + sortName: "id", + }); + const editFormFields = ref({ + orderType: "", + orderNo: "", + upperOrderNo: "", + orderStatus: "", + remark: "", + warehouseId: "", + }); + const editFormOptions = ref([ + [ + { + title: "鍗曟嵁绫诲瀷", + required: true, + field: "orderType", + type: "select", + dataKey: "outOrderType", + data: [], + }, + { + field: "orderNo", + title: "鍗曟嵁缂栧彿", + type: "string", + readonly: true, + }, + { + title: "涓婃父鍗曟嵁缂栧彿", + field: "upperOrderNo", + type: "string", + }, + { + title: "鍗曟嵁鐘舵��", + field: "orderStatus", + type: "select", + dataKey: "inboundState", + data: [], + readonly: true, + }, + { + title: "浠撳簱", + field: "warehouseId", + type: "select", + dataKey: "warehouses", + data: [], + required: true, + }, + { + title: "澶囨敞", + field: "remark", + type: "textarea", + }, + ], + ]); + const searchFormFields = ref({ + orderNo: "", + upperOrderNo: "", + orderType: "", + orderStatus: "", + createType: "", + creater: "", + createDate: "", + }); + const searchFormOptions = ref([ + [ + { title: "鍗曟嵁缂栧彿", field: "orderNo", type: "like" }, + { title: "涓婃父鍗曟嵁缂栧彿", field: "upperOrderNo", type: "like" }, + { + title: "鍗曟嵁绫诲瀷", + field: "orderType", + type: "select", + dataKey: "outOrderType", + data: [], + }, + { + title: "鍗曟嵁鐘舵��", + field: "orderStatus", + type: "select", + dataKey: "outboundStatusEnum", + data: [], + }, + ], + [ + { + title: "鍒涘缓鏂瑰紡", + field: "createType", + type: "select", + dataKey: "createType", + data: [], + }, + { title: "鍒涘缓鑰�", field: "creater", type: "like" }, + { title: "鍒涘缓鏃堕棿", field: "createDate", type: "datetime" }, + ], + ]); + const columns = ref([ + { + field: "id", + title: "Id", + type: "int", + width: 90, + hidden: true, + readonly: true, + require: true, + align: "left", + }, + { + field: "warehouseId", + title: "浠撳簱", + type: "string", + width: 90, + align: "left", + bind: { key: "warehouses", data: [] }, + }, + { + field: "proOutOrderNo", + title: "鍑哄簱鍗曞彿", + type: "string", + width: 160, + align: "left", + // link: true, + }, + { + field: "proOrderType", + title: "鍗曟嵁绫诲瀷", + type: "string", + width: 150, + align: "left", + // bind: { key: "outOrderType", data: [] }, + }, + { + field: "proOrderStatus", + title: "鍗曟嵁鐘舵��", + type: "decimal", + width: 90, + align: "left", + // bind: { key: "outboundStatusEnum", data: [] }, + }, + { + field: "plantShipDate", + title: "璁″垝鍑鸿揣鏃堕棿", + type: "datetime", + width: 160, + align: "left", + }, + { + field: "createType", + title: "鍒涘缓鏂瑰紡", + type: "string", + width: 120, + align: "left", + bind: { key: "createType", data: [] }, + }, + { + field: "departmentCode", + title: "淇敼鏃堕棿", + type: "string", + width: 120, + align: "left", + hidden: true, + }, + { + field: "creater", + title: "鍒涘缓浜�", + type: "string", + width: 90, + align: "left", + }, + { + field: "createDate", + title: "鍒涘缓鏃堕棿", + type: "datetime", + width: 160, + align: "left", + }, + { + field: "modifier", + title: "淇敼浜�", + type: "string", + width: 100, + align: "left", + }, + { + field: "modifyDate", + title: "淇敼鏃堕棿", + type: "datetime", + width: 160, + align: "left", + }, + { + field: "remark", + title: "澶囨敞", + type: "string", + width: 100, + align: "left", + }, + ]); + const detail = ref({ + cnName: "鍑哄簱鏄庣粏鍗�", + table: "OnboundOrderDetail", + columns: [ + { + field: "id", + title: "Id", + type: "int", + width: 90, + hidden: true, + readonly: true, + require: true, + align: "left", + }, + { + field: "orderId", + title: "鍑哄簱鍗曚富閿�", + type: "string", + width: 90, + align: "left", + hidden: true, + }, + { + field: "materielCode", + title: "鐗╂枡缂栧彿", + type: "string", + width: 150, + align: "left", + edit: { type: "string" }, + required: true, + }, + { + field: "materielName", + title: "鐗╂枡鍚嶇О", + type: "string", + width: 150, + align: "left", + edit: { type: "string" }, + }, + { + field: "batchNo", + title: "鎵规鍙�", + type: "decimal", + width: 90, + align: "left", + edit: { type: "string" }, + required: true, + }, + { + field: "orderQuantity", + title: "鍗曟嵁鏁伴噺", + type: "string", + width: 90, + align: "left", + edit: { type: "number" }, + required: true, + }, + { + field: "rowNo", + title: "琛屽彿", + type: "string", + width: 90, + align: "left", + edit: { type: "number" }, + required: true, + }, + { + field: "lockQuantity", + title: "閿佸畾鏁伴噺", + type: "int", + width: 120, + align: "left", + }, + { + field: "overOutQuantity", + title: "宸插嚭鏁伴噺", + type: "string", + width: 200, + align: "left", + }, + { + field: "orderDetailStatus", + title: "璁㈠崟鏄庣粏鐘舵��", + type: "string", + width: 180, + align: "left", + bind: { key: "orderDetailStatusEnum", data: [] }, + }, + { + field: "creater", + title: "鍒涘缓浜�", + type: "string", + width: 90, + align: "left", + }, + { + field: "createDate", + title: "鍒涘缓鏃堕棿", + type: "datetime", + width: 160, + align: "left", + }, + { + field: "modifier", + title: "淇敼浜�", + type: "string", + width: 100, + align: "left", + }, + { + field: "modifyDate", + title: "淇敼鏃堕棿", + type: "datetime", + width: 160, + align: "left", + }, + { + field: "remark", + title: "澶囨敞", + type: "string", + width: 100, + align: "left", + }, + ], + sortName: "id", + key: "id", + }); + return { + table, + extend, + editFormFields, + editFormOptions, + searchFormFields, + searchFormOptions, + columns, + detail, + }; + }, +}); +</script> + \ No newline at end of file diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/outbound/proOutOrderDetail.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/outbound/proOutOrderDetail.vue" new file mode 100644 index 0000000..bc10867 --- /dev/null +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/outbound/proOutOrderDetail.vue" @@ -0,0 +1,278 @@ + +<template> + <view-grid + ref="grid" + :columns="columns" + :detail="detail" + :editFormFields="editFormFields" + :editFormOptions="editFormOptions" + :searchFormFields="searchFormFields" + :searchFormOptions="searchFormOptions" + :table="table" + :extend="extend" + > + </view-grid> +</template> + <script> +import extend from "@/extension/outbound/proOutOrderDetail.js"; +import { ref, defineComponent } from "vue"; +export default defineComponent({ + setup() { + const table = ref({ + key: "id", + footer: "Foots", + cnName: "鎴愬搧鍑哄簱鍗曟槑缁�", + name: "proOutOrderDetail", + url: "/proOutOrderDetail/", + sortName: "id", + }); + const editFormFields = ref({ + deviceCode: "", + deviceName: "", + deviceType: "", + deviceStatus: "", + deviceIp: "", + devicePort: "", + devicePlcType: "", + deviceRemark: "", + }); + const editFormOptions = ref([ + [ + { + title: "璁惧缂栧彿", + required: true, + field: "deviceCode", + type: "string", + }, + { + title: "璁惧鍚嶇О", + required: true, + field: "deviceName", + type: "string", + }, + { + title: "璁惧绫诲瀷", + required: true, + field: "deviceType", + type: "string", + }, + { + title: "璁惧鐘舵��", + required: true, + field: "deviceStatus", + type: "string", + }, + ], + [ + { title: "璁惧IP", required: true, field: "deviceIp", type: "string" }, + { + title: "璁惧绔彛", + required: true, + field: "devicePort", + type: "string", + }, + { + title: "PLC绫诲瀷", + required: true, + field: "devicePlcType", + type: "string", + }, + { + title: "澶囨敞", + field: "deviceRemark", + type: "string", + }, + ], + ]); + const searchFormFields = ref({ + deviceCode: "", + deviceType: "", + deviceStatus: "", + }); + const searchFormOptions = ref([ + [ + { title: "璁惧缂栧彿", field: "deviceCode" }, + { title: "璁惧绫诲瀷", field: "deviceType" }, + { title: "璁惧鐘舵��", field: "deviceStatus" }, + ], + ]); + const columns = ref([ + { + field: "id", + title: "Id", + type: "int", + width: 90, + hidden: true, + readonly: true, + align: "left", + }, + { + field: "proOrderId", + title: "鍑哄簱鍗曚富閿�", + type: "string", + width: 90, + align: "left", + hidden: true, + }, + { + field: "rowId", + title: "鍑哄簱鍗曡鍙�", + type: "int", + width: 150, + align: "left", + }, + { + field: "proOrderDetailStatus", + title: "璁㈠崟鏄庣粏鐘舵��", + type: "int", + width: 180, + align: "left", + }, + { + field: "saleOrder", + title: "閿�鍞鍗曞彿", + type: "string", + width: 150, + align: "left", + }, + { + field: "customer", + title: "瀹㈡埛", + type: "string", + width: 90, + align: "left", + }, + { + field: "factoryCode", + title: "宸ュ巶", + type: "string", + width: 90, + align: "left", + }, + { + field: "pCode", + title: "浜у搧缂栫爜", + type: "string", + width: 120, + align: "left", + }, + { + field: "dateCode", + title: "浜у搧鍛ㄦ湡", + type: "string", + width: 120, + align: "left", + }, + { + field: "pVer", + title: "浜у搧鐗堟湰", + type: "string", + width: 200, + align: "left", + }, + { + field: "pLot", + title: "浜у搧鎵规", + type: "string", + width: 200, + align: "left", + }, + { + field: "qtyPcs", + title: "鍚堟牸PCS鏁�", + type: "string", + width: 120, + align: "left", + }, + { + field: "overQtyPcs", + title: "宸插嚭鏁伴噺", + type: "string", + width: 120, + align: "left", + }, + { + field: "xQty", + title: "x鏉挎暟", + type: "string", + width: 120, + align: "left", + }, + { + field: "xSite", + title: "x鏉夸綅", + type: "string", + width: 120, + align: "left", + }, + { + field: "unit", + title: "鍗曚綅", + type: "string", + width: 120, + align: "left", + }, + { + field: "spareQty", + title: "澶囧搧鏁�", + type: "string", + width: 120, + align: "left", + }, + + { + field: "creater", + title: "鍒涘缓浜�", + type: "string", + width: 90, + align: "left", + }, + { + field: "createDate", + title: "鍒涘缓鏃堕棿", + type: "datetime", + width: 160, + align: "left", + }, + { + field: "modifier", + title: "淇敼浜�", + type: "string", + width: 100, + align: "left", + }, + { + field: "modifyDate", + title: "淇敼鏃堕棿", + type: "datetime", + width: 160, + align: "left", + }, + { + field: "remark", + title: "澶囨敞", + type: "string", + width: 100, + align: "left", + }, + ]); + const detail = ref({ + cnName: "#detailCnName", + table: "", + columns: [], + sortName: "", + }); + return { + table, + extend, + editFormFields, + editFormOptions, + searchFormFields, + searchFormOptions, + columns, + detail, + }; + }, +}); +</script> + \ No newline at end of file diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/stock/proStockInfo.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/stock/proStockInfo.vue" new file mode 100644 index 0000000..2ab9acd --- /dev/null +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/stock/proStockInfo.vue" @@ -0,0 +1,168 @@ + +<template> + <view-grid + ref="grid" + :columns="columns" + :detail="detail" + :editFormFields="editFormFields" + :editFormOptions="editFormOptions" + :searchFormFields="searchFormFields" + :searchFormOptions="searchFormOptions" + :table="table" + :extend="extend" + > + </view-grid> + </template> + <script> + import extend from "@/extension/stock/proStockInfo.js"; + import { ref, defineComponent } from "vue"; + export default defineComponent({ + setup() { + const table = ref({ + key: "id", + footer: "Foots", + cnName: "鎴愬搧搴撳瓨淇℃伅", + name: "proStockInfo", + url: "/proStockInfo/", + sortName: "id", + }); + const editFormFields = ref({ + deviceCode: "", + deviceName: "", + deviceType: "", + deviceStatus: "", + deviceIp: "", + devicePort: "", + devicePlcType: "", + deviceRemark: "", + }); + const editFormOptions = ref([ + [ + {field:'palletCode',title:'鑳舵鍙�',type:'string'}, + {field:'locationCode',title:'璐т綅缂栧彿',type:'string'}, + ] + ]); + const searchFormFields = ref({ + palletCode: "", + locationCode: "", + }); + const searchFormOptions = ref([ + [ + { title: "鑳舵鍙�", field: "palletCode" }, + { title: "璐т綅缂栧彿", field: "locationCode" }, + ], + ]); + const columns = ref([ + { + field: "id", + title: "Id", + type: "int", + width: 90, + hidden: true, + readonly: true, + require: true, + align: "left", + }, + { + field: "palletCode", + title: "鑳舵鍙�", + type: "string", + width: 90, + align: "left", + }, { + field: "shipmentOrder", + title: "鍑鸿揣鍗曞彿", + type: "string", + width: 90, + align: "left", + }, + + { + field: "palletType", + title: "鑳舵绫诲瀷", + type: "string", + width: 90, + align: "left", + }, + { + field: "locationCode", + title: "璐т綅缂栧彿", + type: "string", + width: 150, + align: "left", + }, + // { + // field: "isFull", + // title: "鏄惁婊$洏", + // type: "string", + // width: 150, + // align: "left", + // bind: { key: "yesno", data: [] }, + // }, + { + field: "warehouseId", + title: "浠撳簱", + type: "select", + width: 100, + align: "left", + bind: { key: "warehouses", data: [] }, + }, + { + field: "creater", + title: "鍒涘缓浜�", + type: "string", + width: 90, + align: "left", + }, + { + field: "createDate", + title: "鍒涘缓鏃堕棿", + type: "datetime", + width: 160, + align: "left", + }, + { + field: "modifier", + title: "淇敼浜�", + type: "string", + width: 100, + align: "left", + hidden:true + }, + { + field: "modifyDate", + title: "淇敼鏃堕棿", + type: "datetime", + width: 160, + align: "left", + hidden:true + }, + { + field: "remark", + title: "澶囨敞", + type: "string", + width: 100, + align: "left", + hidden:true + }, + ]); + const detail = ref({ + cnName: "#detailCnName", + table: "", + columns: [], + sortName: "", + }); + return { + table, + extend, + editFormFields, + editFormOptions, + searchFormFields, + searchFormOptions, + columns, + detail, + }; + }, + }); + </script> + \ No newline at end of file diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/stock/proStockInfoDetail.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/stock/proStockInfoDetail.vue" new file mode 100644 index 0000000..42961a3 --- /dev/null +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/stock/proStockInfoDetail.vue" @@ -0,0 +1,261 @@ +<template> + <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields" + :editFormOptions="editFormOptions" :searchFormFields="searchFormFields" :searchFormOptions="searchFormOptions" + :table="table" :extend="extend"> + </view-grid> +</template> +<script> +import extend from "@/extension/stock/proStockInfoDetail.js"; +import { ref, defineComponent } from "vue"; +export default defineComponent({ + setup() { + const table = ref({ + key: "id", + footer: "Foots", + cnName: "搴撳瓨淇℃伅鏄庣粏", + name: "proStockInfoDetail", + url: "/proStockInfoDetail/", + sortName: "id", + }); + const editFormFields = ref({ + deviceCode: "", + deviceName: "", + deviceType: "", + deviceStatus: "", + deviceIp: "", + devicePort: "", + devicePlcType: "", + deviceRemark: "", + }); + const editFormOptions = ref([ + [ + { + title: "鐗╂枡缂栧彿", + required: true, + field: "materielCode", + type: "string", + }, + { + title: "鍗曟嵁缂栧彿", + required: true, + field: "materielName", + type: "string", + }, + { + title: "鎵规鍙�", + required: true, + field: "orderNo", + type: "string", + }, + { + title: "搴忓垪鍙�", + required: true, + field: "serialNumber", + type: "string", + }, + ], + + ]); + const searchFormFields = ref({ + materielCode: "", + materielName: "", + orderNo: "", + }); + const searchFormOptions = ref([ + [ + { title: "鐗╂枡缂栧彿", field: "materielCode" }, + { title: "鐗╂枡鍚嶇О", field: "materielName" }, + { title: "鍗曟嵁缂栧彿", field: "orderNo" }, + ], + ]); + const columns = ref([ + { + field: "id", + title: "Id", + type: "int", + width: 90, + hidden: true, + readonly: true, + require: true, + align: "left", + }, + { + field: "proStockId", + title: "搴撳瓨淇℃伅涓婚敭", + type: "string", + width: 90, + align: "left", + }, + { + field: "bagNo", + title: "鍐呭寘鍙�", + type: "string", + width: 150, + align: "left", + }, + { + field: "productCode", + title: "浜у搧缂栫爜", + type: "string", + width: 150, + align: "left", + }, + { + field: "outboundQuantity", + title: "鍑哄簱鏁伴噺", + type: "string", + width: 180, + align: "left", + }, + { + field: "proOutDetailStatus", + title: "鎴愬搧搴撳瓨鏄庣粏鐘舵��", + type: "int", + width: 90, + align: "left", + }, + { + field: "productVersion", + title: "鐗堟湰", + type: "string", + width: 90, + align: "left", + }, + { + field: "setQty", + title: "鍖呰SET鏁伴噺", + type: "string", + width: 120, + align: "left", + }, + { + field: "okpcsqty", + title: "鍚堟牸PCS鏁�", + type: "string", + width: 200, + align: "left", + }, + { + field: "dateCode", + title: "鍛ㄦ湡", + type: "string", + width: 200, + align: "left", + }, + { + field: "xQty", + title: "X鏁�", + type: "string", + width: 200, + align: "left", + }, + { + field: "xSite", + title: "X浣�", + type: "string", + width: 200, + align: "left", + }, + { + field: "weight", + title: "鍐呭寘閲嶉噺", + type: "string", + width: 200, + align: "left", + }, + { + field: "packingDate", + title: "鍖呰鏃堕棿", + type: "datetime", + width: 200, + align: "left", + }, + { + field: "lotNumber", + title: "鎵规鍙�", + type: "string", + width: 200, + align: "left", + }, + { + field: "erpOrder", + title: "ERP宸ュ崟", + type: "string", + width: 200, + align: "left", + }, + { + field: "moNumber", + title: "鍒堕�犺鍗�", + type: "string", + width: 200, + align: "left", + }, + { + field: "saleOrder", + title: "閿�鍞鍗�", + type: "string", + width: 200, + align: "left", + }, { + field: "remark", + title: "澶囨敞", + type: "string", + width: 200, + align: "left", + }, + { + field: "creater", + title: "鍒涘缓浜�", + type: "string", + width: 90, + align: "left", + }, + { + field: "createDate", + title: "鍒涘缓鏃堕棿", + type: "datetime", + width: 160, + align: "left", + }, + { + field: "modifier", + title: "淇敼浜�", + type: "string", + width: 100, + align: "left", + }, + { + field: "modifyDate", + title: "淇敼鏃堕棿", + type: "datetime", + width: 160, + align: "left", + }, + { + field: "remark", + title: "澶囨敞", + type: "string", + width: 100, + align: "left", + }, + ]); + const detail = ref({ + cnName: "#detailCnName", + table: "", + columns: [], + sortName: "", + }); + return { + table, + extend, + editFormFields, + editFormOptions, + searchFormFields, + searchFormOptions, + columns, + detail, + }; + }, +}); +</script> \ No newline at end of file diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/stock/proStockInfoDetail_Hty.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/stock/proStockInfoDetail_Hty.vue" new file mode 100644 index 0000000..6b5ab1f --- /dev/null +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/stock/proStockInfoDetail_Hty.vue" @@ -0,0 +1,300 @@ +<template> + <view-grid + ref="grid" + :columns="columns" + :detail="detail" + :editFormFields="editFormFields" + :editFormOptions="editFormOptions" + :searchFormFields="searchFormFields" + :searchFormOptions="searchFormOptions" + :table="table" + :extend="extend" + > + </view-grid> +</template> +<script> +import extend from "@/extension/stock/proStockInfoDetail_Hty.js"; +import { ref, defineComponent } from "vue"; +export default defineComponent({ + setup() { + const table = ref({ + key: "id", + footer: "Foots", + cnName: "搴撳瓨淇℃伅鏄庣粏", + name: "proStockInfoDetail_Hty", + url: "/proStockInfoDetail_Hty/", + sortName: "id", + }); + const editFormFields = ref({ + deviceCode: "", + deviceName: "", + deviceType: "", + deviceStatus: "", + deviceIp: "", + devicePort: "", + devicePlcType: "", + deviceRemark: "", + }); + const editFormOptions = ref([ + [ + { + title: "鐗╂枡缂栧彿", + required: true, + field: "materielCode", + type: "string", + }, + { + title: "鍗曟嵁缂栧彿", + required: true, + field: "materielName", + type: "string", + }, + { + title: "鎵规鍙�", + required: true, + field: "orderNo", + type: "string", + }, + { + title: "搴忓垪鍙�", + required: true, + field: "serialNumber", + type: "string", + }, + ], + ]); + const searchFormFields = ref({ + materielCode: "", + materielName: "", + orderNo: "", + }); + const searchFormOptions = ref([ + [ + { title: "鐗╂枡缂栧彿", field: "materielCode" }, + { title: "鐗╂枡鍚嶇О", field: "materielName" }, + { title: "鍗曟嵁缂栧彿", field: "orderNo" }, + ], + ]); + const columns = ref([ + { + field: "id", + title: "Id", + type: "int", + width: 90, + hidden: true, + readonly: true, + require: true, + align: "left", + }, + { + field: "sourceId", + title: "SourceId", + type: "int", + width: 90, + hidden: true, + readonly: true, + require: true, + align: "left", + }, + { + field: "operateType", + title: "鎿嶄綔绫诲瀷", + type: "string", + width: 90, + align: "left", + }, + { + field: "insertTime", + title: "绉诲叆鍘嗗彶鏃堕棿", + type: "datetime", + width: 90, + align: "left", + }, + { + field: "proStockId", + title: "搴撳瓨淇℃伅涓婚敭", + type: "string", + width: 90, + align: "left", + }, + { + field: "bagNo", + title: "鍐呭寘鍙�", + type: "string", + width: 150, + align: "left", + }, + { + field: "productCode", + title: "浜у搧缂栫爜", + type: "string", + width: 150, + align: "left", + }, + { + field: "outboundQuantity", + title: "鍑哄簱鏁伴噺", + type: "string", + width: 180, + align: "left", + }, + { + field: "proOutDetailStatus", + title: "鎴愬搧搴撳瓨鏄庣粏鐘舵��", + type: "int", + width: 90, + align: "left", + }, + { + field: "productVersion", + title: "鐗堟湰", + type: "string", + width: 90, + align: "left", + }, + { + field: "sETQty", + title: "鍖呰SET鏁伴噺", + type: "string", + width: 120, + align: "left", + }, + { + field: "oKPCSQTY", + title: "鍚堟牸PCS鏁�", + type: "string", + width: 200, + align: "left", + }, + { + field: "dateCode", + title: "鍛ㄦ湡", + type: "string", + width: 200, + align: "left", + }, + { + field: "xQty", + title: "X鏁�", + type: "string", + width: 200, + align: "left", + }, + { + field: "xSite", + title: "X浣�", + type: "string", + width: 200, + align: "left", + }, + { + field: "weight", + title: "鍐呭寘閲嶉噺", + type: "string", + width: 200, + align: "left", + }, + { + field: "packingDate", + title: "鍖呰鏃堕棿", + type: "datetime", + width: 200, + align: "left", + }, + { + field: "oKPCSQTY", + title: "鍚堟牸PCS鏁�", + type: "string", + width: 200, + align: "left", + }, + { + field: "lotNumber", + title: "鎵规鍙�", + type: "string", + width: 200, + align: "left", + }, + { + field: "eRPOrder", + title: "ERP宸ュ崟", + type: "string", + width: 200, + align: "left", + }, + { + field: "moNumber", + title: "鍒堕�犺鍗�", + type: "string", + width: 200, + align: "left", + }, + { + field: "saleOrder", + title: "閿�鍞鍗�", + type: "string", + width: 200, + align: "left", + }, + { + field: "remark", + title: "澶囨敞", + type: "string", + width: 200, + align: "left", + }, + { + field: "creater", + title: "鍒涘缓浜�", + type: "string", + width: 90, + align: "left", + }, + { + field: "createDate", + title: "鍒涘缓鏃堕棿", + type: "datetime", + width: 160, + align: "left", + }, + { + field: "modifier", + title: "淇敼浜�", + type: "string", + width: 100, + align: "left", + }, + { + field: "modifyDate", + title: "淇敼鏃堕棿", + type: "datetime", + width: 160, + align: "left", + }, + { + field: "remark", + title: "澶囨敞", + type: "string", + width: 100, + align: "left", + }, + ]); + const detail = ref({ + cnName: "#detailCnName", + table: "", + columns: [], + sortName: "", + }); + return { + table, + extend, + editFormFields, + editFormOptions, + searchFormFields, + searchFormOptions, + columns, + detail, + }; + }, +}); +</script> \ No newline at end of file diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/stock/proStockInfo_Hty.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/stock/proStockInfo_Hty.vue" new file mode 100644 index 0000000..b93f1ae --- /dev/null +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/stock/proStockInfo_Hty.vue" @@ -0,0 +1,175 @@ + +<template> + <view-grid + ref="grid" + :columns="columns" + :detail="detail" + :editFormFields="editFormFields" + :editFormOptions="editFormOptions" + :searchFormFields="searchFormFields" + :searchFormOptions="searchFormOptions" + :table="table" + :extend="extend" + > + </view-grid> + </template> + <script> + import extend from "@/extension/stock/proStockInfo_Hty.js"; + import { ref, defineComponent } from "vue"; + export default defineComponent({ + setup() { + const table = ref({ + key: "id", + footer: "Foots", + cnName: "鎴愬搧搴撳瓨淇℃伅", + name: "proStockInfo_Hty", + url: "/proStockInfo_Hty/", + sortName: "id", + }); + const editFormFields = ref({ + deviceCode: "", + deviceName: "", + deviceType: "", + deviceStatus: "", + deviceIp: "", + devicePort: "", + devicePlcType: "", + deviceRemark: "", + }); + const editFormOptions = ref([ + [ + {field:'palletCode',title:'鑳舵鍙�',type:'string'}, + {field:'locationCode',title:'璐т綅缂栧彿',type:'string'}, + ] + ]); + const searchFormFields = ref({ + palletCode: "", + locationCode: "", + }); + const searchFormOptions = ref([ + [ + { title: "鑳舵鍙�", field: "palletCode" }, + { title: "璐т綅缂栧彿", field: "locationCode" }, + ], + ]); + const columns = ref([ + {field:'id',title:'涓婚敭',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'}, + { + field: "sourceId", + title: "sourceId", + type: "int", + width: 90, + hidden: true, + readonly: true, + require: true, + align: "left", + }, + { + field: "operateType", + title: "鎿嶄綔绫诲瀷", + type: "string", + width: 90, + align: "left", + }, + { + field: "insertTime", + title: "绉诲叆鍘嗗彶鏃堕棿", + type: "datetime", + width: 90, + align: "left", + }, + { + field: "palletCode", + title: "鑳舵鍙�", + type: "string", + width: 90, + align: "left", + }, { + field: "shipmentOrder", + title: "鍑鸿揣鍗曞彿", + type: "string", + width: 90, + align: "left", + }, + + { + field: "palletType", + title: "鑳舵绫诲瀷", + type: "string", + width: 90, + align: "left", + }, + { + field: "locationCode", + title: "璐т綅缂栧彿", + type: "string", + width: 150, + align: "left", + }, + { + field: "warehouseId", + title: "浠撳簱", + type: "select", + width: 100, + align: "left", + bind: { key: "warehouses", data: [] }, + }, + { + field: "creater", + title: "鍒涘缓浜�", + type: "string", + width: 90, + align: "left", + }, + { + field: "createDate", + title: "鍒涘缓鏃堕棿", + type: "datetime", + width: 160, + align: "left", + }, + { + field: "modifier", + title: "淇敼浜�", + type: "string", + width: 100, + align: "left", + hidden:true + }, + { + field: "modifyDate", + title: "淇敼鏃堕棿", + type: "datetime", + width: 160, + align: "left", + hidden:true + }, + { + field: "remark", + title: "澶囨敞", + type: "string", + width: 100, + align: "left", + hidden:true + }, + ]); + const detail = ref({ + cnName: "#detailCnName", + table: "", + columns: [], + sortName: "", + }); + return { + table, + extend, + editFormFields, + editFormOptions, + searchFormFields, + searchFormOptions, + columns, + detail, + }; + }, + }); + </script> + \ No newline at end of file diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/stock/stockView.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/stock/stockView.vue" index fc8b569..73bdbb7 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/stock/stockView.vue" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/views/stock/stockView.vue" @@ -314,14 +314,14 @@ field: "productionDate", title: "鐢熶骇鏃ユ湡", type: "string", - width: 80, + width: 120, align: "left", }, { field: "effectiveDate", title: "鏈夋晥鏃ユ湡", type: "string", - width: 80, + width: 120, align: "left", }, { diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/.vs/WIDESEA_WMSServer/FileContentIndex/1ceb7491-cd63-4a60-ba30-ad6b8388e302.vsidx" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/.vs/WIDESEA_WMSServer/FileContentIndex/1ceb7491-cd63-4a60-ba30-ad6b8388e302.vsidx" new file mode 100644 index 0000000..a0f3fff --- /dev/null +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/.vs/WIDESEA_WMSServer/FileContentIndex/1ceb7491-cd63-4a60-ba30-ad6b8388e302.vsidx" Binary files differ diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/.vs/WIDESEA_WMSServer/FileContentIndex/5172d2fd-775d-4922-be09-1cba741a2211.vsidx" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/.vs/WIDESEA_WMSServer/FileContentIndex/5172d2fd-775d-4922-be09-1cba741a2211.vsidx" new file mode 100644 index 0000000..7a21cf1 --- /dev/null +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/.vs/WIDESEA_WMSServer/FileContentIndex/5172d2fd-775d-4922-be09-1cba741a2211.vsidx" Binary files differ diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/.vs/WIDESEA_WMSServer/FileContentIndex/b354908d-ec3f-4089-a21d-bbd4a7b7a827.vsidx" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/.vs/WIDESEA_WMSServer/FileContentIndex/b354908d-ec3f-4089-a21d-bbd4a7b7a827.vsidx" deleted file mode 100644 index 39f0cb1..0000000 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/.vs/WIDESEA_WMSServer/FileContentIndex/b354908d-ec3f-4089-a21d-bbd4a7b7a827.vsidx" +++ /dev/null Binary files differ diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_IOutboundRepository/IMesRworkOutboundOrderRepository.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_IOutboundRepository/IMesRworkOutboundOrderRepository.cs" new file mode 100644 index 0000000..c766209 --- /dev/null +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_IOutboundRepository/IMesRworkOutboundOrderRepository.cs" @@ -0,0 +1,14 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using WIDESEA_Core.BaseRepository; +using WIDESEA_Model.Models; + +namespace WIDESEA_IOutboundRepository +{ + public interface IMesRworkOutboundOrderRepository : IRepository<Dt_MesRworkOutboundOrder> + { + } +} diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_IOutboundService/IMesRworkOutboundOrderService.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_IOutboundService/IMesRworkOutboundOrderService.cs" new file mode 100644 index 0000000..f2a6163 --- /dev/null +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_IOutboundService/IMesRworkOutboundOrderService.cs" @@ -0,0 +1,16 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using WIDESEA_Core.BaseServices; +using WIDESEA_IOutboundRepository; +using WIDESEA_Model.Models; + +namespace WIDESEA_IOutboundService +{ + public interface IMesRworkOutboundOrderService : IService<Dt_MesRworkOutboundOrder> + { + IMesRworkOutboundOrderRepository Repository { get; } + } +} diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_IOutboundService/IOutboundService.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_IOutboundService/IOutboundService.cs" index 568cc5f..cb635fd 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_IOutboundService/IOutboundService.cs" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_IOutboundService/IOutboundService.cs" @@ -26,5 +26,8 @@ IMesPPCutOutboundOrderDetailService MesPPCutOutboundOrderDetailService { get; } IProOutOrderService ProOutOrderService { get; } IProOutOrderDetailService ProOutOrderDetailService { get; } + + IMesRworkOutboundOrderService RworkOutboundOrderService { get; } + } } diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_Model/Models/Outbound/Dt_MesRworkOutboundOrder.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_Model/Models/Outbound/Dt_MesRworkOutboundOrder.cs" index 708b7d3..cbe2a08 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_Model/Models/Outbound/Dt_MesRworkOutboundOrder.cs" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_Model/Models/Outbound/Dt_MesRworkOutboundOrder.cs" @@ -41,23 +41,23 @@ [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "浠诲姟鍗曞彿")] public string TaskNo { get; set; } - /// <summary> - /// 鍗曟嵁鏁伴噺 - /// </summary> - [SugarColumn(IsNullable = false, ColumnDescription = "鍗曟嵁鏁伴噺")] - public float OrderQuantity { get; set; } + ///// <summary> + ///// 鍗曟嵁鏁伴噺 + ///// </summary> + //[SugarColumn(IsNullable = false, ColumnDescription = "鍗曟嵁鏁伴噺")] + //public float OrderQuantity { get; set; } - /// <summary> - /// 閿佸畾鏁伴噺 - /// </summary> - [SugarColumn(IsNullable = false, ColumnDescription = "閿佸畾鏁伴噺", DefaultValue = "0")] - public float LockQuantity { get; set; } + ///// <summary> + ///// 閿佸畾鏁伴噺 + ///// </summary> + //[SugarColumn(IsNullable = false, ColumnDescription = "閿佸畾鏁伴噺", DefaultValue = "0")] + //public float LockQuantity { get; set; } - /// <summary> - /// 宸插嚭鏁伴噺 - /// </summary> - [SugarColumn(IsNullable = false, ColumnDescription = "宸插嚭鏁伴噺", DefaultValue = "0")] - public float OverOutQuantity { get; set; } + ///// <summary> + ///// 宸插嚭鏁伴噺 + ///// </summary> + //[SugarColumn(IsNullable = false, ColumnDescription = "宸插嚭鏁伴噺", DefaultValue = "0")] + //public float OverOutQuantity { get; set; } /// <summary> /// 鍗曟嵁鐘舵�� @@ -71,11 +71,11 @@ [SugarColumn(IsNullable = false, ColumnDescription = "鍒涘缓鏂瑰紡", IsOnlyIgnoreUpdate = true)] public int CreateType { get; set; } - /// <summary> - /// 鍗曟嵁绫诲瀷 - /// </summary> - [SugarColumn(IsNullable = false, ColumnDescription = "鍗曟嵁绫诲瀷", IsOnlyIgnoreUpdate = true)] - public int OrderType { get; set; } + ///// <summary> + ///// 鍗曟嵁绫诲瀷 + ///// </summary> + //[SugarColumn(IsNullable = false, ColumnDescription = "鍗曟嵁绫诲瀷", IsOnlyIgnoreUpdate = true)] + //public int OrderType { get; set; } /// <summary> /// 浜у搧缂栫爜 diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_OutboundRepository/MesRworkOutboundOrderRepository.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_OutboundRepository/MesRworkOutboundOrderRepository.cs" new file mode 100644 index 0000000..4c266a2 --- /dev/null +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_OutboundRepository/MesRworkOutboundOrderRepository.cs" @@ -0,0 +1,18 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using WIDESEA_Core.BaseRepository; +using WIDESEA_IOutboundRepository; +using WIDESEA_Model.Models; + +namespace WIDESEA_OutboundRepository +{ + public class MesRworkOutboundOrderRepository : RepositoryBase<Dt_MesRworkOutboundOrder>, IMesRworkOutboundOrderRepository + { + public MesRworkOutboundOrderRepository(IUnitOfWorkManage unitOfWorkManage) : base(unitOfWorkManage) + { + } + } +} diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_OutboundService/MesRworkOutboundOrderService.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_OutboundService/MesRworkOutboundOrderService.cs" new file mode 100644 index 0000000..4508b4f --- /dev/null +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_OutboundService/MesRworkOutboundOrderService.cs" @@ -0,0 +1,37 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using WIDESEA_Core.BaseServices; +using WIDESEA_IBasicRepository; +using WIDESEA_IBasicService; +using WIDESEA_IOutboundRepository; +using WIDESEA_IOutboundService; +using WIDESEA_IRecordService; +using WIDESEA_IStockService; +using WIDESEA_Model.Models; +using WIDESEA_OutboundRepository; + +namespace WIDESEA_OutboundService +{ + public class MesRworkOutboundOrderService : ServiceBase<Dt_MesRworkOutboundOrder, IMesRworkOutboundOrderRepository>, IMesRworkOutboundOrderService + { + private readonly IBasicRepository _basicRepository; + private readonly IStockService _stockService; + private readonly IOutStockLockInfoService _outStockLockInfoService; + private readonly IBasicService _basicService; + private readonly IRecordService _recordService; + + public IMesRworkOutboundOrderRepository Repository => BaseDal; + + public MesRworkOutboundOrderService(IMesRworkOutboundOrderRepository BaseDal, IBasicRepository basicRepository, IStockService stockService, IOutStockLockInfoService outStockLockInfoService, IBasicService basicService, IRecordService recordService) : base(BaseDal) + { + _basicRepository = basicRepository; + _stockService = stockService; + _outStockLockInfoService = outStockLockInfoService; + _basicService = basicService; + _recordService = recordService; + } + } +} diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_OutboundService/OutboundService.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_OutboundService/OutboundService.cs" index d8f706f..c539967 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_OutboundService/OutboundService.cs" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_OutboundService/OutboundService.cs" @@ -27,8 +27,10 @@ public IProOutOrderService ProOutOrderService { get; } public IProOutOrderDetailService ProOutOrderDetailService { get; } + public IMesRworkOutboundOrderService RworkOutboundOrderService { get; } - public OutboundService(IOutboundOrderDetailService outboundOrderDetailService, IMesPPOutboundOrderDetailService mesPPOutboundOrderDetailService, IMesPPCutOutboundOrderDetailService mesPPCutOutboundOrderDetailService, IMesPPCutOutboundOrderService mesPPCutOutboundOrderService, IMesPPOutboundOrderService mesPPOutboundOrderService, IOutboundOrderService outboundOrderService, IOutStockLockInfoService outboundStockLockInfoService, IMesOutboundOrderService mesOutboundOrderService,IProOutOrderService proOutOrderService, IProOutOrderDetailService proOutOrderDetailService) + + public OutboundService(IOutboundOrderDetailService outboundOrderDetailService, IMesRworkOutboundOrderService rworkOutboundOrderService,IMesPPOutboundOrderDetailService mesPPOutboundOrderDetailService, IMesPPCutOutboundOrderDetailService mesPPCutOutboundOrderDetailService, IMesPPCutOutboundOrderService mesPPCutOutboundOrderService, IMesPPOutboundOrderService mesPPOutboundOrderService, IOutboundOrderService outboundOrderService, IOutStockLockInfoService outboundStockLockInfoService, IMesOutboundOrderService mesOutboundOrderService,IProOutOrderService proOutOrderService, IProOutOrderDetailService proOutOrderDetailService) { OutboundOrderDetailService = outboundOrderDetailService; OutboundOrderService = outboundOrderService; @@ -40,6 +42,7 @@ MesPPOutboundOrderDetailService = mesPPOutboundOrderDetailService; ProOutOrderService = proOutOrderService; ProOutOrderDetailService = proOutOrderDetailService; + RworkOutboundOrderService = rworkOutboundOrderService; } } } diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/MesTaskService.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/MesTaskService.cs" index 5039413..858737d 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/MesTaskService.cs" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/MesTaskService.cs" @@ -654,11 +654,14 @@ //} #endregion + _unitOfWorkManage.BeginTran(); Db.InsertNav(mesOutboundOrder).Include(x => x.Details).ExecuteCommand(); + _unitOfWorkManage.CommitTran(); return MesResponseContent.Instance.OK(); } catch (Exception ex) { + _unitOfWorkManage.RollbackTran(); return MesResponseContent.Instance.Error(ex.Message); } @@ -774,6 +777,7 @@ { try { + //涓�娆″彧鍙戜竴鍗风墿鏂欏叆搴撴槑缁� foreach (var item in model.MaterialLotInfo) { //鑾峰彇鐗╂枡淇℃伅 @@ -1129,28 +1133,40 @@ /// <returns></returns> public MesResponseContent RworkTask(RworkTaskModel model) { + MesResponseContent content = new MesResponseContent(); try { Dt_Warehouse warehouse = _basicRepository.WarehouseRepository.QueryFirst(x => x.WarehouseCode == WarehouseEnum.HA72.ToString()); - //鑾峰彇搴撳瓨璁板綍 - List<Dt_StockInfo> stockInfos = _stockRepository.StockInfoRepository.Db.Queryable<Dt_StockInfo>().Where(x => - x.WarehouseId == warehouse.WarehouseId && - x.StockStatus == (int)StockStatusEmun.鍏ュ簱瀹屾垚).Includes(x => x.Details).ToList(); - Dt_StockInfo? stockInfo = stockInfos.FirstOrDefault(x => x.Details.Any(x => x.BatchNo == model.ProductVersion)); - if (stockInfo == null) + if (warehouse==null) { - return MesResponseContent.Instance.Error($"灏炬暟浠�:{model.ProductVersion}鏃犲彲鐢ㄥ簱瀛�"); + return MesResponseContent.Instance.Error("鏈壘鍒版浠撳簱"); } - Dt_Task exsit2 = Repository.QueryFirst(x => x.PalletCode == stockInfo.PalletCode); - - + Dt_MesRworkOutboundOrder mesRworkOutboundOrder = new Dt_MesRworkOutboundOrder() + { + WarehouseId=warehouse.WarehouseId, + TaskNo=model.TaskNo, + OrderStatus = InOrderStatusEnum.鏈紑濮�.ObjToInt(), + CreateType = OrderCreateTypeEnum.UpperSystemPush.ObjToInt(), + ProductCode=model.ProductCode, + ProductName=model.ProductName, + ProductVersion=model.ProductVersion, + DateCode=model.DateCode, + RequiredQuantity=model.RequiredQuantity, + FactoryCode= model.FactoryCode, + SaleOrder=model.SaleOrder, + InventoryType=model.InventoryType, + }; + _unitOfWorkManage.BeginTran(); + _outboundService.RworkOutboundOrderService.AddData(mesRworkOutboundOrder); + _unitOfWorkManage.CommitTran(); + return content.OK("鎻愪緵杩斿簱鍗曟帴鏀舵垚鍔�"); } catch (Exception ex) { - - throw; + _unitOfWorkManage.RollbackTran(); + content.Error(ex.Message); } - return MesResponseContent.Instance.OK(); + return content; } diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Inbound/MesPPBackInboundOrderController.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Inbound/MesPPBackInboundOrderController.cs" index a038e43..6faf41f 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Inbound/MesPPBackInboundOrderController.cs" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Inbound/MesPPBackInboundOrderController.cs" @@ -1,5 +1,6 @@ 锘縰sing Microsoft.AspNetCore.Mvc; using WIDESEA_Core.BaseController; +using WIDESEA_IInboundService; using WIDESEA_IOutboundService; using WIDESEA_Model.Models; @@ -10,11 +11,11 @@ /// </summary> [Route("api/mesPPBackInboundOrder")] [ApiController] - public class MesPPBackInboundOrderController : ApiBaseController<IMesPPCutOutboundOrderService, Dt_MesPPCutOutboundOrder> + public class MesPPBackInboundOrderController : ApiBaseController<IMesPPBackInboundOrderService, Dt_MesPPBackInboundOrder> { - public MesPPBackInboundOrderController(IMesPPCutOutboundOrderService service) : base(service) + public MesPPBackInboundOrderController(IMesPPBackInboundOrderService service) : base(service) { - } + } } } diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Inbound/MesPPBackInboundOrderDetailController.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Inbound/MesPPBackInboundOrderDetailController.cs" new file mode 100644 index 0000000..237a6e3 --- /dev/null +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Inbound/MesPPBackInboundOrderDetailController.cs" @@ -0,0 +1,21 @@ +锘縰sing Microsoft.AspNetCore.Mvc; +using WIDESEA_Core.BaseController; +using WIDESEA_IInboundService; +using WIDESEA_IOutboundService; +using WIDESEA_Model.Models; + +namespace WIDESEA_WMSServer.Controllers.Inbound +{ + /// <summary> + /// PP浠撳皬鍗稭ES鍑哄簱鍗曟槑缁� + /// </summary> + [Route("api/mesPPBackInboundOrderDetail")] + [ApiController] + public class MesPPBackInboundOrderDetailController : ApiBaseController<IMesPPBackInboundOrderDetailService, Dt_MesPPBackInboundOrderDetail> + { + public MesPPBackInboundOrderDetailController(IMesPPBackInboundOrderDetailService service) : base(service) + { + + } + } +} -- Gitblit v1.9.3