优化
This commit is contained in:
parent
b6edefe23a
commit
5ef1d8c88b
@ -415,14 +415,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const obj = { status: 1, menuName: '制定了' }
|
|
||||||
const params = Object.assign({}, { resultRecordId: this.$route.query.id || '' }, obj)
|
|
||||||
let res = await apiSaveapproval(params)
|
|
||||||
if (res.code !== 200) {
|
|
||||||
this.$message.error(res.msg || '出错了 ')
|
|
||||||
return
|
|
||||||
}
|
|
||||||
this.obj.commentId = res.commentId
|
|
||||||
this.obj.recortModelDtos.map(i => {
|
this.obj.recortModelDtos.map(i => {
|
||||||
i.detailDtos.map(j => {
|
i.detailDtos.map(j => {
|
||||||
const result = this.handleFilter(j.taskDtos).reduce((result, item) => {
|
const result = this.handleFilter(j.taskDtos).reduce((result, item) => {
|
||||||
@ -438,6 +431,15 @@ export default {
|
|||||||
this.$message.error(res1.msg)
|
this.$message.error(res1.msg)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
const obj = { status: 1, menuName: '制定了' }
|
||||||
|
const params = Object.assign({}, { resultRecordId: this.$route.query.id || '' }, obj)
|
||||||
|
params.commentId = res1.commentId || ''
|
||||||
|
|
||||||
|
let res = await apiSaveapproval(params)
|
||||||
|
if (res.code !== 200) {
|
||||||
|
this.$message.error(res.msg || '出错了 ')
|
||||||
|
return
|
||||||
|
}
|
||||||
this.$message({
|
this.$message({
|
||||||
message: res.msg,
|
message: res.msg,
|
||||||
type: 'success'
|
type: 'success'
|
||||||
|
|||||||
@ -368,19 +368,19 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const obj = { status: 1, menuName: '同意了', comment: this.form.comment }
|
|
||||||
const params = Object.assign({}, { resultRecordId: this.obj.id || '' }, obj)
|
|
||||||
let res = await apiSaveapproval(params)
|
|
||||||
if (res.code !== 200) {
|
|
||||||
this.$message.error(res.msg || '出错了 ')
|
|
||||||
return
|
|
||||||
}
|
|
||||||
this.obj.commentId = res.commentId
|
|
||||||
let res1 = await apiSaveDetail(this.obj)
|
let res1 = await apiSaveDetail(this.obj)
|
||||||
if (res1.code !== 200) {
|
if (res1.code !== 200) {
|
||||||
this.$message.error(res1.msg)
|
this.$message.error(res1.msg)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
const obj = { status: 1, menuName: '同意了', comment: this.form.comment }
|
||||||
|
const params = Object.assign({}, { resultRecordId: this.obj.id || '' }, obj)
|
||||||
|
params.commentId = res1.commentId || ''
|
||||||
|
let res = await apiSaveapproval(params)
|
||||||
|
if (res.code !== 200) {
|
||||||
|
this.$message.error(res.msg || '出错了 ')
|
||||||
|
return
|
||||||
|
}
|
||||||
this.$message({
|
this.$message({
|
||||||
message: res.msg,
|
message: res.msg,
|
||||||
type: 'success'
|
type: 'success'
|
||||||
|
|||||||
@ -381,17 +381,18 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let res = await apiSaveapproval(params)
|
|
||||||
this.loadingTi = false
|
|
||||||
if (res.code !== 200) {
|
|
||||||
this.$message.error(res.msg)
|
|
||||||
}
|
|
||||||
this.obj.commentId = res.commentId
|
|
||||||
let res1 = await apiSaveDetail(Object.assign({}, this.obj, this.score))
|
let res1 = await apiSaveDetail(Object.assign({}, this.obj, this.score))
|
||||||
if (res1.code !== 200) {
|
if (res1.code !== 200) {
|
||||||
this.$message.error(res1.msg)
|
this.$message.error(res1.msg)
|
||||||
this.loadingTi = false
|
this.loadingTi = false
|
||||||
}
|
}
|
||||||
|
params.commentId = res1.commentId || ''
|
||||||
|
let res = await apiSaveapproval(params)
|
||||||
|
this.loadingTi = false
|
||||||
|
if (res.code !== 200) {
|
||||||
|
return this.$message.error(res.msg)
|
||||||
|
}
|
||||||
this.$message({
|
this.$message({
|
||||||
message: res.msg,
|
message: res.msg,
|
||||||
type: 'success'
|
type: 'success'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user