|
|
|
@ -7,8 +7,60 @@
|
|
|
|
|
width="1400px"
|
|
|
|
|
>
|
|
|
|
|
<el-row :gutter="20">
|
|
|
|
|
|
|
|
|
|
<el-col :span="24" :xs="24">
|
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
|
|
|
|
<el-row :gutter="20">
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="最终判定结果" prop="checkResult">
|
|
|
|
|
<el-radio-group v-model="form.checkResult" >
|
|
|
|
|
<el-radio :label="'1'">合格</el-radio>
|
|
|
|
|
<el-radio :label="'0'">不合格</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="是否发起OA" prop="startOA">
|
|
|
|
|
<el-radio-group v-model="form.startOA">
|
|
|
|
|
<el-radio :label="'Y'">是</el-radio>
|
|
|
|
|
<el-radio :label="'N'">否</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item v-if="form.startOA == 'Y'" label="来料类别" prop="materialType">
|
|
|
|
|
<el-select v-model="queryParams.materialType" placeholder="请选择检验规则属性" clearable>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in dict.type.material_type_oa"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row :gutter="20">
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item v-if="form.startOA == 'Y'" label="物料来源" prop="materialType">
|
|
|
|
|
<el-select v-model="queryParams.materialFrom" placeholder="请选择检验规则属性" clearable>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in dict.type.material_from_oa"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="14">
|
|
|
|
|
<el-form-item v-if="form.startOA == 'Y'" label="不合格描述" prop="remark">
|
|
|
|
|
<el-input type='textarea' v-model="form.remark" placeholder="请输入不合格描述" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="itemList" ref="myTable">
|
|
|
|
|
<el-table-column width="50" align="center" type="selection">
|
|
|
|
|
</el-table-column>
|
|
|
|
@ -49,7 +101,7 @@
|
|
|
|
|
>不良数量</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="检测值" align="center" class-name="small-padding fixed-width" v-if="this.viewStatus != '1' ">
|
|
|
|
|
<el-table-column label="检测值" align="center" class-name="small-padding fixed-width" v-if="this.viewStatus != '1' ">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
@ -69,6 +121,18 @@
|
|
|
|
|
></el-switch>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="更新" align="center" class-name="small-padding fixed-width" >
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
v-if="scope.row.weight === '1'"
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-refresh"
|
|
|
|
|
@click="getList"
|
|
|
|
|
v-hasPermi="['quality:qcIncome:edit']"
|
|
|
|
|
>更新</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
<pagination
|
|
|
|
@ -135,7 +199,7 @@ import { getCkeckProjectList,changeCheckDetailStatus,commitActualValue,commitChe
|
|
|
|
|
import { getDefectValue, commitDefectValue, updateDefectValue} from "@/api/quality/checkTaskDefect";
|
|
|
|
|
export default {
|
|
|
|
|
name: "itemSelectUser",
|
|
|
|
|
dicts: ["check_result","qc_rule_prop"],
|
|
|
|
|
dicts: ["qc_rule_prop","material_type_oa","material_from_oa"],
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
viewStatus : '0',
|
|
|
|
@ -168,6 +232,10 @@ export default {
|
|
|
|
|
//userName : ''
|
|
|
|
|
},
|
|
|
|
|
data:{},
|
|
|
|
|
form:{
|
|
|
|
|
checkResult: '1',
|
|
|
|
|
startOA: 'N',
|
|
|
|
|
},
|
|
|
|
|
dynamicValidateForm: {
|
|
|
|
|
domains: [{
|
|
|
|
|
value: ''
|
|
|
|
@ -196,6 +264,9 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
rules: {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -258,6 +329,23 @@ export default {
|
|
|
|
|
this.queryParams.pageNum = 1;
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
reset() {
|
|
|
|
|
this.form = {
|
|
|
|
|
checkResult: null,
|
|
|
|
|
startOA: null,
|
|
|
|
|
materialType: null,
|
|
|
|
|
materialFrom: null,
|
|
|
|
|
remark: null,
|
|
|
|
|
createBy: null,
|
|
|
|
|
createTime: null,
|
|
|
|
|
updateBy: null,
|
|
|
|
|
updateTime: null,
|
|
|
|
|
projectType: null,
|
|
|
|
|
};
|
|
|
|
|
this.resetForm("form");
|
|
|
|
|
this.form.checkResult = '1';
|
|
|
|
|
this.form.startOA = 'N';
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/** 重置按钮操作 */
|
|
|
|
|
resetQuery() {
|
|
|
|
@ -289,8 +377,17 @@ export default {
|
|
|
|
|
sampleQuality: this.data.sampleQuality,
|
|
|
|
|
incomeBatchNo: this.data.incomeBatchNo,
|
|
|
|
|
qcCheckTaskDetails: this.rowData,
|
|
|
|
|
checkNo: this.data.checkNo,
|
|
|
|
|
materialCode: this.data.materialCode,
|
|
|
|
|
materialName: this.data.materialName,
|
|
|
|
|
supplierCode: this.data.supplierCode,
|
|
|
|
|
supplierName: this.data.supplierName,
|
|
|
|
|
quality: this.data.quality,
|
|
|
|
|
unit: this.data.unit,
|
|
|
|
|
}
|
|
|
|
|
commitCheckResult(data).then(response => {
|
|
|
|
|
// 拼接数据
|
|
|
|
|
const finalData = {...this.form,...data}
|
|
|
|
|
commitCheckResult(finalData).then(response => {
|
|
|
|
|
this.$modal.msgSuccess("检测完成");
|
|
|
|
|
this.$emit('saveCheck');
|
|
|
|
|
this.showFlag = false;
|
|
|
|
@ -300,6 +397,7 @@ export default {
|
|
|
|
|
//取消
|
|
|
|
|
cancelForm() {
|
|
|
|
|
this.showFlag = false;
|
|
|
|
|
this.reset();
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 数据状态修改/Y合格N不合格
|
|
|
|
@ -421,7 +519,8 @@ export default {
|
|
|
|
|
this.$refs.defectForm.resetFields();
|
|
|
|
|
// 重置 defectForm.defectItems 为初始状态或清空 noOkQuality
|
|
|
|
|
this.defectForm.defectItems.forEach(item => (item.noOkQuality = 0));
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|