快乐的昕的电脑
2025-10-09 cb0f0660986138df8cd2b268124edfe9c06b39e3
添加刀具查询
已修改11个文件
126 ■■■■ 文件已修改
.vs/slnx.sqlite 补丁 | 查看 | 原始文档 | blame | 历史
.vs/前端2/CopilotIndices/17.14.878.3237/CodeChunks.db 补丁 | 查看 | 原始文档 | blame | 历史
.vs/前端2/CopilotIndices/17.14.878.3237/CodeChunks.db-shm 补丁 | 查看 | 原始文档 | blame | 历史
.vs/前端2/CopilotIndices/17.14.878.3237/CodeChunks.db-wal 补丁 | 查看 | 原始文档 | blame | 历史
.vs/前端2/CopilotIndices/17.14.878.3237/SemanticSymbols.db 补丁 | 查看 | 原始文档 | blame | 历史
.vs/前端2/CopilotIndices/17.14.878.3237/SemanticSymbols.db-shm 补丁 | 查看 | 原始文档 | blame | 历史
.vs/前端2/CopilotIndices/17.14.878.3237/SemanticSymbols.db-wal 补丁 | 查看 | 原始文档 | blame | 历史
.vs/前端2/v17/.wsuo 补丁 | 查看 | 原始文档 | blame | 历史
.vs/前端2/v17/DocumentLayout.backup.json 55 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.vs/前端2/v17/DocumentLayout.json 39 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
components/mold.vue 32 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.vs/slnx.sqlite
Binary files differ
.vs/ǰ¶Ë2/CopilotIndices/17.14.878.3237/CodeChunks.db
Binary files differ
.vs/ǰ¶Ë2/CopilotIndices/17.14.878.3237/CodeChunks.db-shm
Binary files differ
.vs/ǰ¶Ë2/CopilotIndices/17.14.878.3237/CodeChunks.db-wal
Binary files differ
.vs/ǰ¶Ë2/CopilotIndices/17.14.878.3237/SemanticSymbols.db
Binary files differ
.vs/ǰ¶Ë2/CopilotIndices/17.14.878.3237/SemanticSymbols.db-shm
Binary files differ
.vs/ǰ¶Ë2/CopilotIndices/17.14.878.3237/SemanticSymbols.db-wal
Binary files differ
.vs/ǰ¶Ë2/v17/.wsuo
Binary files differ
.vs/ǰ¶Ë2/v17/DocumentLayout.backup.json
@@ -3,8 +3,12 @@
  "WorkspaceRootPath": "F:\\\u516C\u53F8\u9879\u76EE\u8F6F\u4EF6\\GIT\\01\u9F7F\u8F6E\u8BBE\u8BA1\\\u524D\u7AEF2\\",
  "Documents": [
    {
      "AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|F:\\\u516C\u53F8\u9879\u76EE\u8F6F\u4EF6\\GIT\\01\u9F7F\u8F6E\u8BBE\u8BA1\\\u524D\u7AEF2\\components\\WorkOrder.vue||{40D31677-CBC0-4297-A9EF-89D907823A98}",
      "RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:components\\WorkOrder.vue||{40D31677-CBC0-4297-A9EF-89D907823A98}"
      "AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|F:\\\u516C\u53F8\u9879\u76EE\u8F6F\u4EF6\\GIT\\01\u9F7F\u8F6E\u8BBE\u8BA1\\\u524D\u7AEF2\\components\\mold.vue||{40D31677-CBC0-4297-A9EF-89D907823A98}",
      "RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:components\\mold.vue||{40D31677-CBC0-4297-A9EF-89D907823A98}"
    },
    {
      "AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|F:\\\u516C\u53F8\u9879\u76EE\u8F6F\u4EF6\\GIT\\01\u9F7F\u8F6E\u8BBE\u8BA1\\\u524D\u7AEF2\\components\\machine.vue||{40D31677-CBC0-4297-A9EF-89D907823A98}",
      "RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:components\\machine.vue||{40D31677-CBC0-4297-A9EF-89D907823A98}"
    },
    {
      "AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|F:\\\u516C\u53F8\u9879\u76EE\u8F6F\u4EF6\\GIT\\01\u9F7F\u8F6E\u8BBE\u8BA1\\\u524D\u7AEF2\\pages\\index.vue||{40D31677-CBC0-4297-A9EF-89D907823A98}",
@@ -13,6 +17,10 @@
    {
      "AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|F:\\\u516C\u53F8\u9879\u76EE\u8F6F\u4EF6\\GIT\\01\u9F7F\u8F6E\u8BBE\u8BA1\\\u524D\u7AEF2\\store\\index.js||{14D17961-FE51-464D-9111-C4AF11D7D99A}",
      "RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:store\\index.js||{14D17961-FE51-464D-9111-C4AF11D7D99A}"
    },
    {
      "AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|F:\\\u516C\u53F8\u9879\u76EE\u8F6F\u4EF6\\GIT\\01\u9F7F\u8F6E\u8BBE\u8BA1\\\u524D\u7AEF2\\components\\WorkOrder.vue||{40D31677-CBC0-4297-A9EF-89D907823A98}",
      "RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:components\\WorkOrder.vue||{40D31677-CBC0-4297-A9EF-89D907823A98}"
    },
    {
      "AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|F:\\\u516C\u53F8\u9879\u76EE\u8F6F\u4EF6\\GIT\\01\u9F7F\u8F6E\u8BBE\u8BA1\\\u524D\u7AEF2\\components\\WorkOrderPrint.vue||{40D31677-CBC0-4297-A9EF-89D907823A98}",
@@ -30,8 +38,34 @@
      "DocumentGroups": [
        {
          "DockedWidth": 200,
          "SelectedChildIndex": 6,
          "SelectedChildIndex": 1,
          "Children": [
            {
              "$type": "Document",
              "DocumentIndex": 1,
              "Title": "machine.vue",
              "DocumentMoniker": "F:\\\u516C\u53F8\u9879\u76EE\u8F6F\u4EF6\\GIT\\01\u9F7F\u8F6E\u8BBE\u8BA1\\\u524D\u7AEF2\\components\\machine.vue",
              "RelativeDocumentMoniker": "components\\machine.vue",
              "ToolTip": "F:\\\u516C\u53F8\u9879\u76EE\u8F6F\u4EF6\\GIT\\01\u9F7F\u8F6E\u8BBE\u8BA1\\\u524D\u7AEF2\\components\\machine.vue",
              "RelativeToolTip": "components\\machine.vue",
              "ViewState": "AgIAAAAAAAAAAAAAAAAAAA0AAABHAAAAAAAAAA==",
              "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003491|",
              "WhenOpened": "2025-10-08T06:28:46.548Z",
              "EditorCaption": ""
            },
            {
              "$type": "Document",
              "DocumentIndex": 0,
              "Title": "mold.vue",
              "DocumentMoniker": "F:\\\u516C\u53F8\u9879\u76EE\u8F6F\u4EF6\\GIT\\01\u9F7F\u8F6E\u8BBE\u8BA1\\\u524D\u7AEF2\\components\\mold.vue",
              "RelativeDocumentMoniker": "components\\mold.vue",
              "ToolTip": "F:\\\u516C\u53F8\u9879\u76EE\u8F6F\u4EF6\\GIT\\01\u9F7F\u8F6E\u8BBE\u8BA1\\\u524D\u7AEF2\\components\\mold.vue",
              "RelativeToolTip": "components\\mold.vue",
              "ViewState": "AgIAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAA==",
              "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003491|",
              "WhenOpened": "2025-10-08T05:39:55.433Z",
              "EditorCaption": ""
            },
            {
              "$type": "Bookmark",
              "Name": "ST:0:0:{3ae79031-e1bc-11d0-8f78-00a0c9110057}"
@@ -50,7 +84,7 @@
            },
            {
              "$type": "Document",
              "DocumentIndex": 2,
              "DocumentIndex": 3,
              "Title": "index.js",
              "DocumentMoniker": "F:\\\u516C\u53F8\u9879\u76EE\u8F6F\u4EF6\\GIT\\01\u9F7F\u8F6E\u8BBE\u8BA1\\\u524D\u7AEF2\\store\\index.js",
              "RelativeDocumentMoniker": "store\\index.js",
@@ -58,24 +92,25 @@
              "RelativeToolTip": "store\\index.js",
              "ViewState": "AgIAAAAAAAAAAAAAAAAAAA4AAAADAAAAAAAAAA==",
              "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001646|",
              "WhenOpened": "2025-09-25T08:50:23.315Z"
              "WhenOpened": "2025-09-25T08:50:23.315Z",
              "EditorCaption": ""
            },
            {
              "$type": "Document",
              "DocumentIndex": 1,
              "DocumentIndex": 2,
              "Title": "index.vue",
              "DocumentMoniker": "F:\\\u516C\u53F8\u9879\u76EE\u8F6F\u4EF6\\GIT\\01\u9F7F\u8F6E\u8BBE\u8BA1\\\u524D\u7AEF2\\pages\\index.vue",
              "RelativeDocumentMoniker": "pages\\index.vue",
              "ToolTip": "F:\\\u516C\u53F8\u9879\u76EE\u8F6F\u4EF6\\GIT\\01\u9F7F\u8F6E\u8BBE\u8BA1\\\u524D\u7AEF2\\pages\\index.vue",
              "RelativeToolTip": "pages\\index.vue",
              "ViewState": "AgIAAAkAAAAAAAAAAAAAAB8AAAAAAAAAAAAAAA==",
              "ViewState": "AgIAAAAAAAAAAAAAAAAAAAsAAAAIAAAAAAAAAA==",
              "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003491|",
              "WhenOpened": "2025-09-24T02:18:33.79Z",
              "EditorCaption": ""
            },
            {
              "$type": "Document",
              "DocumentIndex": 0,
              "DocumentIndex": 4,
              "Title": "WorkOrder.vue",
              "DocumentMoniker": "F:\\\u516C\u53F8\u9879\u76EE\u8F6F\u4EF6\\GIT\\01\u9F7F\u8F6E\u8BBE\u8BA1\\\u524D\u7AEF2\\components\\WorkOrder.vue",
              "RelativeDocumentMoniker": "components\\WorkOrder.vue",
@@ -88,7 +123,7 @@
            },
            {
              "$type": "Document",
              "DocumentIndex": 4,
              "DocumentIndex": 6,
              "Title": "WorkOrderStatus.vue",
              "DocumentMoniker": "F:\\\u516C\u53F8\u9879\u76EE\u8F6F\u4EF6\\GIT\\01\u9F7F\u8F6E\u8BBE\u8BA1\\\u524D\u7AEF2\\components\\WorkOrderStatus.vue",
              "RelativeDocumentMoniker": "components\\WorkOrderStatus.vue",
@@ -100,7 +135,7 @@
            },
            {
              "$type": "Document",
              "DocumentIndex": 3,
              "DocumentIndex": 5,
              "Title": "WorkOrderPrint.vue",
              "DocumentMoniker": "F:\\\u516C\u53F8\u9879\u76EE\u8F6F\u4EF6\\GIT\\01\u9F7F\u8F6E\u8BBE\u8BA1\\\u524D\u7AEF2\\components\\WorkOrderPrint.vue",
              "RelativeDocumentMoniker": "components\\WorkOrderPrint.vue",
.vs/ǰ¶Ë2/v17/DocumentLayout.json
@@ -38,8 +38,20 @@
      "DocumentGroups": [
        {
          "DockedWidth": 200,
          "SelectedChildIndex": 1,
          "SelectedChildIndex": 4,
          "Children": [
            {
              "$type": "Bookmark",
              "Name": "ST:0:0:{3ae79031-e1bc-11d0-8f78-00a0c9110057}"
            },
            {
              "$type": "Bookmark",
              "Name": "ST:0:0:{1c64b9c2-e352-428e-a56d-0ace190b99a6}"
            },
            {
              "$type": "Bookmark",
              "Name": "ST:128:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
            },
            {
              "$type": "Document",
              "DocumentIndex": 1,
@@ -48,7 +60,7 @@
              "RelativeDocumentMoniker": "components\\machine.vue",
              "ToolTip": "F:\\\u516C\u53F8\u9879\u76EE\u8F6F\u4EF6\\GIT\\01\u9F7F\u8F6E\u8BBE\u8BA1\\\u524D\u7AEF2\\components\\machine.vue",
              "RelativeToolTip": "components\\machine.vue",
              "ViewState": "AgIAAAAAAAAAAAAAAAAAAA0AAABHAAAAAAAAAA==",
              "ViewState": "AgIAAEsAAAAAAAAAAAAAAGMAAAAaAAAAAAAAAA==",
              "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003491|",
              "WhenOpened": "2025-10-08T06:28:46.548Z",
              "EditorCaption": ""
@@ -61,22 +73,10 @@
              "RelativeDocumentMoniker": "components\\mold.vue",
              "ToolTip": "F:\\\u516C\u53F8\u9879\u76EE\u8F6F\u4EF6\\GIT\\01\u9F7F\u8F6E\u8BBE\u8BA1\\\u524D\u7AEF2\\components\\mold.vue",
              "RelativeToolTip": "components\\mold.vue",
              "ViewState": "AgIAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAA==",
              "ViewState": "AgIAAPgAAAAAAAAAAAAUwCMBAAAIAAAAAAAAAA==",
              "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003491|",
              "WhenOpened": "2025-10-08T05:39:55.433Z",
              "EditorCaption": ""
            },
            {
              "$type": "Bookmark",
              "Name": "ST:0:0:{3ae79031-e1bc-11d0-8f78-00a0c9110057}"
            },
            {
              "$type": "Bookmark",
              "Name": "ST:0:0:{1c64b9c2-e352-428e-a56d-0ace190b99a6}"
            },
            {
              "$type": "Bookmark",
              "Name": "ST:128:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}"
            },
            {
              "$type": "Bookmark",
@@ -92,8 +92,7 @@
              "RelativeToolTip": "store\\index.js",
              "ViewState": "AgIAAAAAAAAAAAAAAAAAAA4AAAADAAAAAAAAAA==",
              "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001646|",
              "WhenOpened": "2025-09-25T08:50:23.315Z",
              "EditorCaption": ""
              "WhenOpened": "2025-09-25T08:50:23.315Z"
            },
            {
              "$type": "Document",
@@ -105,8 +104,7 @@
              "RelativeToolTip": "pages\\index.vue",
              "ViewState": "AgIAAAAAAAAAAAAAAAAAAAsAAAAIAAAAAAAAAA==",
              "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003491|",
              "WhenOpened": "2025-09-24T02:18:33.79Z",
              "EditorCaption": ""
              "WhenOpened": "2025-09-24T02:18:33.79Z"
            },
            {
              "$type": "Document",
@@ -118,8 +116,7 @@
              "RelativeToolTip": "components\\WorkOrder.vue",
              "ViewState": "AgIAAM0AAAAAAAAAAAAAAN8AAAA6AAAAAAAAAA==",
              "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003491|",
              "WhenOpened": "2025-09-23T08:05:50.481Z",
              "EditorCaption": ""
              "WhenOpened": "2025-09-23T08:05:50.481Z"
            },
            {
              "$type": "Document",
components/mold.vue
@@ -116,10 +116,26 @@
            };
        },
        methods: {
            searchTool() {
                this.filteredTools = this.toolList.filter(t =>
                    t.no.includes(this.searchKey) || t.name.includes(this.searchKey)
                );
            async fetchTools(searchKey) {
                // å®žé™…项目中请替换为你的后端接口地址
                const res = await fetch('/api/QueryTools', {
                    method: 'POST',
                    headers: { 'Content-Type': 'application/json' },
                    body: JSON.stringify(searchKey)
                });
                const data = await res.json();
                if (data.status === 0) {
                    this.filteredTools = data.data.tbBillList.map(t => ({
                        no: t.cutterId || t.no,
                        name: t.cutterName || t.name,
                        model: t.cutterModel || t.model
                    }));
                } else {
                    this.$showMessage(data.message || '查询失败');
                }
            },
            async searchTool() {
                await this.fetchTools(this.searchKey);
            },
            selectTool(tool) {
                this.selectedToolNo = tool.no;
@@ -141,11 +157,15 @@
                this.selectedToolNo = '';
                this.toolName = '';
                this.toolModel = '';
            },
            setUseLimit() {
                // ä¿å­˜ä½¿ç”¨ä¸Šé™é€»è¾‘,实际应调用后端接口
                this.$showMessage('使用上限已保存(示例)');
            }
        },
        mounted() {
            // å®žé™…应从后端加载刀具目录和使用记录
            this.filteredTools = this.toolList;
            // é¡µé¢åŠ è½½æ—¶æ‹‰å–å…¨éƒ¨åˆ€å…·
            this.fetchTools('');
        }
    };
</script>