|
|
@ -20,9 +20,13 @@ import * as ProductionlineitemApi from '@/api/wms/productionlineitem' |
|
|
|
import { Productionlineitem } from '@/views/wms/basicDataManage/itemManage/productionlineitem/productionlineitem.data' |
|
|
|
import { Bom } from '@/views/wms/basicDataManage/itemManage/bom/bom.data' |
|
|
|
import * as BomApi from '@/api/wms/bom' |
|
|
|
import { QadCostcentre } from '@/views/wms/basicDataManage/subject/qadCostcentre/qadCostcentre.data' |
|
|
|
import * as QadCostcentreApi from '@/api/wms/qadCostcentre/index' |
|
|
|
|
|
|
|
import * as InspectionQ3Api from '@/api/qms/inspectionQ3/inspectionQ3Main' |
|
|
|
import { InspectionQ3Main } from '@/views/qms/inspectionQ3/inspectionQ3.data' |
|
|
|
import * as SubjectAccountApi from '@/api/wms/subjectAccount' |
|
|
|
import { SubjectAccount } from '@/views/wms/basicDataManage/subject/subjectAccount/subjectAccount.data' |
|
|
|
|
|
|
|
const { t } = useI18n() // 国际化
|
|
|
|
|
|
|
@ -104,6 +108,138 @@ export const ProductscrapRequestMain = useCrudSchemas( |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '报废原因', |
|
|
|
field: 'scrappingReason', |
|
|
|
dictType: DICT_TYPE.SCRAPPING_REASON, |
|
|
|
dictClass: 'string', |
|
|
|
isForm: true, |
|
|
|
isTable: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
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: '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: 'costCenterCode', |
|
|
|
value: 'costCenterCode', |
|
|
|
message: '成本中代码不能为空!', |
|
|
|
isMainValue: true |
|
|
|
},{ |
|
|
|
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: '状态', |
|
|
|
field: 'status', |
|
|
@ -236,92 +372,6 @@ export const ProductscrapRequestMain = useCrudSchemas( |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '班组', |
|
|
|
field: 'team', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
enterSearch: true, |
|
|
|
isSearchList: true, |
|
|
|
searchListPlaceholder: '请选择班组', |
|
|
|
searchField: 'code', |
|
|
|
searchTitle: '班组信息', |
|
|
|
searchAllSchemas: Team.allSchemas, |
|
|
|
searchPage: TeamApi.getTeamPage, |
|
|
|
searchCondition: [ |
|
|
|
{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
} |
|
|
|
], |
|
|
|
verificationParams: [ |
|
|
|
{ |
|
|
|
key: 'code', |
|
|
|
action: '==', |
|
|
|
value: '', |
|
|
|
isMainValue: false, |
|
|
|
isSearch: true, |
|
|
|
isFormModel: true |
|
|
|
} |
|
|
|
] // 失去焦点校验参数
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '班次', |
|
|
|
field: 'shift', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
enterSearch: true, |
|
|
|
isSearchList: true, |
|
|
|
searchListPlaceholder: '请选择班次', |
|
|
|
searchField: 'code', |
|
|
|
searchTitle: '班次信息', |
|
|
|
searchAllSchemas: Shift.allSchemas, |
|
|
|
searchPage: ShiftApi.getShiftPage, |
|
|
|
searchCondition: [ |
|
|
|
{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
} |
|
|
|
], |
|
|
|
verificationParams: [ |
|
|
|
{ |
|
|
|
key: 'code', |
|
|
|
action: '==', |
|
|
|
value: '', |
|
|
|
isMainValue: false, |
|
|
|
isSearch: true, |
|
|
|
isFormModel: true |
|
|
|
} |
|
|
|
] // 失去焦点校验参数
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '报废原因', |
|
|
|
field: 'scrappingReason', |
|
|
|
dictType: DICT_TYPE.SCRAPPING_REASON, |
|
|
|
dictClass: 'string', |
|
|
|
isForm: true, |
|
|
|
isTable: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '从仓库代码', |
|
|
|
field: 'fromWarehouseCode', |
|
|
@ -629,12 +679,12 @@ export const ProductscrapRequestMainRules = reactive({ |
|
|
|
workshopCode: [ |
|
|
|
{ required: true, message: '请选择车间代码', trigger: 'change' } |
|
|
|
], |
|
|
|
costCenterCode: [ |
|
|
|
{ required: true, message: '请选择成本中心代码', trigger: 'change' } |
|
|
|
], |
|
|
|
// dueTime: [
|
|
|
|
// { required: true, message: '请选择截止时间', trigger: 'change' }
|
|
|
|
// ],
|
|
|
|
productionLineCode: [ |
|
|
|
{ required: true, message: '请选择生产线代码', trigger: 'change' } |
|
|
|
], |
|
|
|
departmentCode: [ |
|
|
|
{ required: true, message: '请输入部门', trigger: 'blur' } |
|
|
|
], |
|
|
@ -666,28 +716,185 @@ export const ProductscrapRequestMainRules = reactive({ |
|
|
|
*/ |
|
|
|
export const ProductscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
|
label: '从货主代码', |
|
|
|
field: 'fromOwnerCode', |
|
|
|
label: '物料代码', |
|
|
|
field: 'itemCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150, |
|
|
|
show: false |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
enterSearch:true, |
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择物料代码', // 输入框占位文本
|
|
|
|
searchField: 'itemCode', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '生产线物料关系信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Productionlineitem.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: ProductionlineitemApi.getProductionlineitemPageBom, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [ |
|
|
|
{ |
|
|
|
key:'workshopCode', |
|
|
|
value:'workshopCode', |
|
|
|
message: '请填写车间代码!', |
|
|
|
isMainValue: true |
|
|
|
},{ |
|
|
|
key:'productionLineCode', |
|
|
|
value:'productionLineCode', |
|
|
|
message: '请填写生产线代码!', |
|
|
|
isMainValue: true, |
|
|
|
isOptional:true, // isMainValue=true情况,添加参数可选可空的判断
|
|
|
|
},{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}], |
|
|
|
verificationParams: [{ |
|
|
|
key: 'itemCode', |
|
|
|
action: '==', |
|
|
|
value: '', |
|
|
|
isMainValue: false, |
|
|
|
isSearch: true, |
|
|
|
isFormModel: true, |
|
|
|
}], // 失去焦点校验参数
|
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
multiple: true, |
|
|
|
enterSearch:true, |
|
|
|
isInpuFocusShow: true, |
|
|
|
searchListPlaceholder: '请选择物料代码', // 输入框占位文本
|
|
|
|
searchField: 'itemCode', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '生产线物料关系信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Productionlineitem.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: ProductionlineitemApi.getProductionlineitemPageBom, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
key:'workshopCode', |
|
|
|
value:'workshopCode', |
|
|
|
message: '请填写车间代码!', |
|
|
|
isMainValue: true |
|
|
|
},{ |
|
|
|
key:'productionLineCode', |
|
|
|
value:'productionLineCode', |
|
|
|
message: '请填写生产线代码!', |
|
|
|
isMainValue: true, |
|
|
|
isOptional:true, // isMainValue=true情况,添加参数可选可空的判断
|
|
|
|
},{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}], |
|
|
|
verificationParams: [{ |
|
|
|
key: 'itemCode', |
|
|
|
action: '==', |
|
|
|
value: '', |
|
|
|
isMainValue: false, |
|
|
|
isSearch: true, |
|
|
|
isFormModel: true, |
|
|
|
}], // 失去焦点校验参数
|
|
|
|
}, |
|
|
|
isTable: false, |
|
|
|
isForm: false, |
|
|
|
isTableForm: false, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
label: '来源工位代码', |
|
|
|
field: 'workStationCode', |
|
|
|
label: 'Bom版本', |
|
|
|
field: 'bomVersion', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
multiple: true, |
|
|
|
tableForm: { |
|
|
|
type:'Select', |
|
|
|
// isInpuFocusShow: true,
|
|
|
|
// searchListPlaceholder: '请选择Bom版本', // 输入框占位文本
|
|
|
|
// searchField: 'version', // 查询弹窗赋值字段
|
|
|
|
// searchTitle: '物料清单信息', // 查询弹窗标题
|
|
|
|
// searchAllSchemas: Bom.allSchemas, // 查询弹窗所需类
|
|
|
|
// searchPage: BomApi.getBomPage, // 查询弹窗所需分页方法
|
|
|
|
// searchCondition: [{
|
|
|
|
// key:'productItemCode',
|
|
|
|
// value:'itemCode',
|
|
|
|
// message: '请填写物料代码!',
|
|
|
|
// isMainValue: true
|
|
|
|
// },{
|
|
|
|
// key: 'available',
|
|
|
|
// value: 'TRUE',
|
|
|
|
// isMainValue: false
|
|
|
|
// }]
|
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
type:'Select', |
|
|
|
// isSearchList: true, // 开启查询弹窗
|
|
|
|
// searchListPlaceholder: '请选择Bom版本', // 输入框占位文本
|
|
|
|
// searchField: 'version', // 查询弹窗赋值字段
|
|
|
|
// searchTitle: '物料清单信息', // 查询弹窗标题
|
|
|
|
// searchAllSchemas: Bom.allSchemas, // 查询弹窗所需类
|
|
|
|
// searchPage: BomApi.getBomPage, // 查询弹窗所需分页方法
|
|
|
|
// searchCondition: [{
|
|
|
|
// key:'productItemCode',
|
|
|
|
// value:'itemCode',
|
|
|
|
// message: '请填写物料代码!',
|
|
|
|
// isMainValue: true
|
|
|
|
// },{
|
|
|
|
// key: 'available',
|
|
|
|
// value: 'TRUE',
|
|
|
|
// isMainValue: false
|
|
|
|
// }]
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '报废数量', |
|
|
|
field: 'qty', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
min: 0, |
|
|
|
max:9999, |
|
|
|
// precision: 6
|
|
|
|
}, |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'InputNumber', |
|
|
|
default:1, |
|
|
|
min: 0, |
|
|
|
max:9999, |
|
|
|
precision: 0 |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '计量单位', |
|
|
|
field: 'uom', |
|
|
|
dictType: DICT_TYPE.UOM, |
|
|
|
dictClass: 'string', |
|
|
|
isTable: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'Select', |
|
|
|
disabled: true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '来源库位', |
|
|
|
field: 'fromLocationCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
enterSearch:true, |
|
|
|
isInpuFocusShow: true, |
|
|
|
disabled:true, |
|
|
|
searchListPlaceholder: '请选择工位代码', // 输入框占位文本
|
|
|
|
searchField: 'code', // 查询弹窗赋值字段
|
|
|
@ -699,15 +906,27 @@ export const ProductscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
},{ |
|
|
|
key: 'productionLineCode', |
|
|
|
value: 'productionLineCode', |
|
|
|
message: '请填写生产线代码!', |
|
|
|
key:'workshopCode', |
|
|
|
value:'workshopCode', |
|
|
|
message: '请填写车间代码!', |
|
|
|
isMainValue: true |
|
|
|
}], |
|
|
|
},{ |
|
|
|
key:'productionLineCode', |
|
|
|
value:'productionLineCode', |
|
|
|
message: '请填写生产线代码!', |
|
|
|
isMainValue: true, |
|
|
|
isOptional:true, // isMainValue=true情况,添加参数可选可空的判断
|
|
|
|
},{ |
|
|
|
key: 'itemCode', |
|
|
|
value: 'itemCode', |
|
|
|
message: '请选择物料代码', |
|
|
|
isTableRowValue: true, //查询当前searchTable表中行数据的值
|
|
|
|
isMainValue:false |
|
|
|
}], |
|
|
|
verificationPage: WorkstationApi.getWorkstationByCodes, // 校验数去焦点输入是否正确的方法
|
|
|
|
isShowTableFormSearch: true, |
|
|
|
verificationParams: [{ |
|
|
|
key: 'code', |
|
|
|
key: 'rawLocationCode', |
|
|
|
action: '==', |
|
|
|
value: '', |
|
|
|
isMainValue: false, |
|
|
@ -729,11 +948,23 @@ export const ProductscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
},{ |
|
|
|
key: 'productionLineCode', |
|
|
|
value: 'productionLineCode', |
|
|
|
message: '请填写生产线代码!', |
|
|
|
key:'workshopCode', |
|
|
|
value:'workshopCode', |
|
|
|
message: '请填写车间代码!', |
|
|
|
isMainValue: true |
|
|
|
}], |
|
|
|
},{ |
|
|
|
key:'productionLineCode', |
|
|
|
value:'productionLineCode', |
|
|
|
message: '请填写生产线代码!', |
|
|
|
isMainValue: true, |
|
|
|
isOptional:true, // isMainValue=true情况,添加参数可选可空的判断
|
|
|
|
},{ |
|
|
|
key: 'itemCode', |
|
|
|
value: 'itemCode', |
|
|
|
message: '请选择物料代码', |
|
|
|
isTableRowValue: true, //查询当前searchTable表中行数据的值
|
|
|
|
isMainValue:false |
|
|
|
}], |
|
|
|
verificationParams: [{ |
|
|
|
key: 'code', |
|
|
|
action: '==', |
|
|
@ -743,8 +974,40 @@ export const ProductscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
isFormModel: true, |
|
|
|
}], // 失去焦点校验参数
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
isTable:true, |
|
|
|
isTableForm:true, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '来源工位代码', |
|
|
|
field: 'workStationCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
disabled: true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps:{ |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '从货主代码', |
|
|
|
field: 'fromOwnerCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150, |
|
|
|
show: false |
|
|
|
}, |
|
|
|
isTable: false, |
|
|
|
isForm: false, |
|
|
|
isTableForm: false, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
label: '工序代码', |
|
|
|
field: 'processCode', |
|
|
@ -800,71 +1063,6 @@ export const ProductscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '物料代码', |
|
|
|
field: 'itemCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
enterSearch:true, |
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择物料代码', // 输入框占位文本
|
|
|
|
searchField: 'itemCode', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '生产线物料关系信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Productionlineitem.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: ProductionlineitemApi.getProductionlineitemPage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
key:'productionLineCode', |
|
|
|
value:'productionLineCode', |
|
|
|
message: '请填写生产线代码!', |
|
|
|
isMainValue: true |
|
|
|
},{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}], |
|
|
|
verificationParams: [{ |
|
|
|
key: 'itemCode', |
|
|
|
action: '==', |
|
|
|
value: '', |
|
|
|
isMainValue: false, |
|
|
|
isSearch: true, |
|
|
|
isFormModel: true, |
|
|
|
}], // 失去焦点校验参数
|
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
enterSearch:true, |
|
|
|
isInpuFocusShow: true, |
|
|
|
searchListPlaceholder: '请选择物料代码', // 输入框占位文本
|
|
|
|
searchField: 'itemCode', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '生产线物料关系信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Productionlineitem.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: ProductionlineitemApi.getProductionlineitemPage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
key:'productionLineCode', |
|
|
|
value:'productionLineCode', |
|
|
|
message: '请填写生产线代码!', |
|
|
|
isMainValue: true |
|
|
|
},{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}], |
|
|
|
verificationParams: [{ |
|
|
|
key: 'itemCode', |
|
|
|
action: '==', |
|
|
|
value: '', |
|
|
|
isMainValue: false, |
|
|
|
isSearch: true, |
|
|
|
isFormModel: true, |
|
|
|
}], // 失去焦点校验参数
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '物料名称', |
|
|
|
field: 'itemName', |
|
|
@ -875,52 +1073,7 @@ export const ProductscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
isForm: false, |
|
|
|
isTableForm: false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: 'Bom版本', |
|
|
|
field: 'bomVersion', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
isInpuFocusShow: true, |
|
|
|
searchListPlaceholder: '请选择Bom版本', // 输入框占位文本
|
|
|
|
searchField: 'version', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '物料清单信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Bom.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: BomApi.getBomPage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
key:'productItemCode', |
|
|
|
value:'itemCode', |
|
|
|
message: '请填写物料代码!', |
|
|
|
isMainValue: true |
|
|
|
},{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择Bom版本', // 输入框占位文本
|
|
|
|
searchField: 'version', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '物料清单信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Bom.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: BomApi.getBomPage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
key:'productItemCode', |
|
|
|
value:'itemCode', |
|
|
|
message: '请填写物料代码!', |
|
|
|
isMainValue: true |
|
|
|
},{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
label: '批次', |
|
|
|
field: 'batch', |
|
|
@ -932,49 +1085,8 @@ export const ProductscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
isTable:false, |
|
|
|
isTableForm:false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '报废数量', |
|
|
|
field: 'qty', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps: { |
|
|
|
min: 0, |
|
|
|
max:9999, |
|
|
|
// precision: 6
|
|
|
|
}, |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'InputNumber', |
|
|
|
default:1, |
|
|
|
min: 0, |
|
|
|
max:9999, |
|
|
|
// precision: 6
|
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '计量单位', |
|
|
|
field: 'uom', |
|
|
|
dictType: DICT_TYPE.UOM, |
|
|
|
dictClass: 'string', |
|
|
|
isTable: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'Select', |
|
|
|
disabled: true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
label: '单价', |
|
|
|
field: 'singlePrice', |
|
|
@ -1023,24 +1135,7 @@ export const ProductscrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
isTable:false, |
|
|
|
isTableForm:false, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '来源库位', |
|
|
|
field: 'fromLocationCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
disabled: true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps:{ |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
isTable:false, |
|
|
|
isTableForm:false, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
label: '包装号', |
|
|
@ -1285,7 +1380,7 @@ export const ProductscrapRequestDetailRules = reactive({ |
|
|
|
{ required: true, message: '请选择生产线代码', trigger: 'change' } |
|
|
|
], |
|
|
|
workStationCode: [ |
|
|
|
{ required: true, message: '请选择工位代码', trigger: 'change' } |
|
|
|
{ required: true, message: '请选择来源工位代码', trigger: 'change' } |
|
|
|
], |
|
|
|
qty:[ |
|
|
|
{ validator:validateQty, message: '数量必须大于0', trigger: 'change'} |
|
|
|