[update] 修改企标制修订流程
This commit is contained in:
@@ -395,7 +395,7 @@ export default {
|
|||||||
prcObj.commitText = this.model.handleText
|
prcObj.commitText = this.model.handleText
|
||||||
prcObj.commitFile = this.model.handleFile
|
prcObj.commitFile = this.model.handleFile
|
||||||
this.approvalInfoForm.setFieldsValue(pick(prcObj, 'commitText', 'commitFile'))
|
this.approvalInfoForm.setFieldsValue(pick(prcObj, 'commitText', 'commitFile'))
|
||||||
this.model.data = JSON.parse(this.model.infoJsonStr).data
|
this.model.data = (JSON.parse(this.model.infoJsonStr)).data
|
||||||
// 如果是节点1的保存回显人员信息
|
// 如果是节点1的保存回显人员信息
|
||||||
if (this.currentNode === 1) {
|
if (this.currentNode === 1) {
|
||||||
this.draftInitPersonInfo(JSON.parse(this.model.infoJsonStr).personnelObj)
|
this.draftInitPersonInfo(JSON.parse(this.model.infoJsonStr).personnelObj)
|
||||||
@@ -598,6 +598,7 @@ export default {
|
|||||||
param.common = Object.assign({}, approvalValues)
|
param.common = Object.assign({}, approvalValues)
|
||||||
param.common.taskId = this.$route.query.taskId
|
param.common.taskId = this.$route.query.taskId
|
||||||
param.data = data
|
param.data = data
|
||||||
|
this.loading = true
|
||||||
enStandardEditAgree(param).then(res => {
|
enStandardEditAgree(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
|
|||||||
@@ -275,20 +275,23 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
this.dataSource = fixDataSourse
|
this.dataSource = []
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 拿到外面传进来的数据初始化,因为套了几层就不在外层初始化数据了
|
// 拿到外面传进来的数据初始化,因为套了几层就不在外层初始化数据了
|
||||||
initData (data) {
|
initData (data) {
|
||||||
|
console.log(data)
|
||||||
// 给表格赋值,在线编辑不知道要怎么赋值?
|
// 给表格赋值,在线编辑不知道要怎么赋值?
|
||||||
if (data.reviewMeetingDetails) {
|
if (data.reviewMeetingDetails && data.reviewMeetingDetails.length > 0) {
|
||||||
|
this.dataSource = Array.from(fixDataSourse)
|
||||||
for (const i in fixDataSourse) {
|
for (const i in fixDataSourse) {
|
||||||
this.dataSource[i] = { ...fixDataSourse[i] }
|
|
||||||
if (i % 3 === 0) {
|
if (i % 3 === 0) {
|
||||||
this.dataSource[i].evaluateScore = data.reviewMeetingDetails[Math.floor(i / 3)].evaluateScore || ''
|
this.dataSource[i].evaluateScore = data.reviewMeetingDetails[Math.floor(i / 3)].evaluateScore || ''
|
||||||
this.dataSource[i].deductionScoreReason = data.reviewMeetingDetails[Math.floor(i / 3)].deductionScoreReason || ''
|
this.dataSource[i].deductionScoreReason = data.reviewMeetingDetails[Math.floor(i / 3)].deductionScoreReason || ''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
this.dataSource = Array.from(fixDataSourse)
|
||||||
}
|
}
|
||||||
// 给表单赋值
|
// 给表单赋值
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
@@ -310,6 +313,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
data.reviewMeetingDetails = arr
|
data.reviewMeetingDetails = arr
|
||||||
|
data.businessJson = JSON.stringify(this.$refs.baseInfoForm.formInline)
|
||||||
return data
|
return data
|
||||||
},
|
},
|
||||||
// 外层获取数据要过校验,返回false表示没有通过校验
|
// 外层获取数据要过校验,返回false表示没有通过校验
|
||||||
|
|||||||
Reference in New Issue
Block a user