来料检验修改

master
shaoyong 6 months ago
parent 7a093feafb
commit a4ee26c908

@ -13,22 +13,22 @@
<el-col :span="8"> <el-col :span="8">
<el-form-item label="最终判定结果" prop="checkResult"> <el-form-item label="最终判定结果" prop="checkResult">
<el-radio-group v-model="form.checkResult" > <el-radio-group v-model="form.checkResult" >
<el-radio :label="'1'">合格</el-radio> <el-radio :label="'Y'">合格</el-radio>
<el-radio :label="'0'">不合格</el-radio> <el-radio :label="'N'">不合格</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="是否发起OA" prop="startOA"> <el-form-item label="是否发起OA" prop="startOA">
<el-radio-group v-model="form.startOA"> <el-radio-group v-model="form.startOA">
<el-radio :label="'Y'"></el-radio> <el-radio :label="'1'"></el-radio>
<el-radio :label="'N'"></el-radio> <el-radio :label="'0'"></el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item v-if="form.startOA == 'Y'" label="来料类别" prop="materialType"> <el-form-item v-if="form.startOA == '1'" label="来料类别" prop="materialType">
<el-select v-model="queryParams.materialType" placeholder="请选择检验规则属性" clearable> <el-select v-model="form.materialType" placeholder="请选择检验规则属性" clearable>
<el-option <el-option
v-for="dict in dict.type.material_type_oa" v-for="dict in dict.type.material_type_oa"
:key="dict.value" :key="dict.value"
@ -41,8 +41,8 @@
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="8"> <el-col :span="8">
<el-form-item v-if="form.startOA == 'Y'" label="物料来源" prop="materialType"> <el-form-item v-if="form.startOA == '1'" label="物料来源" prop="materialType">
<el-select v-model="queryParams.materialFrom" placeholder="请选择检验规则属性" clearable> <el-select v-model="form.materialFrom" placeholder="请选择检验规则属性" clearable>
<el-option <el-option
v-for="dict in dict.type.material_from_oa" v-for="dict in dict.type.material_from_oa"
:key="dict.value" :key="dict.value"
@ -53,7 +53,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="14"> <el-col :span="14">
<el-form-item v-if="form.startOA == 'Y'" label="不合格描述" prop="remark"> <el-form-item v-if="form.startOA == '1'" label="不合格描述" prop="remark">
<el-input type='textarea' v-model="form.remark" placeholder="请输入不合格描述" /> <el-input type='textarea' v-model="form.remark" placeholder="请输入不合格描述" />
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -223,8 +223,8 @@ export default {
}, },
data:{}, data:{},
form:{ form:{
checkResult: '1', checkResult: 'Y',
startOA: 'N', startOA: '0',
}, },
dynamicValidateForm: { dynamicValidateForm: {
domains: [{ domains: [{
@ -334,8 +334,8 @@ export default {
projectType: null, projectType: null,
}; };
this.resetForm("form"); this.resetForm("form");
this.form.checkResult = '1'; this.form.checkResult = 'Y';
this.form.startOA = 'N'; this.form.startOA = '0';
}, },
/** 重置按钮操作 */ /** 重置按钮操作 */

Loading…
Cancel
Save