来料检验修改

master
shaoyong 6 months ago
parent 7a093feafb
commit a4ee26c908

@ -13,22 +13,22 @@
<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 :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 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 :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 v-if="form.startOA == 'Y'" label="来料类别" prop="materialType">
<el-select v-model="queryParams.materialType" placeholder="请选择检验规则属性" clearable>
<el-form-item v-if="form.startOA == '1'" label="来料类别" prop="materialType">
<el-select v-model="form.materialType" placeholder="请选择检验规则属性" clearable>
<el-option
v-for="dict in dict.type.material_type_oa"
:key="dict.value"
@ -41,8 +41,8 @@
</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-form-item v-if="form.startOA == '1'" label="物料来源" prop="materialType">
<el-select v-model="form.materialFrom" placeholder="请选择检验规则属性" clearable>
<el-option
v-for="dict in dict.type.material_from_oa"
:key="dict.value"
@ -53,7 +53,7 @@
</el-form-item>
</el-col>
<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-form-item>
</el-col>
@ -223,8 +223,8 @@ export default {
},
data:{},
form:{
checkResult: '1',
startOA: 'N',
checkResult: 'Y',
startOA: '0',
},
dynamicValidateForm: {
domains: [{
@ -334,8 +334,8 @@ export default {
projectType: null,
};
this.resetForm("form");
this.form.checkResult = '1';
this.form.startOA = 'N';
this.form.checkResult = 'Y';
this.form.startOA = '0';
},
/** 重置按钮操作 */

Loading…
Cancel
Save