@@ -1131,8 +1131,7 @@ function handleLocationClick(item, row, index) {
.then((res)=>{
constlist=res.data||[];
constd=pickBestOrgQuantityRow(list);
conststrictOk=d&&Number(d.orgQuantity??0)>0;
if(strictOk){
if(d){
applyFromDto(d,false);
if(Number(r.totalQuantity)<=0){
proxy.$message.warning('仓库数量为0,无法调用!');
@@ -1144,11 +1143,15 @@ function handleLocationClick(item, row, index) {
returnrunGet(false).then((res2)=>{
constlist2=res2.data||[];
constd2=pickBestOrgQuantityRow(list2);
if(d2&&Number(d2.orgQuantity??0)>0){
if(d2){
applyFromDto(d2,true);
proxy.$message.info(
'所选批号在本仓库无对应库存或批号不一致,已按仓库实物回显批号与可领数量,请核对。'
);
if(Number(r.totalQuantity)<=0){
proxy.$message.warning('仓库数量为0,无法调用!');
}else{
proxy.$message.info(
'所选批号在本仓库无对应库存或批号不一致,已按仓库实物回显批号与可领数量,请核对。'
);
}
}else{
r.totalQuantity=0;
r.price=0;
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.