浏览代码

修改bug

chenrui 7 月之前
父节点
当前提交
154448ce85
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      src/views/salesManagement/salesQueryNew/comps/productList.vue

+ 10 - 0
src/views/salesManagement/salesQueryNew/comps/productList.vue

@@ -493,6 +493,16 @@ export default {
       }
       salesDetailInsertBatchBorrow(params).then(res => {
         if (res.status == 200) {
+          if (res.data && res.data.length) {
+            const tipInfo = res.data.map((item, i) => { return <p>{item}+',无法添加!'</p> })
+            this.$info({
+              title: '提示',
+              content: tipInfo,
+              centered: true,
+              okText: '知道了'
+            })
+            return
+          }
           this.$message.success('产品添加成功', 2.5)
           this.resetSearchForm(true)
           this.$emit('refash', 'promo')