|
|
@ -122,9 +122,12 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
row['containerNumber'] = val[0]['containerNumber'] |
|
|
|
row['batch'] = val[0]['batch'] |
|
|
|
row['inventoryStatus'] = val[0]['inventoryStatus'] |
|
|
|
row['fromLocationCode'] = val[0]['locationCode'] |
|
|
|
row['itemCode'] = val[0]['itemCode'] |
|
|
|
row['uom'] = val[0]['uom'] |
|
|
|
} else if(formField == 'toLocationCode'){ |
|
|
|
console.log(row,111); |
|
|
|
|
|
|
|
row['toLocationCode'] = val[0]['code'] |
|
|
|
}else{ |
|
|
|
row[formField] = val[0][searchField] |
|
|
|
} |
|
|
@ -297,7 +300,6 @@ const formRef = ref() |
|
|
|
const openForm = (type: string, row?: number) => { |
|
|
|
tableData.value = [] // 重置明细数据 |
|
|
|
formRef.value.open(type, row) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@ -419,10 +421,10 @@ const submitForm = async (formType, data) => { |
|
|
|
formRef.value.formLoading = false |
|
|
|
return; |
|
|
|
} |
|
|
|
await StockupDetailRequestApi.createStockupDetailRequest(data) |
|
|
|
await StockupMainRequestApi.createStockupMainRequest(data) |
|
|
|
message.success(t('common.createSuccess')) |
|
|
|
} else { |
|
|
|
await StockupDetailRequestApi.updateStockupDetailRequest(data) |
|
|
|
await StockupMainRequestApi.updateStockupMainRequest(data) |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
} |
|
|
|
formRef.value.dialogVisible = false |
|
|
|