소스 검색

修改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')