fix(inventory): 解决发货数据仓库一致性验证问题
- 添加仓库ID一致性检查逻辑 - 验证发货数据仓库与出库单仓库是否匹配 - 不一致时抛出服务异常并提示用户重新确认 - 恢复票据类型选择框功能而非只读标签显示dev_1.0.2
parent
6f072b97c9
commit
ddcde9e1da
|
|
@ -114,15 +114,15 @@
|
|||
<el-col :span="12">
|
||||
<el-form :model="uploadForm" ref="uploadForm" :rules="rules" label-width="120px" size="medium" >
|
||||
<el-form-item label="票据类型" prop="ticketType" required>
|
||||
<dict-tag :options="dict.type.finance_invoice_type" :value="uploadForm.ticketType"/>
|
||||
<!-- <el-select v-model="uploadForm.ticketType" placeholder="请选择票据类型">-->
|
||||
<!-- <el-option-->
|
||||
<!-- v-for="item in dict.type.finance_invoice_type"-->
|
||||
<!-- :key="item.value"-->
|
||||
<!-- :label="item.label"-->
|
||||
<!-- :value="item.value"-->
|
||||
<!-- ></el-option>-->
|
||||
<!-- </el-select>-->
|
||||
<!-- <dict-tag :options="dict.type.finance_invoice_type" :value="uploadForm.ticketType"/>-->
|
||||
<el-select v-model="uploadForm.ticketType" placeholder="请选择票据类型">
|
||||
<el-option
|
||||
v-for="item in dict.type.finance_invoice_type"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="收票附件" prop="file" required>
|
||||
<div style="display: flex; flex-direction: column; align-items: flex-start;">
|
||||
|
|
|
|||
|
|
@ -134,6 +134,10 @@ public class InventoryDeliveryServiceImpl implements IInventoryDeliveryService {
|
|||
}).collect(Collectors.toList());
|
||||
inventoryInfoService.saveBatch(inventoryInfoList);
|
||||
} else {
|
||||
Long warehouseId = productSnDataList.get(0).getWarehouseId();
|
||||
if (warehouseId!=null && !warehouseId.equals(inventoryDelivery.getWarehouseId())){
|
||||
throw new ServiceException("发货数据仓库与出库单仓库不一致,请确认后重试");
|
||||
}
|
||||
for (InventoryInfo inventoryInfo : productSnDataList) {
|
||||
inventoryInfo.setInventoryStatus(InventoryInfo.InventoryStatusEnum.OUTER.getCode());
|
||||
inventoryInfo.setOuterCode(inventoryDelivery.getOuterCode());
|
||||
|
|
|
|||
Loading…
Reference in New Issue