|
|
@ -7,7 +7,7 @@
|
|
|
|
<div class="ds-pay-apply">
|
|
|
|
<div class="ds-pay-apply">
|
|
|
|
<BasicTable @register="registerTable" @row-dbClick="edit">
|
|
|
|
<BasicTable @register="registerTable" @row-dbClick="edit">
|
|
|
|
<template #toolbar>
|
|
|
|
<template #toolbar>
|
|
|
|
<TableActionBar :selectRow="getSelectRows" :reload="reload"></TableActionBar>
|
|
|
|
<TableActionBar :selectRow="getSelectRows" :reload="reload" @exportFile="exportFile"></TableActionBar>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<template v-slot:bodyCell="{ column, record }">
|
|
|
|
<template v-slot:bodyCell="{ column, record }">
|
|
|
|
<!-- 复制单号 -->
|
|
|
|
<!-- 复制单号 -->
|
|
|
@ -35,10 +35,13 @@
|
|
|
|
import { GetList } from './api'
|
|
|
|
import { GetList } from './api'
|
|
|
|
import { columns, searchFormSchema, FeeStatus } from './columns'
|
|
|
|
import { columns, searchFormSchema, FeeStatus } from './columns'
|
|
|
|
import { useGo } from '/@/hooks/web/usePage'
|
|
|
|
import { useGo } from '/@/hooks/web/usePage'
|
|
|
|
|
|
|
|
import { exportExcel } from '/@/hooks/web/common'
|
|
|
|
const go = useGo()
|
|
|
|
const go = useGo()
|
|
|
|
const [registerTable, { reload, getForm, getPaginationRef, getSelectRows }] = useTable({
|
|
|
|
const params = ref([])
|
|
|
|
|
|
|
|
const [registerTable, { reload, getForm, getPaginationRef, getSelectRows, getColumns }] = useTable({
|
|
|
|
title: '',
|
|
|
|
title: '',
|
|
|
|
api: async (p) => {
|
|
|
|
api: async (p) => {
|
|
|
|
|
|
|
|
params.value = p
|
|
|
|
const res = await GetList(p)
|
|
|
|
const res = await GetList(p)
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
resolve({ data: [...res.data], total: res.count })
|
|
|
|
resolve({ data: [...res.data], total: res.count })
|
|
|
@ -56,22 +59,36 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
let condition: API.ConditionItem[] = []
|
|
|
|
let condition: API.ConditionItem[] = []
|
|
|
|
if (!!data.UserName) {
|
|
|
|
if (!!data.billNO) {
|
|
|
|
condition.push({
|
|
|
|
condition.push({
|
|
|
|
FieldName: 'UserName',
|
|
|
|
FieldName: 'billNO',
|
|
|
|
FieldValue: data.UserName,
|
|
|
|
FieldValue: data.billNO,
|
|
|
|
ConditionalType: 1,
|
|
|
|
ConditionalType: 1,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!!data.UserCode) {
|
|
|
|
if (!!data.applicationNO) {
|
|
|
|
condition.push({
|
|
|
|
condition.push({
|
|
|
|
FieldName: 'UserCode',
|
|
|
|
FieldName: 'applicationNO',
|
|
|
|
FieldValue: data.UserCode,
|
|
|
|
FieldValue: data.applicationNO,
|
|
|
|
ConditionalType: 1,
|
|
|
|
ConditionalType: 1,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!!data.customerId) {
|
|
|
|
|
|
|
|
condition.push({
|
|
|
|
|
|
|
|
FieldName: 'customerId',
|
|
|
|
|
|
|
|
FieldValue: data.customerId,
|
|
|
|
|
|
|
|
ConditionalType: 1,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!!data.status) {
|
|
|
|
|
|
|
|
condition.push({
|
|
|
|
|
|
|
|
FieldName: 'status',
|
|
|
|
|
|
|
|
FieldValue: data.status,
|
|
|
|
|
|
|
|
ConditionalType: 1,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
console.log(condition)
|
|
|
|
postParam.queryCondition = JSON.stringify(condition)
|
|
|
|
postParam.queryCondition = JSON.stringify(condition)
|
|
|
|
// console.log(postParam);
|
|
|
|
|
|
|
|
return postParam
|
|
|
|
return postParam
|
|
|
|
},
|
|
|
|
},
|
|
|
|
columns,
|
|
|
|
columns,
|
|
|
@ -87,8 +104,13 @@
|
|
|
|
bordered: true,
|
|
|
|
bordered: true,
|
|
|
|
showIndexColumn: true,
|
|
|
|
showIndexColumn: true,
|
|
|
|
canResize: false,
|
|
|
|
canResize: false,
|
|
|
|
immediate: false
|
|
|
|
immediate: false,
|
|
|
|
|
|
|
|
id: '0'
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
// 导出Excel
|
|
|
|
|
|
|
|
const exportFile = () => {
|
|
|
|
|
|
|
|
exportExcel(GetList, params.value, getColumns(), '费用申请')
|
|
|
|
|
|
|
|
}
|
|
|
|
const copyNo = (e, v) => {
|
|
|
|
const copyNo = (e, v) => {
|
|
|
|
e.stopPropagation()
|
|
|
|
e.stopPropagation()
|
|
|
|
navigator.clipboard.writeText(v)
|
|
|
|
navigator.clipboard.writeText(v)
|
|
|
|