From cdfcc351df167df89d91ae7398929c127f36731f Mon Sep 17 00:00:00 2001 From: bb_pan Date: Fri, 19 Dec 2025 13:25:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../toolsManage/codeToolsLedger/index.vue | 37 +++++-------------- 1 file changed, 9 insertions(+), 28 deletions(-) diff --git a/src/views/toolsManage/codeToolsLedger/index.vue b/src/views/toolsManage/codeToolsLedger/index.vue index 60226609..6a04e3d5 100644 --- a/src/views/toolsManage/codeToolsLedger/index.vue +++ b/src/views/toolsManage/codeToolsLedger/index.vue @@ -117,11 +117,15 @@ :prop="column.prop" align="center" > - + @@ -441,30 +445,7 @@ export default { { label: '规格型号', prop: 'typeName' }, { label: '计量单位', prop: 'unitName' }, { label: '工具编码', prop: 'toolCode' }, - { - label: '工具状态', - prop: 'status', - width: 120, - render: (h, { row }) => { - const statusOptions = { - 0: { text: '在库', type: 'success' }, - 1: { text: '在用', type: 'info' }, - 2: { text: '在修', type: 'warning' }, - 3: { text: '已报废', type: 'danger' }, - } - const option = statusOptions[row.status] - return h( - 'el-tag', - { - props: { - type: option.type, - size: 'mini', - }, - }, - option.text, - ) - }, - }, + { label: '工具状态', prop: 'status', width: 120 }, { label: '下次检验时间', prop: 'nextCheckDate' }, { label: '生产厂家', prop: 'supplierName', width: 200 }, { label: '出厂日期', prop: 'productionDate' },