|  | @@ -662,6 +662,8 @@ export default {
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        ]
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | +  },activated(){
 | 
	
		
			
				|  |  | +    this.homePage()
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    created() {
 | 
	
		
			
				|  |  |      let data = {
 | 
	
	
		
			
				|  | @@ -736,6 +738,21 @@ export default {
 | 
	
		
			
				|  |  |      this.fCompany(2)
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    methods: {
 | 
	
		
			
				|  |  | +    homePage(){
 | 
	
		
			
				|  |  | +      let date = this.$route.query
 | 
	
		
			
				|  |  | +      console.log(date)
 | 
	
		
			
				|  |  | +      if (this.$route.query.list){
 | 
	
		
			
				|  |  | +        console.log(this.contentButton)
 | 
	
		
			
				|  |  | +        this.contentButton.push(JSON.parse(this.$route.query.list))
 | 
	
		
			
				|  |  | +        console.log(this.contentButton)
 | 
	
		
			
				|  |  | +        let scope = {
 | 
	
		
			
				|  |  | +          row:{
 | 
	
		
			
				|  |  | +            fId:JSON.parse(this.$route.query.data).billId
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        this.viewMethod(scope)
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      // 查看审批流
 | 
	
		
			
				|  |  |      getDataList() {
 | 
	
		
			
				|  |  |        this.addOrUpdateVisible = false;
 | 
	
	
		
			
				|  | @@ -952,6 +969,12 @@ export default {
 | 
	
		
			
				|  |  |      selectionbox(selection) {
 | 
	
		
			
				|  |  |        console.log(selection)
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | +    addOrUpdateHand() {
 | 
	
		
			
				|  |  | +      this.addOrUpdateVisib = true;
 | 
	
		
			
				|  |  | +      this.$nextTick(() => {
 | 
	
		
			
				|  |  | +        this.$refs.ApprovalComments.init(this.$refs.avatar.form.fId,520);
 | 
	
		
			
				|  |  | +      });
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      //详情内容保存
 | 
	
		
			
				|  |  |      submitAndSave(item) {
 | 
	
		
			
				|  |  |        let formData = new window.FormData()
 | 
	
	
		
			
				|  | @@ -1035,7 +1058,7 @@ export default {
 | 
	
		
			
				|  |  |          case '修改':
 | 
	
		
			
				|  |  |            this.contentButton.forEach(item =>{
 | 
	
		
			
				|  |  |              if (this.$refs.avatar.form.fBillstatus >= 4){
 | 
	
		
			
				|  |  | -              if (item.name === '返回列表' || item.name === '修改' || item.name === '申请发票' || item.name === '查看审批'){
 | 
	
		
			
				|  |  | +              if (item.name === '返回列表' || item.name === '修改' || item.name === '申请发票' || item.name === '查看审批' || item.name === '审批'){
 | 
	
		
			
				|  |  |                  item.disabled = false
 | 
	
		
			
				|  |  |                }else {
 | 
	
		
			
				|  |  |                  item.disabled = true
 | 
	
	
		
			
				|  | @@ -1070,14 +1093,16 @@ export default {
 | 
	
		
			
				|  |  |            })
 | 
	
		
			
				|  |  |            break
 | 
	
		
			
				|  |  |          case '返回列表':
 | 
	
		
			
				|  |  | -          if (!this.$refs.avatar.form.fId && this.contentList !== 0 || this.$refs.avatar.form.fBillstatus >= 4) {
 | 
	
		
			
				|  |  | +          if (!this.$refs.avatar.form.fId && this.contentList !== 0 || this.$refs.avatar.form.fBillstatus >= 4 && !this.$route.query) {
 | 
	
		
			
				|  |  |              data = {
 | 
	
		
			
				|  |  |                tableName: this.queryList.tableName,
 | 
	
		
			
				|  |  |                userId: Cookies.get('userName')
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              this.getRow(data)
 | 
	
		
			
				|  |  |              this.query(this.formDataList)
 | 
	
		
			
				|  |  | -          } else {
 | 
	
		
			
				|  |  | +          } else if(this.$route.query){
 | 
	
		
			
				|  |  | +            this.$router.push({path:'/index'})
 | 
	
		
			
				|  |  | +          }else {
 | 
	
		
			
				|  |  |              this.$confirm('当前数据未保存是否保存?', '提示', {
 | 
	
		
			
				|  |  |                confirmButtonText: '保存',
 | 
	
		
			
				|  |  |                cancelButtonText: '取消',
 | 
	
	
		
			
				|  | @@ -1104,6 +1129,9 @@ export default {
 | 
	
		
			
				|  |  |          case '查看审批':
 | 
	
		
			
				|  |  |            this.addOrUpdateHandle()
 | 
	
		
			
				|  |  |            break
 | 
	
		
			
				|  |  | +        case '审批':
 | 
	
		
			
				|  |  | +          this.addOrUpdateHand()
 | 
	
		
			
				|  |  | +          break
 | 
	
		
			
				|  |  |          default:
 | 
	
		
			
				|  |  |            this.$message.error('该按钮暂无功能')
 | 
	
		
			
				|  |  |        }
 |