szh-new
lijingjia 3 months ago
parent d02cccb47b
commit 623bc44ffc

@ -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>

@ -271,10 +271,7 @@
</template> </template>
<script lang="ts" setup name="订单管理"> <script lang="ts" setup name="订单管理">
import TableActionBar from './components/tableActionBar.vue' import TableActionBar from './components/tableActionBar.vue'
<<<<<<< HEAD
import { CheckCircleFilled, CloseCircleFilled, RedoOutlined } from '@ant-design/icons-vue'; import { CheckCircleFilled, CloseCircleFilled, RedoOutlined } from '@ant-design/icons-vue';
=======
>>>>>>> ljj_dev
import tableActionBarRight from './components/tableActionBarRight.vue' import tableActionBarRight from './components/tableActionBarRight.vue'
import { onMounted, ref } from 'vue' import { onMounted, ref } from 'vue'
import { BasicTable, useTable, TableAction } from '/@/components/Table' import { BasicTable, useTable, TableAction } from '/@/components/Table'
@ -284,15 +281,8 @@ import { columns, searchFormSchema } from './columns'
import { useGo } from '/@/hooks/web/usePage' import { useGo } from '/@/hooks/web/usePage'
import { useMessage } from '/@/hooks/web/useMessage' import { useMessage } from '/@/hooks/web/useMessage'
import { formatTableData } from '/@/hooks/web/common' import { formatTableData } from '/@/hooks/web/common'
<<<<<<< HEAD
import lstDraftCompareRlt from '../../../components/lstDraftCompareRlt/index.vue' import lstDraftCompareRlt from '../../../components/lstDraftCompareRlt/index.vue'
import { RefreshYGT } from './api/BookingLedger.js' import { RefreshYGT } from './api/BookingLedger.js'
=======
import { useOptionsStore } from '/@/store/modules/options'
import lstDraftCompareRlt from '../../../components/lstDraftCompareRlt/index.vue'
import { RefreshYGT } from './api/BookingLedger.js'
import { usePermissionStore } from '/@/store/modules/permission'
>>>>>>> ljj_dev
import { useI18n } from '/@/hooks/web/useI18n' import { useI18n } from '/@/hooks/web/useI18n'
const { t } = useI18n() const { t } = useI18n()
import { useAppStore } from '/@/store/modules/app' import { useAppStore } from '/@/store/modules/app'

Loading…
Cancel
Save