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