Merge remote-tracking branch 'origin/main' into main
This commit is contained in:
commit
053e9b9299
@ -37,7 +37,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
const data = ref<Record<string, any>>({
|
const data = ref<Record<string, any>>({
|
||||||
updateSupport: false,
|
updateSupport: true,
|
||||||
importMonth: dayjs().subtract(1, 'month').startOf('month').valueOf()
|
importMonth: dayjs().subtract(1, 'month').startOf('month').valueOf()
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -156,13 +156,14 @@
|
|||||||
</NUploadDragger>
|
</NUploadDragger>
|
||||||
</NUpload>
|
</NUpload>
|
||||||
<div class="flex-center">
|
<div class="flex-center">
|
||||||
<NCheckbox v-model="data.updateSupport">{{ $t('common.updateExisting') }}</NCheckbox>
|
<!-- <NCheckbox v-model:checked="data.updateSupport">{{ $t('common.updateExisting') }}</NCheckbox>-->
|
||||||
<n-divider vertical />
|
<!-- <n-divider vertical />-->
|
||||||
<NDatePicker
|
<NDatePicker
|
||||||
v-model:value="data.importMonth"
|
v-model:value="data.importMonth"
|
||||||
type="month"
|
type="month"
|
||||||
:placeholder="$t('common.selectImportMonth')"
|
:placeholder="$t('common.selectImportMonth')"
|
||||||
:is-date-disabled="disablePreviousDate"
|
:is-date-disabled="disablePreviousDate"
|
||||||
|
disabled
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<NAlert v-if="message" :title="$t('common.importResult')" :type="success ? 'success' : 'error'" :bordered="false">
|
<NAlert v-if="message" :title="$t('common.importResult')" :type="success ? 'success' : 'error'" :bordered="false">
|
||||||
|
@ -156,13 +156,14 @@
|
|||||||
</NUploadDragger>
|
</NUploadDragger>
|
||||||
</NUpload>
|
</NUpload>
|
||||||
<div class="flex-center">
|
<div class="flex-center">
|
||||||
<NCheckbox v-model="data.updateSupport">{{ $t('common.updateExisting') }}</NCheckbox>
|
<!-- <NCheckbox v-model="data.updateSupport">{{ $t('common.updateExisting') }}</NCheckbox>-->
|
||||||
<n-divider vertical />
|
<!-- <n-divider vertical />-->
|
||||||
<NDatePicker
|
<NDatePicker
|
||||||
v-model:value="data.importMonth"
|
v-model:value="data.importMonth"
|
||||||
type="month"
|
type="month"
|
||||||
:placeholder="$t('common.selectImportMonth')"
|
:placeholder="$t('common.selectImportMonth')"
|
||||||
:is-date-disabled="disablePreviousDate"
|
:is-date-disabled="disablePreviousDate"
|
||||||
|
disabled
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<NAlert v-if="message" :title="$t('common.importResult')" :type="success ? 'success' : 'error'" :bordered="false">
|
<NAlert v-if="message" :title="$t('common.importResult')" :type="success ? 'success' : 'error'" :bordered="false">
|
||||||
@ -172,7 +173,7 @@
|
|||||||
</NAlert>
|
</NAlert>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<NSpace justify="end" :size="16">
|
<NSpace justify="end" :size="16">
|
||||||
<NButton @click="handleDownloadTemplate">{{ $t('common.downloadTemplate') }}</NButton>
|
<!-- <NButton @click="handleDownloadTemplate">{{ $t('common.downloadTemplate') }}</NButton>-->
|
||||||
<NButton type="primary" @click="handleSubmit">{{ $t('common.import') }}</NButton>
|
<NButton type="primary" @click="handleSubmit">{{ $t('common.import') }}</NButton>
|
||||||
</NSpace>
|
</NSpace>
|
||||||
</template>
|
</template>
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
import { getServiceBaseURL } from '@/utils/service';
|
import { getServiceBaseURL } from '@/utils/service';
|
||||||
import type FileUpload from '@/components/custom/file-upload.vue';
|
import type FileUpload from '@/components/custom/file-upload.vue';
|
||||||
import { $t } from '@/locales';
|
import { $t } from '@/locales';
|
||||||
|
import dayjs from "dayjs";
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: 'EMBankingImportModal'
|
name: 'EMBankingImportModal'
|
||||||
@ -36,7 +37,9 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
const data = ref<Record<string, any>>({
|
const data = ref<Record<string, any>>({
|
||||||
updateSupport: false
|
updateSupport: false,
|
||||||
|
importMonth: dayjs().subtract(1, 'month').startOf('month').valueOf()
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const fileList = ref<UploadFileInfo[]>([]);
|
const fileList = ref<UploadFileInfo[]>([]);
|
||||||
@ -98,6 +101,17 @@
|
|||||||
message.value = '';
|
message.value = '';
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
function disablePreviousDate(ts: number) {
|
||||||
|
// return ts < Date.now()
|
||||||
|
// const currentMonthStart = new Date(new Date().getFullYear(), new Date().getMonth(), 1).getTime()
|
||||||
|
// const prevMonthStart = new Date(new Date().getFullYear(), new Date().getMonth() - 1, 1).getTime()
|
||||||
|
//
|
||||||
|
// // 只允许选择当前月或上个月
|
||||||
|
// return ts !== currentMonthStart && ts !== prevMonthStart
|
||||||
|
const prevMonthStart = dayjs().subtract(1, 'month').startOf('month')
|
||||||
|
// 禁用所有早于上个月1号的日期
|
||||||
|
return ts < prevMonthStart.valueOf()
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
]]]
|
]]]
|
||||||
|
|
||||||
@ -143,7 +157,14 @@
|
|||||||
</NUploadDragger>
|
</NUploadDragger>
|
||||||
</NUpload>
|
</NUpload>
|
||||||
<div class="flex-center">
|
<div class="flex-center">
|
||||||
<NCheckbox v-model="data.updateSupport">{{ $t('common.updateExisting') }}</NCheckbox>
|
<!-- <NCheckbox v-model="data.updateSupport">{{ $t('common.updateExisting') }}</NCheckbox>-->
|
||||||
|
<NDatePicker
|
||||||
|
v-model:value="data.importMonth"
|
||||||
|
type="month"
|
||||||
|
:placeholder="$t('common.selectImportMonth')"
|
||||||
|
:is-date-disabled="disablePreviousDate"
|
||||||
|
disabled
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<NAlert v-if="message" :title="$t('common.importResult')" :type="success ? 'success' : 'error'" :bordered="false">
|
<NAlert v-if="message" :title="$t('common.importResult')" :type="success ? 'success' : 'error'" :bordered="false">
|
||||||
<template #default>
|
<template #default>
|
||||||
@ -152,7 +173,7 @@
|
|||||||
</NAlert>
|
</NAlert>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<NSpace justify="end" :size="16">
|
<NSpace justify="end" :size="16">
|
||||||
<NButton @click="handleDownloadTemplate">{{ $t('common.downloadTemplate') }}</NButton>
|
<!-- <NButton @click="handleDownloadTemplate">{{ $t('common.downloadTemplate') }}</NButton>-->
|
||||||
<NButton type="primary" @click="handleSubmit">{{ $t('common.import') }}</NButton>
|
<NButton type="primary" @click="handleSubmit">{{ $t('common.import') }}</NButton>
|
||||||
</NSpace>
|
</NSpace>
|
||||||
</template>
|
</template>
|
||||||
|
@ -156,13 +156,14 @@
|
|||||||
</NUploadDragger>
|
</NUploadDragger>
|
||||||
</NUpload>
|
</NUpload>
|
||||||
<div class="flex-center">
|
<div class="flex-center">
|
||||||
<NCheckbox v-model="data.updateSupport">{{ $t('common.updateExisting') }}</NCheckbox>
|
<!-- <NCheckbox v-model="data.updateSupport">{{ $t('common.updateExisting') }}</NCheckbox>-->
|
||||||
<n-divider vertical />
|
<!-- <n-divider vertical />-->
|
||||||
<NDatePicker
|
<NDatePicker
|
||||||
v-model:value="data.importMonth"
|
v-model:value="data.importMonth"
|
||||||
type="month"
|
type="month"
|
||||||
:placeholder="$t('common.selectImportMonth')"
|
:placeholder="$t('common.selectImportMonth')"
|
||||||
:is-date-disabled="disablePreviousDate"
|
:is-date-disabled="disablePreviousDate"
|
||||||
|
disabled
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<NAlert v-if="message" :title="$t('common.importResult')" :type="success ? 'success' : 'error'" :bordered="false">
|
<NAlert v-if="message" :title="$t('common.importResult')" :type="success ? 'success' : 'error'" :bordered="false">
|
||||||
@ -172,7 +173,7 @@
|
|||||||
</NAlert>
|
</NAlert>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<NSpace justify="end" :size="16">
|
<NSpace justify="end" :size="16">
|
||||||
<NButton @click="handleDownloadTemplate">{{ $t('common.downloadTemplate') }}</NButton>
|
<!-- <NButton @click="handleDownloadTemplate">{{ $t('common.downloadTemplate') }}</NButton>-->
|
||||||
<NButton type="primary" @click="handleSubmit">{{ $t('common.import') }}</NButton>
|
<NButton type="primary" @click="handleSubmit">{{ $t('common.import') }}</NButton>
|
||||||
</NSpace>
|
</NSpace>
|
||||||
</template>
|
</template>
|
||||||
|
@ -156,13 +156,14 @@
|
|||||||
</NUploadDragger>
|
</NUploadDragger>
|
||||||
</NUpload>
|
</NUpload>
|
||||||
<div class="flex-center">
|
<div class="flex-center">
|
||||||
<NCheckbox v-model="data.updateSupport">{{ $t('common.updateExisting') }}</NCheckbox>
|
<!-- <NCheckbox v-model="data.updateSupport">{{ $t('common.updateExisting') }}</NCheckbox>-->
|
||||||
<n-divider vertical />
|
<!-- <n-divider vertical />-->
|
||||||
<NDatePicker
|
<NDatePicker
|
||||||
v-model:value="data.importMonth"
|
v-model:value="data.importMonth"
|
||||||
type="month"
|
type="month"
|
||||||
:placeholder="$t('common.selectImportMonth')"
|
:placeholder="$t('common.selectImportMonth')"
|
||||||
:is-date-disabled="disablePreviousDate"
|
:is-date-disabled="disablePreviousDate"
|
||||||
|
disabled
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<NAlert v-if="message" :title="$t('common.importResult')" :type="success ? 'success' : 'error'" :bordered="false">
|
<NAlert v-if="message" :title="$t('common.importResult')" :type="success ? 'success' : 'error'" :bordered="false">
|
||||||
@ -172,7 +173,7 @@
|
|||||||
</NAlert>
|
</NAlert>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<NSpace justify="end" :size="16">
|
<NSpace justify="end" :size="16">
|
||||||
<NButton @click="handleDownloadTemplate">{{ $t('common.downloadTemplate') }}</NButton>
|
<!-- <NButton @click="handleDownloadTemplate">{{ $t('common.downloadTemplate') }}</NButton>-->
|
||||||
<NButton type="primary" @click="handleSubmit">{{ $t('common.import') }}</NButton>
|
<NButton type="primary" @click="handleSubmit">{{ $t('common.import') }}</NButton>
|
||||||
</NSpace>
|
</NSpace>
|
||||||
</template>
|
</template>
|
||||||
|
@ -156,13 +156,14 @@
|
|||||||
</NUploadDragger>
|
</NUploadDragger>
|
||||||
</NUpload>
|
</NUpload>
|
||||||
<div class="flex-center">
|
<div class="flex-center">
|
||||||
<NCheckbox v-model="data.updateSupport">{{ $t('common.updateExisting') }}</NCheckbox>
|
<!-- <NCheckbox v-model="data.updateSupport">{{ $t('common.updateExisting') }}</NCheckbox>-->
|
||||||
<n-divider vertical />
|
<!-- <n-divider vertical />-->
|
||||||
<NDatePicker
|
<NDatePicker
|
||||||
v-model:value="data.importMonth"
|
v-model:value="data.importMonth"
|
||||||
type="month"
|
type="month"
|
||||||
:placeholder="$t('common.selectImportMonth')"
|
:placeholder="$t('common.selectImportMonth')"
|
||||||
:is-date-disabled="disablePreviousDate"
|
:is-date-disabled="disablePreviousDate"
|
||||||
|
disabled
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<NAlert v-if="message" :title="$t('common.importResult')" :type="success ? 'success' : 'error'" :bordered="false">
|
<NAlert v-if="message" :title="$t('common.importResult')" :type="success ? 'success' : 'error'" :bordered="false">
|
||||||
@ -172,7 +173,7 @@
|
|||||||
</NAlert>
|
</NAlert>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<NSpace justify="end" :size="16">
|
<NSpace justify="end" :size="16">
|
||||||
<NButton @click="handleDownloadTemplate">{{ $t('common.downloadTemplate') }}</NButton>
|
<!-- <NButton @click="handleDownloadTemplate">{{ $t('common.downloadTemplate') }}</NButton>-->
|
||||||
<NButton type="primary" @click="handleSubmit">{{ $t('common.import') }}</NButton>
|
<NButton type="primary" @click="handleSubmit">{{ $t('common.import') }}</NButton>
|
||||||
</NSpace>
|
</NSpace>
|
||||||
</template>
|
</template>
|
||||||
|
@ -155,13 +155,14 @@
|
|||||||
</NUploadDragger>
|
</NUploadDragger>
|
||||||
</NUpload>
|
</NUpload>
|
||||||
<div class="flex-center">
|
<div class="flex-center">
|
||||||
<NCheckbox v-model="data.updateSupport">{{ $t('common.updateExisting') }}</NCheckbox>
|
<!-- <NCheckbox v-model="data.updateSupport">{{ $t('common.updateExisting') }}</NCheckbox>-->
|
||||||
<n-divider vertical />
|
<!-- <n-divider vertical />-->
|
||||||
<NDatePicker
|
<NDatePicker
|
||||||
v-model:value="data.importMonth"
|
v-model:value="data.importMonth"
|
||||||
type="month"
|
type="month"
|
||||||
:placeholder="$t('common.selectImportMonth')"
|
:placeholder="$t('common.selectImportMonth')"
|
||||||
:is-date-disabled="disablePreviousDate"
|
:is-date-disabled="disablePreviousDate"
|
||||||
|
disabled
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<NAlert v-if="message" :title="$t('common.importResult')" :type="success ? 'success' : 'error'" :bordered="false">
|
<NAlert v-if="message" :title="$t('common.importResult')" :type="success ? 'success' : 'error'" :bordered="false">
|
||||||
@ -171,7 +172,7 @@
|
|||||||
</NAlert>
|
</NAlert>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<NSpace justify="end" :size="16">
|
<NSpace justify="end" :size="16">
|
||||||
<NButton @click="handleDownloadTemplate">{{ $t('common.downloadTemplate') }}</NButton>
|
<!-- <NButton @click="handleDownloadTemplate">{{ $t('common.downloadTemplate') }}</NButton>-->
|
||||||
<NButton type="primary" @click="handleSubmit">{{ $t('common.import') }}</NButton>
|
<NButton type="primary" @click="handleSubmit">{{ $t('common.import') }}</NButton>
|
||||||
</NSpace>
|
</NSpace>
|
||||||
</template>
|
</template>
|
||||||
|
@ -157,13 +157,14 @@
|
|||||||
</NUploadDragger>
|
</NUploadDragger>
|
||||||
</NUpload>
|
</NUpload>
|
||||||
<div class="flex-center">
|
<div class="flex-center">
|
||||||
<NCheckbox v-model="data.updateSupport">{{ $t('common.updateExisting') }}</NCheckbox>
|
<!-- <NCheckbox v-model="data.updateSupport">{{ $t('common.updateExisting') }}</NCheckbox>-->
|
||||||
<n-divider vertical />
|
<!-- <n-divider vertical />-->
|
||||||
<NDatePicker
|
<NDatePicker
|
||||||
v-model:value="data.importMonth"
|
v-model:value="data.importMonth"
|
||||||
type="month"
|
type="month"
|
||||||
:placeholder="$t('common.selectImportMonth')"
|
:placeholder="$t('common.selectImportMonth')"
|
||||||
:is-date-disabled="disablePreviousDate"
|
:is-date-disabled="disablePreviousDate"
|
||||||
|
disabled
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<NAlert v-if="message" :title="$t('common.importResult')" :type="success ? 'success' : 'error'" :bordered="false">
|
<NAlert v-if="message" :title="$t('common.importResult')" :type="success ? 'success' : 'error'" :bordered="false">
|
||||||
@ -173,7 +174,7 @@
|
|||||||
</NAlert>
|
</NAlert>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<NSpace justify="end" :size="16">
|
<NSpace justify="end" :size="16">
|
||||||
<NButton @click="handleDownloadTemplate">{{ $t('common.downloadTemplate') }}</NButton>
|
<!-- <NButton @click="handleDownloadTemplate">{{ $t('common.downloadTemplate') }}</NButton>-->
|
||||||
<NButton type="primary" @click="handleSubmit">{{ $t('common.import') }}</NButton>
|
<NButton type="primary" @click="handleSubmit">{{ $t('common.import') }}</NButton>
|
||||||
</NSpace>
|
</NSpace>
|
||||||
</template>
|
</template>
|
||||||
|
@ -156,13 +156,14 @@
|
|||||||
</NUploadDragger>
|
</NUploadDragger>
|
||||||
</NUpload>
|
</NUpload>
|
||||||
<div class="flex-center">
|
<div class="flex-center">
|
||||||
<NCheckbox v-model="data.updateSupport">{{ $t('common.updateExisting') }}</NCheckbox>
|
<!-- <NCheckbox v-model="data.updateSupport">{{ $t('common.updateExisting') }}</NCheckbox>-->
|
||||||
<n-divider vertical />
|
<!-- <n-divider vertical />-->
|
||||||
<NDatePicker
|
<NDatePicker
|
||||||
v-model:value="data.importMonth"
|
v-model:value="data.importMonth"
|
||||||
type="month"
|
type="month"
|
||||||
:placeholder="$t('common.selectImportMonth')"
|
:placeholder="$t('common.selectImportMonth')"
|
||||||
:is-date-disabled="disablePreviousDate"
|
:is-date-disabled="disablePreviousDate"
|
||||||
|
disabled
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<NAlert v-if="message" :title="$t('common.importResult')" :type="success ? 'success' : 'error'" :bordered="false">
|
<NAlert v-if="message" :title="$t('common.importResult')" :type="success ? 'success' : 'error'" :bordered="false">
|
||||||
@ -172,7 +173,7 @@
|
|||||||
</NAlert>
|
</NAlert>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<NSpace justify="end" :size="16">
|
<NSpace justify="end" :size="16">
|
||||||
<NButton @click="handleDownloadTemplate">{{ $t('common.downloadTemplate') }}</NButton>
|
<!-- <NButton @click="handleDownloadTemplate">{{ $t('common.downloadTemplate') }}</NButton>-->
|
||||||
<NButton type="primary" @click="handleSubmit">{{ $t('common.import') }}</NButton>
|
<NButton type="primary" @click="handleSubmit">{{ $t('common.import') }}</NButton>
|
||||||
</NSpace>
|
</NSpace>
|
||||||
</template>
|
</template>
|
||||||
|
@ -156,13 +156,14 @@
|
|||||||
</NUploadDragger>
|
</NUploadDragger>
|
||||||
</NUpload>
|
</NUpload>
|
||||||
<div class="flex-center">
|
<div class="flex-center">
|
||||||
<NCheckbox v-model="data.updateSupport">{{ $t('common.updateExisting') }}</NCheckbox>
|
<!-- <NCheckbox v-model="data.updateSupport">{{ $t('common.updateExisting') }}</NCheckbox>-->
|
||||||
<n-divider vertical />
|
<!-- <n-divider vertical />-->
|
||||||
<NDatePicker
|
<NDatePicker
|
||||||
v-model:value="data.importMonth"
|
v-model:value="data.importMonth"
|
||||||
type="month"
|
type="month"
|
||||||
:placeholder="$t('common.selectImportMonth')"
|
:placeholder="$t('common.selectImportMonth')"
|
||||||
:is-date-disabled="disablePreviousDate"
|
:is-date-disabled="disablePreviousDate"
|
||||||
|
disabled
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<NAlert v-if="message" :title="$t('common.importResult')" :type="success ? 'success' : 'error'" :bordered="false">
|
<NAlert v-if="message" :title="$t('common.importResult')" :type="success ? 'success' : 'error'" :bordered="false">
|
||||||
@ -172,7 +173,7 @@
|
|||||||
</NAlert>
|
</NAlert>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<NSpace justify="end" :size="16">
|
<NSpace justify="end" :size="16">
|
||||||
<NButton @click="handleDownloadTemplate">{{ $t('common.downloadTemplate') }}</NButton>
|
<!-- <NButton @click="handleDownloadTemplate">{{ $t('common.downloadTemplate') }}</NButton>-->
|
||||||
<NButton type="primary" @click="handleSubmit">{{ $t('common.import') }}</NButton>
|
<NButton type="primary" @click="handleSubmit">{{ $t('common.import') }}</NButton>
|
||||||
</NSpace>
|
</NSpace>
|
||||||
</template>
|
</template>
|
||||||
|
@ -156,13 +156,14 @@
|
|||||||
</NUploadDragger>
|
</NUploadDragger>
|
||||||
</NUpload>
|
</NUpload>
|
||||||
<div class="flex-center">
|
<div class="flex-center">
|
||||||
<NCheckbox v-model="data.updateSupport">{{ $t('common.updateExisting') }}</NCheckbox>
|
<!-- <NCheckbox v-model="data.updateSupport">{{ $t('common.updateExisting') }}</NCheckbox>-->
|
||||||
<n-divider vertical />
|
<!-- <n-divider vertical />-->
|
||||||
<NDatePicker
|
<NDatePicker
|
||||||
v-model:value="data.importMonth"
|
v-model:value="data.importMonth"
|
||||||
type="month"
|
type="month"
|
||||||
:placeholder="$t('common.selectImportMonth')"
|
:placeholder="$t('common.selectImportMonth')"
|
||||||
:is-date-disabled="disablePreviousDate"
|
:is-date-disabled="disablePreviousDate"
|
||||||
|
disabled
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<NAlert v-if="message" :title="$t('common.importResult')" :type="success ? 'success' : 'error'" :bordered="false">
|
<NAlert v-if="message" :title="$t('common.importResult')" :type="success ? 'success' : 'error'" :bordered="false">
|
||||||
@ -172,7 +173,7 @@
|
|||||||
</NAlert>
|
</NAlert>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<NSpace justify="end" :size="16">
|
<NSpace justify="end" :size="16">
|
||||||
<NButton @click="handleDownloadTemplate">{{ $t('common.downloadTemplate') }}</NButton>
|
<!-- <NButton @click="handleDownloadTemplate">{{ $t('common.downloadTemplate') }}</NButton>-->
|
||||||
<NButton type="primary" @click="handleSubmit">{{ $t('common.import') }}</NButton>
|
<NButton type="primary" @click="handleSubmit">{{ $t('common.import') }}</NButton>
|
||||||
</NSpace>
|
</NSpace>
|
||||||
</template>
|
</template>
|
||||||
|
@ -156,13 +156,14 @@
|
|||||||
</NUploadDragger>
|
</NUploadDragger>
|
||||||
</NUpload>
|
</NUpload>
|
||||||
<div class="flex-center">
|
<div class="flex-center">
|
||||||
<NCheckbox v-model="data.updateSupport">{{ $t('common.updateExisting') }}</NCheckbox>
|
<!-- <NCheckbox v-model="data.updateSupport">{{ $t('common.updateExisting') }}</NCheckbox>-->
|
||||||
<n-divider vertical />
|
<!-- <n-divider vertical />-->
|
||||||
<NDatePicker
|
<NDatePicker
|
||||||
v-model:value="data.importMonth"
|
v-model:value="data.importMonth"
|
||||||
type="month"
|
type="month"
|
||||||
:placeholder="$t('common.selectImportMonth')"
|
:placeholder="$t('common.selectImportMonth')"
|
||||||
:is-date-disabled="disablePreviousDate"
|
:is-date-disabled="disablePreviousDate"
|
||||||
|
disabled
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<NAlert v-if="message" :title="$t('common.importResult')" :type="success ? 'success' : 'error'" :bordered="false">
|
<NAlert v-if="message" :title="$t('common.importResult')" :type="success ? 'success' : 'error'" :bordered="false">
|
||||||
@ -172,7 +173,7 @@
|
|||||||
</NAlert>
|
</NAlert>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<NSpace justify="end" :size="16">
|
<NSpace justify="end" :size="16">
|
||||||
<NButton @click="handleDownloadTemplate">{{ $t('common.downloadTemplate') }}</NButton>
|
<!-- <NButton @click="handleDownloadTemplate">{{ $t('common.downloadTemplate') }}</NButton>-->
|
||||||
<NButton type="primary" @click="handleSubmit">{{ $t('common.import') }}</NButton>
|
<NButton type="primary" @click="handleSubmit">{{ $t('common.import') }}</NButton>
|
||||||
</NSpace>
|
</NSpace>
|
||||||
</template>
|
</template>
|
||||||
|
@ -156,13 +156,14 @@
|
|||||||
</NUploadDragger>
|
</NUploadDragger>
|
||||||
</NUpload>
|
</NUpload>
|
||||||
<div class="flex-center">
|
<div class="flex-center">
|
||||||
<NCheckbox v-model="data.updateSupport">{{ $t('common.updateExisting') }}</NCheckbox>
|
<!-- <NCheckbox v-model="data.updateSupport">{{ $t('common.updateExisting') }}</NCheckbox>-->
|
||||||
<n-divider vertical />
|
<!-- <n-divider vertical />-->
|
||||||
<NDatePicker
|
<NDatePicker
|
||||||
v-model:value="data.importMonth"
|
v-model:value="data.importMonth"
|
||||||
type="month"
|
type="month"
|
||||||
:placeholder="$t('common.selectImportMonth')"
|
:placeholder="$t('common.selectImportMonth')"
|
||||||
:is-date-disabled="disablePreviousDate"
|
:is-date-disabled="disablePreviousDate"
|
||||||
|
disabled
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<NAlert v-if="message" :title="$t('common.importResult')" :type="success ? 'success' : 'error'" :bordered="false">
|
<NAlert v-if="message" :title="$t('common.importResult')" :type="success ? 'success' : 'error'" :bordered="false">
|
||||||
@ -172,7 +173,7 @@
|
|||||||
</NAlert>
|
</NAlert>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<NSpace justify="end" :size="16">
|
<NSpace justify="end" :size="16">
|
||||||
<NButton @click="handleDownloadTemplate">{{ $t('common.downloadTemplate') }}</NButton>
|
<!-- <NButton @click="handleDownloadTemplate">{{ $t('common.downloadTemplate') }}</NButton>-->
|
||||||
<NButton type="primary" @click="handleSubmit">{{ $t('common.import') }}</NButton>
|
<NButton type="primary" @click="handleSubmit">{{ $t('common.import') }}</NButton>
|
||||||
</NSpace>
|
</NSpace>
|
||||||
</template>
|
</template>
|
||||||
|
@ -156,13 +156,14 @@
|
|||||||
</NUploadDragger>
|
</NUploadDragger>
|
||||||
</NUpload>
|
</NUpload>
|
||||||
<div class="flex-center">
|
<div class="flex-center">
|
||||||
<NCheckbox v-model="data.updateSupport">{{ $t('common.updateExisting') }}</NCheckbox>
|
<!-- <NCheckbox v-model="data.updateSupport">{{ $t('common.updateExisting') }}</NCheckbox>-->
|
||||||
<n-divider vertical />
|
<!-- <n-divider vertical />-->
|
||||||
<NDatePicker
|
<NDatePicker
|
||||||
v-model:value="data.importMonth"
|
v-model:value="data.importMonth"
|
||||||
type="month"
|
type="month"
|
||||||
:placeholder="$t('common.selectImportMonth')"
|
:placeholder="$t('common.selectImportMonth')"
|
||||||
:is-date-disabled="disablePreviousDate"
|
:is-date-disabled="disablePreviousDate"
|
||||||
|
disabled
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<NAlert v-if="message" :title="$t('common.importResult')" :type="success ? 'success' : 'error'" :bordered="false">
|
<NAlert v-if="message" :title="$t('common.importResult')" :type="success ? 'success' : 'error'" :bordered="false">
|
||||||
@ -172,7 +173,7 @@
|
|||||||
</NAlert>
|
</NAlert>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<NSpace justify="end" :size="16">
|
<NSpace justify="end" :size="16">
|
||||||
<NButton @click="handleDownloadTemplate">{{ $t('common.downloadTemplate') }}</NButton>
|
<!-- <NButton @click="handleDownloadTemplate">{{ $t('common.downloadTemplate') }}</NButton>-->
|
||||||
<NButton type="primary" @click="handleSubmit">{{ $t('common.import') }}</NButton>
|
<NButton type="primary" @click="handleSubmit">{{ $t('common.import') }}</NButton>
|
||||||
</NSpace>
|
</NSpace>
|
||||||
</template>
|
</template>
|
||||||
|
@ -156,13 +156,14 @@
|
|||||||
</NUploadDragger>
|
</NUploadDragger>
|
||||||
</NUpload>
|
</NUpload>
|
||||||
<div class="flex-center">
|
<div class="flex-center">
|
||||||
<NCheckbox v-model="data.updateSupport">{{ $t('common.updateExisting') }}</NCheckbox>
|
<!-- <NCheckbox v-model="data.updateSupport">{{ $t('common.updateExisting') }}</NCheckbox>-->
|
||||||
<n-divider vertical />
|
<!-- <n-divider vertical />-->
|
||||||
<NDatePicker
|
<NDatePicker
|
||||||
v-model:value="data.importMonth"
|
v-model:value="data.importMonth"
|
||||||
type="month"
|
type="month"
|
||||||
:placeholder="$t('common.selectImportMonth')"
|
:placeholder="$t('common.selectImportMonth')"
|
||||||
:is-date-disabled="disablePreviousDate"
|
:is-date-disabled="disablePreviousDate"
|
||||||
|
disabled
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<NAlert v-if="message" :title="$t('common.importResult')" :type="success ? 'success' : 'error'" :bordered="false">
|
<NAlert v-if="message" :title="$t('common.importResult')" :type="success ? 'success' : 'error'" :bordered="false">
|
||||||
@ -172,7 +173,7 @@
|
|||||||
</NAlert>
|
</NAlert>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<NSpace justify="end" :size="16">
|
<NSpace justify="end" :size="16">
|
||||||
<NButton @click="handleDownloadTemplate">{{ $t('common.downloadTemplate') }}</NButton>
|
<!-- <NButton @click="handleDownloadTemplate">{{ $t('common.downloadTemplate') }}</NButton>-->
|
||||||
<NButton type="primary" @click="handleSubmit">{{ $t('common.import') }}</NButton>
|
<NButton type="primary" @click="handleSubmit">{{ $t('common.import') }}</NButton>
|
||||||
</NSpace>
|
</NSpace>
|
||||||
</template>
|
</template>
|
||||||
|
@ -156,13 +156,14 @@
|
|||||||
</NUploadDragger>
|
</NUploadDragger>
|
||||||
</NUpload>
|
</NUpload>
|
||||||
<div class="flex-center">
|
<div class="flex-center">
|
||||||
<NCheckbox v-model="data.updateSupport">{{ $t('common.updateExisting') }}</NCheckbox>
|
<!-- <NCheckbox v-model="data.updateSupport">{{ $t('common.updateExisting') }}</NCheckbox>-->
|
||||||
<n-divider vertical />
|
<!-- <n-divider vertical />-->
|
||||||
<NDatePicker
|
<NDatePicker
|
||||||
v-model:value="data.importMonth"
|
v-model:value="data.importMonth"
|
||||||
type="month"
|
type="month"
|
||||||
:placeholder="$t('common.selectImportMonth')"
|
:placeholder="$t('common.selectImportMonth')"
|
||||||
:is-date-disabled="disablePreviousDate"
|
:is-date-disabled="disablePreviousDate"
|
||||||
|
disabled
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<NAlert v-if="message" :title="$t('common.importResult')" :type="success ? 'success' : 'error'" :bordered="false">
|
<NAlert v-if="message" :title="$t('common.importResult')" :type="success ? 'success' : 'error'" :bordered="false">
|
||||||
@ -172,7 +173,7 @@
|
|||||||
</NAlert>
|
</NAlert>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<NSpace justify="end" :size="16">
|
<NSpace justify="end" :size="16">
|
||||||
<NButton @click="handleDownloadTemplate">{{ $t('common.downloadTemplate') }}</NButton>
|
<!-- <NButton @click="handleDownloadTemplate">{{ $t('common.downloadTemplate') }}</NButton>-->
|
||||||
<NButton type="primary" @click="handleSubmit">{{ $t('common.import') }}</NButton>
|
<NButton type="primary" @click="handleSubmit">{{ $t('common.import') }}</NButton>
|
||||||
</NSpace>
|
</NSpace>
|
||||||
</template>
|
</template>
|
||||||
|
@ -156,13 +156,14 @@
|
|||||||
</NUploadDragger>
|
</NUploadDragger>
|
||||||
</NUpload>
|
</NUpload>
|
||||||
<div class="flex-center">
|
<div class="flex-center">
|
||||||
<NCheckbox v-model="data.updateSupport">{{ $t('common.updateExisting') }}</NCheckbox>
|
<!-- <NCheckbox v-model="data.updateSupport">{{ $t('common.updateExisting') }}</NCheckbox>-->
|
||||||
<n-divider vertical />
|
<!-- <n-divider vertical />-->
|
||||||
<NDatePicker
|
<NDatePicker
|
||||||
v-model:value="data.importMonth"
|
v-model:value="data.importMonth"
|
||||||
type="month"
|
type="month"
|
||||||
:placeholder="$t('common.selectImportMonth')"
|
:placeholder="$t('common.selectImportMonth')"
|
||||||
:is-date-disabled="disablePreviousDate"
|
:is-date-disabled="disablePreviousDate"
|
||||||
|
disabled
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<NAlert v-if="message" :title="$t('common.importResult')" :type="success ? 'success' : 'error'" :bordered="false">
|
<NAlert v-if="message" :title="$t('common.importResult')" :type="success ? 'success' : 'error'" :bordered="false">
|
||||||
@ -172,7 +173,7 @@
|
|||||||
</NAlert>
|
</NAlert>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<NSpace justify="end" :size="16">
|
<NSpace justify="end" :size="16">
|
||||||
<NButton @click="handleDownloadTemplate">{{ $t('common.downloadTemplate') }}</NButton>
|
<!-- <NButton @click="handleDownloadTemplate">{{ $t('common.downloadTemplate') }}</NButton>-->
|
||||||
<NButton type="primary" @click="handleSubmit">{{ $t('common.import') }}</NButton>
|
<NButton type="primary" @click="handleSubmit">{{ $t('common.import') }}</NButton>
|
||||||
</NSpace>
|
</NSpace>
|
||||||
</template>
|
</template>
|
||||||
|
@ -163,6 +163,7 @@
|
|||||||
type="month"
|
type="month"
|
||||||
:placeholder="$t('common.selectImportMonth')"
|
:placeholder="$t('common.selectImportMonth')"
|
||||||
:is-date-disabled="disablePreviousDate"
|
:is-date-disabled="disablePreviousDate"
|
||||||
|
disabled
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<NAlert v-if="message" :title="$t('common.importResult')" :type="success ? 'success' : 'error'" :bordered="false">
|
<NAlert v-if="message" :title="$t('common.importResult')" :type="success ? 'success' : 'error'" :bordered="false">
|
||||||
@ -172,7 +173,7 @@
|
|||||||
</NAlert>
|
</NAlert>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<NSpace justify="end" :size="16">
|
<NSpace justify="end" :size="16">
|
||||||
<NButton @click="handleDownloadTemplate">{{ $t('common.downloadTemplate') }}</NButton>
|
<!-- <NButton @click="handleDownloadTemplate">{{ $t('common.downloadTemplate') }}</NButton>-->
|
||||||
<NButton type="primary" @click="handleSubmit">{{ $t('common.import') }}</NButton>
|
<NButton type="primary" @click="handleSubmit">{{ $t('common.import') }}</NButton>
|
||||||
</NSpace>
|
</NSpace>
|
||||||
</template>
|
</template>
|
||||||
|
@ -156,13 +156,14 @@
|
|||||||
</NUploadDragger>
|
</NUploadDragger>
|
||||||
</NUpload>
|
</NUpload>
|
||||||
<div class="flex-center">
|
<div class="flex-center">
|
||||||
<NCheckbox v-model="data.updateSupport">{{ $t('common.updateExisting') }}</NCheckbox>
|
<!-- <NCheckbox v-model="data.updateSupport">{{ $t('common.updateExisting') }}</NCheckbox>-->
|
||||||
<n-divider vertical />
|
<!-- <n-divider vertical />-->
|
||||||
<NDatePicker
|
<NDatePicker
|
||||||
v-model:value="data.importMonth"
|
v-model:value="data.importMonth"
|
||||||
type="month"
|
type="month"
|
||||||
:placeholder="$t('common.selectImportMonth')"
|
:placeholder="$t('common.selectImportMonth')"
|
||||||
:is-date-disabled="disablePreviousDate"
|
:is-date-disabled="disablePreviousDate"
|
||||||
|
disabled
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<NAlert v-if="message" :title="$t('common.importResult')" :type="success ? 'success' : 'error'" :bordered="false">
|
<NAlert v-if="message" :title="$t('common.importResult')" :type="success ? 'success' : 'error'" :bordered="false">
|
||||||
@ -172,7 +173,7 @@
|
|||||||
</NAlert>
|
</NAlert>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<NSpace justify="end" :size="16">
|
<NSpace justify="end" :size="16">
|
||||||
<NButton @click="handleDownloadTemplate">{{ $t('common.downloadTemplate') }}</NButton>
|
<!-- <NButton @click="handleDownloadTemplate">{{ $t('common.downloadTemplate') }}</NButton>-->
|
||||||
<NButton type="primary" @click="handleSubmit">{{ $t('common.import') }}</NButton>
|
<NButton type="primary" @click="handleSubmit">{{ $t('common.import') }}</NButton>
|
||||||
</NSpace>
|
</NSpace>
|
||||||
</template>
|
</template>
|
||||||
|
Loading…
Reference in New Issue
Block a user