| | |
| | | }, |
| | | data() { |
| | | return { |
| | | isPushlishor:false, |
| | | isAcceptor:false, |
| | | isPushlishor:false,//是否发单方 |
| | | isAcceptor:false,//是否接单方 |
| | | show: false, |
| | | show1: false, |
| | | show2: false, |
| | |
| | | show4:false, |
| | | show5:false, |
| | | show6:false, |
| | | show7:true, |
| | | show7:false, |
| | | timeInfo:'00:00:00', |
| | | lessTime:null, |
| | | value:0, |
| | |
| | | priceParam2:{ |
| | | name:null, |
| | | unit:null |
| | | } |
| | | }, |
| | | priceNum1:null, |
| | | priceNum2:null, |
| | | confirmFeeRemark:null, |
| | |
| | | } |
| | | var that =this |
| | | this.lessTime = Math.floor( Number(that.info.confirmCountdown || 0)/1000) ; |
| | | if(lessTime>0){ |
| | | if(this.lessTime>0){ |
| | | this.timer = setInterval(function(){ |
| | | let h = Math.floor(that.lessTime/60/60) ; |
| | | let m = Math.floor((that.lessTime - h*60*60)/60); |
| | |
| | | this.isPushlishor =false |
| | | this.isAcceptor =false |
| | | this.$u.api.getDetail(param).then(res =>{ |
| | | console.error("=============================",res.data.releaseMemberId,res.data.acceptMemberId,that.userInfo.id) |
| | | |
| | | if(res.code ===200){ |
| | | if(that.userInfo.id === res.data.releaseMemberId ){ |
| | | //如果是发单方 |
| | |
| | | //如果是接单方 |
| | | that.isAcceptor =true |
| | | } |
| | | if(that.isAcceptor ||that.isAcceptor ){ |
| | | if(that.isAcceptor ||that.isPushlishor ){ |
| | | that.info = res.data |
| | | if(that.userInfo.id === that.info.releaseMemberId ){ |
| | | //如果是发单方 |
| | |
| | | this.feeFrom.priceParam2.unit =null |
| | | if(this.info.type==0 && this.info.workType==1){ |
| | | //分拣工 |
| | | this.feeFrom.priceParam1.name ='实际用工天数:' |
| | | this.feeFrom.priceParam1.name ='用工天数:' |
| | | this.feeFrom.priceParam1.unit ='天' |
| | | this.feeFrom.priceParam2.name ='实际用工人数:' |
| | | this.feeFrom.priceParam2.name ='用工人数:' |
| | | this.feeFrom.priceParam2.unit ='人' |
| | | }else if(this.info.type==0 && this.info.workType==0){ |
| | | //采摘工 |
| | | this.feeFrom.priceParam1.name ='实际采摘重量:' |
| | | this.feeFrom.priceParam1.name ='采摘重量:' |
| | | this.feeFrom.priceParam1.unit ='斤' |
| | | this.feeFrom.priceParam2.name =null |
| | | this.feeFrom.priceParam2.unit =null |
| | |
| | | //包装工 |
| | | if(this.info.carType==0){ |
| | | //按天 |
| | | this.feeFrom.priceParam1.name ='实际用工天数:' |
| | | this.feeFrom.priceParam1.name ='用工天数:' |
| | | this.feeFrom.priceParam1.unit ='天' |
| | | this.feeFrom.priceParam2.name ='实际用工人数:' |
| | | this.feeFrom.priceParam2.name ='用工人数:' |
| | | this.feeFrom.priceParam2.unit ='人' |
| | | }else if(this.info.carType==1){ |
| | | //按小时 |
| | | this.feeFrom.priceParam1.name ='实际用工时间:' |
| | | this.feeFrom.priceParam1.name ='用工时间:' |
| | | this.feeFrom.priceParam1.unit ='时' |
| | | this.feeFrom.priceParam2.name ='实际用工人数:' |
| | | this.feeFrom.priceParam2.unit ='人' |
| | | }else if(this.info.carType==1){ |
| | | //按小时 |
| | | this.feeFrom.priceParam1.name ='实际包装重量:' |
| | | this.feeFrom.priceParam1.name ='包装重量:' |
| | | this.feeFrom.priceParam1.unit ='斤' |
| | | this.feeFrom.priceParam2.name =null |
| | | this.feeFrom.priceParam2.unit =null |