This commit is contained in:
qsh
2025-09-17 11:56:09 +08:00
parent c41f0896e9
commit 50f218b8f5
3 changed files with 19 additions and 16 deletions

View File

@@ -182,7 +182,7 @@
<script setup name="ClueOrderList">
import { getSimpleFieldList } from '@/api/clue/orderField'
import * as SignApi from '@/api/clue/sign'
import { getSimpleUserList as getUserOption, getAllUserList } from '@/api/system/user'
import { getAllUserListWithHire } from '@/api/system/user'
import { getPlaceList } from '@/api/school/place'
import { getClassTypeList } from '@/api/school/class'
@@ -194,7 +194,7 @@ import DialogExtraFee from './DialogExtraPay.vue'
import { removeNullField } from '@/utils'
import { formatDate } from '@/utils/formatTime'
const userOptions = ref([])
// const userOptions = ref([])
const allUserOptions = ref([])
onMounted(() => {
getOptions()
@@ -273,9 +273,10 @@ async function getCurdSchemas() {
const data = await getSimpleFieldList()
searchFieldList.value = data.filter((it) => it.isCustom && it.isSearch)
data.forEach((elem) => {
if (['createUser'].includes(elem.field)) {
elem.search.options = userOptions.value
} else if (['convertPeople', 'receiver'].includes(elem.field)) {
// if (['createUser'].includes(elem.field)) {
// elem.search.options = userOptions.value
// } else
if (['convertPeople', 'receiver', 'createUser'].includes(elem.field)) {
elem.search.options = allUserOptions.value
}
})
@@ -354,8 +355,8 @@ async function getOptions() {
schoolOptions.value = data.schoolList
allPlaceOptions.value = data.placeList
})
userOptions.value = await getUserOption()
allUserOptions.value = await getAllUserList()
// userOptions.value = await getUserOption()
allUserOptions.value = await getAllUserListWithHire()
getCurdSchemas()
}
</script>