[update] 修改企标制修订,任务转交
This commit is contained in:
@@ -176,6 +176,7 @@ export default {
|
||||
}
|
||||
],
|
||||
url: {
|
||||
// todo数据源还未确认
|
||||
list: '/laws/taskTransfer/queryProcessDB'
|
||||
},
|
||||
// 每个流程不显示待办按钮的节点nodeId
|
||||
|
||||
+11
-5
@@ -125,7 +125,7 @@ export default {
|
||||
title={this.dataSource[index].reason} placeholder={this.$t('pleaseEnter')}
|
||||
onChange={ e => {
|
||||
e.target.value = e.target.value.trim()
|
||||
this.dataSource[index].reason = (e.target.value.replace(/[^0-9-]/g, '')).trim()
|
||||
this.dataSource[index].reason = e.target.value.trim()
|
||||
} }
|
||||
/>,
|
||||
attrs: {}
|
||||
@@ -146,7 +146,12 @@ export default {
|
||||
// 拿到外面传进来的数据初始化,因为套了几层就不在外层初始化数据了
|
||||
initData (data) {
|
||||
// 给表格赋值,在线编辑不知道要怎么赋值?
|
||||
this.dataSource = data.advices
|
||||
this.dataSource = data.advices.map(item => {
|
||||
return {
|
||||
...item,
|
||||
handleAdvice: item.handleAdvice ? item.handleAdvice : undefined
|
||||
}
|
||||
})
|
||||
// 给表单赋值
|
||||
this.$nextTick(() => {
|
||||
this.$refs.baseInfoForm.initData(data)
|
||||
@@ -164,15 +169,16 @@ export default {
|
||||
getDataValidate () {
|
||||
let hasErr = false
|
||||
for (const item of this.dataSource) {
|
||||
// 不采纳,部分采纳必填理由
|
||||
if ((item.handlingSuggestion === 2 || item.handlingSuggestion === 3) && !item.deductionScoreReason) {
|
||||
// 处理意见必填,不采纳,部分采纳必填理由
|
||||
if (!item.handleAdvice || ((item.handleAdvice === 2 || item.handleAdvice === 3) && !item.reason)) {
|
||||
console.log(item.handleAdvice)
|
||||
hasErr = true
|
||||
break
|
||||
}
|
||||
}
|
||||
let data = {} // 需要返回的数据
|
||||
if (hasErr) {
|
||||
this.$message.warning(this.$t('workCenter.enStandardRevision.pleaseEnterAllMarkItem'))
|
||||
this.$message.warning(this.$t('pleaseCompleteTableInfo'))
|
||||
data = false
|
||||
} else {
|
||||
data.advices = this.dataSource
|
||||
|
||||
Reference in New Issue
Block a user