| 
					
				 | 
			
			
				@@ -1,5 +1,4 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  <!-- #ifdef H5 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <zj-page-layout :hasFooter="true"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <template slot="header"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <view class="search-container"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -124,18 +123,9 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </zj-page-layout> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  <!-- #endif --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  <!-- #ifndef H5 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  <web-view 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    :src="webViewHref(`/packageMaterial/pages/apply/product`, pam, crossPagePam)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    @message="crossPage.$listener" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  ></web-view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  <!-- #endif --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <script> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-// #ifdef H5 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   data() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     return { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -144,13 +134,13 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       websitId: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       websitName: null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       keyword: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		leftList: [], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		leftCurrent: 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		rightList: [], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      leftList: [], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      leftCurrent: 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      rightList: [], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       loadStatus: 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       isShowDialog: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      cartList: [], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      cartList: [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -160,173 +150,167 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // this.cartList.forEach(item => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       //   val = val + item.num; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      return this.cartList.length; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      return this.cartList.length 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     totalPrice() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      let val = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      let val = 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.cartList.forEach(item => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        val = val + (item.num * (item.price * 100) / 100); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        val = val + (item.num * (item.price * 100)) / 100 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      return val; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      return val 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  onLoad({type, applyName, websitId, websitName}) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    this.type = type; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    this.applyName = applyName; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    this.websitId = websitId; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    this.websitName = websitName; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  onLoad({ type, applyName, websitId, websitName }) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    this.type = type 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    this.applyName = applyName 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    this.websitId = websitId 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    this.websitName = websitName 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     uni.setNavigationBarTitle({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-     title: type == 'M' ? '选择辅材' : '选择配件' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      title: type == 'M' ? '选择辅材' : '选择配件' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    if(type === 'M') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.getLeftList(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.getRightList(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    if (type === 'M') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.getLeftList() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.getRightList() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   methods: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 获取左侧分类 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     getLeftList() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    	this.$api.post('/material/salses/exist/stock/category', { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        websitId: this.websitId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      }).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    		this.leftList = res.data; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    		this.leftCurrent = res.data.length > 0 ? res.data[0].categoryId : 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    		this.getRightList(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    	}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.$api 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        .post('/material/salses/exist/stock/category', { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          websitId: this.websitId 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        .then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.leftList = res.data 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.leftCurrent = res.data.length > 0 ? res.data[0].categoryId : 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.getRightList() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 获取右侧产品 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     getRightList() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    	this.loadStatus = 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      let url = '', params = {}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    	this.$api.post('/material/salses/exist/stock/goods', { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        websitId: this.websitId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        goodsName: this.keyword, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        type: this.type, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        categoryId: this.type === 'M' ? this.leftCurrent : '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    	}).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    		this.loadStatus = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        let list = res.data.map(item => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          return { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            ...item, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            num: 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        for(let i = 0; i < list.length; i++) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          for(let j = 0; j < this.cartList.length; j++) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if(list[i].goodsId == this.cartList[j].goodsId) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              list[i].num = this.cartList[j].num; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.loadStatus = 1 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      let url = '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        params = {} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.$api 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        .post('/material/salses/exist/stock/goods', { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          websitId: this.websitId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          goodsName: this.keyword, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          type: this.type, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          categoryId: this.type === 'M' ? this.leftCurrent : '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        .then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.loadStatus = 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          let list = res.data.map(item => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            return { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              ...item, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              num: 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          for (let i = 0; i < list.length; i++) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            for (let j = 0; j < this.cartList.length; j++) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              if (list[i].goodsId == this.cartList[j].goodsId) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                list[i].num = this.cartList[j].num 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    		if(list.length < 1){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    			this.loadStatus = 2; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    		} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.rightList = list; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        console.log(list,"---------------") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    	}).catch(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    		this.loadStatus = 2; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    	}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          if (list.length < 1) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.loadStatus = 2 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.rightList = list 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          console.log(list, '---------------') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        .catch(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.loadStatus = 2 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 切换一级菜单 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     changeLeft(pid) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    	this.leftCurrent = pid; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    	this.getRightList(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.leftCurrent = pid 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.getRightList() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 搜索 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     searchData() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.getRightList(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.getRightList() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     changeNum(e) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      let obj = this.rightList.find((item) => item.goodsId === e.name); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      if(e.unit && e.unit != '米') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        e.value = Math.floor(e.value); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        obj.num = Math.floor(obj.num); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      let obj = this.rightList.find(item => item.goodsId === e.name) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if (e.unit && e.unit != '米') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        e.value = Math.floor(e.value) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        obj.num = Math.floor(obj.num) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // 判断对象数组中是否存在该对象 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      let index = this.cartList.findIndex((item) => item.goodsId === obj.goodsId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      let index = this.cartList.findIndex(item => item.goodsId === obj.goodsId) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // 如果是0,就删除 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      if(index !== -1 && e.value == 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.cartList.splice(index, 1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if (index !== -1 && e.value == 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.cartList.splice(index, 1) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // 如果有就替换,没有就添加 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       else if (index !== -1) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      	this.cartList.splice(index, 1, obj); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if(e.value > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          this.cartList.push(obj); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.cartList.splice(index, 1, obj) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (e.value > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.cartList.push(obj) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     changeCartNum(e) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      let obj = this.cartList.find((item) => item.goodsId === e.name); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      if(e.unit && e.unit != '米') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        e.value = Math.floor(e.value); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        obj.num = Math.floor(obj.num); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      let obj = this.cartList.find(item => item.goodsId === e.name) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if (e.unit && e.unit != '米') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        e.value = Math.floor(e.value) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        obj.num = Math.floor(obj.num) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      let index = this.cartList.findIndex((item) => item.goodsId === obj.goodsId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.cartList.splice(index, 1, obj); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      let index = this.cartList.findIndex(item => item.goodsId === obj.goodsId) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.cartList.splice(index, 1, obj) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.getRightList(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.getRightList() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     overlimitFun(index) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.$modal({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         content: '把该产品从购物车移除?' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      }).then(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.cartList.splice(index, 1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.getRightList(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      }).catch(() => {}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        .then(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.cartList.splice(index, 1) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.getRightList() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        .catch(() => {}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     clearCart() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.$modal({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         content: '确定清空购物车?' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      }).then(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.cartList = []; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.getRightList(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      }).catch(() => {}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        .then(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.cartList = [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.getRightList() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        .catch(() => {}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     submitData() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      if(this.cartList.length < 1) return this.$toast('请选择'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if (this.cartList.length < 1) return this.$toast('请选择') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.$setStorage('materialApplyData', { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         type: this.type, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         applyName: this.applyName, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         websitId: this.websitId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         websitName: this.websitName, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         goodsList: this.cartList 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.$navToPage({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         url: `/packageMaterial/pages/apply/order` 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-// #endif 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-// #ifndef H5 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  data() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    return { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      pam: {}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  onLoad(pam) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    this.pam = pam; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-// #endif 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </script> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <style lang="scss" scoped> 
			 |