|
|
@ -6,10 +6,10 @@ |
|
|
|
<uni-swipe-action ref="swipeAction"> |
|
|
|
<uni-swipe-action-item @click="removeData($event,dataContent)" :right-options="removeOptions"> |
|
|
|
<item-qty v-if="settingParam.isOpenCount=='TRUE'" :dataContent="dataContent" |
|
|
|
:handleQty="dataContent.handleQty" :isShowBalanceQty="true"> |
|
|
|
:handleQty="dataContent.handleQty" :isShowBalanceQty="false"> |
|
|
|
</item-qty> |
|
|
|
<item-qty v-else :dataContent="dataContent" :handleQty="dataContent.handleQty" |
|
|
|
:isShowBalanceQty="false" :showRecommendQty="false" :showStdPack="true"> |
|
|
|
:isShowBalanceQty="true" :showRecommendQty="false" :showStdPack="true"> |
|
|
|
</item-qty> |
|
|
|
</uni-swipe-action-item> |
|
|
|
</uni-swipe-action> |
|
|
@ -105,10 +105,16 @@ |
|
|
|
methods: { |
|
|
|
removeData(e, dataContent) { |
|
|
|
if (e.content.text == "清空") { |
|
|
|
this.$refs.comMessage.showQuestionMessage("确定清空物料及箱码信息?", |
|
|
|
this.$refs.comMessage.showQuestionMessage("确定清空该物料下面扫描的信息吗?", |
|
|
|
res => { |
|
|
|
if (res) { |
|
|
|
this.$emit('removeItem') |
|
|
|
dataContent.handleQty = 0; |
|
|
|
dataContent.subList.forEach(res=>{ |
|
|
|
res.scaned = false; |
|
|
|
res.handleQty= 0 |
|
|
|
}) |
|
|
|
|
|
|
|
this.$emit('clear') |
|
|
|
// this.$emit('removeItem', this.dataContent) |
|
|
|
} |
|
|
|
}); |
|
|
|