|
@@ -328,6 +328,17 @@ export default {
|
|
_this.saveNewProduct(row)
|
|
_this.saveNewProduct(row)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
+ } else if (row.putCost > row.salePrice) {
|
|
|
|
+ // 销售价低于成本价
|
|
|
|
+ this.$confirm({
|
|
|
|
+ title: '提示',
|
|
|
|
+ content: '售价低于成本价,确认要添加吗?',
|
|
|
|
+ centered: true,
|
|
|
|
+ closable: true,
|
|
|
|
+ onOk () {
|
|
|
|
+ _this.saveNewProduct(row)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
} else {
|
|
} else {
|
|
this.saveNewProduct(row)
|
|
this.saveNewProduct(row)
|
|
}
|
|
}
|