|
@@ -547,7 +547,7 @@
|
|
|
import { defineAsyncComponent, PropType, reactive, ref } from 'vue';
|
|
|
import { useRouter } from 'vue-router';
|
|
|
import { throttle, transformFile } from '@/utils/tools';
|
|
|
-import { endCounterSign, orderDetail } from '@/api/business/order';
|
|
|
+import { cancelDelay, endCounterSign, orderDetail } from "@/api/business/order";
|
|
|
import { ElButton, ElMessage, ElMessageBox } from 'element-plus';
|
|
|
import { ola } from '@/utils/ola_api';
|
|
|
import { formatDate } from '@/utils/formatTime';
|
|
@@ -819,7 +819,6 @@ const onCloseCountersignature = () => {
|
|
|
autofocus: false,
|
|
|
})
|
|
|
.then(() => {
|
|
|
- handleClick(state.activeName);
|
|
|
endCounterSign({ countersignId: state.ruleForm.countersignId })
|
|
|
.then(() => {
|
|
|
ElMessage.success('结束会签成功');
|
|
@@ -843,8 +842,14 @@ const onCancelDelay = () => {
|
|
|
autofocus: false,
|
|
|
})
|
|
|
.then(() => {
|
|
|
- handleClick(state.activeName);
|
|
|
- emit('updateList');
|
|
|
+ cancelDelay({ id: state.ruleForm.id }).then(() => {
|
|
|
+ ElMessage.success('取消延期成功');
|
|
|
+ emit('updateList');
|
|
|
+ closeDialog();
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ emit('updateList');
|
|
|
+ });
|
|
|
})
|
|
|
.catch(() => {});
|
|
|
};
|