| | |
| | | name() { |
| | | return uni.getStorageSync('name'); |
| | | }, |
| | | roleType() { |
| | | return uni.getStorageSync('roleType'); |
| | | }, |
| | | openid() { |
| | | return uni.getStorageSync('openid'); |
| | | }, |
| | |
| | | this.$u.toast('加载失败'); |
| | | } |
| | | }).then(() => { |
| | | this.coalDayPage(); |
| | | |
| | | }) |
| | | }, |
| | |
| | | if (res.code == 0) { |
| | | this.timeLineStatus = res.data[0].taskStatus |
| | | this.timeLineEqCode = res.data[0].eqCode |
| | | this.dayRZ = res.data.map(v => { |
| | | this.dayRZ = res.data.map((v,i) => { |
| | | let slicedate = v.taskStatusDes.slice(0, 10); |
| | | if (slicedate == this.currentDate) { |
| | | if(this.coalDetailsData.packingType === 1 && (this.roleType === 3 || this.roleType===1 )){ |
| | | if (slicedate == this.currentDate && !/[皮毛净]/.test(v.taskStatusDes)) { |
| | | return { |
| | | ...v, |
| | | taskStatusDes: v.taskStatusDes.slice(10) |
| | | }; |
| | | } else { |
| | | return { ...v } |
| | | } else if( /[皮毛净]/.test(v.taskStatusDes)){ |
| | | return null |
| | | }else{ |
| | | return {...v} |
| | | } |
| | | }); |
| | | }else{ |
| | | if (slicedate == this.currentDate) { |
| | | return { |
| | | ...v, |
| | | taskStatusDes: v.taskStatusDes.slice(10) |
| | | }; |
| | | } else { |
| | | return { ...v } |
| | | } |
| | | } |
| | | |
| | | |
| | | }).filter(Boolean); |
| | | console.log(this.dayRZ,'daytRs') |
| | | } |
| | | }); |
| | | // }, 5000); |