|
|
@ -4,10 +4,13 @@ import * as QadCostcentreApi from '@/api/wms/qadCostcentre' |
|
|
|
import { QadCostcentre } from '../qadCostcentre/qadCostcentre.data' |
|
|
|
import * as QadProjectApi from '@/api/wms/qadProject' |
|
|
|
import { QadProject } from '../qadProject/qadProject.data' |
|
|
|
const typeList = await QadProjectApi.getProjectType() |
|
|
|
|
|
|
|
// 表单校验
|
|
|
|
export const SubjectAccountRules = reactive({ |
|
|
|
code: [required], |
|
|
|
accountingAccount: [required], |
|
|
|
accountingName: [required], |
|
|
|
usageDescription: [required], |
|
|
|
costecentreCode: [required], |
|
|
|
projectId: [required], |
|
|
@ -80,10 +83,22 @@ export const SubjectAccount = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
form:{ |
|
|
|
componentProps:{ |
|
|
|
disabled:true |
|
|
|
show:true, |
|
|
|
component: 'Select', |
|
|
|
componentProps: { |
|
|
|
// isSearchList: true,
|
|
|
|
placeholder:'请选择库位代码', |
|
|
|
searchField: 'costcentreType', |
|
|
|
// searchTitle: '生产线信息',
|
|
|
|
// searchAllSchemas: Productionline.allSchemas,
|
|
|
|
// searchPage: ProductionLineCodeApi.getProductionlinePage
|
|
|
|
options:typeList.map(item=>({ |
|
|
|
label:item.labelKey, |
|
|
|
value:item.labelValue |
|
|
|
})) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '项目ID', |
|
|
|