|
@ -247,9 +247,14 @@ |
|
|
}) |
|
|
}) |
|
|
} else if (datas.length == 1) { |
|
|
} else if (datas.length == 1) { |
|
|
let balance = datas[0]; |
|
|
let balance = datas[0]; |
|
|
this.packCallBack(balance); |
|
|
if(balance.qty>0){ |
|
|
|
|
|
this.packCallBack(balance); |
|
|
|
|
|
}else { |
|
|
|
|
|
this.showErrorMessage(this.getQueryCondition() + '<br>查找到库存记录数量为['+balance.qty+"],<br>不可以进行操作", res => { |
|
|
|
|
|
this.packGetFocus(); |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
|
|
|
|
|
|
this.showBalanceSelect(datas); |
|
|
this.showBalanceSelect(datas); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -259,7 +264,13 @@ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
selectBalanceItem(balance) { |
|
|
selectBalanceItem(balance) { |
|
|
this.packCallBack(balance); |
|
|
if(balance.qty>0){ |
|
|
|
|
|
this.packCallBack(balance); |
|
|
|
|
|
}else { |
|
|
|
|
|
this.showErrorMessage(this.getQueryCondition() + '<br>查找到库存记录数量为['+balance.qty+"],不可以进行操作", res => { |
|
|
|
|
|
this.packGetFocus(); |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
packCallBack(item) { |
|
|
packCallBack(item) { |
|
|