Browse Source

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

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

4
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>
@ -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