From 93eaa67fbeda8b42c070ee71068f0cbfe4c720f0 Mon Sep 17 00:00:00 2001 From: lijingjia Date: Tue, 30 Jul 2024 19:53:08 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=96=B0=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/org.ts | 13 +- src/api/system/user.ts | 11 +- src/design/ant/form.less | 1 + src/design/ant/modal.less | 2 +- src/store/modules/configOptions.ts | 11 +- src/store/modules/options.ts | 4 +- .../baseinfo/lanes/TenantAuditStepModal.vue | 4 +- .../operation/seaexport/api/BookingLedger.js | 19 ++ .../seaexport/detail/modules/PersonModal.vue | 23 +- .../seaexport/detail/modules/baseInfo.tsx | 157 ++++++++++---- .../seaexport/detail/modules/basicInfo.vue | 146 ++++++------- .../seaexport/detail/modules/contactList.vue | 50 ++++- src/views/system/org/BankModal.vue | 68 +++--- src/views/system/org/OrgModal.vue | 88 ++++---- src/views/system/org/columns.tsx | 47 ++--- src/views/system/org/index.vue | 33 ++- src/views/system/user/UserModal.vue | 196 ++++++++++++++---- src/views/system/user/columns.tsx | 165 +++++++-------- src/views/system/user/index.vue | 83 ++++---- 19 files changed, 699 insertions(+), 422 deletions(-) diff --git a/src/api/system/org.ts b/src/api/system/org.ts index 7bb3c600..c66d8a30 100644 --- a/src/api/system/org.ts +++ b/src/api/system/org.ts @@ -8,7 +8,7 @@ enum Api { GetOrgInfo = '/mainApi/Org/GetOrgInfo', GetOrgTree = '/mainApi/Org/GetOrgTree', GetOrgList = '/mainApi/Common/GetOrgList', - + BatchDelOrg = '/mainApi/Org/BatchDelOrg', GetBankList = '/mainApi/Bank/GetBankList', EditBank = '/mainApi/Bank/EditBank', GetBankInfo = '/mainApi/Bank/GetBankInfo', @@ -70,4 +70,13 @@ export function getBankInfo(query: { id: string }) { method: 'get', params: query, }) -} \ No newline at end of file +} + +// 组织机构删除 +export function BatchDelOrg(data: any) { + return request({ + url: Api.BatchDelOrg, + method: 'post', + data + }) +} diff --git a/src/api/system/user.ts b/src/api/system/user.ts index b731089f..7f954cb2 100644 --- a/src/api/system/user.ts +++ b/src/api/system/user.ts @@ -6,6 +6,7 @@ enum Api { list = '/mainApi/User/GetUserList', editUser = '/mainApi/User/EditUser', getUser = '/mainApi/User/GetUserInfo', + BatchDelUser = '/mainApi/User/BatchDelUser' } export function getUserList(data: PageRequest) { return request({ @@ -26,6 +27,14 @@ export function getUser(query: { id: string }) { return request({ url: Api.getUser, method: 'get', - params: query, + params: query }) } +export function BatchDelUser(data: any) { + return request({ + url: Api.BatchDelUser, + method: 'post', + data + }) +} + diff --git a/src/design/ant/form.less b/src/design/ant/form.less index bc2ba63d..3af79d90 100644 --- a/src/design/ant/form.less +++ b/src/design/ant/form.less @@ -74,6 +74,7 @@ border-left: 0.7px solid #ABCDFF; color: #257AFA; padding-left: 3px; + margin-left: 4px; } } } diff --git a/src/design/ant/modal.less b/src/design/ant/modal.less index b184b6e5..d2dab0c5 100644 --- a/src/design/ant/modal.less +++ b/src/design/ant/modal.less @@ -36,7 +36,7 @@ .ant-modal-footer { border-top: none!important; - padding: 5px 30px 20px!important; + padding: 15px 30px 20px!important; .ant-btn { height: 26px; width: 100px; diff --git a/src/store/modules/configOptions.ts b/src/store/modules/configOptions.ts index 561afe75..f24dcfa8 100644 --- a/src/store/modules/configOptions.ts +++ b/src/store/modules/configOptions.ts @@ -22,7 +22,8 @@ import { GetTruckClientList, GetDispatcherList, GetFactorySelectList, - GetCodeCountryList + GetCodeCountryList, + GetClientGoodsList } from '/@/views/operation/seaexport/api/BookingLedger' import { getList } from '/@/views/flowcenter/flowInstances/api' import { GetFeeCurrencySelectList, GetClientListByCode, GetCtnSelectList, GetTenantParamSelectList } from '/@/api/common/index' @@ -177,5 +178,11 @@ export default { return GetTenantParamSelectList().then((res) => { return res.data }) - } + }, + // 商品 + GetClientGoodsList: () => { + return GetClientGoodsList().then((res) => { + return res.data + }) + }, } diff --git a/src/store/modules/options.ts b/src/store/modules/options.ts index 29cc5307..b96cc5e1 100644 --- a/src/store/modules/options.ts +++ b/src/store/modules/options.ts @@ -59,7 +59,9 @@ export const useOptionsStore = defineStore({ // 箱型 GetCtnSelectList: null, // 客户参数类别 - GetTenantParamSelectList: null + GetTenantParamSelectList: null, + // 商品 + GetClientGoodsList: null, }), getters: { // 通过code获取下拉字典(code)就是接口尾部单词 diff --git a/src/views/baseinfo/lanes/TenantAuditStepModal.vue b/src/views/baseinfo/lanes/TenantAuditStepModal.vue index e1e1d275..d0b31335 100644 --- a/src/views/baseinfo/lanes/TenantAuditStepModal.vue +++ b/src/views/baseinfo/lanes/TenantAuditStepModal.vue @@ -51,7 +51,7 @@ const loading = ref(false) const rowId = ref('') const { createMessage } = useMessage() - const [registerForm, { resetFields, setFieldsValue, validate, getFieldList }] = useForm({ + const [registerForm, { resetFields, setFieldsValue, validate }] = useForm({ labelWidth: 100, schemas: formSchema, showActionButtonGroup: false, @@ -64,7 +64,7 @@ // setModalProps({ confirmLoading: true }); rowId.value = data.record.id const res: API.DataResult = await ApiInfo({ id: unref(rowId) }) - getFieldList() + // getFieldList() if (res.succeeded) { setFieldsValue({ ...res.data, diff --git a/src/views/operation/seaexport/api/BookingLedger.js b/src/views/operation/seaexport/api/BookingLedger.js index e96b5ffc..1f50ad20 100644 --- a/src/views/operation/seaexport/api/BookingLedger.js +++ b/src/views/operation/seaexport/api/BookingLedger.js @@ -2045,3 +2045,22 @@ export function SeaExportTaskAudit(data) { data }) } + + +// 获取商品下拉列表 (Auth) +export function GetClientGoodsList(params) { + return request({ + url: '/mainApi/ClientCommon/GetClientGoodsList', + method: 'get', + params + }) +} + +// 删除联系人 +export function BatchDelBusinessOrderContact(data) { + return request({ + url: '/opApi/BusinessOrderContact/BatchDelBusinessOrderContact', + method: 'post', + data + }) +} diff --git a/src/views/operation/seaexport/detail/modules/PersonModal.vue b/src/views/operation/seaexport/detail/modules/PersonModal.vue index 537ac081..b43506fa 100644 --- a/src/views/operation/seaexport/detail/modules/PersonModal.vue +++ b/src/views/operation/seaexport/detail/modules/PersonModal.vue @@ -11,21 +11,6 @@ > - - \ No newline at end of file diff --git a/src/views/system/org/BankModal.vue b/src/views/system/org/BankModal.vue index 8a48ce48..dfb03bae 100644 --- a/src/views/system/org/BankModal.vue +++ b/src/views/system/org/BankModal.vue @@ -8,33 +8,27 @@ @ok="handleSave" > + + @@ -62,15 +56,17 @@ const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => { resetFields() - console.log(data, 1111111111) - - // initData().then(async () => { setModalProps({ confirmLoading: false, loading: true }) isUpdate.value = !!data?.isUpdate linkId.value = data.linkId ? data.linkId : '' if (unref(isUpdate)) { rowId.value = data.record.id ? data.record.id : data.record.value const res: API.DataResult = await getBankInfo({ id: unref(rowId) }) + if (res.data.status == 1) { + res.data.status = true + } else { + res.data.status = false + } if (res.succeeded) { setFieldsValue({ ...res.data, @@ -78,32 +74,35 @@ } } else { setFieldsValue({ permissionIdentity: unref(2) }) + console.log(data.orgFullName) + if (data.orgFullName) setFieldsValue({ accountName: data.orgFullName }) } setModalProps({ loading: false }) // }) }) const getTitle = computed(() => (!unref(isUpdate) ? '新增账户信息' : '编辑账户信息')) - + // 监听Switch + const changeIsDefault = (v) => { + setFieldsValue({ isDefault: v }) + } + const changeStatus = (v) => { + setFieldsValue({ status: v }) + } async function handleSave(exit) { try { const values = await validate() setModalProps({ confirmLoading: true, loading: true }) values.linkId = values.linkId ? values.linkId : linkId.value + if (values.status) { + values.status == 1 + } else { + values.status == 0 + } const res: API.DataResult = await editBank(values) if (res.succeeded) { createMessage.success(res.message) emit('success') - //刷新页面 - if (!exit) { - if (unref(isUpdate)) { - await refresh() - } else { - rowId.value = res.data - isUpdate.value = true - await refresh() - } - } } else { createMessage.error(res.message) } @@ -123,3 +122,16 @@ } } + + diff --git a/src/views/system/org/OrgModal.vue b/src/views/system/org/OrgModal.vue index a5911c44..82508821 100644 --- a/src/views/system/org/OrgModal.vue +++ b/src/views/system/org/OrgModal.vue @@ -10,17 +10,21 @@ -