|
@ -21,7 +21,8 @@ const { t } = useI18n() // 国际化 |
|
|
/** |
|
|
/** |
|
|
* @returns {Array} 生产退料申请子表 |
|
|
* @returns {Array} 生产退料申请子表 |
|
|
*/ |
|
|
*/ |
|
|
export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
export const ProductionreturnRequestDetail = useCrudSchemas( |
|
|
|
|
|
reactive<CrudSchema[]>([ |
|
|
{ |
|
|
{ |
|
|
label: '生产线代码', |
|
|
label: '生产线代码', |
|
|
field: 'productionLineCode', |
|
|
field: 'productionLineCode', |
|
@ -40,16 +41,19 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[ |
|
|
searchTitle: '生产线信息', // 查询弹窗标题
|
|
|
searchTitle: '生产线信息', // 查询弹窗标题
|
|
|
searchAllSchemas: Productionline.allSchemas, // 查询弹窗所需类
|
|
|
searchAllSchemas: Productionline.allSchemas, // 查询弹窗所需类
|
|
|
searchPage: ProductionlineApi.getProductionlinePage, // 查询弹窗所需分页方法
|
|
|
searchPage: ProductionlineApi.getProductionlinePage, // 查询弹窗所需分页方法
|
|
|
searchCondition:[{ |
|
|
searchCondition: [ |
|
|
|
|
|
{ |
|
|
key: 'available', |
|
|
key: 'available', |
|
|
value: 'TRUE', |
|
|
value: 'TRUE', |
|
|
isMainValue: false |
|
|
isMainValue: false |
|
|
},{ |
|
|
}, |
|
|
|
|
|
{ |
|
|
key: 'workshopCode', |
|
|
key: 'workshopCode', |
|
|
value: 'workshopCode', |
|
|
value: 'workshopCode', |
|
|
message: '请选择车间信息!', // 当前置条件为空时 弹出信息提示
|
|
|
message: '请选择车间信息!', // 当前置条件为空时 弹出信息提示
|
|
|
isMainValue: true |
|
|
isMainValue: true |
|
|
}] |
|
|
} |
|
|
|
|
|
] |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
tableForm: { |
|
|
tableForm: { |
|
@ -59,17 +63,20 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[ |
|
|
searchTitle: '生产线信息', // 查询弹窗标题
|
|
|
searchTitle: '生产线信息', // 查询弹窗标题
|
|
|
searchAllSchemas: Productionline.allSchemas, // 查询弹窗所需类
|
|
|
searchAllSchemas: Productionline.allSchemas, // 查询弹窗所需类
|
|
|
searchPage: ProductionlineApi.getProductionlinePage, // 查询弹窗所需分页方法
|
|
|
searchPage: ProductionlineApi.getProductionlinePage, // 查询弹窗所需分页方法
|
|
|
searchCondition:[{ |
|
|
searchCondition: [ |
|
|
|
|
|
{ |
|
|
key: 'available', |
|
|
key: 'available', |
|
|
value: 'TRUE', |
|
|
value: 'TRUE', |
|
|
isMainValue: false |
|
|
isMainValue: false |
|
|
},{ |
|
|
}, |
|
|
|
|
|
{ |
|
|
key: 'workshopCode', |
|
|
key: 'workshopCode', |
|
|
value: 'workshopCode', |
|
|
value: 'workshopCode', |
|
|
message: '请选择车间信息!', // 当前置条件为空时 弹出信息提示
|
|
|
message: '请选择车间信息!', // 当前置条件为空时 弹出信息提示
|
|
|
isMainValue: true |
|
|
isMainValue: true |
|
|
}] |
|
|
} |
|
|
}, |
|
|
] |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '工位代码', |
|
|
label: '工位代码', |
|
@ -87,21 +94,25 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[ |
|
|
searchTitle: '工位信息', // 查询弹窗标题
|
|
|
searchTitle: '工位信息', // 查询弹窗标题
|
|
|
searchAllSchemas: Workstation.allSchemas, // 查询弹窗所需类
|
|
|
searchAllSchemas: Workstation.allSchemas, // 查询弹窗所需类
|
|
|
searchPage: WorkstationApi.getWorkstationPage, // 查询弹窗所需分页方法
|
|
|
searchPage: WorkstationApi.getWorkstationPage, // 查询弹窗所需分页方法
|
|
|
searchCondition:[{ |
|
|
searchCondition: [ |
|
|
|
|
|
{ |
|
|
key: 'available', |
|
|
key: 'available', |
|
|
value: 'TRUE', |
|
|
value: 'TRUE', |
|
|
isMainValue: false |
|
|
isMainValue: false |
|
|
},{ |
|
|
}, |
|
|
|
|
|
{ |
|
|
key: 'workshopCode', |
|
|
key: 'workshopCode', |
|
|
value: 'workshopCode', |
|
|
value: 'workshopCode', |
|
|
message: '请选择车间信息!', |
|
|
message: '请选择车间信息!', |
|
|
isMainValue: true |
|
|
isMainValue: true |
|
|
},{ |
|
|
}, |
|
|
|
|
|
{ |
|
|
key: 'productionLineCode', |
|
|
key: 'productionLineCode', |
|
|
value: 'productionLineCode', |
|
|
value: 'productionLineCode', |
|
|
message: '请选择生产线信息!', |
|
|
message: '请选择生产线信息!', |
|
|
isMainValue: true |
|
|
isMainValue: true |
|
|
}] |
|
|
} |
|
|
|
|
|
] |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
tableForm: { |
|
|
tableForm: { |
|
@ -113,34 +124,39 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[ |
|
|
searchTitle: '工位信息', // 查询弹窗标题
|
|
|
searchTitle: '工位信息', // 查询弹窗标题
|
|
|
searchAllSchemas: Workstation.allSchemas, // 查询弹窗所需类
|
|
|
searchAllSchemas: Workstation.allSchemas, // 查询弹窗所需类
|
|
|
searchPage: WorkstationApi.getWorkstationPage, // 查询弹窗所需分页方法
|
|
|
searchPage: WorkstationApi.getWorkstationPage, // 查询弹窗所需分页方法
|
|
|
searchCondition:[{ |
|
|
searchCondition: [ |
|
|
|
|
|
{ |
|
|
key: 'available', |
|
|
key: 'available', |
|
|
value: 'TRUE', |
|
|
value: 'TRUE', |
|
|
isMainValue: false |
|
|
isMainValue: false |
|
|
},{ |
|
|
}, |
|
|
|
|
|
{ |
|
|
key: 'workshopCode', |
|
|
key: 'workshopCode', |
|
|
value: 'workshopCode', |
|
|
value: 'workshopCode', |
|
|
message: '请选择车间信息!', |
|
|
message: '请选择车间信息!', |
|
|
isMainValue: true |
|
|
isMainValue: true |
|
|
},{ |
|
|
}, |
|
|
|
|
|
{ |
|
|
key: 'productionLineCode', |
|
|
key: 'productionLineCode', |
|
|
value: 'productionLineCode', |
|
|
value: 'productionLineCode', |
|
|
message: '请选择生产线信息!', |
|
|
message: '请选择生产线信息!', |
|
|
isMainValue: true |
|
|
isMainValue: true |
|
|
}], |
|
|
} |
|
|
|
|
|
], |
|
|
verificationPage: WorkstationApi.getWorkstationByCodes, // 校验数去焦点输入是否正确的方法
|
|
|
verificationPage: WorkstationApi.getWorkstationByCodes, // 校验数去焦点输入是否正确的方法
|
|
|
isShowTableFormSearch: true, |
|
|
isShowTableFormSearch: true, |
|
|
isRepeat: true, //是否可以重复添加该条数据
|
|
|
isRepeat: true, //是否可以重复添加该条数据
|
|
|
verificationParams: [{ |
|
|
verificationParams: [ |
|
|
|
|
|
{ |
|
|
key: 'code', |
|
|
key: 'code', |
|
|
action: '==', |
|
|
action: '==', |
|
|
value: '', |
|
|
value: '', |
|
|
isMainValue: false, |
|
|
isMainValue: false, |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
isFormModel: true, |
|
|
isFormModel: true |
|
|
}], // 失去焦点校验参数
|
|
|
} |
|
|
|
|
|
] // 失去焦点校验参数
|
|
|
}, |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
@ -159,16 +175,19 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[ |
|
|
searchTitle: '库存余额信息', // 查询弹窗标题
|
|
|
searchTitle: '库存余额信息', // 查询弹窗标题
|
|
|
searchAllSchemas: Balance.allSchemas, // 查询弹窗所需类
|
|
|
searchAllSchemas: Balance.allSchemas, // 查询弹窗所需类
|
|
|
searchPage: BalanceApi.getBalancePage, // 查询弹窗所需分页方法
|
|
|
searchPage: BalanceApi.getBalancePage, // 查询弹窗所需分页方法
|
|
|
searchCondition:[{ |
|
|
searchCondition: [ |
|
|
|
|
|
{ |
|
|
key: 'locationCode', |
|
|
key: 'locationCode', |
|
|
value: 'fromLocationCode', |
|
|
value: 'fromLocationCode', |
|
|
message: '请填写从库位代码!', |
|
|
message: '请填写从库位代码!', |
|
|
isMainValue: true |
|
|
isMainValue: true |
|
|
},{ |
|
|
}, |
|
|
|
|
|
{ |
|
|
key: 'inventoryStatus', |
|
|
key: 'inventoryStatus', |
|
|
value: 'OK', |
|
|
value: 'OK', |
|
|
isMainValue: false |
|
|
isMainValue: false |
|
|
}] |
|
|
} |
|
|
|
|
|
] |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
tableForm: { |
|
|
tableForm: { |
|
@ -189,12 +208,14 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[ |
|
|
key: 'inventoryStatus', |
|
|
key: 'inventoryStatus', |
|
|
value: 'OK', |
|
|
value: 'OK', |
|
|
isMainValue: false |
|
|
isMainValue: false |
|
|
},{ |
|
|
}, |
|
|
|
|
|
{ |
|
|
key: 'businessType', |
|
|
key: 'businessType', |
|
|
value: 'ReturnToHold', // 隔离退料
|
|
|
value: 'ReturnToHold', // 隔离退料
|
|
|
isMainValue: false |
|
|
isMainValue: false |
|
|
}] |
|
|
} |
|
|
}, |
|
|
] |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
// {
|
|
|
// {
|
|
|
// label: '包装号',
|
|
|
// label: '包装号',
|
|
@ -236,7 +257,7 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[ |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTableForm: false, |
|
|
isTableForm: false, |
|
|
isForm: false, |
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '物料描述1', |
|
|
label: '物料描述1', |
|
@ -247,7 +268,7 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[ |
|
|
}, |
|
|
}, |
|
|
hiddenInMain: true, |
|
|
hiddenInMain: true, |
|
|
isTableForm: false, |
|
|
isTableForm: false, |
|
|
isForm: false, |
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '物料描述2', |
|
|
label: '物料描述2', |
|
@ -258,7 +279,7 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[ |
|
|
}, |
|
|
}, |
|
|
hiddenInMain: true, |
|
|
hiddenInMain: true, |
|
|
isTableForm: false, |
|
|
isTableForm: false, |
|
|
isForm: false, |
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '批次', |
|
|
label: '批次', |
|
@ -268,11 +289,11 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[ |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
tableForm: { |
|
|
tableForm: { |
|
|
disabled: false |
|
|
disabled: true |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
disabled: false |
|
|
disabled: true |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -363,7 +384,7 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[ |
|
|
}, |
|
|
}, |
|
|
hiddenInMain: true, |
|
|
hiddenInMain: true, |
|
|
isTableForm: false, |
|
|
isTableForm: false, |
|
|
isForm: false, |
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '到货主', |
|
|
label: '到货主', |
|
@ -374,7 +395,7 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[ |
|
|
}, |
|
|
}, |
|
|
hiddenInMain: true, |
|
|
hiddenInMain: true, |
|
|
isTableForm: false, |
|
|
isTableForm: false, |
|
|
isForm: false, |
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '项目代码', |
|
|
label: '项目代码', |
|
@ -385,7 +406,7 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[ |
|
|
}, |
|
|
}, |
|
|
hiddenInMain: true, |
|
|
hiddenInMain: true, |
|
|
isTableForm: false, |
|
|
isTableForm: false, |
|
|
isForm: false, |
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '单据号', |
|
|
label: '单据号', |
|
@ -409,7 +430,7 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
hiddenInMain: true, |
|
|
hiddenInMain: true |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '创建者', |
|
|
label: '创建者', |
|
@ -441,12 +462,12 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[ |
|
|
style: { width: '100%' }, |
|
|
style: { width: '100%' }, |
|
|
type: 'datetime', |
|
|
type: 'datetime', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
valueFormat: 'x', |
|
|
valueFormat: 'x' |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
isTableForm: false, |
|
|
isTableForm: false, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
isTable: true, |
|
|
isTable: true |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '包装规格', |
|
|
label: '包装规格', |
|
@ -465,16 +486,19 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[ |
|
|
searchTitle: '物料包装信息', // 查询弹窗标题
|
|
|
searchTitle: '物料包装信息', // 查询弹窗标题
|
|
|
searchAllSchemas: Itempackaging.allSchemas, // 查询弹窗所需类
|
|
|
searchAllSchemas: Itempackaging.allSchemas, // 查询弹窗所需类
|
|
|
searchPage: ItempackagingApi.getItempackagingPage, // 查询弹窗所需分页方法
|
|
|
searchPage: ItempackagingApi.getItempackagingPage, // 查询弹窗所需分页方法
|
|
|
searchCondition: [{ |
|
|
searchCondition: [ |
|
|
|
|
|
{ |
|
|
key: 'available', |
|
|
key: 'available', |
|
|
value: 'TRUE', |
|
|
value: 'TRUE', |
|
|
isMainValue: false |
|
|
isMainValue: false |
|
|
},{ |
|
|
}, |
|
|
|
|
|
{ |
|
|
key: 'itemCode', |
|
|
key: 'itemCode', |
|
|
value: 'itemCode', |
|
|
value: 'itemCode', |
|
|
message: '请先选择物料代码!', |
|
|
message: '请先选择物料代码!', |
|
|
isMainValue: true |
|
|
isMainValue: true |
|
|
}] |
|
|
} |
|
|
|
|
|
] |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
@ -485,16 +509,19 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[ |
|
|
searchTitle: '物料包装信息', // 查询弹窗标题
|
|
|
searchTitle: '物料包装信息', // 查询弹窗标题
|
|
|
searchAllSchemas: Itempackaging.allSchemas, // 查询弹窗所需类
|
|
|
searchAllSchemas: Itempackaging.allSchemas, // 查询弹窗所需类
|
|
|
searchPage: ItempackagingApi.getItempackagingPage, // 查询弹窗所需分页方法
|
|
|
searchPage: ItempackagingApi.getItempackagingPage, // 查询弹窗所需分页方法
|
|
|
searchCondition: [{ |
|
|
searchCondition: [ |
|
|
|
|
|
{ |
|
|
key: 'available', |
|
|
key: 'available', |
|
|
value: 'TRUE', |
|
|
value: 'TRUE', |
|
|
isMainValue: false |
|
|
isMainValue: false |
|
|
},{ |
|
|
}, |
|
|
|
|
|
{ |
|
|
key: 'itemCode', |
|
|
key: 'itemCode', |
|
|
value: 'itemCode', |
|
|
value: 'itemCode', |
|
|
message: '请先选择物料代码!', // 当前置条件为空时 弹出信息提示
|
|
|
message: '请先选择物料代码!', // 当前置条件为空时 弹出信息提示
|
|
|
isMainValue: true |
|
|
isMainValue: true |
|
|
}] |
|
|
} |
|
|
|
|
|
] |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -551,7 +578,7 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[ |
|
|
style: { width: '100%' }, |
|
|
style: { width: '100%' }, |
|
|
type: 'datetime', |
|
|
type: 'datetime', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
valueFormat: 'x', |
|
|
valueFormat: 'x' |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
isTableForm: false, |
|
|
isTableForm: false, |
|
@ -577,9 +604,10 @@ export const ProductionreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[ |
|
|
width: 250, |
|
|
width: 250, |
|
|
fixed: 'right' |
|
|
fixed: 'right' |
|
|
}, |
|
|
}, |
|
|
isTableForm:false, |
|
|
isTableForm: false |
|
|
} |
|
|
} |
|
|
])) |
|
|
]) |
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
//表单校验
|
|
|
//表单校验
|
|
|
export const ProductionreturnRequestDetailRules = reactive({ |
|
|
export const ProductionreturnRequestDetailRules = reactive({ |
|
|