From c0d0fcfb502f27099205960f03c886cf0704181f Mon Sep 17 00:00:00 2001 From: lijingjia Date: Thu, 1 Aug 2024 16:38:23 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/common/index.ts | 7 +- src/views/baseinfo/infoclient/columns.tsx | 4 +- src/views/system/user/UserModal.vue | 2 +- src/views/system/user/bankInfo.vue | 15 +-- src/views/system/user/bankInfoModal.vue | 24 ++++- src/views/system/user/columns.tsx | 115 +++++++++++++++++++++- src/views/system/user/index.vue | 2 - 7 files changed, 145 insertions(+), 24 deletions(-) diff --git a/src/api/common/index.ts b/src/api/common/index.ts index 8556bf7b..e11ea4da 100644 --- a/src/api/common/index.ts +++ b/src/api/common/index.ts @@ -29,7 +29,7 @@ enum Api { getUserTenants = '/mainApi/Common/GetUserTenants', ChangeTenant = '/mainApi/Common/ChangeTenant', getClientList = '/mainApi/WxUser/GetInfoClientList', - getCountryList = '/mainApi/Common/GetCountryList', + getCountryList = '/mainApi/Common/GetClientCountrySelectList', getTrainSelectList = '/mainApi/Common/GetTrainSelectList', registerCompany = '/mainApi/Common/CompanyRegister', getClientRoleList = '/mainApi/Common/GetClientRoleList', @@ -380,11 +380,10 @@ export function getClientList(data: PageRequest) { }) } -export function getCountryList(data: PageRequest) { +export function getCountryList() { return request({ url: Api.getCountryList, - method: 'post', - data, + method: 'get' }) } diff --git a/src/views/baseinfo/infoclient/columns.tsx b/src/views/baseinfo/infoclient/columns.tsx index 7782b2c6..a06deff1 100644 --- a/src/views/baseinfo/infoclient/columns.tsx +++ b/src/views/baseinfo/infoclient/columns.tsx @@ -1514,11 +1514,13 @@ export const Tablecolumns: BasicColumn[] = [ title: '所在国', dataIndex: 'countryName', align: 'left', + width: 120, }, { title: '是否开票默认账户', dataIndex: 'isInvoiceDefault', align: 'left', + width: 120, customRender: ({ text }) => { if (text) { return @@ -1531,7 +1533,7 @@ export const Tablecolumns: BasicColumn[] = [ title: '备注', dataIndex: 'note', align: 'left', - width: 80, + width: 150, }, ] export const CADformSchema: FormSchema[] = [ diff --git a/src/views/system/user/UserModal.vue b/src/views/system/user/UserModal.vue index 8948d4cf..38a26232 100644 --- a/src/views/system/user/UserModal.vue +++ b/src/views/system/user/UserModal.vue @@ -79,6 +79,7 @@ @@ -149,7 +150,6 @@ async function handleSave(exit) { try { const values = await validate() - console.log(values) setModalProps({ confirmLoading: true, loading: true }) const res: API.DataResult = await editUser(values) if (res.succeeded) { diff --git a/src/views/system/user/bankInfo.vue b/src/views/system/user/bankInfo.vue index c712356c..4cc99319 100644 --- a/src/views/system/user/bankInfo.vue +++ b/src/views/system/user/bankInfo.vue @@ -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) }, ]" /> @@ -64,7 +63,7 @@ }) }, beforeFetch: (p) => { - p[''] + p['clientId'] = props.id return formatParams(p) }, columns: Tablecolumns, @@ -99,18 +98,12 @@ const removeArr = select.map((item) => { return item.id }) - // ApiDel({ ids: removeArr }).then((res) => { - // createMessage.warning(res.message) - // reload() - // }) } function handleAudit(record: Recordable) { - if (!checkPermissions('op:edi:edit')) { openModal(true, { record, - isUpdate: true, - }) - } + isUpdate: true, + }) } function handleSuccess() { reload() diff --git a/src/views/system/user/bankInfoModal.vue b/src/views/system/user/bankInfoModal.vue index e180bf8c..d350e3cc 100644 --- a/src/views/system/user/bankInfoModal.vue +++ b/src/views/system/user/bankInfoModal.vue @@ -8,12 +8,19 @@ v-bind="$attrs" :use-wrapper="true" :title="getTitle" - width="30%" + width="40%" @register="registerModal" @ok="handleSave" @close="closeModal" > - + + +