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