Browse Source

科目账户配置管理

master_hella_20240701
wangyufei 5 months ago
parent
commit
2bda1d4a0c
  1. 19
      src/views/wms/basicDataManage/subject/subjectAccount/subjectAccount.data.ts

19
src/views/wms/basicDataManage/subject/subjectAccount/subjectAccount.data.ts

@ -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',

Loading…
Cancel
Save