|
@ -26,6 +26,15 @@ import { TableColumn } from '@/types/table' |
|
|
import * as InspectionQ3Api from '@/api/qms/inspectionQ3/inspectionQ3Main' |
|
|
import * as InspectionQ3Api from '@/api/qms/inspectionQ3/inspectionQ3Main' |
|
|
import { InspectionQ3Main } from '@/views/qms/inspectionQ3/inspectionQ3.data' |
|
|
import { InspectionQ3Main } from '@/views/qms/inspectionQ3/inspectionQ3.data' |
|
|
|
|
|
|
|
|
|
|
|
import { QadCostcentre } from '@/views/wms/basicDataManage/subject/qadCostcentre/qadCostcentre.data' |
|
|
|
|
|
import * as QadCostcentreApi from '@/api/wms/qadCostcentre/index' |
|
|
|
|
|
|
|
|
|
|
|
import { QadProject } from '@/views/wms/basicDataManage/subject/qadProject/qadProject.data' |
|
|
|
|
|
import * as QadProjectApi from '@/api/wms/qadProject' |
|
|
|
|
|
|
|
|
|
|
|
import * as SubjectAccountApi from '@/api/wms/subjectAccount' |
|
|
|
|
|
import { SubjectAccount } from '@/views/wms/basicDataManage/subject/subjectAccount/subjectAccount.data' |
|
|
|
|
|
|
|
|
// import * as LocationApi from '@/api/wms/location'
|
|
|
// import * as LocationApi from '@/api/wms/location'
|
|
|
// import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data'
|
|
|
// import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data'
|
|
|
|
|
|
|
|
@ -145,6 +154,137 @@ export const ProductionscrapRequestMain = useCrudSchemas( |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '成本中心代码', |
|
|
|
|
|
field: 'costCenterCode', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm: { |
|
|
|
|
|
enterSearch: true, |
|
|
|
|
|
isInpuFocusShow: true, // 开启查询弹窗
|
|
|
|
|
|
searchListPlaceholder: '请选择成本中心代码', |
|
|
|
|
|
searchField: 'costcentreCode', |
|
|
|
|
|
searchTitle: '成本中心代码', |
|
|
|
|
|
searchAllSchemas: QadCostcentre.allSchemas, |
|
|
|
|
|
searchPage: QadCostcentreApi.getQadCostcentrePage, |
|
|
|
|
|
verificationParams: [{ |
|
|
|
|
|
key: 'costcentreCode', |
|
|
|
|
|
action: '==', |
|
|
|
|
|
value: '', |
|
|
|
|
|
isMainValue: false, |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
isFormModel: true, |
|
|
|
|
|
}], // 失去焦点校验参数
|
|
|
|
|
|
}, |
|
|
|
|
|
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: 'costCenterType', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
isForm:false, |
|
|
|
|
|
isTable:false, |
|
|
|
|
|
isTableForm:false, |
|
|
|
|
|
form: { |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
disabled: true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '原因代码', |
|
|
|
|
|
field: 'reasonCodeRequisition', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm: { |
|
|
|
|
|
enterSearch: true, |
|
|
|
|
|
isInpuFocusShow: true, // 开启查询弹窗
|
|
|
|
|
|
searchListPlaceholder: '请选择成领用原因代码', |
|
|
|
|
|
searchField: 'code', |
|
|
|
|
|
searchTitle: '领用原因代码', |
|
|
|
|
|
searchAllSchemas: SubjectAccount.allSchemas, |
|
|
|
|
|
searchPage: SubjectAccountApi.getSubjectAccountPage, |
|
|
|
|
|
searchCondition: [{ |
|
|
|
|
|
key: 'available', |
|
|
|
|
|
value: 'TRUE', |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
},{ |
|
|
|
|
|
key: 'costcentreType', |
|
|
|
|
|
value: 'costCenterType', |
|
|
|
|
|
message: '成本中心类型不能为空!', |
|
|
|
|
|
isMainValue: true |
|
|
|
|
|
}], |
|
|
|
|
|
verificationParams: [{ |
|
|
|
|
|
key: 'code', |
|
|
|
|
|
action: '==', |
|
|
|
|
|
value: '', |
|
|
|
|
|
isMainValue: false, |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
isFormModel: true, |
|
|
|
|
|
}], // 失去焦点校验参数
|
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
|
|
componentProps: { |
|
|
|
|
|
enterSearch: true, |
|
|
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
|
|
searchListPlaceholder: '请选择领用原因代码', // 输入框占位文本
|
|
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
|
|
|
searchTitle: '领用原因代码', // 查询弹窗标题
|
|
|
|
|
|
searchAllSchemas: SubjectAccount.allSchemas, // 查询弹窗所需类
|
|
|
|
|
|
searchPage: SubjectAccountApi.getSubjectAccountPage, // 查询弹窗所需分页方法
|
|
|
|
|
|
searchCondition: [{ |
|
|
|
|
|
key: 'available', |
|
|
|
|
|
value: 'TRUE', |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
},{ |
|
|
|
|
|
key: 'costcentreType', |
|
|
|
|
|
value: 'costCenterType', |
|
|
|
|
|
message: '成本中心类型不能为空!', |
|
|
|
|
|
isMainValue: true |
|
|
|
|
|
}], |
|
|
|
|
|
verificationParams: [{ |
|
|
|
|
|
key: 'code', |
|
|
|
|
|
action: '==', |
|
|
|
|
|
value: '', |
|
|
|
|
|
isMainValue: false, |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
isFormModel: true, |
|
|
|
|
|
}], // 失去焦点校验参数
|
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '车间', |
|
|
label: '车间', |
|
|
field: 'workshopCode', |
|
|
field: 'workshopCode', |
|
@ -281,6 +421,8 @@ export const ProductionscrapRequestMain = useCrudSchemas( |
|
|
table: { |
|
|
table: { |
|
|
width: 180 |
|
|
width: 180 |
|
|
}, |
|
|
}, |
|
|
|
|
|
isForm:false, |
|
|
|
|
|
isTableForm:false, |
|
|
isTable: false, |
|
|
isTable: false, |
|
|
form: { |
|
|
form: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
@ -364,7 +506,9 @@ export const ProductionscrapRequestMain = useCrudSchemas( |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTable: false |
|
|
isForm:false, |
|
|
|
|
|
isTableForm:false, |
|
|
|
|
|
isTable: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '业务类型', |
|
|
label: '业务类型', |
|
@ -598,7 +742,7 @@ export const ProductionscrapRequestMainRules = reactive({ |
|
|
{ required: true, message: '请选择车间', trigger: 'change' } |
|
|
{ required: true, message: '请选择车间', trigger: 'change' } |
|
|
], |
|
|
], |
|
|
productionLineCode: [ |
|
|
productionLineCode: [ |
|
|
{ required: true, message: '请选择生产线代码', trigger: 'change' } |
|
|
{ required: false, message: '请选择生产线代码', trigger: 'change' } |
|
|
], |
|
|
], |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|