Browse Source

冯微:添加 从库存状态和到库存状态不能相同

hella_online_20240829
wangyufei 3 months ago
parent
commit
925a398654
  1. 5
      src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue

5
src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue

@ -445,6 +445,11 @@ const submitForm = async (formType, submitData) => {
if(data.masterId){
data.id = data.masterId
}
let findInventoryStatus = tableData.value.find(item=>item.fromInventoryStatus&&item.toInventoryStatus&&item.fromInventoryStatus==item.toInventoryStatus)
if(findInventoryStatus){
message.warning('从库存状态和到库存状态不能相同')
return
}
data.subList = tableData.value //
const duplicateItems = tableData.value.filter((item, index) => {
return tableData.value.findIndex((el) => el.itemCode === item.itemCode) !== index;

Loading…
Cancel
Save