From 0af4ccb5dacacce56c5fddd0d70288fc377c56be Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期二, 01 九月 2026 17:04:37 +0800
Subject: [PATCH] feat(inspection): 1.添加报告类型功能并优化检验流程 2.设备管理组件中的部门列表获取方法优化
---
src/views/business/reportPreparation/index.vue | 20 +++++++++++++++++++-
1 files changed, 19 insertions(+), 1 deletions(-)
diff --git a/src/views/business/reportPreparation/index.vue b/src/views/business/reportPreparation/index.vue
index 0046fc0..33d4743 100644
--- a/src/views/business/reportPreparation/index.vue
+++ b/src/views/business/reportPreparation/index.vue
@@ -11,6 +11,11 @@
<el-option v-for="(a, i) in queryStatusList" :key="i" :label="a.label" :value="a.value"></el-option>
</el-select>
</el-form-item>
+ <el-form-item label="鎶ュ憡绫诲瀷" prop="reportType">
+ <el-select v-model="entity.reportType" clearable size="small" @change="refreshTable()">
+ <el-option v-for="item in reportTypeList" :key="item.value" :label="item.label" :value="item.value"></el-option>
+ </el-select>
+ </el-form-item>
<el-form-item label="涓嬪崟绫诲埆" prop="typeSource">
<el-select v-model="entity.typeSource" clearable size="small" @change="refreshTable()">
<el-option v-for="(a, i) in typeSourceList" :key="i" :label="a.label" :value="a.value"></el-option>
@@ -228,7 +233,8 @@
code: null,
typeSource: null,
orderType: null,
- materialProp: null
+ materialProp: null,
+ reportType: null
},
page: {
current: 1,
@@ -272,6 +278,10 @@
{ label: '鎶芥', value: '鎶芥' },
{ label: '杩涘巶妫�楠�', value: '杩涘巶妫�楠�' },
{ label: '瀛e害妫�楠�', value: 'Quarterly inspection' },
+ ],
+ reportTypeList: [
+ { label: '妫�娴嬫姤鍛�', value: 0 },
+ { label: '妫�楠屾姤鍛�', value: 1 },
],
showInfoDialog: false, // 浜т笟閾句俊鎭煡鐪�
isReport: 1,
@@ -357,6 +367,14 @@
linkMethod: "selectAllByOne",
},
{
+ label: '鎶ュ憡绫诲瀷',
+ prop: 'reportType',
+ width: '100px',
+ dataType: 'tag',
+ formatData: (params) => params === 0 ? '妫�娴嬫姤鍛�' : '妫�楠屾姤鍛�',
+ formatType: (params) => params === 0 ? 'warning' : 'success',
+ },
+ {
label: "涓嬪崟绫诲埆",
prop: "typeSource",
width: "100px",
--
Gitblit v1.9.3