update 流程完善
This commit is contained in:
+9
@@ -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)
|
||||
|
||||
+1
-1
@@ -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)
|
||||
|
||||
+9
@@ -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)
|
||||
|
||||
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user