From 9382cf0ba396fa434daba76303a956905dff837d Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 23 十二月 2025 16:32:00 +0800
Subject: [PATCH] 1.海川开心-质量管理三个页面,去掉分配检验员功能,新增时规格型号和单位可以直接赋值
---
src/views/qualityManagement/processInspection/index.vue | 45 +++++++++++++++------------------------------
1 files changed, 15 insertions(+), 30 deletions(-)
diff --git a/src/views/qualityManagement/processInspection/index.vue b/src/views/qualityManagement/processInspection/index.vue
index b6429de..a4669e0 100644
--- a/src/views/qualityManagement/processInspection/index.vue
+++ b/src/views/qualityManagement/processInspection/index.vue
@@ -39,6 +39,7 @@
</div>
<InspectionFormDia ref="inspectionFormDia" @close="handleQuery"></InspectionFormDia>
<FormDia ref="formDia" @close="handleQuery"></FormDia>
+ <DetailDia ref="detailDia"></DetailDia>
<files-dia ref="filesDia" @close="handleQuery"></files-dia>
<el-dialog v-model="dialogFormVisible" title="缂栬緫妫�楠屽憳" width="30%"
@close="closeDia">
@@ -65,6 +66,7 @@
import {onMounted, ref} from "vue";
import InspectionFormDia from "@/views/qualityManagement/processInspection/components/inspectionFormDia.vue";
import FormDia from "@/views/qualityManagement/processInspection/components/formDia.vue";
+import DetailDia from "@/views/qualityManagement/processInspection/components/detailDia.vue";
import {ElMessageBox} from "element-plus";
import {
downloadQualityInspect,
@@ -121,11 +123,6 @@
width: 100
},
{
- label: "妫�娴嬪崟浣�",
- prop: "checkCompany",
- width: 120
- },
- {
label: "妫�娴嬬粨鏋�",
prop: "checkResult",
dataType: "tag",
@@ -155,11 +152,10 @@
label: "鎿嶄綔",
align: "center",
fixed: "right",
- width: 300,
+ width: 260,
operation: [
{
name: "缂栬緫",
- type: "text",
clickFun: (row) => {
openForm("edit", row);
},
@@ -167,16 +163,8 @@
return row.inspectState == 1;
}
},
- {
- name: "闄勪欢",
- type: "text",
- clickFun: (row) => {
- openFilesFormDia(row);
- },
- },
{
name: "鎻愪氦",
- type: "text",
clickFun: (row) => {
submit(row.id);
},
@@ -184,23 +172,14 @@
return row.inspectState == 1;
}
},
- {
- name: "鍒嗛厤妫�楠屽憳",
- type: "text",
- clickFun: (row) => {
- if (!row.checkName) {
- open(row)
- } else {
- proxy.$modal.msgError("妫�楠屽憳宸插瓨鍦�");
- }
- },
- disabled: (row) => {
- return row.inspectState == 1 || row.checkName;
- }
- },
+ {
+ name: "鏌ョ湅",
+ clickFun: (row) => {
+ openDetail(row);
+ },
+ },
{
name: "涓嬭浇",
- type: "text",
clickFun: (row) => {
downLoadFile(row);
},
@@ -225,6 +204,7 @@
const formDia = ref()
const filesDia = ref()
const inspectionFormDia = ref()
+const detailDia = ref()
const { proxy } = getCurrentInstance()
const changeDaterange = (value) => {
searchForm.value.entryDateStart = undefined;
@@ -269,6 +249,11 @@
formDia.value?.openDialog(type, row)
})
};
+const openDetail = (row) => {
+ nextTick(() => {
+ detailDia.value?.openDialog(row)
+ })
+};
// 鎵撳紑鏂板妫�楠屽脊妗�
const openInspectionForm = (type, row) => {
nextTick(() => {
--
Gitblit v1.9.3