Browse Source

YT-506PDA端执行预生产收货任务,修改数量时取消标签数量的校验

intex_online20241111
张立 4 months ago
parent
commit
b4f703fe9b
  1. 6
      src/mycomponents/qty/recommendQtyEdit.vue
  2. 2
      src/pages/productReceipt/coms/comProductDetailCardBatch.vue
  3. 2
      src/pages/purchaseReceipt/job/receiptDetail.vue

6
src/mycomponents/qty/recommendQtyEdit.vue

@ -108,6 +108,10 @@ import { nextTick } from 'vue';
type: Object,
default: null
},
isNumTips: {
type: Boolean,
default: true
},
},
methods: {
getPackUnitName(packUnit) {
@ -170,7 +174,7 @@ import { nextTick } from 'vue';
setValue() {
// var recommendQty = Number(this.dataContent.qty);
// var labelQty = Number(this.dataContent.record.label.qty);
if (this.allQty > this.labelQty) {
if (this.allQty > this.labelQty && this.isNumTips) {
this.$refs.comMessage.showErrorMessage('数量[' + this.allQty + ']不允许大于标签数量[' +
this.labelQty +
']',

2
src/pages/productReceipt/coms/comProductDetailCardBatch.vue

@ -25,7 +25,7 @@
</view>
<recommend-qty-edit ref="receiptEdit" :dataContent="editItem" :settingParam="settingParam" @confirm="confirm">
<recommend-qty-edit ref="receiptEdit" :dataContent="editItem" :settingParam="settingParam" @confirm="confirm" :isNumTips='false'>
</recommend-qty-edit>
<win-scan-location ref="scanLocationCode" title="目标库位" @getLocation='getLocation'
:locationAreaTypeList="locationAreaTypeList"></win-scan-location>

2
src/pages/purchaseReceipt/job/receiptDetail.vue

@ -792,7 +792,7 @@
pack.handleQty = 0
}
})
detail.toLocationCode = this.toLocationCode
detail.toLocationCode = this.toLocationCode ? this.toLocationCode :this.jobToLocationCode
var info = getPackingNumberAndBatch(this.managementList, detail.itemCode,
detail.packingNumber, detail.batch);
detail.toPackingNumber = info.packingNumber;

Loading…
Cancel
Save