|
|
@ -35,9 +35,13 @@ |
|
|
|
<text class="text_black">{{item.recommendQty}}({{item.uom}})</text> |
|
|
|
</uni-th> |
|
|
|
<uni-th width="120" align="center"> |
|
|
|
<view v-if="item.scaned"> |
|
|
|
<view v-if="item.scaned" style="display: flex;flex-direction: row;justify-content:center;align-items: center;"> |
|
|
|
|
|
|
|
<com-number-box :ref="'comNumberBox_'+index" v-model="item.handledQty" :max="99999" :min="0" |
|
|
|
style='width: 100px;' @change="qtyChanged($event,item,index)"> |
|
|
|
</com-number-box> |
|
|
|
<text |
|
|
|
class="text_black">{{item.handledQty}}({{item.uom}})</text> |
|
|
|
class="text_black" >({{item.uom}})</text> |
|
|
|
</view> |
|
|
|
</uni-th> |
|
|
|
</uni-tr> |
|
|
@ -118,6 +122,7 @@ |
|
|
|
import comBalance from '@/mycomponents/common/comBalance.vue' |
|
|
|
import comJobScanDetail from '@/mycomponents/comjob/comJobScanDetail.vue' |
|
|
|
import winScanByPack from '@/mycomponents/wincom/winScanByPack.vue' |
|
|
|
import comNumberBox from '@/mycomponents/common/comNumberBox.vue'; |
|
|
|
|
|
|
|
export default { |
|
|
|
components: { |
|
|
@ -126,7 +131,8 @@ |
|
|
|
winMulitScan, |
|
|
|
comBalance, |
|
|
|
comJobScanDetail, |
|
|
|
winScanByPack |
|
|
|
winScanByPack, |
|
|
|
comNumberBox |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
@ -414,8 +420,8 @@ |
|
|
|
item.handledBatch = balanceItem.batch; |
|
|
|
item.handledLot = balanceItem.lot; |
|
|
|
|
|
|
|
item.defaultHandleQty =balanceItem.qty; |
|
|
|
item.handledQty = balanceItem.qty; |
|
|
|
|
|
|
|
item.handledFromLocationCode = balanceItem.locationCode; |
|
|
|
item.handledFromLocationArea = balanceItem.locationArea; |
|
|
|
item.handledFromLocationGroup = balanceItem.locationErpCode; |
|
|
@ -628,6 +634,17 @@ |
|
|
|
// console.log(e) |
|
|
|
this.old.scrollTop = e.detail.scrollTop; |
|
|
|
}, |
|
|
|
qtyChanged(value, item,index) { |
|
|
|
if (value <= 0) { |
|
|
|
this.showMessage('发料数量不能小于或等于0') |
|
|
|
item.handledQty =item.defaultHandleQty |
|
|
|
this.$refs['comNumberBox_'+index][0].setValue(item.handledQty); |
|
|
|
}else if(value>item.defaultHandleQty){ |
|
|
|
item.handledQty = item.defaultHandleQty |
|
|
|
this.showMessage('发料数量不能大于库存数量:'+item.handledQty) |
|
|
|
this.$refs['comNumberBox_'+index][0].setValue(item.handledQty); |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|