diff --git a/src/views/invoicing/components/shopList.vue b/src/views/invoicing/components/shopList.vue index 2d5da25..dc5ae97 100644 --- a/src/views/invoicing/components/shopList.vue +++ b/src/views/invoicing/components/shopList.vue @@ -16,7 +16,7 @@
- + @@ -85,16 +85,30 @@ export default { loading: false, list: [] }, - goods: [] + goods: [], + // 是否单选 + isselect: false } }, methods: { + firstSelectChange() { + // console.log(selection) + let selection = this.$refs.table.selection + if (selection.length > 1 && this.isselect) { + const del_row = selection.shift(); + this.$refs.table.toggleRowSelection(del_row, false); + } + }, // 确定选商品 confirmHandle() { let res = this.$refs.table.selection this.$emit('success', res) this.close() }, + // 是否单选 + isselectEvent() { + this.isselect = true + }, // 重置查询 resetHandle() { this.searhForm.name = '' diff --git a/src/views/invoicing/consumable/information.vue b/src/views/invoicing/consumable/information.vue index d1cf7dd..645aa40 100644 --- a/src/views/invoicing/consumable/information.vue +++ b/src/views/invoicing/consumable/information.vue @@ -56,9 +56,9 @@ -