From 2596ce9703967b88561439d0a43c917a4d9fc91d Mon Sep 17 00:00:00 2001 From: qiankanghui Date: Wed, 18 Nov 2026 10:46:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E5=85=B7=E5=87=BA=E5=85=A5=E5=BA=93?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E9=A1=B5=E9=9D=A2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/production/tool.js | 4 + src/views/modules/tool/toolInstanceQuery.vue | 12 +- src/views/modules/tool/toolInventoryLog.vue | 288 ++++++++----------- 3 files changed, 140 insertions(+), 164 deletions(-) diff --git a/src/api/production/tool.js b/src/api/production/tool.js index ae3c9e4..d86624d 100644 --- a/src/api/production/tool.js +++ b/src/api/production/tool.js @@ -22,3 +22,7 @@ export const searchToolTransTypeList = data => // 工具实例出入库记录明细分页查询(工具清单联动明细) export const searchToolInstanceTransDetailPage = data => createAPI('/production/tool/searchToolInstanceTransDetailPage', 'post', data) + +// 工具出入库单头 + 明细合并分页查询(合并列表) +export const searchToolTransMergePage = data => + createAPI('/production/tool/searchToolTransMergePage', 'post', data) diff --git a/src/views/modules/tool/toolInstanceQuery.vue b/src/views/modules/tool/toolInstanceQuery.vue index 44fdeee..cddd8b4 100644 --- a/src/views/modules/tool/toolInstanceQuery.vue +++ b/src/views/modules/tool/toolInstanceQuery.vue @@ -17,9 +17,12 @@ - + + + + @@ -144,6 +147,7 @@ const TOOL_INSTANCE_COLUMN_SPECS = [ { prop: 'supplierName', label: '模具供应商', width: 140, align: 'left', tooltip: true }, { prop: 'lastOrderNo', label: '最后订单', width: 80, align: 'left', tooltip: true }, { prop: 'lastSeqNo', label: '最后派工单', width: 100, align: 'right' }, + { prop: 'nowSeqNo', label: '当前派工单', width: 100, align: 'right' }, { prop: 'operatorCombo', label: '操作员', width: 80, align: 'left', tooltip: true, slotKey: 'operator' }, { prop: 'standardLifeQty', label: '标准寿命(次)', width: 100, align: 'right' }, { prop: 'actualUseQty', label: '累计使用次数', width: 100, align: 'right' }, @@ -181,6 +185,7 @@ export default { toolInstanceId: '', locationId: '', lastSeqNoInput: '', + nowSeqNoInput: '', lastOrderNo: '', toolSpec: '', }, @@ -259,6 +264,8 @@ export default { this.dataListLoading = true const seqStr = String(this.searchData.lastSeqNoInput || '').trim() const parsedSeq = seqStr === '' ? NaN : Number(seqStr) + const nowSeqStr = String(this.searchData.nowSeqNoInput || '').trim() + const parsedNowSeq = nowSeqStr === '' ? NaN : Number(nowSeqStr) const payload = { site: this.searchData.site ? this.searchData.site.trim() : undefined, toolId: this.searchData.toolId ? this.searchData.toolId.trim() : undefined, @@ -272,6 +279,9 @@ export default { if (Number.isFinite(parsedSeq)) { payload.lastSeqNo = parsedSeq } + if (Number.isFinite(parsedNowSeq)) { + payload.nowSeqNo = parsedNowSeq + } searchToolInstancePage(payload).then(({ data }) => { this.dataListLoading = false if (data && data.code === 0 && data.page) { diff --git a/src/views/modules/tool/toolInventoryLog.vue b/src/views/modules/tool/toolInventoryLog.vue index a130a87..de76a70 100644 --- a/src/views/modules/tool/toolInventoryLog.vue +++ b/src/views/modules/tool/toolInventoryLog.vue @@ -1,17 +1,17 @@