|
|
|
@ -293,7 +293,7 @@
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row :gutter="20">
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="不合格数" prop="unqualifiedQty">
|
|
|
|
|
<el-form-item label="不合格数" prop="unqualifiedQty" v-if="form.result == 1">
|
|
|
|
|
<el-input v-model="form.unqualifiedQty" placeholder="请输入不合格数" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
@ -304,7 +304,7 @@
|
|
|
|
|
v-for="dict in qc_result"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="parseInt(dict.value)"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -324,7 +324,7 @@
|
|
|
|
|
v-for="dict in qc_inspection_type"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="parseInt(dict.value)"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -335,7 +335,7 @@
|
|
|
|
|
<el-radio
|
|
|
|
|
v-for="dict in qc_status"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:value="parseInt(dict.value)"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
>{{dict.label}}</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -462,7 +462,7 @@
|
|
|
|
|
<el-form-item label="检测方式" prop="detectType">
|
|
|
|
|
<el-tooltip content="此字段由关联检测项自动填充,不可编辑" placement="top">
|
|
|
|
|
<el-select v-model="inspectionResultForm.detectType" placeholder="检测方式" style="width: 100%;" :disabled="true">
|
|
|
|
|
<el-option v-for="dict in detect_type" :key="dict.value" :label="dict.label" :value="parseInt(dict.value)"></el-option>
|
|
|
|
|
<el-option v-for="dict in detect_type" :key="dict.value" :label="dict.label" :value="dict.value"></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -471,7 +471,7 @@
|
|
|
|
|
<el-form-item label="控制类型" prop="controlType">
|
|
|
|
|
<el-tooltip content="此字段由关联检测项自动填充,不可编辑" placement="top">
|
|
|
|
|
<el-select v-model="inspectionResultForm.controlType" placeholder="控制类型" style="width: 100%;" :disabled="true">
|
|
|
|
|
<el-option v-for="dict in control_type" :key="dict.value" :label="dict.label" :value="parseInt(dict.value)"></el-option>
|
|
|
|
|
<el-option v-for="dict in control_type" :key="dict.value" :label="dict.label" :value="dict.value"></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -525,7 +525,7 @@
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item label="检测结果" prop="detectResult">
|
|
|
|
|
<el-select v-model="inspectionResultForm.detectResult" placeholder="请选择检测结果">
|
|
|
|
|
<el-option v-for="dict in qc_result" :key="dict.value" :label="dict.label" :value="parseInt(dict.value)"></el-option>
|
|
|
|
|
<el-option v-for="dict in qc_result" :key="dict.value" :label="dict.label" :value="dict.value"></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
@ -567,7 +567,7 @@
|
|
|
|
|
|
|
|
|
|
<!-- 添加物料信息对话框 -->
|
|
|
|
|
<el-dialog title="选择物料信息" v-model="materialOpen" width="1200px" append-to-body>
|
|
|
|
|
<MaterialSelect @selection="handleSelection" ref="materialSelectRef" v-if="materialOpen"></MaterialSelect>
|
|
|
|
|
<MaterialSelect ref="materialSelectRef" v-if="materialOpen"></MaterialSelect>
|
|
|
|
|
<template #footer>
|
|
|
|
|
<div class="dialog-footer">
|
|
|
|
|
<el-button type="primary" @click="submitMaterialForm">确 定</el-button>
|
|
|
|
@ -589,7 +589,7 @@ import { getProcessInfoList } from '@/api/qms/baseProcessInfo';
|
|
|
|
|
import { getStationInfoList } from '@/api/qms/baseStationInfo';
|
|
|
|
|
|
|
|
|
|
import MaterialSelect from "@/views/mes/baseMaterialInfo/addMaterialInQMS.vue";
|
|
|
|
|
import { useRouter } from 'vue-router';
|
|
|
|
|
import { useRouter, useRoute } from 'vue-router';
|
|
|
|
|
|
|
|
|
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
|
|
|
const { qc_inspection_type, qc_result, qc_status, material_type, detect_type, control_type } = toRefs<any>(proxy?.useDict('qc_inspection_type', 'qc_result', 'qc_status', 'material_type', 'detect_type', 'control_type'));
|
|
|
|
@ -638,14 +638,14 @@ const inspectionResultDialog = reactive<DialogOption>({
|
|
|
|
|
//路由:inspectionType = 1产品检 2原材料检 3入库检
|
|
|
|
|
const inspectionType = ref();
|
|
|
|
|
const getInspectionType = async () => {
|
|
|
|
|
const router = useRouter();
|
|
|
|
|
inspectionType.value = router.currentRoute._rawValue.query && router.currentRoute._rawValue.query.inspectionType;
|
|
|
|
|
const route = useRoute();
|
|
|
|
|
inspectionType.value = route.query.inspectionType;
|
|
|
|
|
if (inspectionType.value == 2){
|
|
|
|
|
queryParams.value.qcInspectionType = '2';
|
|
|
|
|
queryParams.value.inspectionType = '2';
|
|
|
|
|
} else if (inspectionType.value == 3){
|
|
|
|
|
queryParams.value.qcInspectionType = '3';
|
|
|
|
|
queryParams.value.inspectionType = '3';
|
|
|
|
|
} else {
|
|
|
|
|
queryParams.value.qcInspectionType = '1';
|
|
|
|
|
queryParams.value.inspectionType = '1';
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@ -748,7 +748,7 @@ const data = reactive<PageData<QcInspectionMainForm, QcInspectionMainQuery>>({
|
|
|
|
|
unqualifiedQty: undefined,
|
|
|
|
|
result: undefined,
|
|
|
|
|
workshop: undefined,
|
|
|
|
|
qcInspectionType: undefined,
|
|
|
|
|
inspectionType: undefined,
|
|
|
|
|
status: undefined,
|
|
|
|
|
inspector: undefined,
|
|
|
|
|
shift: undefined,
|
|
|
|
@ -985,6 +985,7 @@ const handleDeleteInspectionResult = async (row?: QcInspectionResultVO) => {
|
|
|
|
|
await delQcInspectionResult(_resultIds);
|
|
|
|
|
proxy?.$modal.msgSuccess("删除成功");
|
|
|
|
|
await getInspectionResultList();
|
|
|
|
|
await getList(); // 新增
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** 提交按钮 */
|
|
|
|
@ -1017,6 +1018,7 @@ const submitInspectionResultForm = () => {
|
|
|
|
|
proxy?.$modal.msgSuccess("操作成功");
|
|
|
|
|
inspectionResultDialog.visible = false;
|
|
|
|
|
await getInspectionResultList();
|
|
|
|
|
await getList(); // 新增
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|