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