From e21b85869aabac395175aabf8b9e973aabf692df Mon Sep 17 00:00:00 2001
From: yanjinhui <3306209981@qq.com>
Date: 星期二, 10 三月 2026 17:56:13 +0800
Subject: [PATCH] 优化

---
 代码管理/WCS/WIDESEAWCS_Client/src/router/viewGird.js                                            |    9 +++
 代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskHelpMethods.cs                     |    2 
 代码管理/WCS/WIDESEAWCS_Client/src/extension/basicinfo/Dt_trackloginfo.js                        |   25 ++++++++
 代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_DTO/WMS/WMSReturnMethod.cs                             |    2 
 代码管理/WCS/WIDESEAWCS_Client/src/views/basicinfo/Dt_trackloginfo.vue                           |   71 +++++++++++++++++++++++
 代码管理/WCS/WIDESEAWCS_Client/src/views/basicinfo/kLSLocationInfo.vue                           |    3 
 代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/BasicInfo/TrackloginfoController.cs |   22 +++++++
 7 files changed, 131 insertions(+), 3 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Client/src/extension/basicinfo/Dt_trackloginfo.js" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Client/src/extension/basicinfo/Dt_trackloginfo.js"
new file mode 100644
index 0000000..03c685d
--- /dev/null
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Client/src/extension/basicinfo/Dt_trackloginfo.js"
@@ -0,0 +1,25 @@
+//author:jxx
+//姝ゅ鏄琛ㄥ崟鐨勬柟娉曪紝缁勪欢锛屾潈闄愭搷浣滄寜閽瓑杩涜浠绘剰鎵╁睍(鏂规硶鎵╁睍鍙弬鐓ellOrder.js)
+let extension = {
+  components: { //鍔ㄦ�佹墿鍏呯粍浠舵垨缁勪欢璺緞
+    //琛ㄥ崟header銆乧ontent銆乫ooter瀵瑰簲浣嶇疆鎵╁厖鐨勭粍浠�
+    gridHeader: '', //{ template: "<div>鎵╁睍缁剎x浠�</div>" },
+    gridBody: '',
+    gridFooter: '',
+    //寮瑰嚭妗�(淇敼銆佺紪杈戙�佹煡鐪�)header銆乧ontent銆乫ooter瀵瑰簲浣嶇疆鎵╁厖鐨勭粍浠�
+    modelHeader: '',
+    modelBody: '',
+    modelFooter: ''
+  },
+  buttons: {
+    view: [],
+    box: [],
+    detail: []
+  }, //鎵╁睍鐨勬寜閽�
+  methods: { //浜嬩欢鎵╁睍
+    onInit() {
+
+    }
+  }
+};
+export default extension;
\ No newline at end of file
diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Client/src/router/viewGird.js" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Client/src/router/viewGird.js"
index 0975bec..ea245bb 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Client/src/router/viewGird.js"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Client/src/router/viewGird.js"
@@ -78,6 +78,15 @@
     name: 'stationManger',
     component: () => import('@/views/basicinfo/stationManger.vue')
   }
+  , {
+    path: '/taskHty',
+    name: 'taskHty',
+    component: () => import('@/views/taskinfo/taskHty.vue')
+  }, {
+  path: '/trackloginfo',  
+  name: 'trackloginfo',
+  component: () => import('@/views/basicinfo/Dt_trackloginfo.vue')
+}
 ]
 
 export default viewgird
diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Client/src/views/basicinfo/Dt_trackloginfo.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Client/src/views/basicinfo/Dt_trackloginfo.vue"
new file mode 100644
index 0000000..b07cab8
--- /dev/null
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Client/src/views/basicinfo/Dt_trackloginfo.vue"
@@ -0,0 +1,71 @@
+<!--
+*Author锛歫xx
+ *Contact锛�283591387@qq.com
+ *浠g爜鐢辨鏋剁敓鎴�,浠讳綍鏇存敼閮藉彲鑳藉鑷磋浠g爜鐢熸垚鍣ㄨ鐩�
+ *涓氬姟璇峰湪@/extension/system/loginfo/Dt_trackloginfo.js姝ゅ缂栧啓
+ -->
+<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/basicinfo/Dt_trackloginfo.js";
+import { ref, defineComponent } from "vue";
+export default defineComponent({
+  setup () {
+    const table = ref({
+      key: 'tracklog_id',
+      footer: "Foots",
+      cnName: '鎿嶄綔鏃ュ織',
+      name: 'trackloginfo',
+      url: "/trackloginfo/",
+      sortName: "tracklog_createtime"
+    });
+    const editFormFields = ref({});
+    const editFormOptions = ref([]);
+    const searchFormFields = ref({ "tracklog_name": "", "tracklog_content": "", "tracklog_des": "", "tracklog_message": "" });
+    const searchFormOptions = ref([
+      [
+        { "title": "鍙傛暟", "field": "tracklog_content", "type": "like" },
+        { "title": "鍚嶇О", "field": "tracklog_name", "type": "like" },
+        { "title": "鎻忚堪", "field": "tracklog_des", "type": "like" },
+        { "title": "閿欒鎻忚堪", "field": "tracklog_message", "type": "like" }
+      ]
+    ]);
+    const columns = ref([
+      { field: 'tracklog_id', title: 'ID', type: 'int', width: 90, require: true, align: 'left', sort: true },
+      { field: 'tracklog_name', title: '鍚嶇О', type: 'string', sort: true, width: 120, require: true, align: 'left' },
+      { field: 'tracklog_content', title: '鍙傛暟', type: 'string', sort: true, width: 185, align: 'left' },
+      { field: 'tracklog_type', title: '绫诲瀷', type: 'string', sort: true, width: 90, require: true, align: 'left' },
+      { field: 'tracklog_des', title: '鎻忚堪', type: 'string', sort: true, width: 185, require: true, align: 'left' },
+      { field: 'tracklog_code', title: '閿欒浠g爜', type: 'string', sort: true, width: 110, require: true, align: 'left' },
+      { field: 'tracklog_message', title: '閿欒鎻忚堪', type: 'string', sort: true, width: 185, align: 'left' },
+      { field: 'tracklog_operator', title: '鎿嶄綔浜�', type: 'string', sort: true, width: 110, require: true, align: 'left' },
+      { field: 'tracklog_createtime', title: '鍒涘缓鏃堕棿', type: 'datetime', sort: true, width: 160, require: true, align: 'left', sort: true }]);
+    const detail = ref({
+      cnName: "#detailCnName",
+      columns: [],
+      sortName: "",
+      key: ""
+    });
+    return {
+      table,
+      extend,
+      editFormFields,
+      editFormOptions,
+      searchFormFields,
+      searchFormOptions,
+      columns,
+      detail,
+    };
+  },
+});
+</script>
diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Client/src/views/basicinfo/kLSLocationInfo.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Client/src/views/basicinfo/kLSLocationInfo.vue"
index a640c62..918b10d 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Client/src/views/basicinfo/kLSLocationInfo.vue"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Client/src/views/basicinfo/kLSLocationInfo.vue"
@@ -186,8 +186,9 @@
     // 鎼滅储琛ㄥ崟甯冨眬閰嶇疆椤�
     const searchFormOptions = ref([
       [
-        { title: "浠撳簱缂栧彿", field: "warehouseId", type: "like" },
         { title: "璐т綅缂栧彿", field: "locationCode", type: "like" },
+
+        { title: "浠撳簱缂栧彿", field: "warehouseId", type: "like" },
         { title: "璐т綅鍚嶇О", field: "locationName", type: "like" },
         
       ],
diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_DTO/WMS/WMSReturnMethod.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_DTO/WMS/WMSReturnMethod.cs"
index 5ec3e9e..4c33384 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_DTO/WMS/WMSReturnMethod.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_DTO/WMS/WMSReturnMethod.cs"
@@ -16,7 +16,7 @@
             {
                 code = content.Status ? successCode : failCode,
                 msg = content.Message ?? (content.Status ? "鎿嶄綔鎴愬姛" : "鎿嶄綔澶辫触"),
-                data = content.Status ? content.Data : null
+                data = content.Data
             };
         }
     }
diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/BasicInfo/TrackloginfoController.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/BasicInfo/TrackloginfoController.cs"
new file mode 100644
index 0000000..fb6dd0c
--- /dev/null
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/BasicInfo/TrackloginfoController.cs"
@@ -0,0 +1,22 @@
+锘縰sing Microsoft.AspNetCore.Mvc;
+using WIDESEAWCS_Core.BaseController;
+using WIDESEAWCS_IBasicInfoService;
+using WIDESEAWCS_Model.Models;
+
+namespace WIDESEAWCS_Server.Controllers.BasicInfo
+{
+    /// <summary>
+    ///鎺ュ彛淇℃伅
+    /// </summary>
+    [Route("api/Trackloginfo")]
+    [ApiController]
+    public class TrackloginfoController : ApiBaseController<ITrackloginfoService, Dt_trackloginfo>
+    {
+        public TrackloginfoController(ITrackloginfoService service) : base(service)
+        {
+
+        }
+
+
+    }
+}
diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskHelpMethods.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskHelpMethods.cs"
index 949dc5e..07e6933 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskHelpMethods.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskHelpMethods.cs"
@@ -23,7 +23,7 @@
             }
             catch (Exception ex)
             {
-                throw new Exception(ex.Message);
+                content.Error(ex.Message);
             }
             return content;
         }

--
Gitblit v1.9.3