From 21e379a778415d5aa4d3c32e23c4348c30646f51 Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期五, 27 三月 2026 15:23:10 +0800
Subject: [PATCH] 成品检
---
src/views/qualityManagement/processInspection/index.vue | 134 ++++++++++++++++++++------------------------
1 files changed, 62 insertions(+), 72 deletions(-)
diff --git a/src/views/qualityManagement/processInspection/index.vue b/src/views/qualityManagement/processInspection/index.vue
index 96b90ad..f963a78 100644
--- a/src/views/qualityManagement/processInspection/index.vue
+++ b/src/views/qualityManagement/processInspection/index.vue
@@ -4,8 +4,32 @@
<div>
<span class="search_title">宸ュ簭锛�</span>
<el-input v-model="searchForm.process"
- style="width: 240px"
+ style="width: 200px"
placeholder="璇疯緭鍏ュ伐搴忔悳绱�"
+ @change="handleQuery"
+ clearable
+ :prefix-icon="Search" />
+ <span style="margin-left: 10px"
+ class="search_title">鐢熶骇璁㈠崟鍙凤細</span>
+ <el-input v-model="searchForm.npsNo"
+ style="width: 200px"
+ placeholder="璇疯緭鍏ョ敓浜ц鍗曞彿鎼滅储"
+ @change="handleQuery"
+ clearable
+ :prefix-icon="Search" />
+ <span style="margin-left: 10px"
+ class="search_title">浜у搧缂栫爜锛�</span>
+ <el-input v-model="searchForm.materialCode"
+ style="width: 200px"
+ placeholder="璇疯緭鍏ヤ骇鍝佺紪鐮佹悳绱�"
+ @change="handleQuery"
+ clearable
+ :prefix-icon="Search" />
+ <span style="margin-left: 10px"
+ class="search_title">浜у搧鍚嶇О锛�</span>
+ <el-input v-model="searchForm.productName"
+ style="width: 200px"
+ placeholder="璇疯緭鍏ヤ骇鍝佸悕绉版悳绱�"
@change="handleQuery"
clearable
:prefix-icon="Search" />
@@ -15,6 +39,7 @@
value-format="YYYY-MM-DD"
format="YYYY-MM-DD"
type="daterange"
+ style="width: 240px"
placeholder="璇烽�夋嫨"
clearable
@change="changeDaterange" />
@@ -60,6 +85,8 @@
@close="handleQuery"></FormDia>
<files-dia ref="filesDia"
@close="handleQuery"></files-dia>
+ <DetailDialog ref="detailDialog"
+ @close="handleQuery"></DetailDialog>
<el-dialog v-model="dialogFormVisible"
title="缂栬緫妫�楠屽憳"
width="30%"
@@ -104,6 +131,7 @@
} from "vue";
import InspectionFormDia from "@/views/qualityManagement/processInspection/components/inspectionFormDia.vue";
import FormDia from "@/views/qualityManagement/processInspection/components/formDia.vue";
+ import DetailDialog from "@/views/qualityManagement/processInspection/components/detailDialog.vue";
import { ElMessageBox } from "element-plus";
import {
downloadQualityInspect,
@@ -112,6 +140,7 @@
qualityInspectUpdate,
submitQualityInspect,
qualityInspectProcessPage,
+ qualityInspectProcessDetails,
} from "@/api/qualityManagement/rawMaterialInspection.js";
import FilesDia from "@/views/qualityManagement/processInspection/components/filesDia.vue";
import dayjs from "dayjs";
@@ -124,6 +153,9 @@
entryDate: undefined, // 褰曞叆鏃ユ湡
startTime: undefined,
endTime: undefined,
+ materialCode: "",
+ productName: "",
+ npsNo: "",
},
rules: {
checkName: [{ required: true, message: "璇烽�夋嫨", trigger: "change" }],
@@ -197,7 +229,8 @@
},
{
label: "鎶ュ伐鍗曞彿",
- prop: "productionProductRouteItemId",
+ prop: "productNo",
+ width: "130",
},
{
label: "浜у嚭鏁伴噺",
@@ -218,75 +251,21 @@
slot: "unqualifiedQuantity",
},
- // {
- // dataType: "action",
- // label: "鎿嶄綔",
- // align: "center",
- // fixed: "right",
- // width: 280,
- // operation: [
- // {
- // name: "缂栬緫",
- // type: "text",
- // clickFun: row => {
- // openForm("edit", row);
- // },
- // disabled: row => {
- // // 宸叉彁浜ゅ垯绂佺敤
- // if (row.inspectState == 1) return true;
- // // 濡傛灉妫�楠屽憳鏈夊�硷紝鍙湁褰撳墠鐧诲綍鐢ㄦ埛鑳界紪杈�
- // if (row.checkName) {
- // return row.checkName !== userStore.nickName;
- // }
- // return false;
- // },
- // },
- // {
- // name: "闄勪欢",
- // type: "text",
- // clickFun: row => {
- // openFilesFormDia(row);
- // },
- // },
- // {
- // name: "鎻愪氦",
- // type: "text",
- // clickFun: row => {
- // submit(row.id);
- // },
- // disabled: row => {
- // // 宸叉彁浜ゅ垯绂佺敤
- // if (row.inspectState == 1) return true;
- // // 濡傛灉妫�楠屽憳鏈夊�硷紝鍙湁褰撳墠鐧诲綍鐢ㄦ埛鑳芥彁浜�
- // if (row.checkName) {
- // return row.checkName !== userStore.nickName;
- // }
- // return false;
- // },
- // },
- // {
- // name: "鍒嗛厤妫�楠屽憳",
- // type: "text",
- // clickFun: row => {
- // if (!row.checkName) {
- // open(row);
- // } else {
- // proxy.$modal.msgError("妫�楠屽憳宸插瓨鍦�");
- // }
- // },
- // disabled: row => {
- // return row.inspectState == 1 || row.checkName;
- // },
- // },
- // {
- // name: "涓嬭浇",
- // type: "text",
- // clickFun: row => {
- // downLoadFile(row);
- // },
- // },
- // ],
- // },
+ {
+ dataType: "action",
+ label: "鎿嶄綔",
+ align: "center",
+ fixed: "right",
+ width: 120,
+ operation: [
+ {
+ name: "璇︽儏",
+ clickFun: row => {
+ openInspectionFormDia(row);
+ },
+ },
+ ],
+ },
]);
const userList = ref([]);
const currentRow = ref(null);
@@ -305,6 +284,7 @@
const formDia = ref();
const filesDia = ref();
const inspectionFormDia = ref();
+ const detailDialog = ref();
const { proxy } = getCurrentInstance();
const userStore = useUserStore();
const changeDaterange = value => {
@@ -325,10 +305,13 @@
/** 閲嶇疆鎸夐挳鎿嶄綔 */
const resetForm = () => {
searchForm.value = {
- checkName: "",
+ process: "",
entryDate: undefined,
startTime: undefined,
endTime: undefined,
+ materialCode: "",
+ productName: "",
+ npsNo: "",
};
getList();
};
@@ -368,6 +351,13 @@
inspectionFormDia.value?.openDialog(type, row);
});
};
+
+ // 鎵撳紑璇︽儏寮规
+ const openInspectionFormDia = row => {
+ nextTick(() => {
+ detailDialog.value?.openDialog(row);
+ });
+ };
// 鎵撳紑闄勪欢寮规
const openFilesFormDia = (type, row) => {
nextTick(() => {
--
Gitblit v1.9.3