From 4bab29beea45bb80ff53dd1c029cb4500a2655de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E5=BA=86=E6=BA=90?= Date: Mon, 17 Feb 2025 10:47:29 +0800 Subject: [PATCH] =?UTF-8?q?[SBBJ-808][=E6=A8=A1=E5=85=B7=E5=8C=BA=E5=88=86?= =?UTF-8?q?=E5=8E=82=E5=86=85=E5=A4=96=EF=BC=8C=E9=80=9A=E8=BF=87=E8=B7=AF?= =?UTF-8?q?=E7=94=B1=E5=8C=BA=E5=88=86]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mold/moldAccounts/moldAccounts.data.ts | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/src/views/eam/mold/moldAccounts/moldAccounts.data.ts b/src/views/eam/mold/moldAccounts/moldAccounts.data.ts index 77825b0..a8ec744 100644 --- a/src/views/eam/mold/moldAccounts/moldAccounts.data.ts +++ b/src/views/eam/mold/moldAccounts/moldAccounts.data.ts @@ -1,3 +1,4 @@ +import { useRoute } from 'vue-router'; import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import { dateFormatter } from '@/utils/formatTime' import { selectAllFactoryArea,selectAllFactoryAreaDept } from '@/api/system/dept' @@ -37,6 +38,46 @@ export const MoldAccountsRules = reactive({ }) export const MoldAccounts = useCrudSchemas(reactive([ + { + label: '来源类型', + field: 'sourceType', + sort: 'custom', + isSearch: false, + isForm: false, + form: { + hidden:() => { + /* const route = useRoute(); + // 获取当前路由的路径 + const currentPath = route.path; + console.log('当前路由路径:', currentPath) + // 获取当前路由的参数 + const routeParams = route.params; + console.log('当前路由参数:', routeParams) + // 获取当前路由的查询参数 + const routeQuery = route.query; + console.log('当前路由查询参数:', routeQuery)*/ + return true; + } + }, + table: { + width: '150', + fixed: 'left', + }, + }, + { + label: '外委托供应商', + field: 'outsourcedSuppliers', + sort: 'custom', + isSearch: false, + isForm: true, + form: { + hidden:true + }, + table: { + width: '150', + fixed: 'left', + }, + }, { label: '模具编号', field: 'number',