引入舱位

szh-new
sunzehua 1 month ago
parent 69b0b7e453
commit 717ea6cddd

@ -4,20 +4,10 @@
* @Date: 2024-04-29 11:54:04 * @Date: 2024-04-29 11:54:04
--> -->
<template> <template>
<a-modal <a-modal title="引入舱位" @cancel="visible = false" @ok="handleOk" v-if="visible" :visible="visible" width="80%"
title="引入舱位" :confirmLoading="loading">
@cancel="visible = false"
@ok="handleOk"
v-if="visible"
:visible="visible"
width="80%"
:confirmLoading="loading"
>
<a-spin :spinning="loading"> <a-spin :spinning="loading">
<BasicTable <BasicTable class="ds-table-detail" @register="registerTable" />
class="ds-table-detail"
@register="registerTable"
/>
</a-spin> </a-spin>
</a-modal> </a-modal>
</template> </template>
@ -44,7 +34,7 @@
const emit = defineEmits(['createTask']) const emit = defineEmits(['createTask'])
// //
import { formatParams } from '/@/hooks/web/common' import { formatParams } from '/@/hooks/web/common'
const [registerTable, { reload, getSelectRows }] = useTable({ const [registerTable, { getForm, reload, getSelectRows }] = useTable({
title: '', title: '',
api: async (p) => { api: async (p) => {
const res: API.DataResult = await GetAvailableBookingSlots(p) const res: API.DataResult = await GetAvailableBookingSlots(p)
@ -54,7 +44,18 @@
}, },
// //
beforeFetch: (p) => { beforeFetch: (p) => {
return formatParams(p) const data = formatParams(p)
const queryData = JSON.parse(formatParams(p).queryCondition)
let i = queryData.length
while (i--) {
if (queryData[i].FieldName === 'slotNo') {
queryData.splice(i, 1)
}
}
data.queryCondition = JSON.stringify(queryData)
data.otherQueryCondition = {}
data.otherQueryCondition = getForm().getFieldsValue().slotNo
return data
}, },
columns: storageColumns, columns: storageColumns,
formConfig: { formConfig: {
@ -103,6 +104,4 @@
}) })
</script> </script>
<style lang="less"> <style lang="less"></style>
</style>
Loading…
Cancel
Save