|
@ -168,6 +168,10 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
console.log( val[0]); |
|
|
console.log( val[0]); |
|
|
row['uom'] = val[0]['customerUom'] |
|
|
row['uom'] = val[0]['customerUom'] |
|
|
} |
|
|
} |
|
|
|
|
|
} else if(formField == 'customerDockCode') { |
|
|
|
|
|
//客户月台 |
|
|
|
|
|
setV['toWarehouseCode'] = val[0]['warehouseCode']//到仓库 |
|
|
|
|
|
setV['toLocationCode'] = val[0]['defaultLocationCode']//到库位 |
|
|
} else { |
|
|
} else { |
|
|
setV[formField] = val[0][searchField] |
|
|
setV[formField] = val[0][searchField] |
|
|
} |
|
|
} |
|
@ -494,7 +498,12 @@ const flag = ref(false) |
|
|
|
|
|
|
|
|
// 主子数据 提交 |
|
|
// 主子数据 提交 |
|
|
const submitForm = async (formType, data) => { |
|
|
const submitForm = async (formType, data) => { |
|
|
|
|
|
flag.value = false |
|
|
data.subList = tableData.value // 拼接子表数据参数 |
|
|
data.subList = tableData.value // 拼接子表数据参数 |
|
|
|
|
|
data.subList.forEach(item=>{ |
|
|
|
|
|
item.toWarehouseCode = data.toWarehouseCode |
|
|
|
|
|
item.toLocationCode = data.toLocationCode |
|
|
|
|
|
}) |
|
|
let isExist = false |
|
|
let isExist = false |
|
|
tableData.value.forEach(item => { |
|
|
tableData.value.forEach(item => { |
|
|
let rs = tableData.value.filter(filterItem => (filterItem.itemCode == item.itemCode)) |
|
|
let rs = tableData.value.filter(filterItem => (filterItem.itemCode == item.itemCode)) |
|
|