瀏覽代碼

reactor:流程调整;

zhangchong 1 年之前
父節點
當前提交
848c462378
共有 2 個文件被更改,包括 20 次插入4 次删除
  1. 11 0
      src/api/business/order.ts
  2. 9 4
      src/components/OrderDetail/index.vue

+ 11 - 0
src/api/business/order.ts

@@ -184,4 +184,15 @@ export const endCounterSign = (data: object) => {
 		method: 'post',
 		data
 	});
+}
+/**
+ * @description 取消延期
+ * @param {object} data
+ */
+export const cancelDelay = (data: object) => {
+	return request({
+		url: `/api/v1/Order/delay/cancel`,
+		method: 'post',
+		data
+	});
 }

+ 9 - 4
src/components/OrderDetail/index.vue

@@ -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(() => {});
 };