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