Browse Source

YT-571采购收货,任务如果允许编辑,左滑要有编辑按钮,并且实现编辑功能

intex_online20241111
zhang_li 4 weeks ago
parent
commit
c04bad89e0
  1. 6
      src/pages/purchaseReceipt/coms/comReceiptDetailCardBacth.vue

6
src/pages/purchaseReceipt/coms/comReceiptDetailCardBacth.vue

@ -4,7 +4,7 @@
<uni-collapse-item :open="true">
<template v-slot:title>
<uni-swipe-action>
<uni-swipe-action-item :right-options="dataContent.handleQty>0? removeOptions:options"
<uni-swipe-action-item :right-options="dataContent.handleQty>0? scanOptions:options"
@click="swipeClick($event,dataContent)" :class="dataContent.scaned?'scan_view':''">
<itemCompareQty :dataContent="dataContent" :handleQty="dataContent.handleQty"
:isShowPackUnit="false"></itemCompareQty>
@ -18,7 +18,7 @@
</uni-collapse-item>
</uni-collapse>
<recommend-qty-edit ref=" receiptEdit" :dataContent="editItem" :settingParam="settingParam" @confirm="confirm">
<recommend-qty-edit ref="receiptEdit" :dataContent="editItem" :settingParam="settingParam" @confirm="confirm">
</recommend-qty-edit>
<win-scan-location ref="scanLocationCode" title="目标库位" @getLocation='getLocation'
:locationAreaTypeList="locationAreaTypeList"></win-scan-location>
@ -109,6 +109,7 @@
this.scanOptions = getPurchaseReceiptOption(this.settingParam.allowModifyQty, this.settingParam
.allowModifyLocation)
}
console.log(111,this.scanOptions)
if (this.removeOptions.length == 0) {
this.removeOptions = getRemoveOption();
@ -207,6 +208,7 @@
// });
// },
confirm(qty) {
console.log(qty)
this.editItem.handleQty = qty;
this.$emit('updateData')
},

Loading…
Cancel
Save