|
|
@ -23,8 +23,7 @@
|
|
|
|
{
|
|
|
|
{
|
|
|
|
icon: 'clarity:note-edit-line',
|
|
|
|
icon: 'clarity:note-edit-line',
|
|
|
|
tooltip: '编辑',
|
|
|
|
tooltip: '编辑',
|
|
|
|
onClick: handleAudit.bind(null, record),
|
|
|
|
onClick: handleAudit.bind(null, record)
|
|
|
|
disabled: checkPermissions('op:edi:edit'),
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]"
|
|
|
|
]"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
@ -40,6 +39,7 @@
|
|
|
|
import { formatParams } from '/@/hooks/web/common'
|
|
|
|
import { formatParams } from '/@/hooks/web/common'
|
|
|
|
import { BasicTable, useTable, TableAction } from '/@/components/Table'
|
|
|
|
import { BasicTable, useTable, TableAction } from '/@/components/Table'
|
|
|
|
import { GetClientBankList } from './api'
|
|
|
|
import { GetClientBankList } from './api'
|
|
|
|
|
|
|
|
import { cbDelete } from '/@/views/baseinfo/infoclient/api'
|
|
|
|
import { useModal } from '/@/components/Modal'
|
|
|
|
import { useModal } from '/@/components/Modal'
|
|
|
|
import BankModal from './bankInfoModal.vue'
|
|
|
|
import BankModal from './bankInfoModal.vue'
|
|
|
|
import { Tablecolumns } from '/@/views/baseinfo/infoclient/columns'
|
|
|
|
import { Tablecolumns } from '/@/views/baseinfo/infoclient/columns'
|
|
|
@ -64,7 +64,7 @@
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
beforeFetch: (p) => {
|
|
|
|
beforeFetch: (p) => {
|
|
|
|
p['']
|
|
|
|
p['clientId'] = props.id
|
|
|
|
return formatParams(p)
|
|
|
|
return formatParams(p)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
columns: Tablecolumns,
|
|
|
|
columns: Tablecolumns,
|
|
|
@ -88,6 +88,7 @@
|
|
|
|
openModal(true, {
|
|
|
|
openModal(true, {
|
|
|
|
isParent: false,
|
|
|
|
isParent: false,
|
|
|
|
isUpdate: false,
|
|
|
|
isUpdate: false,
|
|
|
|
|
|
|
|
id: props.id
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function handleDel() {
|
|
|
|
function handleDel() {
|
|
|
@ -96,21 +97,20 @@
|
|
|
|
createMessage.warning('请选择一条数据')
|
|
|
|
createMessage.warning('请选择一条数据')
|
|
|
|
return false
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const removeArr = select.map((item) => {
|
|
|
|
const ids = select.map((item) => {
|
|
|
|
return item.id
|
|
|
|
return item.id
|
|
|
|
})
|
|
|
|
})
|
|
|
|
// ApiDel({ ids: removeArr }).then((res) => {
|
|
|
|
cbDelete({ ids }).then(res => {
|
|
|
|
// createMessage.warning(res.message)
|
|
|
|
createMessage.success('删除成功!')
|
|
|
|
// reload()
|
|
|
|
reload()
|
|
|
|
// })
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function handleAudit(record: Recordable) {
|
|
|
|
function handleAudit(record: Recordable) {
|
|
|
|
if (!checkPermissions('op:edi:edit')) {
|
|
|
|
|
|
|
|
openModal(true, {
|
|
|
|
openModal(true, {
|
|
|
|
record,
|
|
|
|
record,
|
|
|
|
isUpdate: true,
|
|
|
|
isUpdate: true,
|
|
|
|
})
|
|
|
|
id: props.id
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function handleSuccess() {
|
|
|
|
function handleSuccess() {
|
|
|
|
reload()
|
|
|
|
reload()
|
|
|
|