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 'ant/index.less';
@import './theme.less';
@import './iconfont.less';
input:-webkit-autofill {
box-shadow: 0 0 0 1000px white inset !important;

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

@ -6,6 +6,17 @@
<span class="iconfont icon-new_document"></span>
添加集装箱信息
</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')">
<span class="iconfont icon-xiazai"></span>
导入集装箱信息
@ -43,7 +54,7 @@
import { checkPermissions } from '/@/hooks/Permissions/index'
import { BasicTable, useTable, TableAction, SorterResult } from '/@/components/Table'
import ImportFlow from './importFlow.vue'
import { ApiList, ApiImport } from './api'
import { ApiList, ApiImport, ApiDel } from './api'
import { useModal } from '/@/components/Modal'
import TenantAuditStepModal from './TenantAuditStepModal.vue'
import { columns, searchFormSchema } from './columns'
@ -52,7 +63,7 @@
const visible = ref<boolean>(false)
const refImportFlow = ref()
const [registerModal, { openModal }] = useModal()
const [registerTable, { reload, getForm, getPaginationRef }] = useTable({
const [registerTable, { reload, getForm, getSelectRows }] = useTable({
title: '集装箱信息列表',
api: async (p) => {
const res: API.DataResult = await ApiList(p)
@ -116,6 +127,26 @@
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() {
openModal(true, {
isParent: false,

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

@ -6,6 +6,17 @@
<span class="iconfont icon-new_document"></span>
添加付费方式
</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')">
<span class="iconfont icon-xiazai"></span>
导入付费方式
@ -43,7 +54,7 @@
import { checkPermissions } from '/@/hooks/Permissions/index'
import { BasicTable, useTable, TableAction } from '/@/components/Table'
import ImportFlow from './importFlow.vue'
import { ApiList, ApiImport } from './api'
import { ApiList, ApiImport, ApiDel } from './api'
import { useModal } from '/@/components/Modal'
import TenantAuditStepModal from './TenantAuditStepModal.vue'
import { columns, searchFormSchema } from './columns'
@ -52,7 +63,7 @@
const visible = ref<boolean>(false)
const refImportFlow = ref()
const [registerModal, { openModal }] = useModal()
const [registerTable, { reload, getForm }] = useTable({
const [registerTable, { reload, getForm, getSelectRows }] = useTable({
title: '',
api: async (p) => {
const res: API.DataResult = await ApiList(p)
@ -116,6 +127,26 @@
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() {
openModal(true, {
isParent: false,

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

@ -10,6 +10,17 @@
<span class="iconfont icon-new_document"></span>
添加签单方式
</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
type="link"
@click="importFlow"
@ -51,7 +62,7 @@
import { checkPermissions } from '/@/hooks/Permissions/index'
import { BasicTable, useTable, TableAction, SorterResult } from '/@/components/Table'
import ImportFlow from './importFlow.vue'
import { ApiList, ApiImport } from './api'
import { ApiList, ApiImport, ApiDel } from './api'
import { useModal } from '/@/components/Modal'
import TenantAuditStepModal from './TenantAuditStepModal.vue'
import { columns, searchFormSchema } from './columns'
@ -60,7 +71,7 @@
const visible = ref<boolean>(false)
const refImportFlow = ref()
const [registerModal, { openModal }] = useModal()
const [registerTable, { reload, getForm, getPaginationRef }] = useTable({
const [registerTable, { reload, getForm, getSelectRows }] = useTable({
title: '签单方式列表',
api: async (p) => {
const res: API.DataResult = await ApiList(p)
@ -124,6 +135,26 @@
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() {
openModal(true, {
isParent: false,

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

@ -6,7 +6,7 @@
<span class="iconfont icon-new_document"></span>
添加包装类型
</a-button>
<!-- <a-popconfirm
<a-popconfirm
title="确定删除当前选中数据?"
ok-text="是"
cancel-text="否"
@ -16,7 +16,7 @@
<span class="iconfont icon-shanchu21"></span>
删除包装类型
</a-button>
</a-popconfirm> -->
</a-popconfirm>
<a-button type="link" @click="importFlow" :disabled="checkPermissions('op:package:import')">
<span class="iconfont icon-xiazai"></span>
导入包装类型
@ -54,7 +54,7 @@
import { checkPermissions } from '/@/hooks/Permissions/index'
import { BasicTable, useTable, TableAction } from '/@/components/Table'
import ImportFlow from './importFlow.vue'
import { ApiList, ApiImport } from './api'
import { ApiList, ApiImport, ApiDel } from './api'
import { useModal } from '/@/components/Modal'
import TenantAuditStepModal from './TenantAuditStepModal.vue'
import { columns, searchFormSchema } from './columns'
@ -127,26 +127,26 @@
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
// })
// }
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()
// })
// }
ApiDel(ApiData).then((res) => {
console.log(res)
notification.success({ message: res.message, duration: 3 })
reload()
})
}
function handleCreate() {
openModal(true, {
isParent: false,

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

Loading…
Cancel
Save