|
@ -1,5 +1,9 @@ |
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
|
|
|
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' |
|
|
|
|
|
|
|
|
// 表单校验
|
|
|
// 表单校验
|
|
|
export const SubjectAccountRules = reactive({ |
|
|
export const SubjectAccountRules = reactive({ |
|
@ -35,13 +39,12 @@ export const SubjectAccount = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '成本中心ID111', |
|
|
label: '成本中心ID', |
|
|
field: 'costecentreId', |
|
|
field: 'costecentreId', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: false, |
|
|
isSearch: false, |
|
|
isTable:false, |
|
|
isTable:false, |
|
|
disabled:true, |
|
|
form:{ |
|
|
from:{ |
|
|
|
|
|
componentProps:{ |
|
|
componentProps:{ |
|
|
disabled:true |
|
|
disabled:true |
|
|
} |
|
|
} |
|
@ -52,12 +55,33 @@ export const SubjectAccount = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
field: 'costecentreCode', |
|
|
field: 'costecentreCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: false, |
|
|
isSearch: false, |
|
|
|
|
|
form: { |
|
|
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
|
|
componentProps: { |
|
|
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
|
|
searchListPlaceholder: '请选择物料代码', // 输入框占位文本
|
|
|
|
|
|
searchField: 'costcentreCode', // 查询弹窗赋值字段
|
|
|
|
|
|
searchTitle: '物料基础信息', // 查询弹窗标题
|
|
|
|
|
|
searchAllSchemas: QadCostcentre.allSchemas, // 查询弹窗所需类
|
|
|
|
|
|
searchPage: QadCostcentreApi.getQadCostcentrePage, // 查询弹窗所需分页方法
|
|
|
|
|
|
searchCondition: [{ |
|
|
|
|
|
key: 'available', |
|
|
|
|
|
value: 'TRUE', |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
}] |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '成本中心类型', |
|
|
label: '成本中心类型', |
|
|
field: 'costecentreType', |
|
|
field: 'costecentreType', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: false, |
|
|
isSearch: false, |
|
|
|
|
|
form:{ |
|
|
|
|
|
componentProps:{ |
|
|
|
|
|
disabled:true |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '项目ID', |
|
|
label: '项目ID', |
|
@ -66,7 +90,7 @@ export const SubjectAccount = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
isSearch: false, |
|
|
isSearch: false, |
|
|
isTable:false, |
|
|
isTable:false, |
|
|
disabled:true, |
|
|
disabled:true, |
|
|
from:{ |
|
|
form:{ |
|
|
componentProps:{ |
|
|
componentProps:{ |
|
|
disabled:true |
|
|
disabled:true |
|
|
} |
|
|
} |
|
@ -77,17 +101,41 @@ export const SubjectAccount = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
field: 'projectCode', |
|
|
field: 'projectCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isSearch: false, |
|
|
isSearch: false, |
|
|
}, |
|
|
form: { |
|
|
{ |
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
label: '科目', |
|
|
componentProps: { |
|
|
field: 'address', |
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
sort: 'custom', |
|
|
searchListPlaceholder: '请选择物料代码', // 输入框占位文本
|
|
|
isSearch: false, |
|
|
searchField: 'projectCode', // 查询弹窗赋值字段
|
|
|
|
|
|
searchTitle: '物料基础信息', // 查询弹窗标题
|
|
|
|
|
|
searchAllSchemas: QadProject.allSchemas, // 查询弹窗所需类
|
|
|
|
|
|
searchPage: QadProjectApi.getQadProjectPage, // 查询弹窗所需分页方法
|
|
|
|
|
|
searchCondition: [{ |
|
|
|
|
|
key: 'available', |
|
|
|
|
|
value: 'TRUE', |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
}] |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '是否可用', |
|
|
label: '是否可用', |
|
|
field: 'available', |
|
|
field: 'available', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
|
|
dictClass: 'string', |
|
|
|
|
|
isTable: true, |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 120 |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
component: 'Switch', |
|
|
|
|
|
value: 'TRUE', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
inactiveValue: 'FALSE', |
|
|
|
|
|
activeValue: 'TRUE' |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '备注', |
|
|
label: '备注', |
|
|