chenrui hace 3 años
padre
commit
504b7d9895
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/views/salesManagement/salesQuery/edit.vue

+ 2 - 1
src/views/salesManagement/salesQuery/edit.vue

@@ -417,7 +417,7 @@ export default {
       const _this = this
       // 判断是否已添加此产品
       if (this.dataSource && this.dataSource.length > 0) {
-        const hasRow = this.dataSource.find(item => item.productSn == row.productSn && item.warehouseSn == row.warehouseSn && item.warehouseLocationSn == row.warehouseLocationSn)
+        const hasRow = this.dataSource.find(item => item.productSn == row.productSn)
         if (hasRow) {
           // this.$message.info('该产品已在当前销售单中存在!')
           this.productForm = {
@@ -480,6 +480,7 @@ export default {
       }).then(res => {
         if (res.status == 200) {
           // this.resetSearchForm(true)  //  不刷新库存
+          this.$refs.table.refresh(true)
           this.$message.success('产品添加成功', 2.5)
         }
         this.isInster = false