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