调整条件
This commit is contained in:
parent
f5298a1fca
commit
db23574959
@ -103,7 +103,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<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 { 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 { SearchOutline, RefreshOutline, AddOutline, TrashOutline, CreateOutline, EyeOutline, DownloadOutline } from '@vicons/ionicons5'
|
||||||
import { flowingAroundApi, type FlowingAround } from '@/api/flowingAround'
|
import { flowingAroundApi, type FlowingAround } from '@/api/flowingAround'
|
||||||
@ -409,11 +409,39 @@ async function handleImportUpload({ file }: UploadCustomRequestOptions) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const flowingAroundTypeOptions = ref<{ label: string; value: any }[]>([])
|
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: "同意"},
|
{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() {
|
async function loadDictOptions() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user