From ebf91d4e38a67264de0ec5f8601e9c0d68f4ae93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=90=8C=E6=B5=B7?= <14166000+zhangtonghai@user.noreply.gitee.com> Date: Fri, 2 Aug 2024 14:44:05 +0800 Subject: [PATCH] 08/02 --- src/design/ant/form.less | 34 +- .../CurrentState/columns.tsx | 36 +- .../infoclient/TenantAuditStepModal.vue | 213 ++++++---- src/views/baseinfo/infoclient/columns.tsx | 176 ++++---- .../infoclient/custTemplateDetail/index.vue | 21 +- .../infoclient/customerParams/columns.tsx | 10 +- .../infoclient/customerParams/index.vue | 21 +- src/views/baseinfo/infoclient/index.vue | 2 +- .../baseinfo/infoclient/menu2/columns.tsx | 60 ++- src/views/baseinfo/infoclient/menu2/index.vue | 21 +- .../baseinfo/infoclient/menu3/columns.tsx | 18 +- src/views/baseinfo/infoclient/menu3/index.vue | 21 +- .../baseinfo/infoclient/menu4/columns.tsx | 11 +- .../baseinfo/infoclient/menu5/columns.tsx | 10 +- .../baseinfo/infoclient/tabs3/columns.tsx | 20 +- src/views/baseinfo/infoclient/tabs3/index.vue | 16 +- .../seaexport/detail/modules/goodsTable.vue | 381 +----------------- src/views/system/user/columns.tsx | 68 ++-- 18 files changed, 490 insertions(+), 649 deletions(-) diff --git a/src/design/ant/form.less b/src/design/ant/form.less index 3af79d90..ece09bcb 100644 --- a/src/design/ant/form.less +++ b/src/design/ant/form.less @@ -4,13 +4,13 @@ margin-bottom: 4px; // label样式 .ant-form-item-label { - width: 100%!important; + width: 100% !important; padding-bottom: 0; - >label { - font-size: 12px!important; - width: 100%!important; + > label { + font-size: 12px !important; + width: 100% !important; height: 20px; - >span { + > span { display: inline-block; width: 100%; } @@ -20,6 +20,7 @@ .ant-form-item-control { .ant-form-item-control-input { min-height: 26px; + // input外层元素的高度 (决定input高度) .ant-input-affix-wrapper-input-with-clear-btn { height: 26px; @@ -28,8 +29,15 @@ height: 24px; } } + .NoLimitHeight { + .ant-select-selector { + padding-top: 5px; + height: auto; + } + } // 所有的input标签高度 - input.ant-input, input.ant-input-number-input { + input.ant-input, + input.ant-input-number-input { height: 24px; } // 计数器容器高度 @@ -37,7 +45,8 @@ height: 26px; } // 日期选择器 - .ant-picker, .ant-picker-small { + .ant-picker, + .ant-picker-small { width: 100%; height: 26px; .ant-picker-input { @@ -47,6 +56,7 @@ .ant-input-affix-wrapper { padding: 0 7px; } + // 下拉框 .ant-select-selector { height: 26px; @@ -55,7 +65,7 @@ line-height: 26px; } .ant-select-selection-search-input { - height: 26px!important; + height: 26px !important; } .ant-select-selection-overflow { position: relative; @@ -65,14 +75,14 @@ height: 20px; margin-bottom: 3px; font-size: 12px; - background-color: #F5F9FC; - color: #257AFA; + background-color: #f5f9fc; + color: #257afa; .ant-select-selection-item-content { margin-right: 0; } .ant-select-selection-item-remove { - border-left: 0.7px solid #ABCDFF; - color: #257AFA; + border-left: 0.7px solid #abcdff; + color: #257afa; padding-left: 3px; margin-left: 4px; } diff --git a/src/views/ContainerManagement/CurrentState/columns.tsx b/src/views/ContainerManagement/CurrentState/columns.tsx index 905a66f7..3fbba313 100644 --- a/src/views/ContainerManagement/CurrentState/columns.tsx +++ b/src/views/ContainerManagement/CurrentState/columns.tsx @@ -1,6 +1,7 @@ import { BasicColumn, FormSchema } from '/@/components/Table' import { Tag } from 'ant-design-vue' import { GetCtnSelectList } from '/@/api/common' +import { GetDeptList } from '/@/views/operation/seaexport/api/BookingLedger' export const columns: BasicColumn[] = [ { title: '集装箱号', @@ -193,8 +194,15 @@ export const formSchema: FormSchema[] = [ { field: 'isOnline', label: '是否上线', - component: 'Input', + component: 'RadioButtonGroup', + defaultValue: true, colProps: { span: 6 }, + componentProps: { + options: [ + { label: '是', value: true }, + { label: '否', value: false }, + ], + }, }, { field: 'changeSource', @@ -215,13 +223,31 @@ export const formSchema: FormSchema[] = [ colProps: { span: 6 }, }, { - field: 'corpid', label: '业务所属分部', - component: 'Input', - + field: 'corpid', + component: 'ApiSelect', + required: false, + dynamicDisabled: false, colProps: { span: 6 }, + componentProps: ({ formModel }) => { + return { + api: GetDeptList, + labelField: 'orgName', + valueField: 'id', + resultField: 'data', + filterOption: (input: string, option: any) => { + return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 + }, + onChange: (e, obj) => { + if (e) { + formModel.Sale = obj.label + } else { + formModel.Sale = '' + } + }, + } + }, }, - { field: 'ctnSource', label: '箱来源', diff --git a/src/views/baseinfo/infoclient/TenantAuditStepModal.vue b/src/views/baseinfo/infoclient/TenantAuditStepModal.vue index e3af7b00..285f0c8c 100644 --- a/src/views/baseinfo/infoclient/TenantAuditStepModal.vue +++ b/src/views/baseinfo/infoclient/TenantAuditStepModal.vue @@ -17,83 +17,93 @@
+

