上传文件添加pdf

This commit is contained in:
xixi 2024-09-11 16:50:20 +08:00
parent 19dcb55b2c
commit e02b8f0be2
3 changed files with 16 additions and 8 deletions

View File

@ -96,6 +96,10 @@ export default function CorrectionModal(props: any) {
} }
// 提交表单 // 提交表单
const onFinish = (values: any) => { const onFinish = (values: any) => {
dispath({
type: 'newCorrection',
val: true
})
// console.log('Form values:', values); // console.log('Form values:', values);
// console.log(refunArray); // console.log(refunArray);

View File

@ -100,6 +100,10 @@ export default function RefunModal(props: any) {
// 提交表单 // 提交表单
const onFinish = (values: any) => { const onFinish = (values: any) => {
// console.log('Form values:', values); // console.log('Form values:', values);
dispath({
type: 'newRefun',
val: true
})
post<any>({ post<any>({
messageApi, messageApi,
url: `/api/proj/refund/apply/save`, url: `/api/proj/refund/apply/save`,

View File

@ -1307,10 +1307,10 @@ export default function Index() {
<Button type="primary" onClick={() => { <Button type="primary" onClick={() => {
setRefunModal(true) setRefunModal(true)
refunInit() refunInit()
dispath({ // dispath({
type: 'newRefun', // type: 'newRefun',
val: true // val: true
}) // })
}} }}
style={{ background: '#FF9F08' }} style={{ background: '#FF9F08' }}
> >
@ -1374,10 +1374,10 @@ export default function Index() {
<Button type="primary" onClick={() => { <Button type="primary" onClick={() => {
setCorrectionModal(true) setCorrectionModal(true)
correctionInit() correctionInit()
dispath({ // dispath({
type: 'newCorrection', // type: 'newCorrection',
val: true // val: true
}) // })
}} }}
style={{ background: '#FF9F08' }} style={{ background: '#FF9F08' }}
> >