|
|
@ -5,22 +5,26 @@
|
|
|
|
@register="registerTable"
|
|
|
|
@register="registerTable"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<template #tableTitle>
|
|
|
|
<template #tableTitle>
|
|
|
|
<h4 style="margin: 0; white-space: nowrap;">联系人信息</h4>
|
|
|
|
<div class="flex">
|
|
|
|
<a-button style="margin-left: 100px;" type="link" @click="create">
|
|
|
|
<h4 style="margin: 0; white-space: nowrap;">联系人信息</h4>
|
|
|
|
<span class="iconfont icon-new_document"></span>
|
|
|
|
<div>
|
|
|
|
新增
|
|
|
|
<a-button type="link" @click="create">
|
|
|
|
</a-button>
|
|
|
|
<span class="iconfont icon-new_document"></span>
|
|
|
|
<a-popconfirm
|
|
|
|
新增
|
|
|
|
title="确定删除当前选中数据?"
|
|
|
|
</a-button>
|
|
|
|
ok-text="是"
|
|
|
|
<a-popconfirm
|
|
|
|
cancel-text="否"
|
|
|
|
title="确定删除当前选中数据?"
|
|
|
|
@confirm="del"
|
|
|
|
ok-text="是"
|
|
|
|
>
|
|
|
|
cancel-text="否"
|
|
|
|
<a-button type="link" class="ml15">
|
|
|
|
@confirm="del"
|
|
|
|
<span class="iconfont icon-shanchu21"></span>
|
|
|
|
>
|
|
|
|
删除
|
|
|
|
<a-button type="link" class="ml15">
|
|
|
|
</a-button>
|
|
|
|
<span class="iconfont icon-shanchu21"></span>
|
|
|
|
</a-popconfirm>
|
|
|
|
删除
|
|
|
|
|
|
|
|
</a-button>
|
|
|
|
|
|
|
|
</a-popconfirm>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template #bodyCell="{ column, record }">
|
|
|
|
<template #bodyCell="{ column, record }">
|
|
|
|
<template v-if="column.key === 'action'">
|
|
|
|
<template v-if="column.key === 'action'">
|
|
|
@ -41,7 +45,8 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
<script lang="ts" setup>
|
|
|
|
import { ref, defineEmits, watch } from 'vue'
|
|
|
|
import { ref, defineEmits, watch, onMounted, onUnmounted } from 'vue'
|
|
|
|
|
|
|
|
import emitter from '/@/utils/Bus'
|
|
|
|
import { personColumns } from './baseInfo.tsx'
|
|
|
|
import { personColumns } from './baseInfo.tsx'
|
|
|
|
import { BasicTable, useTable, TableAction } from '/@/components/Table'
|
|
|
|
import { BasicTable, useTable, TableAction } from '/@/components/Table'
|
|
|
|
import { GetBusinessOrderContactList, BatchDelBusinessOrderContact } from '/@/views/operation/seaexport/api/BookingLedger'
|
|
|
|
import { GetBusinessOrderContactList, BatchDelBusinessOrderContact } from '/@/views/operation/seaexport/api/BookingLedger'
|
|
|
@ -72,7 +77,7 @@
|
|
|
|
)
|
|
|
|
)
|
|
|
|
const flag = ref(true)
|
|
|
|
const flag = ref(true)
|
|
|
|
// 关系人表格
|
|
|
|
// 关系人表格
|
|
|
|
const [registerTable, { reload, getForm, getSelectRows }] = useTable({
|
|
|
|
const [registerTable, { reload, getForm, getSelectRows, insertTableDataRecord }] = useTable({
|
|
|
|
api: async (p) => {
|
|
|
|
api: async (p) => {
|
|
|
|
if (flag.value) {
|
|
|
|
if (flag.value) {
|
|
|
|
flag.value = false
|
|
|
|
flag.value = false
|
|
|
@ -151,6 +156,16 @@
|
|
|
|
loading.value = false
|
|
|
|
loading.value = false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// onMounted(() => {
|
|
|
|
|
|
|
|
// emitter.on('customerBack', (v) => {
|
|
|
|
|
|
|
|
// if (v.clientContact) {
|
|
|
|
|
|
|
|
// insertTableDataRecord(v.clientContact)
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
// onUnmounted(() => {
|
|
|
|
|
|
|
|
// emitter.off('customerBack')
|
|
|
|
|
|
|
|
// })
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="less">
|
|
|
|
<style lang="less">
|
|
|
@ -161,7 +176,11 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.ant-btn-link {
|
|
|
|
.ant-btn-link {
|
|
|
|
padding: 0!important;
|
|
|
|
padding: 0!important;
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
.flex {
|
|
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|