选择耗材
This commit is contained in:
@@ -97,11 +97,16 @@ export default {
|
|||||||
this.$refs.table.toggleRowSelection(del_row, false);
|
this.$refs.table.toggleRowSelection(del_row, false);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// 确定选商品
|
// 确定选商品
|
||||||
confirmHandle() {
|
confirmHandle() {
|
||||||
// let res = this.$refs.table.selection
|
// let res = this.$refs.table.selection
|
||||||
let res = this.stayselection
|
// let res = this.stayselection
|
||||||
this.$emit('success', res)
|
// this.$emit('success', res)
|
||||||
|
var uniqueArray = this.stayselection.filter(item1 =>
|
||||||
|
!this.goods.some(item2 => item2.productId == item1.id)
|
||||||
|
);
|
||||||
|
this.$emit('success', uniqueArray)
|
||||||
this.close()
|
this.close()
|
||||||
},
|
},
|
||||||
// 重置查询
|
// 重置查询
|
||||||
|
|||||||
@@ -112,8 +112,10 @@ export default {
|
|||||||
// 确定选商品
|
// 确定选商品
|
||||||
confirmHandle() {
|
confirmHandle() {
|
||||||
// let res = this.$refs.table.selection
|
// let res = this.$refs.table.selection
|
||||||
let res = this.stayselection
|
var uniqueArray = this.stayselection.filter(item1 =>
|
||||||
this.$emit('success', res)
|
!this.goods.some(item2 => item2.productId == item1.id)
|
||||||
|
);
|
||||||
|
this.$emit('success', uniqueArray)
|
||||||
this.close()
|
this.close()
|
||||||
},
|
},
|
||||||
// 是否单选
|
// 是否单选
|
||||||
|
|||||||
@@ -385,6 +385,8 @@ export default {
|
|||||||
this.shopTypesActive = type == 'in' ? 0 : 1
|
this.shopTypesActive = type == 'in' ? 0 : 1
|
||||||
this.inTabValue = value
|
this.inTabValue = value
|
||||||
this.resetHandle()
|
this.resetHandle()
|
||||||
|
this.$refs.shopList.clearSelection()//清除选项
|
||||||
|
this.$refs.ConsumableList.clearSelection()//清除选项
|
||||||
},
|
},
|
||||||
// 计算耗材总价
|
// 计算耗材总价
|
||||||
consCountTotal(cvalue, row, key1, key2 = undefined) {
|
consCountTotal(cvalue, row, key1, key2 = undefined) {
|
||||||
|
|||||||
@@ -350,6 +350,8 @@ export default {
|
|||||||
this.shopTypesActive = 1
|
this.shopTypesActive = 1
|
||||||
this.resetHandle()
|
this.resetHandle()
|
||||||
this.queryForm.type = type
|
this.queryForm.type = type
|
||||||
|
this.$refs.shopList.clearSelection()//清除选项
|
||||||
|
this.$refs.ConsumableList.clearSelection()//清除选项
|
||||||
},
|
},
|
||||||
//删除计算
|
//删除计算
|
||||||
spliceclick() {
|
spliceclick() {
|
||||||
|
|||||||
Reference in New Issue
Block a user