往来单位样式 部分

frame-financialTax-yjl-1204
张同海 3 weeks ago
parent 5e2b076108
commit 10b7200fb7

@ -1,41 +1,13 @@
<template> <template>
<div> <div class="p20">
<BasicTable class="ds-table" @register="registerTable" @row-dbClick="handleAudit"> <BasicTable class="ds-table" @register="registerTable" @row-dbClick="handleAudit">
<template #tableTitle> <template #tableTitle>
<div class="tableTitleBox"> <TableButton
<a-tooltip placement="top" :mouseEnterDelay="0.5"> :show="{ add: 'op:infoclient:add', del: null }"
<template #title> @add="handleCreate"
<span>新建</span> @del="handleDel"
</template>
<span class="ds-action-svg-btn">
<a-button
v-repeat
type="link"
@click="handleCreate"
:disabled="checkPermissions('op:infoclient:add')"
> >
<img src="../../../assets/svg/infoclient/xinjian.svg" class="SvgImg" /> </TableButton>
</a-button>
</span>
</a-tooltip>
<a-tooltip placement="top" :mouseEnterDelay="0.5">
<template #title>
<span>删除</span>
</template>
<span class="ds-action-svg-btn">
<a-popconfirm
title="确定删除当前选中数据?"
ok-text="是"
cancel-text="否"
@confirm="handleDel"
>
<a-button v-repeat type="link">
<img src="../../../assets/svg/infoclient/shanchu.svg" class="SvgImg" />
</a-button>
</a-popconfirm>
</span>
</a-tooltip>
</div>
</template> </template>
<template v-slot:bodyCell="{ column, record }"> <template v-slot:bodyCell="{ column, record }">
<!-- 审批状态 --> <!-- 审批状态 -->
@ -85,26 +57,12 @@
{{ FnRdefaultContact_jobs(record) }} {{ FnRdefaultContact_jobs(record) }}
</template> </template>
</template> </template>
<template v-slot:tableAction="{ record }">
<a-tooltip placement="top" :mouseEnterDelay="0.5">
<template #title>
<span>编辑</span>
</template>
<a-button
:disabled="checkPermissions('op:infoclient:edit')"
type="link"
@click="handleAudit(record)"
>
<span class="iconfont icon-icon_519"></span>
</a-button>
</a-tooltip>
</template>
</BasicTable> </BasicTable>
</div> </div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { checkPermissions } from '/@/hooks/Permissions/index' import { checkPermissions } from '/@/hooks/Permissions/index'
import { BasicTable, useTable, TableAction } from '/@/components/Table' import { BasicTable, useTable } from '/@/components/Table'
import { getCodeGoodsTypeList, Delete, ApiGetUsage, GetSupplierList } from './api' import { getCodeGoodsTypeList, Delete, ApiGetUsage, GetSupplierList } from './api'
import { formatParams } from '/@/hooks/web/common' import { formatParams } from '/@/hooks/web/common'
import { import {
@ -118,7 +76,6 @@
ClientSourceList, ClientSourceList,
ClientFrtList, ClientFrtList,
Jobres, Jobres,
formSchema,
} from './columns' } from './columns'
import { useMessage } from '/@/hooks/web/useMessage' import { useMessage } from '/@/hooks/web/useMessage'
const { notification } = useMessage() const { notification } = useMessage()
@ -128,8 +85,6 @@
const route = useRoute() const route = useRoute()
import { useAppStore } from '/@/store/modules/app' import { useAppStore } from '/@/store/modules/app'
import dayjs from 'dayjs' import dayjs from 'dayjs'
//
const tbHeight = window.innerHeight - 250
const appStore = useAppStore() const appStore = useAppStore()
function FnRdefaultContact_jobs(record) { function FnRdefaultContact_jobs(record) {
let RData = '-' let RData = '-'
@ -144,10 +99,10 @@
} }
return RData return RData
} }
const [registerTable, { reload, getForm, getVxeSelectRows }] = useTable({ const [registerTable, { reload, getVxeSelectRows }] = useTable({
title: '', title: '',
api: async (p) => { api: async (p) => {
var res = null var res: any = null
if (route.path == '/Supplierinfoclient') { if (route.path == '/Supplierinfoclient') {
// //
res = await GetSupplierList(p) res = await GetSupplierList(p)
@ -191,7 +146,7 @@
}) })
}, },
beforeFetch: (p) => { beforeFetch: (p) => {
const otherParams = [] const otherParams: any = []
if (route.path == '/Customerinfoclient') { if (route.path == '/Customerinfoclient') {
p.isCustomer = 1 p.isCustomer = 1
otherParams.push({ otherParams.push({
@ -232,25 +187,14 @@
useSearchForm: true, useSearchForm: true,
showTableSetting: true, showTableSetting: true,
bordered: true, bordered: true,
showIndexColumn: false, showIndexColumn: true,
indexColumnProps: {
width: 60,
},
canResize: true, canResize: true,
resizeHeightOffset: 15,
autoHeight: tbHeight,
immediate: true, immediate: true,
resizeHeightOffset: 45,
tableComponent: 'vxe', tableComponent: 'vxe',
actionColumn: { id: '0',
width: 60, autoHeight: window.innerHeight - 330.5,
title: '操作',
dataIndex: 'action',
fixed: 'right',
},
}) })
function handleSuccess() {
reload()
}
function handleCreate() { function handleCreate() {
const addNum = Math.round(Math.random() * 1000) const addNum = Math.round(Math.random() * 1000)
go(`${route.fullPath}Detail?addNum=${addNum}`) go(`${route.fullPath}Detail?addNum=${addNum}`)
@ -268,7 +212,7 @@
}) })
if (ids.length) { if (ids.length) {
let NoUsageIds = [] let NoUsageIds: any = []
let type = true let type = true
let res: any = await ApiGetUsage({ ids }) let res: any = await ApiGetUsage({ ids })
if (res.succeeded) { if (res.succeeded) {

@ -1,15 +1,11 @@
<template> <template>
<div> <div class="p20">
<BasicTable class="ds-table" @register="registerTable"> <BasicTable class="ds-table" @register="registerTable">
<template #tableTitle> <template #tableTitle>
<a-button type="link" @click="FnAudit(1)"> <TableButton :show="{ add: false, del: false }">
<span class="iconfont icon-new_document"></span> <span class="iconfont icon-new_document" @click="FnAudit(1)"> </span>
审核 <span class="iconfont icon-new_document" @click="FnAudit(2)"> </span>
</a-button> </TableButton>
<a-button type="link" @click="FnAudit(2)">
<span class="iconfont icon-new_document"></span>
驳回
</a-button>
</template> </template>
</BasicTable> </BasicTable>
<a-modal <a-modal

Loading…
Cancel
Save