调整条件

This commit is contained in:
andy 2026-07-15 15:32:27 +08:00
parent f5298a1fca
commit db23574959

View File

@ -103,7 +103,7 @@
</template>
<script setup lang="ts">
import { ref, reactive, h, onMounted } from 'vue'
import { ref, reactive, h, onMounted, computed } from 'vue'
import { NButton, NSpace, NIcon, NUpload, useMessage, useDialog, type DataTableColumns, type UploadCustomRequestOptions } from 'naive-ui'
import { SearchOutline, RefreshOutline, AddOutline, TrashOutline, CreateOutline, EyeOutline, DownloadOutline } from '@vicons/ionicons5'
import { flowingAroundApi, type FlowingAround } from '@/api/flowingAround'
@ -409,11 +409,39 @@ async function handleImportUpload({ file }: UploadCustomRequestOptions) {
}
const flowingAroundTypeOptions = ref<{ label: string; value: any }[]>([])
const confirmResultOptions = ref<{ label: string; value: any }[]>([
const confirmResultOptions = computed<any[]>(() => {
const baseOptions: any[] = [
{label: "待确认", value: "待确认"},
{label: "同意", value: "同意"},
{label: "拒绝", value: "拒绝"},
])
]
// formData.businessCode !== 'mes_quality_testing'
console.log(formData.businessCode)
if (formData.businessCode !== 'mes_quality_testing') {
baseOptions.push( {label: "拒绝", value: "拒绝"},)
}
return baseOptions
})
// const directionOptions = computed<any[]>(() => {
// const baseOptions: any[] = [
// { label: t('account.'), value: '' },
// { label: t('account.'), value: '' },
// ]
// // accountType === 'currency'
// // if (formRegulationData.accountType === 'currency') {
// // baseOptions.push({ label: t('account.'), value: '' })
// // baseOptions.push({ label: t('account.'), value: '' })
// // }
// return baseOptions
// })
//
async function loadDictOptions() {