|
|
@ -1,12 +1,16 @@
|
|
|
|
<!--
|
|
|
|
|
|
|
|
* @Author: lijingjia lijj_xl@163.com
|
|
|
|
|
|
|
|
* @Date: 2024-07-24 18:51:54
|
|
|
|
|
|
|
|
* @Description: 订舱货物状态管理
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<BasicTable class="ds-table" @register="registerTable" @row-dbClick="handleAudit">
|
|
|
|
<BasicTable class="ds-table" @register="registerTable" @row-dbClick="handleAudit">
|
|
|
|
<template #tableTitle>
|
|
|
|
<template #tableTitle>
|
|
|
|
|
|
|
|
<a-button type="link" @click="handleCreate" :disabled="checkPermissions('op:edi:add')">
|
|
|
|
|
|
|
|
<span class="iconfont icon-new_document"></span>
|
|
|
|
|
|
|
|
添加
|
|
|
|
|
|
|
|
</a-button>
|
|
|
|
|
|
|
|
<a-button type="link" @click="handleDel" :disabled="checkPermissions('op:edi:import')">
|
|
|
|
|
|
|
|
<span class="iconfont icon-shanchu2"></span>
|
|
|
|
|
|
|
|
删除
|
|
|
|
|
|
|
|
</a-button>
|
|
|
|
|
|
|
|
<Divider type="vertical" />
|
|
|
|
<a-upload
|
|
|
|
<a-upload
|
|
|
|
:before-upload="beforeUpload"
|
|
|
|
:before-upload="beforeUpload"
|
|
|
|
:maxCount="1"
|
|
|
|
:maxCount="1"
|
|
|
@ -14,24 +18,12 @@
|
|
|
|
name="file"
|
|
|
|
name="file"
|
|
|
|
accept=".xlsm,.xlsx,.xls"
|
|
|
|
accept=".xlsm,.xlsx,.xls"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<a-button
|
|
|
|
<a-button type="link">
|
|
|
|
type="link"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<span class="iconfont icon-xiazai"></span>
|
|
|
|
<span class="iconfont icon-xiazai"></span>
|
|
|
|
导入货物状态
|
|
|
|
导入货物状态
|
|
|
|
</a-button>
|
|
|
|
</a-button>
|
|
|
|
</a-upload>
|
|
|
|
</a-upload>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template #toolbar>
|
|
|
|
|
|
|
|
<a-button type="link" @click="handleCreate" :disabled="checkPermissions('op:edi:add')">
|
|
|
|
|
|
|
|
<span class="iconfont icon-new_document"></span>
|
|
|
|
|
|
|
|
添加
|
|
|
|
|
|
|
|
</a-button>
|
|
|
|
|
|
|
|
<a-button type="link" @click="handleDel" :disabled="checkPermissions('op:edi:import')">
|
|
|
|
|
|
|
|
<span class="iconfont icon-shanchu2"></span>
|
|
|
|
|
|
|
|
删除
|
|
|
|
|
|
|
|
</a-button>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template #bodyCell="{ column, record }">
|
|
|
|
<template #bodyCell="{ column, record }">
|
|
|
|
<template v-if="column.key === 'action'">
|
|
|
|
<template v-if="column.key === 'action'">
|
|
|
|
<TableAction
|
|
|
|
<TableAction
|
|
|
@ -52,6 +44,7 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
|
|
<script lang="ts" setup>
|
|
|
|
import { onMounted } from 'vue'
|
|
|
|
import { onMounted } from 'vue'
|
|
|
|
|
|
|
|
import { Divider } from 'ant-design-vue'
|
|
|
|
import { checkPermissions } from '/@/hooks/Permissions/index'
|
|
|
|
import { checkPermissions } from '/@/hooks/Permissions/index'
|
|
|
|
import { formatParams } from '/@/hooks/web/common'
|
|
|
|
import { formatParams } from '/@/hooks/web/common'
|
|
|
|
import { BasicTable, useTable, TableAction } from '/@/components/Table'
|
|
|
|
import { BasicTable, useTable, TableAction } from '/@/components/Table'
|
|
|
@ -132,7 +125,7 @@
|
|
|
|
function beforeUpload(file) {
|
|
|
|
function beforeUpload(file) {
|
|
|
|
const formData = new FormData()
|
|
|
|
const formData = new FormData()
|
|
|
|
formData.append('file', file)
|
|
|
|
formData.append('file', file)
|
|
|
|
ImportBookingStatusConfigByExcel(formData).then(res => {
|
|
|
|
ImportBookingStatusConfigByExcel(formData).then((res) => {
|
|
|
|
if (res.succeeded) {
|
|
|
|
if (res.succeeded) {
|
|
|
|
reload()
|
|
|
|
reload()
|
|
|
|
createMessage.success('导入成功!')
|
|
|
|
createMessage.success('导入成功!')
|
|
|
|