Sfoglia il codice sorgente

现货合同审核

huangbin 4 anni fa
parent
commit
00541e8760

+ 11 - 11
src/views/information/spot-contract/components/check/index.vue

@@ -254,12 +254,12 @@ export default defineComponent({
         // 表单
         const { rules, formState, formRef } = handleForm();
         function submit() {
-            Modal.confirm({
-                title: '是否确认审核通过',
-                okText: '审核通过',
-                cancelText: '取消',
-                onOk() {
-                    formRef.value.validate().then(() => {
+            formRef.value.validate().then(() => {
+                Modal.confirm({
+                    title: '是否确认审核通过',
+                    okText: '审核通过',
+                    cancelText: '取消',
+                    onOk() {
                         const param = toRaw(formState);
 
                         const reqs: GldErmcpSpotContractOperateReq = {
@@ -273,11 +273,11 @@ export default defineComponent({
                             cancel();
                             context.emit('refresh');
                         });
-                    });
-                },
-                onCancel() {
-                    console.log('Cancel');
-                },
+                    },
+                    onCancel() {
+                        console.log('Cancel');
+                    },
+                });
             });
         }
         function refuse() {