|
@@ -1,5 +1,5 @@
|
|
import { useAjax } from "@/Hook/useAjax"
|
|
import { useAjax } from "@/Hook/useAjax"
|
|
-import { syncAccountDayApi } from "@/services/launchAdq/adminSpecialUseConsume"
|
|
|
|
|
|
+import { syncAccountDayApi, syncAccountDayV3Api } from "@/services/launchAdq/adminSpecialUseConsume"
|
|
import { Button, Card, DatePicker, Form, FormProps, Input, message } from "antd"
|
|
import { Button, Card, DatePicker, Form, FormProps, Input, message } from "antd"
|
|
import React from "react"
|
|
import React from "react"
|
|
import moment from "moment"
|
|
import moment from "moment"
|
|
@@ -15,6 +15,7 @@ const AdminSpecialUseConsume: React.FC = () => {
|
|
/*********************************/
|
|
/*********************************/
|
|
const [form] = Form.useForm()
|
|
const [form] = Form.useForm()
|
|
const syncAccountDay = useAjax((params) => syncAccountDayApi(params), { formatResult: true })
|
|
const syncAccountDay = useAjax((params) => syncAccountDayApi(params), { formatResult: true })
|
|
|
|
+ const syncAccountDayV3 = useAjax((params) => syncAccountDayV3Api(params), { formatResult: true })
|
|
/*********************************/
|
|
/*********************************/
|
|
|
|
|
|
const onFinish: FormProps<any>["onFinish"] = (values) => {
|
|
const onFinish: FormProps<any>["onFinish"] = (values) => {
|
|
@@ -30,6 +31,12 @@ const AdminSpecialUseConsume: React.FC = () => {
|
|
form.setFieldsValue({})
|
|
form.setFieldsValue({})
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
+ syncAccountDayV3.run(params).then(res => {
|
|
|
|
+ if (res?.data) {
|
|
|
|
+ message.success('V3拉取成功')
|
|
|
|
+ form.setFieldsValue({})
|
|
|
|
+ }
|
|
|
|
+ })
|
|
};
|
|
};
|
|
|
|
|
|
const disabledDate: RangePickerProps['disabledDate'] = (current) => {
|
|
const disabledDate: RangePickerProps['disabledDate'] = (current) => {
|