|
|
@ -8,7 +8,12 @@ |
|
|
|
<uni-collapse-item :open="true"> |
|
|
|
<template v-slot:title> |
|
|
|
<!-- 物品 --> |
|
|
|
<item-qty :dataContent="item" :handleQty="item.handleQty"></item-qty> |
|
|
|
<uni-swipe-action ref="swipeAction"> |
|
|
|
<uni-swipe-action-item @click="itemCoceClick($event,item,index)" |
|
|
|
:right-options="removeOptions"> |
|
|
|
<item-qty :dataContent="item" :handleQty="item.handleQty"></item-qty> |
|
|
|
</uni-swipe-action-item> |
|
|
|
</uni-swipe-action> |
|
|
|
<!-- <com-issue-request-info :workShopCode="dataContent.workShopCode" :dataContent="dataContent"> |
|
|
|
</com-issue-request-info> --> |
|
|
|
</template> |
|
|
@ -68,11 +73,12 @@ |
|
|
|
import comIssueRequestInfo from '@/pages/issue/coms/comIssueRequestInfo.vue' |
|
|
|
import { |
|
|
|
getDetailOption, |
|
|
|
getEditRemoveOption |
|
|
|
getEditRemoveOption, |
|
|
|
getRemoveOption |
|
|
|
} from '@/common/array.js'; |
|
|
|
|
|
|
|
export default { |
|
|
|
emits: ['updateData'], |
|
|
|
emits: ['updateData',"removeItemCode"], |
|
|
|
components: { |
|
|
|
itemQty, |
|
|
|
recommend, |
|
|
@ -107,13 +113,15 @@ |
|
|
|
editItem: {}, |
|
|
|
batchItem: {}, |
|
|
|
detailOptions: [], |
|
|
|
scanOptions: [] |
|
|
|
scanOptions: [], |
|
|
|
removeOptions:[] |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
mounted() { |
|
|
|
this.detailOptions = getDetailOption(); |
|
|
|
this.scanOptions = getEditRemoveOption(); |
|
|
|
this.removeOptions = getRemoveOption() |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
@ -135,6 +143,13 @@ |
|
|
|
this.remove(batch, record, index) |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
itemCoceClick(e,item,index){ |
|
|
|
if (e.content.text == "移除") { |
|
|
|
this.dataContent.Items.splice(index, 1); |
|
|
|
this.$emit('removeItemCode') |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
edit(batch, item) { |
|
|
|
let that = this; |
|
|
|