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"
>
-
+
-
- {{ !column.render ? row[column.prop] : '' }}
-
+
+ 在库
+ 在用
+ 在修
+ 已报废
+
+ {{ row[column.prop] }}
@@ -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' },