update 流程完善

This commit is contained in:
danshihao
2023-12-12 09:17:41 +08:00
parent 3a588fdd73
commit a5c3c49ef5
6 changed files with 22 additions and 2 deletions
@@ -370,6 +370,15 @@ export default {
*/
handleSubmit () {
if (this.loading) return
// 节点3,判断表格中实际稽查完成日期和实际稽查人是否填写
if (
this.currentNode === EsInspectionProcess.inputInspectionReport.value &&
this.$refs.inspectionProcessTable.dataSource.some(item => (!item.completeDate || !item.actualInspectUser))
) {
this.switchChange('base')
this.$message.warning(this.$t('pleaseCompleteTableInfo'))
return
}
// 有taskId说明已经发起过,调审批接口,否则调发起接口
if (this.$route.query.taskId) {
this.handleAgree(true)
@@ -281,7 +281,7 @@ export default {
changeRowData (record, field) {
editInspectProcessTable({
id: record.id,
[field]: record[field]
[field]: record[field] || ''
}).then(res => {
if (res.success) {
this.$message.success(res.message)
@@ -371,6 +371,15 @@ export default {
*/
handleSubmit () {
if (this.loading) return
// 节点1 判断表格稽查联络人是否填写
if (
this.currentNode === InspectionExtensionRequestProcess.initiate.value &&
this.$refs.extensionRequestTable.dataSource.some(item => !item.liaisons)
) {
this.switchChange('base')
this.$message.warning(this.$t('pleaseCompleteTableInfo'))
return
}
// 有taskId说明已经发起过,调审批接口,否则调发起接口
if (this.$route.query.taskId) {
this.handleAgree(true)
@@ -240,7 +240,7 @@ export default {
changeRowData (record, field) {
editInspectExtensionTable({
id: record.id,
[field]: record[field]
[field]: record[field] || ''
}).then(res => {
if (res.success) {
this.$message.success(res.message)