[update] 企标制修订流程评分人评分节点,扣分理由改成非必填
This commit is contained in:
@@ -39,7 +39,7 @@
|
|||||||
<!-- 扣分理由 -->
|
<!-- 扣分理由 -->
|
||||||
<van-field
|
<van-field
|
||||||
v-model="item.deductionScoreReason"
|
v-model="item.deductionScoreReason"
|
||||||
:rules="[{required: true, message: $t('pleaseEnter')+$t('enStandardRevision.groundsForDemerit')}]"
|
:rules="[{required: false, message: $t('pleaseEnter')+$t('enStandardRevision.groundsForDemerit')}]"
|
||||||
:label="$t('enStandardRevision.groundsForDemerit')"
|
:label="$t('enStandardRevision.groundsForDemerit')"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
autosize
|
autosize
|
||||||
@@ -48,7 +48,7 @@
|
|||||||
:placeholder="$t('pleaseEnter')"
|
:placeholder="$t('pleaseEnter')"
|
||||||
:border="false"
|
:border="false"
|
||||||
input-align="left"
|
input-align="left"
|
||||||
class="vertical-form-item required rate-label"/>
|
class="vertical-form-item rate-label"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -181,7 +181,8 @@ export default {
|
|||||||
let hasErr = false
|
let hasErr = false
|
||||||
const arr = []
|
const arr = []
|
||||||
for (const item in this.dataSource) {
|
for (const item in this.dataSource) {
|
||||||
if (!(this.dataSource[item].evaluateScore + '') || !this.dataSource[item].deductionScoreReason) {
|
console.log(this.dataSource[item].evaluateScore)
|
||||||
|
if (!(this.dataSource[item].evaluateScore + '')) {
|
||||||
hasErr = true
|
hasErr = true
|
||||||
break
|
break
|
||||||
} else {
|
} else {
|
||||||
@@ -192,6 +193,7 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
hasErr = false
|
||||||
let data = {} // 需要返回的数据
|
let data = {} // 需要返回的数据
|
||||||
if (hasErr) {
|
if (hasErr) {
|
||||||
this.$message(this.$t('enStandardRevision.pleaseEnterAllMarkItem'))
|
this.$message(this.$t('enStandardRevision.pleaseEnterAllMarkItem'))
|
||||||
|
|||||||
Reference in New Issue
Block a user