From 404e804d6ada0d46a8e50d107818b32fc6259042 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=A6=8F=E8=B4=A2?= <1471584931@qq.com> Date: Tue, 20 Jan 2026 18:48:53 +0800 Subject: [PATCH] =?UTF-8?q?--=E7=BB=84=E7=BB=87=E6=9C=BA=E6=9E=84=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E4=BE=9B=E5=BA=94=E5=95=86=E7=BC=96=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- .../department/components/DeptDrawer.vue | 44 +++++++++++-------- 2 files changed, 26 insertions(+), 20 deletions(-) diff --git a/.env.development b/.env.development index c8f7be9..a06aa67 100644 --- a/.env.development +++ b/.env.development @@ -10,7 +10,7 @@ VITE_PUBLIC_PATH = / # 如果接口地址匹配到,则会转发到http://localhost:3000,防止本地出现跨域问题 # 可以有多个,注意多个不能换行,否则代理将会失效 #VITE_PROXY = [["/api","http://localhost:3000"],["/upload","http://localhost:3300/upload"]] -VITE_PROXY=[["/api","http://127.0.0.1:8090"]] +VITE_PROXY=[["/api","http://10.10.2.102:9500"]] #VITE_PROXY=[["/api/system/generator/","http://127.0.0.1:8091/system/generator/"],["/api/system/file/","http://127.0.0.1:8091/system/file/"],["/api/system/oss/","http://127.0.0.1:8091/system/oss/"],["/api/sales/","http://127.0.0.1:8096","/sales/"],["/api/mdm/","http://127.0.0.1:8096","/mdm/"],["/api","http://10.10.2.102:9500"]] #VITE_PROXY=[["/api/sales/","http://127.0.0.1:8096","/sales/"],["/api/mdm/","http://127.0.0.1:8096","/mdm/"],["/api","http://10.10.2.102:9500"]] #VITE_PROXY=[["/api/mdm/","http://127.0.0.1:8096","/mdm/"],["/api/sales/","http://127.0.0.1:8096","/sales/"],["/api","http://10.10.2.102:9500"]] diff --git a/src/views/system/department/components/DeptDrawer.vue b/src/views/system/department/components/DeptDrawer.vue index 5519048..1027246 100644 --- a/src/views/system/department/components/DeptDrawer.vue +++ b/src/views/system/department/components/DeptDrawer.vue @@ -295,23 +295,7 @@ ]; const departmentSchema: FormSchema[] = [ { - field: 'departmentNature', - label: '部门性质', - component: 'ApiSelect', - colProps: { lg: 12, md: 12 }, - componentProps: { - placeholder: '请选择部门性质', - api: getDicDetailList, - labelField: 'name', - valueField: 'id', - showSearch: true, - params: { - itemId: '1739893799685373953' - }, - getPopupContainer: () => document.body - } - }, - { + title: '基础信息', field: 'custodian', label: '负责人', component: 'Input', @@ -408,6 +392,28 @@ } ]; + const systemSchema: FormSchema[] = [ + { + title: '关联系统信息', + field: 'suCode', + label: '供应商编码', + component: 'Input', + colProps: { lg: 12, md: 12 }, + }, + { + field: 'cuCode', + label: '客户编码', + component: 'Input', + colProps: { lg: 12, md: 12 }, + }, + { + field: 'staCode', + label: '接收站编码', + component: 'Input', + colProps: { lg: 12, md: 12 }, + }, + ] + const emit = defineEmits(['success', 'register']); const isUpdate = ref(true); const { notification } = useMessage(); @@ -415,7 +421,7 @@ const [registerForm, { resetFields, setFieldsValue, updateSchema, validate, resetSchema }] = useForm({ labelWidth: 100, - schemas: [...schema, ...companySchema], + schemas: [...schema, ...companySchema,...systemSchema], showActionButtonGroup: false, baseColProps: { lg: 12, md: 24 } }); @@ -434,7 +440,7 @@ rowId.value = data.record.id; const info = await getDepartment(rowId.value); info.departmentLabel = info.departmentLabel?.split(','); - resetSchema(info.departmentType ? [...schema, ...companySchema] : [...schema, ...departmentSchema]); + resetSchema(info.departmentType ? [...schema, ...companySchema, ...systemSchema] : [...schema, ...departmentSchema, ...systemSchema]); setFieldsValue({ ...info });