|
|
|
@ -47,37 +47,21 @@
|
|
|
|
|
onClick: handleAudit.bind(null, record),
|
|
|
|
|
disabled: checkPermissions('op:infoclient:edit'),
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// icon: 'ant-design:delete-outlined',
|
|
|
|
|
// tooltip: '删除',
|
|
|
|
|
// color: 'error',
|
|
|
|
|
// popConfirm: {
|
|
|
|
|
// title: '是否要删除此条数据?',
|
|
|
|
|
// okText: '是',
|
|
|
|
|
// cancelText: '否',
|
|
|
|
|
// confirm: handleDelete.bind(null, record)
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
]"
|
|
|
|
|
/>
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
</BasicTable>
|
|
|
|
|
<!-- <TenantAuditStepModal @register="registerModal" @success="handleSuccess" /> -->
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
import { ref } from 'vue'
|
|
|
|
|
import { Divider } from 'ant-design-vue'
|
|
|
|
|
import { checkPermissions } from '/@/hooks/Permissions/index'
|
|
|
|
|
import { BasicTable, useTable, TableAction, SorterResult } from '/@/components/Table'
|
|
|
|
|
import { BasicTable, useTable, TableAction } from '/@/components/Table'
|
|
|
|
|
import { getCodeGoodsTypeList, Delete } from './api'
|
|
|
|
|
import {
|
|
|
|
|
GetClientSourceSelectList,
|
|
|
|
|
GetClientSourceDetailSelectList,
|
|
|
|
|
} from '/@/views/operation/seaexport/api/BookingLedger'
|
|
|
|
|
import { useModal } from '/@/components/Modal'
|
|
|
|
|
import TenantAuditStepModal from './TenantAuditStepModal.vue'
|
|
|
|
|
import { columns, searchFormSchema, formSchema } from './columns'
|
|
|
|
|
import { useMessage } from '/@/hooks/web/useMessage'
|
|
|
|
|
const { notification } = useMessage()
|
|
|
|
@ -85,12 +69,10 @@
|
|
|
|
|
const go = useGo()
|
|
|
|
|
import { useAppStore } from '/@/store/modules/app'
|
|
|
|
|
const appStore = useAppStore()
|
|
|
|
|
const [registerModal, { openModal }] = useModal()
|
|
|
|
|
|
|
|
|
|
const [registerTable, { reload, getForm, getSelectRows }] = useTable({
|
|
|
|
|
title: '',
|
|
|
|
|
api: async (p) => {
|
|
|
|
|
const res: API.DataResult = await getCodeGoodsTypeList(p)
|
|
|
|
|
const res = await getCodeGoodsTypeList(p)
|
|
|
|
|
return new Promise(async (resolve) => {
|
|
|
|
|
let SourceData: any = []
|
|
|
|
|
if (res?.data) {
|
|
|
|
@ -224,15 +206,11 @@
|
|
|
|
|
function handleCreate() {
|
|
|
|
|
const addNum = Math.round(Math.random() * 1000)
|
|
|
|
|
go(`/infoclientDetail?addNum=${addNum}`)
|
|
|
|
|
// openModal(true, {
|
|
|
|
|
// isParent: false,
|
|
|
|
|
// isUpdate: false,
|
|
|
|
|
// })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 删除
|
|
|
|
|
async function handleDel(record) {
|
|
|
|
|
let ids = []
|
|
|
|
|
async function handleDel() {
|
|
|
|
|
let ids: any = []
|
|
|
|
|
let StateDelType = true
|
|
|
|
|
getSelectRows().forEach((item: any) => {
|
|
|
|
|
if (item.auditStatus == 0) {
|
|
|
|
@ -242,7 +220,7 @@
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
if (ids.length) {
|
|
|
|
|
const res: API.DataResult = await Delete({
|
|
|
|
|
const res = await Delete({
|
|
|
|
|
id: '',
|
|
|
|
|
ids: ids,
|
|
|
|
|
})
|
|
|
|
@ -258,23 +236,15 @@
|
|
|
|
|
notification.warning({ message: '待审核数据,禁止删除!', duration: 3 })
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function handleAudit(record: Recordable) {
|
|
|
|
|
function handleAudit(record) {
|
|
|
|
|
if (!checkPermissions('op:infoclient:edit')) {
|
|
|
|
|
go(`/infoclientDetail?id=${record.id}`)
|
|
|
|
|
// openModal(true, {
|
|
|
|
|
// record,
|
|
|
|
|
// isUpdate: true,
|
|
|
|
|
// })
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
|
.SvgImg {
|
|
|
|
|
width: 12px;
|
|
|
|
|
|
|
|
|
|
// &:hover {
|
|
|
|
|
// background: #257afa;
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
.tableTitleBox {
|
|
|
|
|
.ant-btn-link {
|
|
|
|
|