|
|
|
@ -1,41 +1,13 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<div class="p20">
|
|
|
|
|
<BasicTable class="ds-table" @register="registerTable" @row-dbClick="handleAudit">
|
|
|
|
|
<template #tableTitle>
|
|
|
|
|
<div class="tableTitleBox">
|
|
|
|
|
<a-tooltip placement="top" :mouseEnterDelay="0.5">
|
|
|
|
|
<template #title>
|
|
|
|
|
<span>新建</span>
|
|
|
|
|
</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" />
|
|
|
|
|
</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>
|
|
|
|
|
<TableButton
|
|
|
|
|
:show="{ add: 'op:infoclient:add', del: null }"
|
|
|
|
|
@add="handleCreate"
|
|
|
|
|
@del="handleDel"
|
|
|
|
|
>
|
|
|
|
|
</TableButton>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:bodyCell="{ column, record }">
|
|
|
|
|
<!-- 审批状态 -->
|
|
|
|
@ -85,26 +57,12 @@
|
|
|
|
|
{{ FnRdefaultContact_jobs(record) }}
|
|
|
|
|
</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>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
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 { formatParams } from '/@/hooks/web/common'
|
|
|
|
|
import {
|
|
|
|
@ -118,7 +76,6 @@
|
|
|
|
|
ClientSourceList,
|
|
|
|
|
ClientFrtList,
|
|
|
|
|
Jobres,
|
|
|
|
|
formSchema,
|
|
|
|
|
} from './columns'
|
|
|
|
|
import { useMessage } from '/@/hooks/web/useMessage'
|
|
|
|
|
const { notification } = useMessage()
|
|
|
|
@ -128,8 +85,6 @@
|
|
|
|
|
const route = useRoute()
|
|
|
|
|
import { useAppStore } from '/@/store/modules/app'
|
|
|
|
|
import dayjs from 'dayjs'
|
|
|
|
|
// 空数据表格高度
|
|
|
|
|
const tbHeight = window.innerHeight - 250
|
|
|
|
|
const appStore = useAppStore()
|
|
|
|
|
function FnRdefaultContact_jobs(record) {
|
|
|
|
|
let RData = '-'
|
|
|
|
@ -144,10 +99,10 @@
|
|
|
|
|
}
|
|
|
|
|
return RData
|
|
|
|
|
}
|
|
|
|
|
const [registerTable, { reload, getForm, getVxeSelectRows }] = useTable({
|
|
|
|
|
const [registerTable, { reload, getVxeSelectRows }] = useTable({
|
|
|
|
|
title: '',
|
|
|
|
|
api: async (p) => {
|
|
|
|
|
var res = null
|
|
|
|
|
var res: any = null
|
|
|
|
|
if (route.path == '/Supplierinfoclient') {
|
|
|
|
|
// 供应商的新接口(临时注释,张工修改一下吧)
|
|
|
|
|
res = await GetSupplierList(p)
|
|
|
|
@ -191,7 +146,7 @@
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
beforeFetch: (p) => {
|
|
|
|
|
const otherParams = []
|
|
|
|
|
const otherParams: any = []
|
|
|
|
|
if (route.path == '/Customerinfoclient') {
|
|
|
|
|
p.isCustomer = 1
|
|
|
|
|
otherParams.push({
|
|
|
|
@ -232,25 +187,14 @@
|
|
|
|
|
useSearchForm: true,
|
|
|
|
|
showTableSetting: true,
|
|
|
|
|
bordered: true,
|
|
|
|
|
showIndexColumn: false,
|
|
|
|
|
indexColumnProps: {
|
|
|
|
|
width: 60,
|
|
|
|
|
},
|
|
|
|
|
showIndexColumn: true,
|
|
|
|
|
canResize: true,
|
|
|
|
|
resizeHeightOffset: 15,
|
|
|
|
|
autoHeight: tbHeight,
|
|
|
|
|
immediate: true,
|
|
|
|
|
resizeHeightOffset: 45,
|
|
|
|
|
tableComponent: 'vxe',
|
|
|
|
|
actionColumn: {
|
|
|
|
|
width: 60,
|
|
|
|
|
title: '操作',
|
|
|
|
|
dataIndex: 'action',
|
|
|
|
|
fixed: 'right',
|
|
|
|
|
},
|
|
|
|
|
id: '0',
|
|
|
|
|
autoHeight: window.innerHeight - 330.5,
|
|
|
|
|
})
|
|
|
|
|
function handleSuccess() {
|
|
|
|
|
reload()
|
|
|
|
|
}
|
|
|
|
|
function handleCreate() {
|
|
|
|
|
const addNum = Math.round(Math.random() * 1000)
|
|
|
|
|
go(`${route.fullPath}Detail?addNum=${addNum}`)
|
|
|
|
@ -268,7 +212,7 @@
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
if (ids.length) {
|
|
|
|
|
let NoUsageIds = []
|
|
|
|
|
let NoUsageIds: any = []
|
|
|
|
|
let type = true
|
|
|
|
|
let res: any = await ApiGetUsage({ ids })
|
|
|
|
|
if (res.succeeded) {
|
|
|
|
|