[update] 稽查流程
This commit is contained in:
+16
-4
@@ -163,30 +163,38 @@ const carbonCopyProcurementProcess = (params) => getAction('/process/fb/processF
|
|||||||
const getInspectPlanDetail = (params) => getAction('/process/esInspectPlanFlow/queryDetailByProjectId', params)
|
const getInspectPlanDetail = (params) => getAction('/process/esInspectPlanFlow/queryDetailByProjectId', params)
|
||||||
// 转办
|
// 转办
|
||||||
const transferInspectPlan = (params) => getAction('/process/esInspectPlanFlow/flowTransfer', params)
|
const transferInspectPlan = (params) => getAction('/process/esInspectPlanFlow/flowTransfer', params)
|
||||||
// 审批(通过、驳回)
|
// 同意
|
||||||
const approvalInspectPlan = (params) => postAction('/process/esInspectPlanFlow/flowApproval', params)
|
const approvalInspectPlan = (params) => postAction('/process/esInspectPlanFlow/flowApproval', params)
|
||||||
|
// 驳回
|
||||||
|
const rejectInspectPlan = (params) => postAction('/process/esInspectPlanFlow/flowReject', params)
|
||||||
|
|
||||||
/* 企标稽查流程 */
|
/* 企标稽查流程 */
|
||||||
// 详情信息
|
// 详情信息
|
||||||
const getInspectProcessDetail = (params) => getAction('/esinspect/esInspectFlowController/queryDetailByProjectId', params)
|
const getInspectProcessDetail = (params) => getAction('/esinspect/esInspectFlowController/queryDetailByProjectId', params)
|
||||||
// 审批(通过、驳回)
|
// 同意
|
||||||
const approvalInspectProcess = (params) => postAction('/esinspect/esInspectFlowController/flowApproval', params)
|
const approvalInspectProcess = (params) => postAction('/esinspect/esInspectFlowController/flowApproval', params)
|
||||||
|
// 驳回
|
||||||
|
const rejectInspectProcess = (params) => postAction('/esinspect/esInspectFlowController/flowReject', params)
|
||||||
// 转办
|
// 转办
|
||||||
const transferInspectProcess = (params) => getAction('/esinspect/esInspectFlowController/flowTransfer', params)
|
const transferInspectProcess = (params) => getAction('/esinspect/esInspectFlowController/flowTransfer', params)
|
||||||
|
|
||||||
/* 稽查延期申请 */
|
/* 稽查延期申请 */
|
||||||
// 详情信息
|
// 详情信息
|
||||||
const getInspectExtensionDetail = (params) => getAction('/process/esInspectDelayApplyFlow/queryDetailByProjectId', params)
|
const getInspectExtensionDetail = (params) => getAction('/process/esInspectDelayApplyFlow/queryDetailByProjectId', params)
|
||||||
// 审批(通过、驳回)
|
// 同意
|
||||||
const approvalInspectExtension = (params) => postAction('/process/esInspectDelayApplyFlow/flowApproval', params)
|
const approvalInspectExtension = (params) => postAction('/process/esInspectDelayApplyFlow/flowApproval', params)
|
||||||
|
// 驳回
|
||||||
|
const rejectInspectExtension = (params) => postAction('/process/esInspectDelayApplyFlow/flowReject', params)
|
||||||
// 转办
|
// 转办
|
||||||
const transferInspectExtension = (params) => getAction('/process/esInspectDelayApplyFlow/flowTransfer', params)
|
const transferInspectExtension = (params) => getAction('/process/esInspectDelayApplyFlow/flowTransfer', params)
|
||||||
|
|
||||||
/* 企标稽查整改 */
|
/* 企标稽查整改 */
|
||||||
// 详情信息
|
// 详情信息
|
||||||
const getInspectRectifyDetail = (params) => getAction('/process/esInspectRectifyFlow/queryDetailByProjectId', params)
|
const getInspectRectifyDetail = (params) => getAction('/process/esInspectRectifyFlow/queryDetailByProjectId', params)
|
||||||
// 审批(通过、驳回)
|
// 同意
|
||||||
const approvalInspectRectify = (params) => postAction('/process/esInspectRectifyFlow/flowApproval', params)
|
const approvalInspectRectify = (params) => postAction('/process/esInspectRectifyFlow/flowApproval', params)
|
||||||
|
// 驳回
|
||||||
|
const rejectInspectRectify = (params) => postAction('/process/esInspectRectifyFlow/flowReject', params)
|
||||||
// 转办
|
// 转办
|
||||||
const transferInspectRectify = (params) => getAction('/process/esInspectRectifyFlow/flowTransfer', params)
|
const transferInspectRectify = (params) => getAction('/process/esInspectRectifyFlow/flowTransfer', params)
|
||||||
// 企标稽查整改业务数据
|
// 企标稽查整改业务数据
|
||||||
@@ -279,17 +287,21 @@ export {
|
|||||||
getInspectPlanDetail,
|
getInspectPlanDetail,
|
||||||
transferInspectPlan,
|
transferInspectPlan,
|
||||||
approvalInspectPlan,
|
approvalInspectPlan,
|
||||||
|
rejectInspectPlan,
|
||||||
|
|
||||||
getInspectProcessDetail,
|
getInspectProcessDetail,
|
||||||
approvalInspectProcess,
|
approvalInspectProcess,
|
||||||
|
rejectInspectProcess,
|
||||||
transferInspectProcess,
|
transferInspectProcess,
|
||||||
|
|
||||||
getInspectExtensionDetail,
|
getInspectExtensionDetail,
|
||||||
approvalInspectExtension,
|
approvalInspectExtension,
|
||||||
|
rejectInspectExtension,
|
||||||
transferInspectExtension,
|
transferInspectExtension,
|
||||||
|
|
||||||
getInspectRectifyDetail,
|
getInspectRectifyDetail,
|
||||||
approvalInspectRectify,
|
approvalInspectRectify,
|
||||||
|
rejectInspectRectify,
|
||||||
transferInspectRectify,
|
transferInspectRectify,
|
||||||
getInspectRectifyDataById,
|
getInspectRectifyDataById,
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,12 @@ export const YesOrNoEnum = new EsEnums({
|
|||||||
YES: { name: '是', value: '1' }
|
YES: { name: '是', value: '1' }
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// 审批意见
|
||||||
|
export const ApprovalOpinions = {
|
||||||
|
AGREE: { text: '同意', value: '1' },
|
||||||
|
REJECT: { text: '驳回', value: '2' }
|
||||||
|
}
|
||||||
|
|
||||||
// 既可以使用EsEnums 也可以单独写明
|
// 既可以使用EsEnums 也可以单独写明
|
||||||
export const FieldType = {
|
export const FieldType = {
|
||||||
DATE_SINGLE: { text: '单日期选择', value: '1' },
|
DATE_SINGLE: { text: '单日期选择', value: '1' },
|
||||||
@@ -255,4 +261,4 @@ export const ProjectComplianceEvaluationProcessNode = new EsEnums({
|
|||||||
departLeaderApproval: { text: '各部门主管级领导审批', value: 'gbmzgjldsp', btn: ['return', 'save', 'agree', 'reject'], isMobile: true },
|
departLeaderApproval: { text: '各部门主管级领导审批', value: 'gbmzgjldsp', btn: ['return', 'save', 'agree', 'reject'], isMobile: true },
|
||||||
moduleOwnerModification: { text: '模块负责人修改', value: 'mkfzrxg', btn: ['return', 'save', 'agree', 'reject'] },
|
moduleOwnerModification: { text: '模块负责人修改', value: 'mkfzrxg', btn: ['return', 'save', 'agree', 'reject'] },
|
||||||
regulatoryEngineerFiling: { text: '法规工程师归档', value: 'fggcsgd', btn: ['return', 'save', 'submit'] }
|
regulatoryEngineerFiling: { text: '法规工程师归档', value: 'fggcsgd', btn: ['return', 'save', 'submit'] }
|
||||||
})
|
})
|
||||||
|
|||||||
+14
-10
@@ -104,11 +104,11 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import ProcessCommonLayout from '@/components/ProcessCommonLayout'
|
import ProcessCommonLayout from '@/components/ProcessCommonLayout'
|
||||||
import { EsInspectionPlan, ProcessKey } from '@/enums/commonEnums'
|
import { ApprovalOpinions, EsInspectionPlan, ProcessKey } from '@/enums/commonEnums'
|
||||||
import SelectUser from '@/components/SelectUser'
|
import SelectUser from '@/components/SelectUser'
|
||||||
import CalendarField from '@/components/CalendarField'
|
import CalendarField from '@/components/CalendarField'
|
||||||
import ZUpload from '@/components/ZUpload'
|
import ZUpload from '@/components/ZUpload'
|
||||||
import { approvalInspectPlan, getInspectPlanDetail, transferInspectPlan } from '@/api/api'
|
import { approvalInspectPlan, getInspectPlanDetail, rejectInspectPlan, transferInspectPlan } from '@/api/api'
|
||||||
import { getAction } from '@/api/manage'
|
import { getAction } from '@/api/manage'
|
||||||
export default {
|
export default {
|
||||||
name: 'EnterpriseStandardInspectionPlanFlow',
|
name: 'EnterpriseStandardInspectionPlanFlow',
|
||||||
@@ -273,10 +273,10 @@ export default {
|
|||||||
param.taskId = this.$route.query.taskId
|
param.taskId = this.$route.query.taskId
|
||||||
transferInspectPlan(param).then(res => {
|
transferInspectPlan(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message(res.message)
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.fail(res.message)
|
this.$message(res.message)
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
@@ -325,14 +325,16 @@ export default {
|
|||||||
if (!params.processApprovalRecord.commitText) {
|
if (!params.processApprovalRecord.commitText) {
|
||||||
params.processApprovalRecord.commitText = '同意'
|
params.processApprovalRecord.commitText = '同意'
|
||||||
}
|
}
|
||||||
|
// 审批意见
|
||||||
|
params.processApprovalRecord.commitFlag = ApprovalOpinions.AGREE.value
|
||||||
console.log(params)
|
console.log(params)
|
||||||
return approvalInspectPlan(params)
|
return approvalInspectPlan(params)
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message(res.message)
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.fail(res.message)
|
this.$message(res.message)
|
||||||
}
|
}
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
console.log(err)
|
console.log(err)
|
||||||
@@ -346,18 +348,20 @@ export default {
|
|||||||
this.rules.commitText[0].required = true
|
this.rules.commitText[0].required = true
|
||||||
// 驳回需要填写备注
|
// 驳回需要填写备注
|
||||||
if (!this.approvalInfoForm.commitText) {
|
if (!this.approvalInfoForm.commitText) {
|
||||||
this.$message.fail(this.$t('pleaseEnterRemarks'))
|
this.$message(this.$t('pleaseEnterRemarks'))
|
||||||
}
|
}
|
||||||
this.getPageParams().then(params => {
|
this.getPageParams().then(params => {
|
||||||
params.map.pass = false
|
params.map.pass = false
|
||||||
|
// 审批意见
|
||||||
|
params.processApprovalRecord.commitFlag = ApprovalOpinions.REJECT.value
|
||||||
console.log(params)
|
console.log(params)
|
||||||
return approvalInspectPlan(params)
|
return rejectInspectPlan(params)
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message(res.message)
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.fail(res.message)
|
this.$message(res.message)
|
||||||
}
|
}
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
console.log(err)
|
console.log(err)
|
||||||
|
|||||||
+19
-10
@@ -116,13 +116,18 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { EsInspectionProcess, ProcessKey } from '@/enums/commonEnums'
|
import { ApprovalOpinions, EsInspectionProcess, ProcessKey } from '@/enums/commonEnums'
|
||||||
import ProcessCommonLayout from '@/components/ProcessCommonLayout'
|
import ProcessCommonLayout from '@/components/ProcessCommonLayout'
|
||||||
import SelectUser from '@/components/SelectUser'
|
import SelectUser from '@/components/SelectUser'
|
||||||
import CalendarField from '@/components/CalendarField'
|
import CalendarField from '@/components/CalendarField'
|
||||||
import ZUpload from '@/components/ZUpload'
|
import ZUpload from '@/components/ZUpload'
|
||||||
import { getAction } from '@/api/manage'
|
import { getAction } from '@/api/manage'
|
||||||
import { approvalInspectProcess, getInspectProcessDetail, transferInspectProcess } from '@/api/api'
|
import {
|
||||||
|
approvalInspectProcess,
|
||||||
|
getInspectProcessDetail,
|
||||||
|
rejectInspectProcess,
|
||||||
|
transferInspectProcess
|
||||||
|
} from '@/api/api'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'EenterpriseStandardInspectionProcess',
|
name: 'EenterpriseStandardInspectionProcess',
|
||||||
@@ -328,10 +333,10 @@ export default {
|
|||||||
param.taskId = this.$route.query.taskId
|
param.taskId = this.$route.query.taskId
|
||||||
transferInspectProcess(param).then(res => {
|
transferInspectProcess(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message(res.message)
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.fail(res.message)
|
this.$message(res.message)
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
@@ -380,14 +385,16 @@ export default {
|
|||||||
if (!params.processApprovalRecord.commitText) {
|
if (!params.processApprovalRecord.commitText) {
|
||||||
params.processApprovalRecord.commitText = '同意'
|
params.processApprovalRecord.commitText = '同意'
|
||||||
}
|
}
|
||||||
|
// 审批意见
|
||||||
|
params.processApprovalRecord.commitFlag = ApprovalOpinions.AGREE.value
|
||||||
console.log(params)
|
console.log(params)
|
||||||
return approvalInspectProcess(params)
|
return approvalInspectProcess(params)
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message(res.message)
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.fail(res.message)
|
this.$message(res.message)
|
||||||
}
|
}
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
console.log(err)
|
console.log(err)
|
||||||
@@ -401,18 +408,20 @@ export default {
|
|||||||
this.rules.commitText[0].required = true
|
this.rules.commitText[0].required = true
|
||||||
// 驳回需要填写备注
|
// 驳回需要填写备注
|
||||||
if (!this.approvalInfoForm.commitText) {
|
if (!this.approvalInfoForm.commitText) {
|
||||||
this.$message.fail(this.$t('pleaseEnterRemarks'))
|
this.$message(this.$t('pleaseEnterRemarks'))
|
||||||
}
|
}
|
||||||
this.getPageParams().then(params => {
|
this.getPageParams().then(params => {
|
||||||
params.map.pass = false
|
params.map.pass = false
|
||||||
|
// 审批意见
|
||||||
|
params.processApprovalRecord.commitFlag = ApprovalOpinions.REJECT.value
|
||||||
console.log(params)
|
console.log(params)
|
||||||
return approvalInspectProcess(params)
|
return rejectInspectProcess(params)
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message(res.message)
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.fail(res.message)
|
this.$message(res.message)
|
||||||
}
|
}
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
console.log(err)
|
console.log(err)
|
||||||
|
|||||||
+15
-11
@@ -97,14 +97,14 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import ProcessCommonLayout from '@/components/ProcessCommonLayout'
|
import ProcessCommonLayout from '@/components/ProcessCommonLayout'
|
||||||
import { EsInspectionRectification, ProcessKey } from '@/enums/commonEnums'
|
import { ApprovalOpinions, EsInspectionRectification, ProcessKey } from '@/enums/commonEnums'
|
||||||
import SelectUser from '@/components/SelectUser'
|
import SelectUser from '@/components/SelectUser'
|
||||||
import CalendarField from '@/components/CalendarField'
|
import CalendarField from '@/components/CalendarField'
|
||||||
import ZUpload from '@/components/ZUpload'
|
import ZUpload from '@/components/ZUpload'
|
||||||
import {
|
import {
|
||||||
approvalInspectRectify,
|
approvalInspectRectify,
|
||||||
getInspectRectifyDataById,
|
getInspectRectifyDataById,
|
||||||
getInspectRectifyDetail,
|
getInspectRectifyDetail, rejectInspectRectify,
|
||||||
transferInspectRectify
|
transferInspectRectify
|
||||||
} from '@/api/api'
|
} from '@/api/api'
|
||||||
|
|
||||||
@@ -131,7 +131,7 @@ export default {
|
|||||||
// 审批意见信息
|
// 审批意见信息
|
||||||
approvalInfoForm: {},
|
approvalInfoForm: {},
|
||||||
// 业务信息
|
// 业务信息
|
||||||
baseInfoForm: {},
|
baseInfoForm: {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -202,10 +202,10 @@ export default {
|
|||||||
param.taskId = this.$route.query.taskId
|
param.taskId = this.$route.query.taskId
|
||||||
transferInspectRectify(param).then(res => {
|
transferInspectRectify(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message(res.message)
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.fail(res.message)
|
this.$message(res.message)
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
@@ -254,14 +254,16 @@ export default {
|
|||||||
if (!params.processApprovalRecord.commitText) {
|
if (!params.processApprovalRecord.commitText) {
|
||||||
params.processApprovalRecord.commitText = '同意'
|
params.processApprovalRecord.commitText = '同意'
|
||||||
}
|
}
|
||||||
|
// 审批意见
|
||||||
|
params.processApprovalRecord.commitFlag = ApprovalOpinions.AGREE.value
|
||||||
console.log(params)
|
console.log(params)
|
||||||
return approvalInspectRectify(params)
|
return approvalInspectRectify(params)
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message(res.message)
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.fail(res.message)
|
this.$message(res.message)
|
||||||
}
|
}
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
console.log(err)
|
console.log(err)
|
||||||
@@ -275,18 +277,20 @@ export default {
|
|||||||
this.rules.commitText[0].required = true
|
this.rules.commitText[0].required = true
|
||||||
// 驳回需要填写备注
|
// 驳回需要填写备注
|
||||||
if (!this.approvalInfoForm.commitText) {
|
if (!this.approvalInfoForm.commitText) {
|
||||||
this.$message.fail(this.$t('pleaseEnterRemarks'))
|
this.$message(this.$t('pleaseEnterRemarks'))
|
||||||
}
|
}
|
||||||
this.getPageParams().then(params => {
|
this.getPageParams().then(params => {
|
||||||
params.map.pass = false
|
params.map.pass = false
|
||||||
|
// 审批意见
|
||||||
|
params.processApprovalRecord.commitFlag = ApprovalOpinions.REJECT.value
|
||||||
console.log(params)
|
console.log(params)
|
||||||
return approvalInspectRectify(params)
|
return rejectInspectRectify(params)
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message(res.message)
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.fail(res.message)
|
this.$message(res.message)
|
||||||
}
|
}
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
console.log(err)
|
console.log(err)
|
||||||
|
|||||||
+19
-10
@@ -104,12 +104,17 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import ProcessCommonLayout from '@/components/ProcessCommonLayout'
|
import ProcessCommonLayout from '@/components/ProcessCommonLayout'
|
||||||
import { InspectionExtensionRequestProcess, ProcessKey } from '@/enums/commonEnums'
|
import { ApprovalOpinions, InspectionExtensionRequestProcess, ProcessKey } from '@/enums/commonEnums'
|
||||||
import SelectUser from '@/components/SelectUser'
|
import SelectUser from '@/components/SelectUser'
|
||||||
import CalendarField from '@/components/CalendarField'
|
import CalendarField from '@/components/CalendarField'
|
||||||
import ZUpload from '@/components/ZUpload'
|
import ZUpload from '@/components/ZUpload'
|
||||||
import { getAction } from '@/api/manage'
|
import { getAction } from '@/api/manage'
|
||||||
import { approvalInspectExtension, getInspectExtensionDetail, transferInspectExtension } from '@/api/api'
|
import {
|
||||||
|
approvalInspectExtension,
|
||||||
|
getInspectExtensionDetail,
|
||||||
|
rejectInspectExtension,
|
||||||
|
transferInspectExtension
|
||||||
|
} from '@/api/api'
|
||||||
export default {
|
export default {
|
||||||
name: 'InspectionExtensionRequestProcess',
|
name: 'InspectionExtensionRequestProcess',
|
||||||
components: { ZUpload, CalendarField, SelectUser, ProcessCommonLayout },
|
components: { ZUpload, CalendarField, SelectUser, ProcessCommonLayout },
|
||||||
@@ -267,10 +272,10 @@ export default {
|
|||||||
param.taskId = this.$route.query.taskId
|
param.taskId = this.$route.query.taskId
|
||||||
transferInspectExtension(param).then(res => {
|
transferInspectExtension(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message(res.message)
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.fail(res.message)
|
this.$message(res.message)
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
@@ -319,14 +324,16 @@ export default {
|
|||||||
if (!params.processApprovalRecord.commitText) {
|
if (!params.processApprovalRecord.commitText) {
|
||||||
params.processApprovalRecord.commitText = '同意'
|
params.processApprovalRecord.commitText = '同意'
|
||||||
}
|
}
|
||||||
|
// 审批意见
|
||||||
|
params.processApprovalRecord.commitFlag = ApprovalOpinions.AGREE.value
|
||||||
console.log(params)
|
console.log(params)
|
||||||
return approvalInspectExtension(params)
|
return rejectInspectExtension(params)
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message(res.message)
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.fail(res.message)
|
this.$message(res.message)
|
||||||
}
|
}
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
console.log(err)
|
console.log(err)
|
||||||
@@ -340,18 +347,20 @@ export default {
|
|||||||
this.rules.commitText[0].required = true
|
this.rules.commitText[0].required = true
|
||||||
// 驳回需要填写备注
|
// 驳回需要填写备注
|
||||||
if (!this.approvalInfoForm.commitText) {
|
if (!this.approvalInfoForm.commitText) {
|
||||||
this.$message.fail(this.$t('pleaseEnterRemarks'))
|
this.$message(this.$t('pleaseEnterRemarks'))
|
||||||
}
|
}
|
||||||
this.getPageParams().then(params => {
|
this.getPageParams().then(params => {
|
||||||
params.map.pass = false
|
params.map.pass = false
|
||||||
|
// 审批意见
|
||||||
|
params.processApprovalRecord.commitFlag = ApprovalOpinions.REJECT.value
|
||||||
console.log(params)
|
console.log(params)
|
||||||
return approvalInspectExtension(params)
|
return approvalInspectExtension(params)
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message(res.message)
|
||||||
this.goBack()
|
this.goBack()
|
||||||
} else {
|
} else {
|
||||||
this.$message.fail(res.message)
|
this.$message(res.message)
|
||||||
}
|
}
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
console.log(err)
|
console.log(err)
|
||||||
|
|||||||
Reference in New Issue
Block a user