Browse Source

供应商发票记录 发票回转 列表刷新

hella_online_20240828
wangyufei 3 months ago
parent
commit
a9806bf341
  1. 9
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue
  2. 2
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts

9
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue

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

2
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts

@ -1,7 +1,6 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
import { accountantFormart } from '@/utils/formatter'
import dayjs from 'dayjs'
/**
* @returns {Array}
@ -1667,7 +1666,6 @@ export const SupplierinvoiceRecordMainTransfer = useCrudSchemas(reactive<CrudSch
form: {
component: 'DatePicker',
componentProps: {
value:dayjs().valueOf(),
style: {width:'100%'},
type: 'date',
dateFormat: 'YYYY-MM-DD',

Loading…
Cancel
Save