| 
					
				 | 
			
			
				@@ -35,6 +35,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <script> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { listCharge } from '@/api/system/startApproval' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { queryUserVal } from '@/api/warehouseBusiness/agreement' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import Global from '@/layout/components/global' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     name: 'startApproval', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     data () { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -79,21 +80,44 @@ import { queryUserVal } from '@/api/warehouseBusiness/agreement' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           type: 'warning' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }).then(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           return  listCharge(this.dataForm,'/warehouse/paths/approved') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          }).then(({data}) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (data && data.code === 200) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          }).then(data => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          console.log(data) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (data && data.code == 200) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               this.$message({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                message: '操作成功', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                message: '审核通过', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 type: 'success', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 duration: 600, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 onClose: () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   this.closeDia() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.visible = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.homePage() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               this.$message.error(data.msg) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      homePage(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        let view = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          fullPath: "/finance/charge", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          hash: "", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          matched: Array(2), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          meta: Object, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          name: "Charge", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          params: Object, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          path: "/finance/charge", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          query: Object, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          title: "收费" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.$router.push({ path: '/index'}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.$store.dispatch('tagsView/delView', view).then(({ visitedViews }) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          if (this.isActive(view)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.toLastView(visitedViews, view) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        Global.$emit("removeCache", "closeSelectedTag", view); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       approvalRejected () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.$confirm(`是否驳回审批?`, '提示', { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           confirmButtonText: '确定', 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -102,15 +126,17 @@ import { queryUserVal } from '@/api/warehouseBusiness/agreement' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }).then(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           return listCharge(this.dataForm,'/warehouse/paths/approvalRejected') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           }).then(({data}) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (data && data.code === 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (data && data.code == 200) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               this.$message({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                message: '操作成功', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                message: '驳回审批', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 type: 'success', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 duration: 600, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 onClose: () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   this.closeDia() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.visible = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.homePage() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               this.$message.error(data.msg) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 |