Browse Source

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

intex_online20241111
zhang_li 4 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"> <uni-collapse-item :open="true">
<template v-slot:title> <template v-slot:title>
<uni-swipe-action> <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':''"> @click="swipeClick($event,dataContent)" :class="dataContent.scaned?'scan_view':''">
<itemCompareQty :dataContent="dataContent" :handleQty="dataContent.handleQty" <itemCompareQty :dataContent="dataContent" :handleQty="dataContent.handleQty"
:isShowPackUnit="false"></itemCompareQty> :isShowPackUnit="false"></itemCompareQty>
@ -109,6 +109,7 @@
this.scanOptions = getPurchaseReceiptOption(this.settingParam.allowModifyQty, this.settingParam this.scanOptions = getPurchaseReceiptOption(this.settingParam.allowModifyQty, this.settingParam
.allowModifyLocation) .allowModifyLocation)
} }
console.log(111,this.scanOptions)
if (this.removeOptions.length == 0) { if (this.removeOptions.length == 0) {
this.removeOptions = getRemoveOption(); this.removeOptions = getRemoveOption();
@ -207,6 +208,7 @@
// }); // });
// }, // },
confirm(qty) { confirm(qty) {
console.log(qty)
this.editItem.handleQty = qty; this.editItem.handleQty = qty;
this.$emit('updateData') this.$emit('updateData')
}, },

Loading…
Cancel
Save