入库必填项

This commit is contained in:
shenyanpei
2022-01-07 18:13:12 +08:00
parent 561edcc9ea
commit f36cae2b5d
3 changed files with 15 additions and 7 deletions
@@ -126,7 +126,7 @@
<el-radio label="1"></el-radio> <el-radio label="1"></el-radio>
<el-radio label="2"></el-radio> <el-radio label="2"></el-radio>
</el-radio-group> </el-radio-group>
<el-button @click="form.isRelateAccess = ''" v-show="form.isRelateAccess.length>0" size="mini" type="primary" circle icon="el-icon-close" style="margin-left: 10px;margin-bottom: 3px"></el-button> <el-button @click="form.isRelateAccess = ''" v-show="form.isRelateAccess !== null>0" size="mini" type="primary" circle icon="el-icon-close" style="margin-left: 10px;margin-bottom: 3px"></el-button>
</el-form-item> </el-form-item>
<el-form-item v-if="verifySarStandard && form.standInData === '0' " label="标准体系" prop="standSystem" class="add-form-item form-item-disabled"> <el-form-item v-if="verifySarStandard && form.standInData === '0' " label="标准体系" prop="standSystem" class="add-form-item form-item-disabled">
<el-input v-model="form.standSystem" clearable placeholder="选择标准体系" @click.native="choiceZRR1('standSystem', '标准体系', form.standSystem)"></el-input> <el-input v-model="form.standSystem" clearable placeholder="选择标准体系" @click.native="choiceZRR1('standSystem', '标准体系', form.standSystem)"></el-input>
@@ -1840,10 +1840,14 @@ export default {
this.rules.standName[0].required = false this.rules.standName[0].required = false
this.rules.standEnName[0].required = true; this.rules.standEnName[0].required = true;
this.rules.standNature[0].required = false this.rules.standNature[0].required = false
this.rules.standYear[0].required = false;
this.rules.standName[0].required = false
} else { } else {
this.rules.standName[0].required = true this.rules.standName[0].required = true
this.rules.standNature[0].required = true this.rules.standNature[0].required = true
this.rules.standEnName[0].required = false; this.rules.standEnName[0].required = false;
this.rules.standYear[0].required = true;
this.rules.standName[0].required = true
} }
this.standardSearchForm.standType = val === '0' ? 'INLAND' : 'FOREIGN' this.standardSearchForm.standType = val === '0' ? 'INLAND' : 'FOREIGN'
//切换清空表单 //切换清空表单
@@ -2996,6 +3000,7 @@ export default {
}, },
handleSubmit() { handleSubmit() {
// this.form.country=this.countryArr; // this.form.country=this.countryArr;
this.$refs['form'].validate((valid) => { this.$refs['form'].validate((valid) => {
if (valid) { if (valid) {
@@ -3045,6 +3050,8 @@ export default {
} }
// 流程提交之后,应该流转至待办任务页面 // 流程提交之后,应该流转至待办任务页面
this.$router.push({path: '/processCenter?tabsName=ProcessCenter'}) this.$router.push({path: '/processCenter?tabsName=ProcessCenter'})
} else {
this.isSubmit = false
} }
}) })
} }
@@ -55,14 +55,14 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="标准年份" prop="standYear" class="add-form-item form-item-disabled"> <el-form-item label="标准年份" v-show="form.standInData === '0'" prop="standYear" class="add-form-item form-item-disabled">
<el-input <el-input
v-model="form.standYear" v-model="form.standYear"
placeholder="请输入标准标准年份" placeholder="请输入标准标准年份"
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="标准中文名称" prop="standName" class="add-form-item form-item-disabled"> <el-form-item label="标准中文名称"v-show="form.standInData === '0'" prop="standName" class="add-form-item form-item-disabled">
<el-input <el-input
v-model="form.standName" v-model="form.standName"
placeholder="请输入标准中文名称" placeholder="请输入标准中文名称"
@@ -1686,12 +1686,16 @@ export default {
// 国内英文名称不必填 国外必填 ,标准性质国内不体现 // 国内英文名称不必填 国外必填 ,标准性质国内不体现
if (val === '1') { if (val === '1') {
this.rules.standName[0].required = false this.rules.standName[0].required = false
this.rules.standNature[0].required = false
this.rules.standEnName[0].required = true; this.rules.standEnName[0].required = true;
this.rules.standNature[0].required = false
this.rules.standYear[0].required = false;
this.rules.standName[0].required = false
} else { } else {
this.rules.standName[0].required = true this.rules.standName[0].required = true
this.rules.standNature[0].required = true this.rules.standNature[0].required = true
this.rules.standEnName[0].required = false; this.rules.standEnName[0].required = false;
this.rules.standYear[0].required = true;
this.rules.standName[0].required = true
} }
this.standardSearchForm.standType = val === '0' ? 'INLAND' : 'FOREIGN' this.standardSearchForm.standType = val === '0' ? 'INLAND' : 'FOREIGN'
}, },
@@ -251,7 +251,6 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="SSRQ" prop="SSRQ"
sortable="custom"
width="120" width="120"
label="实施日期"> label="实施日期">
<template slot-scope="scope"> <template slot-scope="scope">
@@ -266,7 +265,6 @@
<el-table-column <el-table-column
prop="XCXSSRQ" prop="XCXSSRQ"
sortable="custom"
width="150" width="150"
label="新车型实施日期"> label="新车型实施日期">
<template slot-scope="scope"> <template slot-scope="scope">
@@ -278,7 +276,6 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="ZCCSSRQ" prop="ZCCSSRQ"
sortable="custom"
width="150" width="150"
label="在产车实施日期"> label="在产车实施日期">
<template slot-scope="scope"> <template slot-scope="scope">