|
|
@@ -145,7 +145,7 @@
|
|
|
import dictMixins from '@/mixins/dictMixins';
|
|
|
// import Create from '../components/create';
|
|
|
import dispose from '../components/addOrEditDialog';
|
|
|
- import { getList, remove, submit } from '@/api/exceptionManagement/index';
|
|
|
+ import { getList, remove, submit, getById } from '@/api/exceptionManagement/index';
|
|
|
import { relationTypeOption } from '@/enum/dict.js';
|
|
|
import processSubmitDialog from '@/BIZComponents/processSubmitDialog/processSubmitDialog.vue';
|
|
|
import tabMixins from '@/mixins/tableColumnsMixin';
|
|
|
@@ -329,7 +329,29 @@
|
|
|
|
|
|
async submit(res) {
|
|
|
this.processSubmitDialogFlag = true;
|
|
|
+ let data = await getById(res.id);
|
|
|
+ console.log(data);
|
|
|
+ let isExceptionDispose = false;
|
|
|
+ let isExceptionDetermine = false;
|
|
|
+ data.detailList.forEach((item) => {
|
|
|
+ if (!item.exceptionDispose) {
|
|
|
+ isExceptionDispose = true;
|
|
|
+ }
|
|
|
|
|
|
+ if (!item.exceptionDetermine) {
|
|
|
+ isExceptionDetermine = true;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if (isExceptionDispose) {
|
|
|
+ this.$message.error('处置方式不能为空');
|
|
|
+ // this.dispose('edit', res)
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (isExceptionDetermine) {
|
|
|
+ this.$message.error('异常类型不能为空');
|
|
|
+ // this.dispose('edit', res)
|
|
|
+ return;
|
|
|
+ }
|
|
|
this.$nextTick(() => {
|
|
|
let params = {
|
|
|
businessId: res.id,
|