szh-new
张同海 4 months ago
parent 7fc596c7b5
commit c935c610f0

@ -0,0 +1,6 @@
.icon-locksuo {
color: #17a6a3;
}
.icon-lock-openkaisuo {
color: #7a8798;
}

@ -3,6 +3,7 @@
@import 'public.less'; @import 'public.less';
@import 'ant/index.less'; @import 'ant/index.less';
@import './theme.less'; @import './theme.less';
@import './iconfont.less';
input:-webkit-autofill { input:-webkit-autofill {
box-shadow: 0 0 0 1000px white inset !important; box-shadow: 0 0 0 1000px white inset !important;

@ -5,6 +5,7 @@ enum Api {
list = '/mainApi/CodeCtn/GetCodeCtnList', list = '/mainApi/CodeCtn/GetCodeCtnList',
edit = '/mainApi/CodeCtn/EditCodeCtn', edit = '/mainApi/CodeCtn/EditCodeCtn',
info = '/mainApi/CodeCtn/GetCodeCtnInfo', info = '/mainApi/CodeCtn/GetCodeCtnInfo',
del = '/mainApi/CodeCtn/BatchDelCodeCtn',
BasicsList = '/mainApi/CodeCtn/GetBasicsCodeCtnList', BasicsList = '/mainApi/CodeCtn/GetBasicsCodeCtnList',
ExistList = '/mainApi/CodeCtn/GetExistCodeCtnList', ExistList = '/mainApi/CodeCtn/GetExistCodeCtnList',
@ -34,7 +35,14 @@ export function ApiInfo(query) {
params: query, params: query,
}) })
} }
// 批量删除 (Auth)
export function ApiDel(data: PageRequest) {
return request<DataResult>({
url: Api.del,
method: 'post',
data,
})
}
// 获取商品类型列表-基础库 (Auth) // 获取商品类型列表-基础库 (Auth)
export function ApiBasicsList(data: PageRequest) { export function ApiBasicsList(data: PageRequest) {
return request<DataResult>({ return request<DataResult>({

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

@ -5,6 +5,7 @@ enum Api {
list = '/mainApi/CodeFrt/GetCodeFrtList', list = '/mainApi/CodeFrt/GetCodeFrtList',
edit = '/mainApi/CodeFrt/EditCodeFrt', edit = '/mainApi/CodeFrt/EditCodeFrt',
info = '/mainApi/CodeFrt/GetCodeFrtInfo', info = '/mainApi/CodeFrt/GetCodeFrtInfo',
del = '/mainApi/CodeFrt/BatchDelCodeFrt',
BasicsList = '/mainApi/CodeFrt/GetBasicsCodeFrtList', BasicsList = '/mainApi/CodeFrt/GetBasicsCodeFrtList',
ExistList = '/mainApi/CodeFrt/GetExistCodeFrtList', ExistList = '/mainApi/CodeFrt/GetExistCodeFrtList',
@ -34,7 +35,14 @@ export function ApiInfo(query) {
params: query, params: query,
}) })
} }
// 批量删除 (Auth)
export function ApiDel(data: PageRequest) {
return request<DataResult>({
url: Api.del,
method: 'post',
data,
})
}
// 获取商品类型列表-基础库 (Auth) // 获取商品类型列表-基础库 (Auth)
export function ApiBasicsList(data: PageRequest) { export function ApiBasicsList(data: PageRequest) {
return request<DataResult>({ return request<DataResult>({

@ -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:frt:del')">
<span class="iconfont icon-shanchu21"></span>
删除付费方式
</a-button>
</a-popconfirm>
<a-button type="link" @click="importFlow" :disabled="checkPermissions('op:frt:import')"> <a-button type="link" @click="importFlow" :disabled="checkPermissions('op:frt: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 } from '/@/components/Table' import { BasicTable, useTable, TableAction } 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 }] = 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,

@ -5,6 +5,8 @@ enum Api {
list = '/mainApi/CodeIssueType/GetCodeIssueTypeList', list = '/mainApi/CodeIssueType/GetCodeIssueTypeList',
edit = '/mainApi/CodeIssueType/EditCodeIssueType', edit = '/mainApi/CodeIssueType/EditCodeIssueType',
info = '/mainApi/CodeIssueType/GetCodeIssueTypeInfo', info = '/mainApi/CodeIssueType/GetCodeIssueTypeInfo',
del = '/mainApi/CodeIssueType/BatchDelCodeIssueType',
BasicsList = '/mainApi/CodeIssueType/GetBasicsCodeIssueTypeList', BasicsList = '/mainApi/CodeIssueType/GetBasicsCodeIssueTypeList',
ExistList = '/mainApi/CodeIssueType/GetExistCodeIssueTypeList', ExistList = '/mainApi/CodeIssueType/GetExistCodeIssueTypeList',
Import = '/mainApi/CodeIssueType/ImportCodeIssueType', Import = '/mainApi/CodeIssueType/ImportCodeIssueType',
@ -33,7 +35,14 @@ export function ApiInfo(query) {
params: query, params: query,
}) })
} }
// 批量删除 (Auth)
export function ApiDel(data: PageRequest) {
return request<DataResult>({
url: Api.del,
method: 'post',
data,
})
}
// 获取商品类型列表-基础库 (Auth) // 获取商品类型列表-基础库 (Auth)
export function ApiBasicsList(data: PageRequest) { export function ApiBasicsList(data: PageRequest) {
return request<DataResult>({ return request<DataResult>({

@ -10,6 +10,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:issuetype:del')">
<span class="iconfont icon-shanchu21"></span>
删除签单方式
</a-button>
</a-popconfirm>
<a-button <a-button
type="link" type="link"
@click="importFlow" @click="importFlow"
@ -51,7 +62,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'
@ -60,7 +71,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)
@ -124,6 +135,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,

@ -5,7 +5,7 @@ enum Api {
list = '/mainApi/CodePackage/GetCodePackageList', list = '/mainApi/CodePackage/GetCodePackageList',
edit = '/mainApi/CodePackage/EditCodePackage', edit = '/mainApi/CodePackage/EditCodePackage',
info = '/mainApi/CodePackage/GetCodePackageInfo', info = '/mainApi/CodePackage/GetCodePackageInfo',
// del = '/mainApi/CodeGoods/BatchDelCodeGoods', del = '/mainApi/CodePackage/BatchDelCodePackage',
BasicsList = '/mainApi/CodePackage/GetBasicsCodePackageList', BasicsList = '/mainApi/CodePackage/GetBasicsCodePackageList',
ExistList = '/mainApi/CodePackage/GetExistCodePackageList', ExistList = '/mainApi/CodePackage/GetExistCodePackageList',
@ -35,6 +35,14 @@ export function ApiInfo(query) {
params: query, params: query,
}) })
} }
// 批量删除 (Auth)
export function ApiDel(data: PageRequest) {
return request<DataResult>({
url: Api.del,
method: 'post',
data,
})
}
// 获取商品类型列表-基础库 (Auth) // 获取商品类型列表-基础库 (Auth)
export function ApiBasicsList(data: PageRequest) { export function ApiBasicsList(data: PageRequest) {

@ -6,7 +6,7 @@
<span class="iconfont icon-new_document"></span> <span class="iconfont icon-new_document"></span>
添加包装类型 添加包装类型
</a-button> </a-button>
<!-- <a-popconfirm <a-popconfirm
title="确定删除当前选中数据?" title="确定删除当前选中数据?"
ok-text="是" ok-text="是"
cancel-text="否" cancel-text="否"
@ -16,7 +16,7 @@
<span class="iconfont icon-shanchu21"></span> <span class="iconfont icon-shanchu21"></span>
删除包装类型 删除包装类型
</a-button> </a-button>
</a-popconfirm> --> </a-popconfirm>
<a-button type="link" @click="importFlow" :disabled="checkPermissions('op:package:import')"> <a-button type="link" @click="importFlow" :disabled="checkPermissions('op:package:import')">
<span class="iconfont icon-xiazai"></span> <span class="iconfont icon-xiazai"></span>
导入包装类型 导入包装类型
@ -54,7 +54,7 @@
import { checkPermissions } from '/@/hooks/Permissions/index' import { checkPermissions } from '/@/hooks/Permissions/index'
import { BasicTable, useTable, TableAction } from '/@/components/Table' import { BasicTable, useTable, TableAction } 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'
@ -127,26 +127,26 @@
fixed: 'right', fixed: 'right',
}, },
}) })
// function handleDel() { function handleDel() {
// const select = getSelectRows() const select = getSelectRows()
// let ApiData: any = { let ApiData: any = {
// ids: [], ids: [],
// } }
// if (select.length === 0) { if (select.length === 0) {
// notification.warning({ message: '', duration: 3 }) notification.warning({ message: '请至少选择一条数据', duration: 3 })
// return false return false
// } else { } else {
// ApiData.ids = select.map((item) => { ApiData.ids = select.map((item) => {
// return item.id return item.id
// }) })
// } }
// ApiDel(ApiData).then((res) => { ApiDel(ApiData).then((res) => {
// console.log(res) console.log(res)
// notification.success({ message: res.message, duration: 3 }) notification.success({ message: res.message, duration: 3 })
// reload() reload()
// }) })
// } }
function handleCreate() { function handleCreate() {
openModal(true, { openModal(true, {
isParent: false, isParent: false,

@ -55,16 +55,16 @@
<!-- 业务锁定 --> <!-- 业务锁定 -->
<template v-if="column.dataIndex == 'isBusinessLocking'"> <template v-if="column.dataIndex == 'isBusinessLocking'">
<span v-if="record.isBusinessLocking"> <span v-if="record.isBusinessLocking">
锁定 <Icon icon="ant-design:lock-outlined" class="iconLock" /> <i class="iconfont icon-locksuo"></i>
</span> </span>
<span v-else> <Icon icon="ant-design:unlock-outlined" class="iconLock" /> </span> <span v-else> <i class="iconfont icon-lock-openkaisuo"></i> </span>
</template> </template>
<!-- 费用锁定 --> <!-- 费用锁定 -->
<template v-if="column.dataIndex == 'isFeeLocking'"> <template v-if="column.dataIndex == 'isFeeLocking'">
<span v-if="record.isFeeLocking"> <span v-if="record.isFeeLocking">
锁定 <Icon icon="ant-design:lock-outlined" class="iconLock" /> <i class="iconfont icon-locksuo"></i>
</span> </span>
<span v-else> <Icon icon="ant-design:unlock-outlined" class="iconLock" /> </span> <span v-else> <i class="iconfont icon-lock-openkaisuo"></i> </span>
</template> </template>
<template v-if="column.key === 'action'"> <template v-if="column.key === 'action'">
<TableAction <TableAction
@ -508,7 +508,7 @@
} }
// //
function copyBooking(record) { function copyBooking(record) {
SeaExportCopy({ id: record.id }).then(res => { SeaExportCopy({ id: record.id }).then((res) => {
reload() reload()
}) })
// go(`/BookingDetail?id=${record.id}&isCopy=${true}`) // go(`/BookingDetail?id=${record.id}&isCopy=${true}`)
@ -526,7 +526,4 @@
justify-content: space-between; justify-content: space-between;
} }
} }
.iconLock {
color: rgba(22, 119, 255, 1);
}
</style> </style>

Loading…
Cancel
Save