|
|
@ -151,7 +151,7 @@
|
|
|
|
import ConditionFilter from '/@/components/Condition/index.vue'
|
|
|
|
import ConditionFilter from '/@/components/Condition/index.vue'
|
|
|
|
import { onMounted, ref } from 'vue'
|
|
|
|
import { onMounted, ref } from 'vue'
|
|
|
|
import { BasicTable, useTable } from '/@/components/Table'
|
|
|
|
import { BasicTable, useTable } from '/@/components/Table'
|
|
|
|
import { PageDataByBooking, UpdateUserQuerySet } from './api/BookingLedger.js'
|
|
|
|
import { PageDataByBooking, UpdateUserQuerySet, GetUserQuerySet } from './api/BookingLedger.js'
|
|
|
|
import { getColumnsByClient } from '/@/views/baseinfo/formcopy/api'
|
|
|
|
import { getColumnsByClient } from '/@/views/baseinfo/formcopy/api'
|
|
|
|
import { useModal } from '/@/components/Modal'
|
|
|
|
import { useModal } from '/@/components/Modal'
|
|
|
|
import { columns, searchFormSchema, FeeStatus } from './columns'
|
|
|
|
import { columns, searchFormSchema, FeeStatus } from './columns'
|
|
|
@ -162,8 +162,8 @@
|
|
|
|
import { Field } from '/@/components/Render/interface'
|
|
|
|
import { Field } from '/@/components/Render/interface'
|
|
|
|
import { useOptionsStore } from '/@/store/modules/options'
|
|
|
|
import { useOptionsStore } from '/@/store/modules/options'
|
|
|
|
const optionsStore = useOptionsStore()
|
|
|
|
const optionsStore = useOptionsStore()
|
|
|
|
// import { usePermissionStore } from '/@/store/modules/permission'
|
|
|
|
import { usePermissionStore } from '/@/store/modules/permission'
|
|
|
|
// import initData from './modules/initData.js'
|
|
|
|
import initData from './modules/initData.js'
|
|
|
|
import { useRouter, useRoute } from 'vue-router'
|
|
|
|
import { useRouter, useRoute } from 'vue-router'
|
|
|
|
const router = useRouter()
|
|
|
|
const router = useRouter()
|
|
|
|
const { notification } = useMessage()
|
|
|
|
const { notification } = useMessage()
|
|
|
@ -476,12 +476,65 @@
|
|
|
|
reload()
|
|
|
|
reload()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
async function createdInit() {
|
|
|
|
|
|
|
|
showColumns.value = JSON.parse(JSON.stringify(initData.columns))
|
|
|
|
|
|
|
|
formAllData.value = JSON.parse(JSON.stringify(initData.condAllData))
|
|
|
|
|
|
|
|
fromTableAllData.value = JSON.parse(JSON.stringify(initData.columnsAllData))
|
|
|
|
|
|
|
|
tableHeight.value = document.body.clientHeight - 230
|
|
|
|
|
|
|
|
const res: API.DataResult = await getColumnsByClient({
|
|
|
|
|
|
|
|
tableViewName: 'op_sea_export',
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
const fullPath = ref(router.currentRoute.value.fullPath)
|
|
|
|
|
|
|
|
usePermissionStore().getWrouteList.forEach((item: Record<any, any>) => {
|
|
|
|
|
|
|
|
item.children[0].children?.forEach((item2: Record<any, any>) => {
|
|
|
|
|
|
|
|
if (fullPath.value.indexOf(item2.path) != -1) {
|
|
|
|
|
|
|
|
permissionId.value = item2.id
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
if (res.succeeded) {
|
|
|
|
|
|
|
|
console.log(res)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let data: any[] = []
|
|
|
|
|
|
|
|
res.data.forEach((item) => {
|
|
|
|
|
|
|
|
data.push({
|
|
|
|
|
|
|
|
id: item.dbColumnName,
|
|
|
|
|
|
|
|
title: item.columnDescription,
|
|
|
|
|
|
|
|
name: 'Select',
|
|
|
|
|
|
|
|
value: null,
|
|
|
|
|
|
|
|
props: {
|
|
|
|
|
|
|
|
disabled: false,
|
|
|
|
|
|
|
|
multiple: false,
|
|
|
|
|
|
|
|
// placeholder: '请选择请假事由',
|
|
|
|
|
|
|
|
options: [],
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
style: {
|
|
|
|
|
|
|
|
width: '100%',
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fields.value = data
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
FnGetUserQuerySet()
|
|
|
|
|
|
|
|
// getConfigUser(true)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
async function FnGetUserQuerySet() {
|
|
|
|
|
|
|
|
const res: API.DataResult = await GetUserQuerySet({
|
|
|
|
|
|
|
|
permissionId: permissionId.value,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
if (res.succeeded) {
|
|
|
|
|
|
|
|
console.log(res)
|
|
|
|
|
|
|
|
AdvancedQueryData.value = JSON.parse(res.data.content)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
function handledbclick(record, index, event) {
|
|
|
|
function handledbclick(record, index, event) {
|
|
|
|
editColumns(record)
|
|
|
|
editColumns(record)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
onMounted(() => {
|
|
|
|
onMounted(() => {
|
|
|
|
//初始化
|
|
|
|
//初始化
|
|
|
|
reload()
|
|
|
|
reload()
|
|
|
|
|
|
|
|
createdInit()
|
|
|
|
})
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|