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