财务信息

-
-
- - - 新增明细 - - - - - 删除明细 +
+
+
+ 发票信息 + + + 新增 - -
-
- - - + + + 删除 + + +
+
+ - + + + +
+
+
+ + + +
- - - -
- + @@ -222,7 +232,7 @@ pagination: false, bordered: true, showTableSetting: false, - canResize: false, + canResize: true, immediate: false, // dataSource: dataSource.value, showIndexColumn: true, @@ -634,12 +644,12 @@ }, { title: '地址电话', - width: 300, + width: 290, data: 'addressTel', }, ] const settings = { - height: '200', + height: '163', width: '100%', autoWrapRow: true, autoWrapCol: true, @@ -689,8 +699,71 @@ } diff --git a/src/views/baseinfo/infoclient/customerParams/columns.tsx b/src/views/baseinfo/infoclient/customerParams/columns.tsx index 0a4e317f..9ab69259 100644 --- a/src/views/baseinfo/infoclient/customerParams/columns.tsx +++ b/src/views/baseinfo/infoclient/customerParams/columns.tsx @@ -14,11 +14,11 @@ const itemNameOption = ref([]) // 模块字典 const modulesDict = await getDictOption('modules') export const columns: BasicColumn[] = [ - { - title: '客户名称', - dataIndex: 'customerName', - width: 150, - }, + // { + // title: '客户名称', + // dataIndex: 'customerName', + // width: 150, + // }, { title: '客户参数类型', dataIndex: 'paramType', diff --git a/src/views/baseinfo/infoclient/customerParams/index.vue b/src/views/baseinfo/infoclient/customerParams/index.vue index f436f3fe..8cedf57d 100644 --- a/src/views/baseinfo/infoclient/customerParams/index.vue +++ b/src/views/baseinfo/infoclient/customerParams/index.vue @@ -1,9 +1,10 @@