Commit 77ccd8ea authored by jiaxu.yan's avatar jiaxu.yan

fix: 70661

parent c65ea929
......@@ -682,14 +682,23 @@ export default {
})
},
/**
*确认体系审查
*确认车型审查
*/
submitFrom() {
carReviewTaskConfirm({
taskId: this.taskId
}).then(res => {
this.$router.go(-1)
})
this.$modal
.confirm('是否确认提交表单,提交后不可修改', {
type: 'warning',
title: '提示',
closeOnClickModal: false
})
.then(async () => {
carReviewTaskConfirm({
taskId: this.taskId
}).then(res => {
this.$router.go(-1)
})
})
.catch(() => {})
},
/**
*确认细则内容变更
......
......@@ -700,14 +700,23 @@ export default {
*确认体系审查
*/
submitFrom() {
reviewTaskConfirm({
taskId: this.taskId
}).then(res => {
this.$modal.msgSuccess('确认提交成功')
this.$router.push({
path: '/processing/unprocessed-review'
this.$modal
.confirm('是否确认提交表单,提交后不可修改', {
type: 'warning',
title: '提示',
closeOnClickModal: false
})
})
.then(async () => {
reviewTaskConfirm({
taskId: this.taskId
}).then(res => {
this.$modal.msgSuccess('确认提交成功')
this.$router.push({
path: '/processing/unprocessed-review'
})
})
})
.catch(() => {})
},
confirmDetailChange() {
reviewDetailsConfirm({
......
......@@ -434,7 +434,6 @@ export default {
* @param item 对象
*/
handleRetentionFile(item) {
console.log(item)
this.$router.push({
path: '/processing/retention-file?id=' + item.id
})
......@@ -457,19 +456,27 @@ export default {
* @param {} type 单项数据
*/
async startTask(item) {
const res = await reviewTaskStart({
id: item.id
})
if (res.code === 200) {
this.loadData()
} else {
if (res.msg) {
this.$message.error(res.msg)
}
}
this.$modal
.confirm('是否确认开始?', {
type: 'warning',
title: '提示',
closeOnClickModal: false
})
.then(async () => {
const res = await reviewTaskStart({
id: item.id
})
if (res.code === 200) {
this.loadData()
} else {
if (res.msg) {
this.$message.error(res.msg)
}
}
})
.catch(() => {})
},
goDetail(id) {
console.log(111)
this.$router.push({
path: '/task/task-detail?id=' + id
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment