|
|
|
|
@ -748,8 +748,7 @@ const submitForm = async() => {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* // 生成batchCode基于配置
|
|
|
|
|
childrenTableInfoForm.value.batchCode = generateBatchCode(childrenTableInfoForm.value)*/
|
|
|
|
|
childrenTableInfoForm.value.batchCode = generateBatchCode(childrenTableInfoForm.value)
|
|
|
|
|
await updateInstockDetail(childrenTableInfoForm.value)
|
|
|
|
|
getChildrenTable({instockId: partntTableSelectCell.value.instockId})
|
|
|
|
|
childrenTableInfoVisible.value = false
|
|
|
|
|
@ -771,15 +770,14 @@ const saveBatchConfig = () => {
|
|
|
|
|
const generateBatchCode = (form) => {
|
|
|
|
|
if (!selectedComponents.value.length) return '' // 或默认生成
|
|
|
|
|
return selectedComponents.value.map(comp => {
|
|
|
|
|
if (comp === '当前时间') return new Date().toISOString().slice(0,10)
|
|
|
|
|
if (comp === '当前时间') return new Date().toISOString().slice(0,10).replace(/-/g, '')
|
|
|
|
|
if (comp === '入库单号') return form.instockCode
|
|
|
|
|
if (comp === '物料编码') return form.materialCode
|
|
|
|
|
return ''
|
|
|
|
|
}).join('-') // 假设用-连接,可配置
|
|
|
|
|
}).join('')
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let mategoryOptions = ref([]);
|
|
|
|
|
const getMaterialCategorySelect = async () => {
|
|
|
|
|
const res = await getBaseMaterialCategoryListInWMS(null);
|
|
|
|
|
@ -833,9 +831,6 @@ const handlePrint = async (row?: InstockDetailVO) => {
|
|
|
|
|
const _instockDetailId = row?.instockDetailId || ids.value[0]
|
|
|
|
|
const res = await getInstockDetail(_instockDetailId);
|
|
|
|
|
Object.assign(childrenTableInfoForm.value, res.data);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
// 查询
|
|
|
|
|
const query = async () => {
|
|
|
|
|
|