|
@@ -163,8 +163,12 @@ export default {
|
|
return {
|
|
return {
|
|
on: {
|
|
on: {
|
|
dblclick: (event) => {
|
|
dblclick: (event) => {
|
|
- event.stopPropagation()
|
|
|
|
- _this.$emit('add', record, 0)
|
|
|
|
|
|
+ if (!record.productPrice || record.productPrice <= 0) {
|
|
|
|
+ _this.$message.info('该产品暂时不能添加')
|
|
|
|
+ } else {
|
|
|
|
+ event.stopPropagation()
|
|
|
|
+ _this.$emit('add', record, 0)
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|