소스 검색

bug 修复

lilei 3 년 전
부모
커밋
34e588aa3c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/views/salesManagement/salesQuery/edit.vue

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

@@ -242,7 +242,7 @@ export default {
         //  校验库存
         stockByProductSn({ productSn: record.productSn }).then(res => {
           if (res.status == 200 && res.data) {
-            if (res.data.currentStockQty && val > res.data.currentStockQty) {
+            if (res.data.currentStockQty != undefined && val > res.data.currentStockQty) {
               this.$confirm({
                 title: '提示',
                 content: '库存不足,确认添加为急件吗?',