开始评估的修改

This commit is contained in:
熊丽君
2021-09-16 15:00:59 +08:00
parent 35dc35ce83
commit cac4463c0e
4 changed files with 44 additions and 17 deletions

View File

@ -167,7 +167,7 @@
>
<el-input-number
class="w165"
v-model="formB.ipropertyNum"
v-model="formB.propertyNumI"
></el-input-number>
<!-- <el-input v-model="formB.name" class="w120"></el-input> -->
</el-form-item>
@ -176,7 +176,7 @@
>
<el-input-number
class="w120"
v-model="formB.iipropertyNum"
v-model="formB.propertyNumII"
></el-input-number>
</el-form-item>
<el-form-item
@ -355,12 +355,13 @@ export default {
scienceEmployee: 0,
hasBad: 0
}, // 高企认定门槛
formAData: {},
badSeason: [], // A 没有通过的数据
score: 0, // 分数
badSeason1: [], // B 没有通过的数据
formB: {
ipropertyNum: 0,
iipropertyNum: 0,
propertyNumI: 0,
propertyNumII: 0,
hasStandard: 0,
achievementNum: 0,
management: [],
@ -391,10 +392,17 @@ export default {
submitFormA(formName) {
this.$refs[formName].validate(valid => {
if (valid) {
this.formA.territoryIName = this.oneMenuList.find(item => {
return item.id == this.formA.one;
}).name;
this.formA.territoryIIName = this.twoMenuList.find(item => {
return item.id == this.formA.territoryId;
}).name;
firstAssess(this.formA).then(({ data }) => {
if (!data.badSeason.length) {
// 通过
this.status = 2;
this.formAData = data;
} else {
// 没通过
this.badSeason = data.badSeason;
@ -416,16 +424,18 @@ export default {
submitFormB(formName) {
if (!this.formB.management.length)
return this.msgError('请至少选择一项组织管理水平');
secondAssess(this.formB).then(({ data }) => {
this.badSeason1 = data.badSeason1;
this.score = data.score;
if (data.score >= 71) {
this.status = 4;
} else {
this.status = -3;
secondAssess(Object.assign({}, this.formAData, this.formB)).then(
({ data }) => {
this.badSeason1 = data.badSeason1;
this.score = data.score;
if (data.score >= 71) {
this.status = 4;
} else {
this.status = -3;
}
this.index++;
}
this.index++;
});
);
}
},
created() {