Browse Source

YT-2929物料隔离需要支持线边负库存的隔离

intex
张立 4 days ago
parent
commit
3b03b45417
  1. 7
      src/mycomponents/qty/balanceQtyEdit.vue
  2. 9
      src/pages/inventoryMove/coms/comInventoryDetailCard.vue
  3. 1651
      src/pages/inventoryMove/job/inventoryMoveDetail.vue

7
src/mycomponents/qty/balanceQtyEdit.vue

@ -124,6 +124,11 @@
type: Boolean, type: Boolean,
default: true default: true
}, },
//
isTestBalance: {
type: Boolean,
default: true
},
}, },
watch:{ watch:{
'allQty'(newVal){ 'allQty'(newVal){
@ -188,7 +193,7 @@
this.allQty = balanceQty; this.allQty = balanceQty;
}) })
}else { }else {
if (this.allQty > balanceQty) { if (this.allQty > balanceQty && this.isTestBalance) {
this.$refs.comMessage.showConfirmWarningModal('数量[' + this.allQty + ']不允许大于库存数量[' + balanceQty + ']', this.$refs.comMessage.showConfirmWarningModal('数量[' + this.allQty + ']不允许大于库存数量[' + balanceQty + ']',
res => { res => {
this.allQty = balanceQty; this.allQty = balanceQty;

9
src/pages/inventoryMove/coms/comInventoryDetailCard.vue

@ -22,7 +22,7 @@
</uni-collapse-item> </uni-collapse-item>
</uni-collapse> </uni-collapse>
<balance-qty-edit ref="qtyEdit" :settingParam="settingParam" :allowEditQty="allowEditQty" @confirm="confirm" <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> <win-scan-location ref="scanLocationCode" :locationAreaTypeList="locationAreaTypeList" title="目标库位" @getLocation='getLocation'></win-scan-location>
<detail-info-popup ref="detailInfoPopup"></detail-info-popup> <detail-info-popup ref="detailInfoPopup"></detail-info-popup>
<comMessage ref="message"></comMessage> <comMessage ref="message"></comMessage>
@ -80,7 +80,12 @@
locationAreaTypeList: { locationAreaTypeList: {
type: Array, type: Array,
default: [] default: []
} },
//
isTestBalance: {
type: Boolean,
default: true
},
}, },
watch: { watch: {
dataContent: { dataContent: {

1651
src/pages/inventoryMove/job/inventoryMoveDetail.vue

File diff suppressed because it is too large
Loading…
Cancel
Save