|
|
@ -6,6 +6,17 @@
|
|
|
|
<span class="iconfont icon-new_document"></span>
|
|
|
|
<span class="iconfont icon-new_document"></span>
|
|
|
|
添加集装箱信息
|
|
|
|
添加集装箱信息
|
|
|
|
</a-button>
|
|
|
|
</a-button>
|
|
|
|
|
|
|
|
<a-popconfirm
|
|
|
|
|
|
|
|
title="确定删除当前选中数据?"
|
|
|
|
|
|
|
|
ok-text="是"
|
|
|
|
|
|
|
|
cancel-text="否"
|
|
|
|
|
|
|
|
@confirm="handleDel"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<a-button type="link" :disabled="checkPermissions('op:ctn:del')">
|
|
|
|
|
|
|
|
<span class="iconfont icon-shanchu21"></span>
|
|
|
|
|
|
|
|
删除集装箱信息
|
|
|
|
|
|
|
|
</a-button>
|
|
|
|
|
|
|
|
</a-popconfirm>
|
|
|
|
<a-button type="link" @click="importFlow" :disabled="checkPermissions('op:ctn:import')">
|
|
|
|
<a-button type="link" @click="importFlow" :disabled="checkPermissions('op:ctn:import')">
|
|
|
|
<span class="iconfont icon-xiazai"></span>
|
|
|
|
<span class="iconfont icon-xiazai"></span>
|
|
|
|
导入集装箱信息
|
|
|
|
导入集装箱信息
|
|
|
@ -43,7 +54,7 @@
|
|
|
|
import { checkPermissions } from '/@/hooks/Permissions/index'
|
|
|
|
import { checkPermissions } from '/@/hooks/Permissions/index'
|
|
|
|
import { BasicTable, useTable, TableAction, SorterResult } from '/@/components/Table'
|
|
|
|
import { BasicTable, useTable, TableAction, SorterResult } from '/@/components/Table'
|
|
|
|
import ImportFlow from './importFlow.vue'
|
|
|
|
import ImportFlow from './importFlow.vue'
|
|
|
|
import { ApiList, ApiImport } from './api'
|
|
|
|
import { ApiList, ApiImport, ApiDel } from './api'
|
|
|
|
import { useModal } from '/@/components/Modal'
|
|
|
|
import { useModal } from '/@/components/Modal'
|
|
|
|
import TenantAuditStepModal from './TenantAuditStepModal.vue'
|
|
|
|
import TenantAuditStepModal from './TenantAuditStepModal.vue'
|
|
|
|
import { columns, searchFormSchema } from './columns'
|
|
|
|
import { columns, searchFormSchema } from './columns'
|
|
|
@ -52,7 +63,7 @@
|
|
|
|
const visible = ref<boolean>(false)
|
|
|
|
const visible = ref<boolean>(false)
|
|
|
|
const refImportFlow = ref()
|
|
|
|
const refImportFlow = ref()
|
|
|
|
const [registerModal, { openModal }] = useModal()
|
|
|
|
const [registerModal, { openModal }] = useModal()
|
|
|
|
const [registerTable, { reload, getForm, getPaginationRef }] = useTable({
|
|
|
|
const [registerTable, { reload, getForm, getSelectRows }] = useTable({
|
|
|
|
title: '集装箱信息列表',
|
|
|
|
title: '集装箱信息列表',
|
|
|
|
api: async (p) => {
|
|
|
|
api: async (p) => {
|
|
|
|
const res: API.DataResult = await ApiList(p)
|
|
|
|
const res: API.DataResult = await ApiList(p)
|
|
|
@ -116,6 +127,26 @@
|
|
|
|
fixed: 'right',
|
|
|
|
fixed: 'right',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
function handleDel() {
|
|
|
|
|
|
|
|
const select = getSelectRows()
|
|
|
|
|
|
|
|
let ApiData: any = {
|
|
|
|
|
|
|
|
ids: [],
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (select.length === 0) {
|
|
|
|
|
|
|
|
notification.warning({ message: '请至少选择一条数据', duration: 3 })
|
|
|
|
|
|
|
|
return false
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
ApiData.ids = select.map((item) => {
|
|
|
|
|
|
|
|
return item.id
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ApiDel(ApiData).then((res) => {
|
|
|
|
|
|
|
|
console.log(res)
|
|
|
|
|
|
|
|
notification.success({ message: res.message, duration: 3 })
|
|
|
|
|
|
|
|
reload()
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
function handleCreate() {
|
|
|
|
function handleCreate() {
|
|
|
|
openModal(true, {
|
|
|
|
openModal(true, {
|
|
|
|
isParent: false,
|
|
|
|
isParent: false,
|
|
|
|