|  | @@ -170,7 +170,9 @@ import {
 | 
	
		
			
				|  |  |    pleaseCheck,
 | 
	
		
			
				|  |  |    copyNew,
 | 
	
		
			
				|  |  |    revoke,
 | 
	
		
			
				|  |  | -  withdrawBy
 | 
	
		
			
				|  |  | +  withdrawBy,
 | 
	
		
			
				|  |  | +  getName,
 | 
	
		
			
				|  |  | +  queryUserVal
 | 
	
		
			
				|  |  |  } from '@/api/purchaseRequest/index'
 | 
	
		
			
				|  |  |  import Cookies from 'js-cookie'
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -178,6 +180,9 @@ export default {
 | 
	
		
			
				|  |  |    name: 'index',
 | 
	
		
			
				|  |  |    data() {
 | 
	
		
			
				|  |  |      return {
 | 
	
		
			
				|  |  | +      before:'',
 | 
	
		
			
				|  |  | +      lander:'',
 | 
	
		
			
				|  |  | +      operator:'',
 | 
	
		
			
				|  |  |        addOrUpdateVisible: false,
 | 
	
		
			
				|  |  |        addOrUpdateVisib: false,
 | 
	
		
			
				|  |  |        total:0,
 | 
	
	
		
			
				|  | @@ -478,11 +483,25 @@ export default {
 | 
	
		
			
				|  |  |          }, {
 | 
	
		
			
				|  |  |            type: 'primary',
 | 
	
		
			
				|  |  |            size: 'mini',
 | 
	
		
			
				|  |  | -          icon: 'el-icon-plus',
 | 
	
		
			
				|  |  | +          icon: 'el-icon-check',
 | 
	
		
			
				|  |  |            name: '保存',
 | 
	
		
			
				|  |  |            plain: true,
 | 
	
		
			
				|  |  |            disabled: false
 | 
	
		
			
				|  |  |          }, {
 | 
	
		
			
				|  |  | +          type: 'primary',
 | 
	
		
			
				|  |  | +          size: 'mini',
 | 
	
		
			
				|  |  | +          icon: 'el-icon-plus',
 | 
	
		
			
				|  |  | +          name: '新增(详情页)',
 | 
	
		
			
				|  |  | +          plain: true,
 | 
	
		
			
				|  |  | +          disabled: false
 | 
	
		
			
				|  |  | +        },{
 | 
	
		
			
				|  |  | +          type: 'primary',
 | 
	
		
			
				|  |  | +          size: 'mini',
 | 
	
		
			
				|  |  | +          icon: 'el-icon-plus',
 | 
	
		
			
				|  |  | +          name: '复制新增(行)',
 | 
	
		
			
				|  |  | +          plain: true,
 | 
	
		
			
				|  |  | +          disabled: false
 | 
	
		
			
				|  |  | +        },{
 | 
	
		
			
				|  |  |            type: 'success',
 | 
	
		
			
				|  |  |            size: 'mini',
 | 
	
		
			
				|  |  |            icon: 'el-icon-edit',
 | 
	
	
		
			
				|  | @@ -716,6 +735,10 @@ export default {
 | 
	
		
			
				|  |  |      this.homePage()
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    created() {
 | 
	
		
			
				|  |  | +    //获取登陆人
 | 
	
		
			
				|  |  | +    queryUserVal().then((response) => {
 | 
	
		
			
				|  |  | +      this.lander = response.user.userName
 | 
	
		
			
				|  |  | +    })
 | 
	
		
			
				|  |  |      let data = {
 | 
	
		
			
				|  |  |        tableName: this.queryList.tableName,
 | 
	
		
			
				|  |  |        userId: Cookies.get('userName')
 | 
	
	
		
			
				|  | @@ -795,8 +818,8 @@ export default {
 | 
	
		
			
				|  |  |        let date = this.$route.query
 | 
	
		
			
				|  |  |        console.log(date)
 | 
	
		
			
				|  |  |        if (this.$route.query.list){
 | 
	
		
			
				|  |  | -        this.contentButton = this.$options.data().contentButton
 | 
	
		
			
				|  |  | -        this.contentButton.push(JSON.parse(this.$route.query.list))
 | 
	
		
			
				|  |  | +        // this.contentButton = this.$options.data().contentButton
 | 
	
		
			
				|  |  | +        // this.contentButton.push(JSON.parse(this.$route.query.list))
 | 
	
		
			
				|  |  |          console.log(this.contentButton)
 | 
	
		
			
				|  |  |          let scope = {
 | 
	
		
			
				|  |  |            row:{
 | 
	
	
		
			
				|  | @@ -804,6 +827,9 @@ export default {
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          this.viewMethod(scope)
 | 
	
		
			
				|  |  | +      }else{
 | 
	
		
			
				|  |  | +        console.log("111")
 | 
	
		
			
				|  |  | +        this.pageDisplay = true
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      // 查看审批流
 | 
	
	
		
			
				|  | @@ -937,15 +963,30 @@ export default {
 | 
	
		
			
				|  |  |            this.$refs.avatar.form = list.warehouseBills
 | 
	
		
			
				|  |  |            this.contentList = list.tWarehousebillsfees
 | 
	
		
			
				|  |  |            this.contentButton = this.$options.data().contentButton
 | 
	
		
			
				|  |  | -          if (this.$refs.avatar.form.fBillstatus === 6){
 | 
	
		
			
				|  |  | -            this.contentButton.push({
 | 
	
		
			
				|  |  | -              type: 'danger',
 | 
	
		
			
				|  |  | -              size: 'mini',
 | 
	
		
			
				|  |  | -              icon: 'el-icon-edit-outline',
 | 
	
		
			
				|  |  | -              name: '撤销采购',
 | 
	
		
			
				|  |  | -              disabled: false
 | 
	
		
			
				|  |  | -            })
 | 
	
		
			
				|  |  | -          }else if(this.$refs.avatar.form.fBillstatus === 4){
 | 
	
		
			
				|  |  | +          if (this.$route.query.list) {
 | 
	
		
			
				|  |  | +            this.contentButton.push(JSON.parse(this.$route.query.list))
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +          let data = {
 | 
	
		
			
				|  |  | +            actId: 520,
 | 
	
		
			
				|  |  | +            id: this.$refs.avatar.form.fId
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +          getName(data).then(response => {
 | 
	
		
			
				|  |  | +            console.log(response)
 | 
	
		
			
				|  |  | +            if (response.data.length != 0) {
 | 
	
		
			
				|  |  | +              this.before = response.data[0].userName
 | 
	
		
			
				|  |  | +              if (this.$refs.avatar.form.fBillstatus === 6 && this.before == this.lander) {
 | 
	
		
			
				|  |  | +                this.contentButton.push({
 | 
	
		
			
				|  |  | +                  type: 'danger',
 | 
	
		
			
				|  |  | +                  size: 'mini',
 | 
	
		
			
				|  |  | +                  icon: 'el-icon-edit-outline',
 | 
	
		
			
				|  |  | +                  name: '撤销采购',
 | 
	
		
			
				|  |  | +                  disabled: false
 | 
	
		
			
				|  |  | +                })
 | 
	
		
			
				|  |  | +              }
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +          })
 | 
	
		
			
				|  |  | +          let operator = this.$refs.avatar.form.createBy
 | 
	
		
			
				|  |  | +          if(this.$refs.avatar.form.fBillstatus === 4 && this.lander === operator){
 | 
	
		
			
				|  |  |              this.contentButton.push({
 | 
	
		
			
				|  |  |                type: 'danger',
 | 
	
		
			
				|  |  |                size: 'mini',
 | 
	
	
		
			
				|  | @@ -955,10 +996,18 @@ export default {
 | 
	
		
			
				|  |  |              })
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  |            this.contentButton.forEach(item =>{
 | 
	
		
			
				|  |  | -            if (item.name == '返回列表' || item.name == '修改' || item.name == '打印'){
 | 
	
		
			
				|  |  | -              item.disabled = false
 | 
	
		
			
				|  |  | -            }else {
 | 
	
		
			
				|  |  | -              item.disabled = true
 | 
	
		
			
				|  |  | +            if(this.$refs.avatar.form.fBillstatus < 4){
 | 
	
		
			
				|  |  | +              if (item.name == '录入' || item.name == '保存' || item.name == '请核'){
 | 
	
		
			
				|  |  | +                item.disabled = true
 | 
	
		
			
				|  |  | +              }else {
 | 
	
		
			
				|  |  | +                item.disabled = false
 | 
	
		
			
				|  |  | +              }
 | 
	
		
			
				|  |  | +            }else{
 | 
	
		
			
				|  |  | +              if (item.name == '录入' || item.name == '保存' || item.name == '请核' || item.name == '修改'){
 | 
	
		
			
				|  |  | +                item.disabled = true
 | 
	
		
			
				|  |  | +              }else {
 | 
	
		
			
				|  |  | +                item.disabled = false
 | 
	
		
			
				|  |  | +              }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |            })
 | 
	
		
			
				|  |  |          }
 | 
	
	
		
			
				|  | @@ -972,13 +1021,13 @@ export default {
 | 
	
		
			
				|  |  |        this.contentOption.forEach(item => item.disabled = true)
 | 
	
		
			
				|  |  |        this.contentStyle.forEach(item => item.disabled = true)
 | 
	
		
			
				|  |  |        console.log(this.contentStyle)
 | 
	
		
			
				|  |  | -      this.contentButton.forEach(item =>{
 | 
	
		
			
				|  |  | -        if (item.name == '返回列表' || item.name == '修改'){
 | 
	
		
			
				|  |  | -          item.disabled = false
 | 
	
		
			
				|  |  | -        }else {
 | 
	
		
			
				|  |  | -          item.disabled = true
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | -      })
 | 
	
		
			
				|  |  | +      // this.contentButton.forEach(item =>{
 | 
	
		
			
				|  |  | +      //   if (item.name == '录入' || item.name == '保存' || item.name == '请核'){
 | 
	
		
			
				|  |  | +      //     item.disabled = true
 | 
	
		
			
				|  |  | +      //   }else {
 | 
	
		
			
				|  |  | +      //     item.disabled = false
 | 
	
		
			
				|  |  | +      //   }
 | 
	
		
			
				|  |  | +      // })
 | 
	
		
			
				|  |  |        viewSingle(scope.row.fId).then(res => {
 | 
	
		
			
				|  |  |          if (res.code === 200) {
 | 
	
		
			
				|  |  |            let data = {
 | 
	
	
		
			
				|  | @@ -1108,6 +1157,8 @@ export default {
 | 
	
		
			
				|  |  |          case '保存':
 | 
	
		
			
				|  |  |            this.$refs.avatar.submitForm('submit')
 | 
	
		
			
				|  |  |            break
 | 
	
		
			
				|  |  | +        case '新增(详情页)':
 | 
	
		
			
				|  |  | +          break
 | 
	
		
			
				|  |  |          case '打印':
 | 
	
		
			
				|  |  |            console.log(this.listData.fFeeid,this.contentList)
 | 
	
		
			
				|  |  |            for (let item in this.contentList){
 |