|
|
@ -157,6 +157,8 @@ import {getAccessToken} from "@/utils/auth"; |
|
|
|
import {getJmreportBaseUrl} from "@/utils/systemParam"; |
|
|
|
import { formatDate } from '@/utils/formatTime' |
|
|
|
import { usePageLoading } from '@/hooks/web/usePageLoading' |
|
|
|
import dayjs from 'dayjs' |
|
|
|
|
|
|
|
const { loadStart, loadDone } = usePageLoading() |
|
|
|
// 供应商发票记录主 |
|
|
|
defineOptions({ name: 'SupplierinvoiceRecordMain' }) |
|
|
@ -267,6 +269,12 @@ const buttonTableClick = async (val, row) => { |
|
|
|
}else if(val == 'transfer'){ |
|
|
|
//发票回转 |
|
|
|
basicFormRef.value.open('create', row) |
|
|
|
nextTick(()=>{ |
|
|
|
basicFormRef.value.formRef.setValues({ |
|
|
|
reversepostingdate:dayjs().valueOf() |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -280,6 +288,7 @@ const submitForm = async (formType, data) => { |
|
|
|
await SupplierinvoiceRecordMainApi.reverseSupplierinvoiceRecordMain(data) |
|
|
|
message.success(t('ts.发票回转成功')) |
|
|
|
basicFormRef.value.dialogVisible = false |
|
|
|
buttonBaseClick('refresh', null) |
|
|
|
} finally { |
|
|
|
loadDone() |
|
|
|
} |
|
|
|