| | |
| | | <div class="desc_times"> |
| | | <el-timeline :reverse="reverse"> |
| | | <el-timeline-item |
| | | v-for="(activity, index) in model.settleClaimsLogList" |
| | | v-for="(activity, index) in activeLogList" |
| | | :key="index" |
| | | :timestamp="activity.timestamp"> |
| | | <div style="display: flex; flex-direction: column;" v-if="activity.objType==3"> |
| | |
| | | loading: false, |
| | | doneFileDate: null, |
| | | remarkLogList: [], |
| | | activeLogList:[], |
| | | list: [], |
| | | model: {}, |
| | | activeName: 'first', |
| | |
| | | this.visible = true |
| | | this.doneFileDate = null |
| | | this.remarkLogList = [] |
| | | this.activeLogList = [] |
| | | this.getDetail() |
| | | }, |
| | | // 判断两个时间之间相差是否 |
| | |
| | | console.log(time1) |
| | | console.log(time2) |
| | | if (time1 && time2) { |
| | | let a = new Date(time1) |
| | | let b = new Date(time2) |
| | | let timeDiff = Math.abs(a.getTime() - b.getTime()); |
| | | const a = new Date(time1) |
| | | const b = new Date(time2) |
| | | const timeDiff = Math.abs(a.getTime() - b.getTime()) |
| | | console.log(Math.ceil(timeDiff / (3600 * 1000))) |
| | | return Math.ceil(timeDiff / (3600 * 1000)) <= 24; |
| | | return Math.ceil(timeDiff / (3600 * 1000)) <= 24 |
| | | } else { |
| | | return false |
| | | } |
| | | }, |
| | | contrast(time1, time2) { |
| | | if (time1 && time2) { |
| | | let a = new Date(time1).getTime() |
| | | let b = new Date(time2).getTime() |
| | | const a = new Date(time1).getTime() |
| | | const b = new Date(time2).getTime() |
| | | return a > b |
| | | } else { |
| | | return false |
| | | } |
| | | }, |
| | | edit() { |
| | | let obj = JSON.parse(JSON.stringify(this.model)) |
| | | const obj = JSON.parse(JSON.stringify(this.model)) |
| | | obj.areaId = obj.areaId.split(',').map(item => Number(item)) |
| | | this.$refs.onlineReporting.open('修改信息', obj) |
| | | }, |
| | | openBaoxiandan(){ |
| | | window.open(this.model.baoxiandanFile.fileurlFull); |
| | | window.open(this.model.baoxiandanFile.fileurlFull) |
| | | }, |
| | | delFile(id){ |
| | | this.$dialog.messageConfirm('确认删除该附件吗,一旦删除无法撤回?') |
| | |
| | | .then(res => { |
| | | this.model = res |
| | | this.remarkLogList = [] |
| | | this.activeLogList =[] |
| | | var logList = this.model.settleClaimsLogList |
| | | if (logList) { |
| | | logList.forEach(item => { |
| | |
| | | } |
| | | if (item.objType==7) { |
| | | this.remarkLogList.push(item) |
| | | } else { |
| | | this.activeLogList.push(item) |
| | | } |
| | | }) |
| | | } |
| | | }).catch(err => { |
| | | |
| | | }) |
| | | }, |
| | | handleClick(tab) { |
| | |
| | | this.download(response) |
| | | }).catch(err => { |
| | | console.log(err) |
| | | this.$message.error("下载资料失败,请确认资料数据不为空") |
| | | this.$message.error('下载资料失败,请确认资料数据不为空') |
| | | }).finally(() => { |
| | | this.isWorking = false |
| | | }) |