From fc925561cfcd7416ae6a5fec9f32b45633146f2b Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期三, 24 十二月 2025 09:53:44 +0800
Subject: [PATCH] 1.海川开心-自动派工修改
---
src/views/qualityManagement/rawMaterialInspection/index.vue | 57 ++++++++++++++++++---------------------------------------
1 files changed, 18 insertions(+), 39 deletions(-)
diff --git a/src/views/qualityManagement/rawMaterialInspection/index.vue b/src/views/qualityManagement/rawMaterialInspection/index.vue
index 804fed2..ae4c2f5 100644
--- a/src/views/qualityManagement/rawMaterialInspection/index.vue
+++ b/src/views/qualityManagement/rawMaterialInspection/index.vue
@@ -40,8 +40,9 @@
</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="70%"
+ <el-dialog v-model="dialogFormVisible" title="缂栬緫妫�楠屽憳" width="30%"
@close="closeDia">
<el-form :model="form" label-width="140px" label-position="top" :rules="rules" ref="formRef">
<el-form-item label="妫�楠屽憳锛�" prop="checkName">
@@ -67,6 +68,7 @@
import {onMounted, ref} from "vue";
import InspectionFormDia from "@/views/qualityManagement/rawMaterialInspection/components/inspectionFormDia.vue";
import FormDia from "@/views/qualityManagement/rawMaterialInspection/components/formDia.vue";
+import DetailDia from "@/views/qualityManagement/rawMaterialInspection/components/detailDia.vue";
import {ElMessageBox} from "element-plus";
import {
downloadQualityInspect,
@@ -81,12 +83,9 @@
const data = reactive({
searchForm: {
supplier: "",
- entryDate: [
- dayjs().format("YYYY-MM-DD"),
- dayjs().add(1, "day").format("YYYY-MM-DD"),
- ], // 褰曞叆鏃ユ湡
- entryDateStart: dayjs().format("YYYY-MM-DD"),
- entryDateEnd: dayjs().add(1, "day").format("YYYY-MM-DD"),
+ entryDate: undefined, // 褰曞叆鏃ユ湡
+ entryDateStart: undefined,
+ entryDateEnd: undefined,
},
rules: {
checkName: [{required: true, message: "璇烽�夋嫨", trigger: "change"}],
@@ -126,11 +125,6 @@
width: 120
},
{
- label: "妫�娴嬪崟浣�",
- prop: "checkCompany",
- width: 120
- },
- {
label: "妫�娴嬬粨鏋�",
prop: "checkResult",
dataType: "tag",
@@ -164,45 +158,30 @@
operation: [
{
name: "缂栬緫",
- type: "text",
clickFun: (row) => {
openForm("edit", row);
},
- disabled: (row) => {
- return row.inspectState;
- }
- },
- {
- name: "闄勪欢",
- type: "text",
- clickFun: (row) => {
- openFilesFormDia(row);
- },
+ disabled: (row) => {
+ return row.inspectState == 1;
+ }
},
{
name: "鎻愪氦",
- type: "text",
clickFun: (row) => {
submit(row.id);
},
+ disabled: (row) => {
+ return row.inspectState == 1;
+ }
},
{
- name: "鍒嗛厤妫�楠屽憳",
- type: "text",
+ name: "鏌ョ湅",
clickFun: (row) => {
- if (!row.checkName) {
- open(row)
- } else {
- proxy.$modal.msgError("妫�楠屽憳宸插瓨鍦�");
- }
+ openDetail(row);
},
- disabled: (row) => {
- return row.inspectState;
- }
},
{
name: "涓嬭浇",
- type: "text",
clickFun: (row) => {
downLoadFile(row);
},
@@ -227,6 +206,7 @@
const formDia = ref()
const filesDia = ref()
const inspectionFormDia = ref()
+const detailDia = ref()
const {proxy} = getCurrentInstance()
const changeDaterange = (value) => {
searchForm.value.entryDateStart = undefined;
@@ -271,10 +251,9 @@
formDia.value?.openDialog(type, row)
})
};
-// 鎵撳紑鏂板妫�楠屽脊妗�
-const openInspectionForm = (type, row) => {
+const openDetail = (row) => {
nextTick(() => {
- inspectionFormDia.value?.openDialog(type, row)
+ detailDia.value?.openDialog(row)
})
};
// 鎵撳紑闄勪欢寮规
@@ -368,7 +347,7 @@
const link = document.createElement('a')
link.href = downloadUrl
- link.download = '妫�楠屾姤鍛�.docx'
+ link.download = '鍘熸潗鏂欐楠屾姤鍛�.docx'
document.body.appendChild(link)
link.click()
--
Gitblit v1.9.3