@ -124,6 +124,11 @@
type: Boolean,
default: true
},
// 是否校验扫描数量大于库存数量
isTestBalance: {
watch:{
'allQty'(newVal){
@ -188,7 +193,7 @@
this.allQty = balanceQty;
})
}else {
if (this.allQty > balanceQty) {
if (this.allQty > balanceQty && this.isTestBalance) {
this.$refs.comMessage.showConfirmWarningModal('数量[' + this.allQty + ']不允许大于库存数量[' + balanceQty + ']',
res => {
@ -22,7 +22,7 @@
</uni-collapse-item>
</uni-collapse>
<balance-qty-edit ref="qtyEdit" :settingParam="settingParam" :allowEditQty="allowEditQty" @confirm="confirm"
:allowEditStatus="true"></balance-qty-edit>
:allowEditStatus="true" :isTestBalance='isTestBalance'></balance-qty-edit>
<win-scan-location ref="scanLocationCode" :locationAreaTypeList="locationAreaTypeList" title="目标库位" @getLocation='getLocation'></win-scan-location>
<detail-info-popup ref="detailInfoPopup"></detail-info-popup>
<comMessage ref="message"></comMessage>
@ -80,7 +80,12 @@
locationAreaTypeList: {
type: Array,
default: []
}
watch: {
dataContent: {