|
|
@ -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<CrudSchema[]>([ |
|
|
|
{ |
|
|
|
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', |
|
|
|