|
|
@ -10,48 +10,49 @@ const typeList = await QadProjectApi.getProjectType() |
|
|
|
export const SubjectAccountRules = reactive({ |
|
|
|
code: [required], |
|
|
|
accountingAccount: [required], |
|
|
|
costcentreType:[required], |
|
|
|
costcentreType: [required], |
|
|
|
accountingName: [required], |
|
|
|
usageDescription: [required], |
|
|
|
costecentreCode: [required], |
|
|
|
projectId: [required], |
|
|
|
projectCode: [required], |
|
|
|
available: [required], |
|
|
|
isFromPlMstr:[required] |
|
|
|
isFromPlMstr: [required] |
|
|
|
}) |
|
|
|
|
|
|
|
export const SubjectAccount = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
export const SubjectAccount = useCrudSchemas( |
|
|
|
reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
|
label: 'id', |
|
|
|
field: 'id', |
|
|
|
sort: 'custom', |
|
|
|
isForm: false, |
|
|
|
isTable:false, |
|
|
|
isTable: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '代码', |
|
|
|
field: 'code', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
isSearch: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '领用描述', |
|
|
|
field: 'usageDescription', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isTable:false, |
|
|
|
isForm:false, |
|
|
|
isTable: false, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '成本中心ID', |
|
|
|
field: 'costcentreId', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isTable:false, |
|
|
|
isTable: false, |
|
|
|
isForm: false, |
|
|
|
form:{ |
|
|
|
componentProps:{ |
|
|
|
disabled:true |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -60,7 +61,7 @@ export const SubjectAccount = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'costcentreCode', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isTable:false, |
|
|
|
isTable: false, |
|
|
|
isForm: false, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
@ -71,11 +72,13 @@ export const SubjectAccount = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
searchTitle: '成本中心信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: QadCostcentre.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: QadCostcentreApi.getQadCostcentrePage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
searchCondition: [ |
|
|
|
{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -84,35 +87,34 @@ export const SubjectAccount = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'costcentreType', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
form:{ |
|
|
|
show:true, |
|
|
|
form: { |
|
|
|
show: true, |
|
|
|
component: 'Select', |
|
|
|
componentProps: { |
|
|
|
// isSearchList: true,
|
|
|
|
placeholder:'请选择库位代码', |
|
|
|
placeholder: '请选择库位代码', |
|
|
|
searchField: 'costcentreType', |
|
|
|
// searchTitle: '生产线信息',
|
|
|
|
// searchAllSchemas: Productionline.allSchemas,
|
|
|
|
// searchPage: ProductionLineCodeApi.getProductionlinePage
|
|
|
|
options:typeList.map(item=>({ |
|
|
|
label:item.labelKey, |
|
|
|
value:item.labelValue |
|
|
|
options: typeList.map((item) => ({ |
|
|
|
label: item.labelKey, |
|
|
|
value: item.labelValue |
|
|
|
})) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '项目ID', |
|
|
|
field: 'projectId', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isTable:false, |
|
|
|
isForm:false, |
|
|
|
disabled:true, |
|
|
|
form:{ |
|
|
|
componentProps:{ |
|
|
|
disabled:true |
|
|
|
isTable: false, |
|
|
|
isForm: false, |
|
|
|
disabled: true, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -121,8 +123,8 @@ export const SubjectAccount = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'projectCode', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isForm:false, |
|
|
|
isTable:false, |
|
|
|
isForm: false, |
|
|
|
isTable: false, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
@ -132,11 +134,13 @@ export const SubjectAccount = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
searchTitle: '物料基础信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: QadProject.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: QadProjectApi.getQadProjectPage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
searchCondition: [ |
|
|
|
{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -145,9 +149,12 @@ export const SubjectAccount = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'accountingAccount', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
form:{ |
|
|
|
componentProps:{ |
|
|
|
disabled:false |
|
|
|
table: { |
|
|
|
width: 120 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: false |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -156,9 +163,9 @@ export const SubjectAccount = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'accountingName', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
form:{ |
|
|
|
componentProps:{ |
|
|
|
disabled:false |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: false |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -179,7 +186,7 @@ export const SubjectAccount = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
inactiveValue: 'FALSE', |
|
|
|
activeValue: 'TRUE' |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '是否来自产品类', |
|
|
@ -198,7 +205,7 @@ export const SubjectAccount = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
inactiveValue: 'FALSE', |
|
|
|
activeValue: 'TRUE' |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '产品类类型', |
|
|
@ -211,22 +218,84 @@ export const SubjectAccount = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 120 |
|
|
|
}, |
|
|
|
form:{ |
|
|
|
componentProps:{ |
|
|
|
disabled:false |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: false |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '项目是否必填', |
|
|
|
field: 'isProject', |
|
|
|
sort: 'custom', |
|
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
|
dictClass: 'string', |
|
|
|
isTable: true, |
|
|
|
table: { |
|
|
|
width: 140 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'Switch', |
|
|
|
value: 'FALSE', |
|
|
|
componentProps: { |
|
|
|
inactiveValue: 'FALSE', |
|
|
|
activeValue: 'TRUE' |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '成本中心默认值', |
|
|
|
field: 'costDefault', |
|
|
|
sort: 'custom', |
|
|
|
isSearch: false, |
|
|
|
isTable: true, |
|
|
|
isForm: true, |
|
|
|
table: { |
|
|
|
width: 130 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
enterSearch: true, |
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择成本中心代码', // 输入框占位文本
|
|
|
|
searchField: 'costcentreCode', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '成本中心信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: QadCostcentre.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: QadCostcentreApi.getQadCostcentrePage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [ |
|
|
|
{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
} |
|
|
|
], |
|
|
|
verificationParams: [ |
|
|
|
{ |
|
|
|
key: 'costcentreCode', |
|
|
|
action: '==', |
|
|
|
value: '', |
|
|
|
isMainValue: false, |
|
|
|
isSearch: true, |
|
|
|
isFormModel: true |
|
|
|
} |
|
|
|
] // 失去焦点校验参数
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '备注', |
|
|
|
field: 'remark', |
|
|
|
sort: 'custom', |
|
|
|
sort: 'custom' |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '创建时间', |
|
|
|
field: 'createTime', |
|
|
|
sort: 'custom', |
|
|
|
formatter: dateFormatter, |
|
|
|
table: { |
|
|
|
width: 180 |
|
|
|
}, |
|
|
|
search: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
@ -238,13 +307,13 @@ export const SubjectAccount = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
style: {width:'100%'}, |
|
|
|
style: { width: '100%' }, |
|
|
|
type: 'datetime', |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
valueFormat: 'x', |
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
}, |
|
|
|
isForm: false, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '创建者', |
|
|
@ -272,10 +341,10 @@ export const SubjectAccount = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
style: {width:'100%'}, |
|
|
|
style: { width: '100%' }, |
|
|
|
type: 'datetime', |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
valueFormat: 'x', |
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -298,4 +367,5 @@ export const SubjectAccount = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
fixed: 'right' |
|
|
|
} |
|
|
|
} |
|
|
|
])) |
|
|
|
]) |
|
|
|
) |
|
|
|