@@ -328,6 +328,17 @@ export default {
_this.saveNewProduct(row)
}
})
+ } else if (row.putCost > row.salePrice) {
+ // 销售价低于成本价
+ this.$confirm({
+ title: '提示',
+ content: '售价低于成本价,确认要添加吗?',
+ centered: true,
+ closable: true,
+ onOk () {
+ _this.saveNewProduct(row)
+ }
+ })
} else {
this.saveNewProduct(row)
@@ -140,7 +140,7 @@
size="small"
type="link"
class="button-info"
- v-if="record.billStatus !== 'CANCEL' && record.billStatus !== 'FINISH' && record.billStatus != 'WAIT_OUT_STOCK'"
+ v-if="record.billStatus !== 'CANCEL' && record.billStatus !== 'FINISH' && record.billStatus != 'WAIT_OUT_WAREHOUSE'"
@click="handleEdit(record)"
id="salesManagementList-edit-btn">编辑</a-button>
<a-button