diff --git a/src/views/Clue/Order/Comp/Reback.vue b/src/views/Clue/Order/Comp/Reback.vue index cbc2026..92ec83c 100644 --- a/src/views/Clue/Order/Comp/Reback.vue +++ b/src/views/Clue/Order/Comp/Reback.vue @@ -18,22 +18,83 @@ - - - - - + {{ row.isPayoff }} + + + + import * as FeebackApi from '@/api/clue/payment' import { getSimpleUserList as getUserOption, getAllUserList } from '@/api/system/user' +import { getPlaceList } from '@/api/school/place' +import { getClassTypeList } from '@/api/school/class' +import { DICT_TYPE, getDictOptions } from '@/utils/dict' import { useUserStore } from '@/store/modules/user' import DialogFeebackAudit from './DialogFeebackAudit.vue' @@ -352,6 +440,13 @@ const searchForm = ref({ const userOptions = ref([]) const allUserOptions = ref([]) +const schoolOptions = ref([]) +const allPlaceOptions = ref([]) + +const placeOptions = computed(() => { + return allPlaceOptions.value.filter((it) => it.schoolId == searchForm.value.signSchool) +}) + const tableList = ref([]) const total = ref(0) @@ -373,11 +468,30 @@ function handleReset() { applyUser: undefined, checkTime: [], mobile: undefined, + signSchool: undefined, + signPlace: undefined, + signClass: undefined, pageNo: 1, pageSize: 20 } } +function changeSchool() { + searchForm.value.signPlace = undefined + searchForm.value.signClass = undefined +} + +function changePlace() { + searchForm.value.signClass = undefined + getClassTypeOptions() +} + +const classOptions = ref([]) +async function getClassTypeOptions() { + const data = await getClassTypeList({ placeId: searchForm.value.signPlace, status: 0 }) + classOptions.value = data +} + const totalInfo = ref({}) const loading = ref(false) async function getList() { @@ -428,6 +542,11 @@ function handleAudit(row) { } function getOptions() { + // 驾校 + getPlaceList({ placeStatus: 0, schoolStatus: 0, isSearchSchool: true }).then((data) => { + schoolOptions.value = data.schoolList + allPlaceOptions.value = data.placeList + }) getUserOption().then((data) => { userOptions.value = data }) diff --git a/src/views/Clue/Set/Comp/DialogSource.vue b/src/views/Clue/Set/Comp/DialogSource.vue index 02c22a1..5ada67f 100644 --- a/src/views/Clue/Set/Comp/DialogSource.vue +++ b/src/views/Clue/Set/Comp/DialogSource.vue @@ -24,8 +24,8 @@ - - + + 总价 单价 @@ -56,7 +56,7 @@ 线索成本 添加年份 - +