update 流程完善
This commit is contained in:
+3
-2
@@ -131,7 +131,7 @@ import { EsInspectionPlan, ProcessKey } from '@/enums/commonEnums'
|
||||
import {
|
||||
approvalInspectPlan,
|
||||
getInspectPlanDetail,
|
||||
getInspectPlanProjectId,
|
||||
getInspectPlanProjectId, rejectInspectPlan,
|
||||
saveInspectPlan,
|
||||
startInspectPlan, transferInspectPlan
|
||||
} from '@api/workCenter'
|
||||
@@ -354,6 +354,7 @@ export default {
|
||||
// 流程信息
|
||||
params.processAll = Object.assign({}, this.info.processAll, formDataList[0], {
|
||||
projectId: this.projectId,
|
||||
nodeId: this.$route.query.nodeId,
|
||||
taskId: this.$route.query.taskId
|
||||
})
|
||||
|
||||
@@ -493,7 +494,7 @@ export default {
|
||||
this.loading = true
|
||||
this.getPageParams().then(res => {
|
||||
res.map.pass = false
|
||||
return approvalInspectPlan(res)
|
||||
return rejectInspectPlan(res)
|
||||
}).then(res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
|
||||
+3
-2
@@ -113,7 +113,7 @@ import { WorkCenterMixin } from '@/mixins/WorkCenterMixin'
|
||||
import {
|
||||
approvalInspectProcess,
|
||||
getInspectProcessDetail,
|
||||
getInspectProcessProjectId, saveInspectProcess, startInspectProcess, transferInspectProcess
|
||||
getInspectProcessProjectId, rejectInspectProcess, saveInspectProcess, startInspectProcess, transferInspectProcess
|
||||
} from '@api/workCenter'
|
||||
|
||||
export default {
|
||||
@@ -304,6 +304,7 @@ export default {
|
||||
// 流程信息
|
||||
params.processAll = Object.assign({}, this.info.processAll, formDataList[0], {
|
||||
projectId: this.projectId,
|
||||
nodeId: this.$route.query.nodeId,
|
||||
taskId: this.$route.query.taskId
|
||||
})
|
||||
|
||||
@@ -441,7 +442,7 @@ export default {
|
||||
this.loading = true
|
||||
this.getPageParams().then(res => {
|
||||
res.map.pass = false
|
||||
return approvalInspectProcess(res)
|
||||
return rejectInspectProcess(res)
|
||||
}).then(res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
|
||||
+11
-15
@@ -57,7 +57,7 @@ import { getFileInfo } from '@/api/api'
|
||||
import { previewPdf } from '@/utils/previewPdf'
|
||||
import Vue from 'vue'
|
||||
import { ACCESS_TOKEN } from '@/store/mutation-types'
|
||||
import { addInspectionContentTable, editInspectionContentTable, getFileIdByInspectId } from '@api/workCenter'
|
||||
import { addInspectionContentTable, editInspectionContentTable, getFileByInspectId } from '@api/workCenter'
|
||||
|
||||
const Base64 = require('js-base64').Base64
|
||||
|
||||
@@ -104,13 +104,11 @@ export default {
|
||||
methods: {
|
||||
add (data) {
|
||||
this.data = Object.assign({}, data)
|
||||
// 后端获取预览文件id接口
|
||||
getFileIdByInspectId({ inspectId: data.inspectId }).then(res => {
|
||||
return res.success ? res.result.id : ''
|
||||
}).then(fileId => {
|
||||
this.getFileInfo(fileId).then(res => {
|
||||
this.handlePreview(res)
|
||||
})
|
||||
// 后端获取预览文件
|
||||
getFileByInspectId({ inspectId: data.inspectId }).then(res => {
|
||||
if (res.success) {
|
||||
this.handlePreview(res.result.id)
|
||||
}
|
||||
}).catch(err => {
|
||||
console.log(err)
|
||||
})
|
||||
@@ -118,13 +116,11 @@ export default {
|
||||
this.form.resetFields()
|
||||
},
|
||||
edit (data, record, index) {
|
||||
// 后端获取预览文件id接口
|
||||
getFileIdByInspectId({ inspectId: data.inspectId }).then(res => {
|
||||
return res.success ? res.result.id : ''
|
||||
}).then(fileId => {
|
||||
this.getFileInfo(fileId).then(res => {
|
||||
this.handlePreview(res)
|
||||
})
|
||||
// 后端获取预览文件
|
||||
getFileByInspectId({ inspectId: data.inspectId }).then(res => {
|
||||
if (res.success) {
|
||||
this.handlePreview(res.result.id)
|
||||
}
|
||||
}).catch(err => {
|
||||
console.log(err)
|
||||
})
|
||||
|
||||
+3
-2
@@ -110,7 +110,7 @@ import UserSelectModal from '@comp/selection/UserSelectModal'
|
||||
import { WorkCenterMixin } from '@/mixins/WorkCenterMixin'
|
||||
import {
|
||||
approvalInspectRectify, getInspectRectifyDataById,
|
||||
getInspectRectifyDetail, saveInspectRectify, transferInspectRectify
|
||||
getInspectRectifyDetail, rejectInspectRectify, saveInspectRectify, transferInspectRectify
|
||||
} from '@api/workCenter'
|
||||
import { EsInspectionRectification, ProcessKey } from '@/enums/commonEnums'
|
||||
|
||||
@@ -309,6 +309,7 @@ export default {
|
||||
// 流程信息
|
||||
params.processAll = Object.assign({}, this.info.processAll, formDataList[0], {
|
||||
projectId: this.projectId,
|
||||
nodeId: this.$route.query.nodeId,
|
||||
taskId: this.$route.query.taskId
|
||||
})
|
||||
|
||||
@@ -438,7 +439,7 @@ export default {
|
||||
this.loading = true
|
||||
this.getPageParams().then(res => {
|
||||
res.map.pass = false
|
||||
return approvalInspectRectify(res)
|
||||
return rejectInspectRectify(res)
|
||||
}).then(res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
|
||||
+7
-2
@@ -112,7 +112,11 @@ import { WorkCenterMixin } from '@/mixins/WorkCenterMixin'
|
||||
import {
|
||||
approvalInspectExtension,
|
||||
getInspectExtensionDetail,
|
||||
getInspectExtensionProjectId, saveInspectExtension, startInspectExtension, transferInspectExtension
|
||||
getInspectExtensionProjectId,
|
||||
rejectInspectExtension,
|
||||
saveInspectExtension,
|
||||
startInspectExtension,
|
||||
transferInspectExtension
|
||||
} from '@api/workCenter'
|
||||
|
||||
export default {
|
||||
@@ -305,6 +309,7 @@ export default {
|
||||
// 流程信息
|
||||
params.processAll = Object.assign({}, this.info.processAll, formDataList[0], {
|
||||
projectId: this.projectId,
|
||||
nodeId: this.$route.query.nodeId,
|
||||
taskId: this.$route.query.taskId
|
||||
})
|
||||
|
||||
@@ -442,7 +447,7 @@ export default {
|
||||
this.loading = true
|
||||
this.getPageParams().then(res => {
|
||||
res.map.pass = false
|
||||
return approvalInspectExtension(res)
|
||||
return rejectInspectExtension(res)
|
||||
}).then(res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
|
||||
@@ -157,7 +157,7 @@ import { PermissionApply, ProcessKey } from '@/enums/commonEnums'
|
||||
import {
|
||||
approvalPermissionApply, getPermissionApplyDataById,
|
||||
getPermissionApplyDetail,
|
||||
getPermissionApplyProjectId,
|
||||
getPermissionApplyProjectId, rejectPermissionApply,
|
||||
savePermissionApply, startPermissionApply,
|
||||
transferPermissionApply
|
||||
} from '@api/workCenter'
|
||||
@@ -396,6 +396,7 @@ export default {
|
||||
// 流程信息
|
||||
params.processAll = Object.assign({}, this.info.processAll, formDataList[0], {
|
||||
projectId: this.projectId,
|
||||
nodeId: this.$route.query.nodeId,
|
||||
taskId: this.$route.query.taskId
|
||||
})
|
||||
|
||||
@@ -535,7 +536,7 @@ export default {
|
||||
this.loading = true
|
||||
this.getPageParams().then(res => {
|
||||
res.map.pass = false
|
||||
return approvalPermissionApply(res)
|
||||
return rejectPermissionApply(res)
|
||||
}).then(res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
|
||||
@@ -328,6 +328,7 @@ export default {
|
||||
// 流程信息
|
||||
params.processAll = Object.assign({}, this.info.processAll, formDataList[0], {
|
||||
projectId: this.projectId,
|
||||
nodeId: this.$route.query.nodeId,
|
||||
taskId: this.$route.query.taskId
|
||||
})
|
||||
|
||||
|
||||
@@ -266,6 +266,7 @@ export default {
|
||||
// 流程信息
|
||||
params.processAll = Object.assign({}, this.info.processAll, formDataList[0], {
|
||||
projectId: this.projectId,
|
||||
nodeId: this.$route.query.nodeId,
|
||||
taskId: this.$route.query.taskId
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user