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