lilei 1 年之前
父節點
當前提交
e616a7e59d

+ 9 - 2
src/views/salesManagement/salesQueryNew/comps/detailProductList.vue

@@ -117,9 +117,10 @@ export default {
       showEmpty: false, // 是否显示空数据图片
       showTableHead: true, // 是否显示表格头部
       colspanNums: 13, // 单元格合并列数
-      hasOutStockOfActive: false,
+      hasOutStockOfActive: false, // 产品是否存在缺货
       simpleImage: Empty.PRESENTED_IMAGE_SIMPLE, // 空图片
-      showStockCol: false
+      showStockCol: false, // 显示第三方库存
+      hasJGtire: false // 是否轮胎产品
     }
   },
   computed: {
@@ -403,6 +404,8 @@ export default {
         const productName = (item.productEntity && item.productEntity.name) || (item.dealerProductEntity && item.dealerProductEntity.name)
         const productOrigCode = (item.productEntity && item.productEntity.origCode) || (item.dealerProductEntity && item.dealerProductEntity.origCode)
         const productOrigUnit = (item.productEntity && item.productEntity.unit) || (item.dealerProductEntity && item.dealerProductEntity.unit)
+        const productBrand = (item.productEntity && item.productEntity.productBrandName) || (item.dealerProductEntity && item.dealerProductEntity.productBrandName)
+        const productType3 = (item.productEntity && item.productEntity.productTypeName3) || (item.dealerProductEntity && item.dealerProductEntity.productTypeName3)
         item.productCode = productCode || '--'
         item.productName = productName || '--'
         item.productOrigCode = productOrigCode == ' ' ? '--' : productOrigCode
@@ -415,6 +418,10 @@ export default {
             this.hasOutStockOfActive = true
           }
         }
+        // 判断是否有箭冠轮胎产品
+        if (productBrand.indexOf('箭冠') >= 0 && productType3.indexOf('轮胎') >= 0) {
+          this.hasJGtire = true
+        }
       })
       // 是否有缺货明细
       if (str.length > 0) {

+ 9 - 0
src/views/salesManagement/salesQueryNew/detail.vue

@@ -392,6 +392,15 @@ export default {
           return
         }
 
+        if (this.$refs.productList.hasJGtire) {
+          this.$info({
+            title: '提示',
+            content: '存在箭冠轮胎产品,不可一键审核!',
+            centered: true
+          })
+          return
+        }
+
         this.showDsModal = true
         this.$refs.dsModal.setDetail(this.detailData)
       } else {