From 36fc9186e39f2fd317603728b4ad3482a91b079b Mon Sep 17 00:00:00 2001 From: spring <2396852758@qq.com> Date: 星期三, 19 三月 2025 14:22:48 +0800 Subject: [PATCH] 合并装备代码 --- src/views/business/materialOrder/index.vue | 70 +++++++++++++++++++++++++++++++---- 1 files changed, 62 insertions(+), 8 deletions(-) diff --git a/src/views/business/materialOrder/index.vue b/src/views/business/materialOrder/index.vue index b7c2f45..a263e75 100644 --- a/src/views/business/materialOrder/index.vue +++ b/src/views/business/materialOrder/index.vue @@ -275,7 +275,7 @@ ], page: { total: 0, - size: 10, + size: 20, current: 1 }, tableData1: [], @@ -356,7 +356,7 @@ ], page1: { total: 0, - size: 10, + size: 20, current: 1 }, tableData2: [], @@ -412,7 +412,25 @@ { label: '闆朵欢鎻忚堪', prop: 'partDesc' }, { label: '渚涘簲鍟嗗悕绉�', prop: 'supplierName' }, { label: '涓嶅悎鏍兼弿杩�', prop: 'unqualifiedDesc' }, - { label: '鍏嶆', prop: 'isExemption' }, + { + dataType: 'tag', + label: '鍏嶆', + prop: 'isExemption', + formatData: (params) => { + if (params == 1) { + return '鍏嶆' + } else { + return null + } + }, + formatType: (params) => { + if (params == 1) { + return 'success' + } else { + return null + } + } + }, { label: '鏍峰搧鍚嶇О', prop: 'sampleName', @@ -515,7 +533,7 @@ ], page2: { total: 0, - size: 10, + size: 20, current: 1 }, tableData3: [], @@ -565,7 +583,25 @@ { label: '闆朵欢鎻忚堪', prop: 'partDesc' }, { label: '渚涘簲鍟嗗悕绉�', prop: 'supplierName' }, { label: '涓嶅悎鏍兼弿杩�', prop: 'unqualifiedDesc' }, - { label: '鍏嶆', prop: 'isExemption' }, + { + dataType: 'tag', + label: '鍏嶆', + prop: 'isExemption', + formatData: (params) => { + if (params == 1) { + return '鍏嶆' + } else { + return null + } + }, + formatType: (params) => { + if (params == 1) { + return 'success' + } else { + return null + } + } + }, { label: '鏍峰搧鍚嶇О', prop: 'sampleName', @@ -621,7 +657,7 @@ ], page3: { total: 0, - size: 10, + size: 20, current: 1 }, tableData4: [], @@ -671,7 +707,25 @@ { label: '闆朵欢鎻忚堪', prop: 'partDesc' }, { label: '渚涘簲鍟嗗悕绉�', prop: 'supplierName' }, { label: '涓嶅悎鏍兼弿杩�', prop: 'unqualifiedDesc' }, - { label: '鍏嶆', prop: 'isExemption' }, + { + dataType: 'tag', + label: '鍏嶆', + prop: 'isExemption', + formatData: (params) => { + if (params == 1) { + return '鍏嶆' + } else { + return null + } + }, + formatType: (params) => { + if (params == 1) { + return 'success' + } else { + return null + } + } + }, { label: '鏍峰搧鍚嶇О', prop: 'sampleName', @@ -744,7 +798,7 @@ ], page4: { total: 0, - size: 10, + size: 20, current: 1 }, entity: { -- Gitblit v1.9.3