|
@ -103,8 +103,8 @@ Page({ |
|
|
maintenancePersonDepartmentShow: maintenancePersonIndex >= 0 ? focusPerson[maintenancePersonIndex].department.name : '', |
|
|
maintenancePersonDepartmentShow: maintenancePersonIndex >= 0 ? focusPerson[maintenancePersonIndex].department.name : '', |
|
|
qualityPersonIndex: focusPerson.findIndex(f => f.id == issue.checkPerson.id), |
|
|
qualityPersonIndex: focusPerson.findIndex(f => f.id == issue.checkPerson.id), |
|
|
planStartTime: moment(issue.startTime).unix(), |
|
|
planStartTime: moment(issue.startTime).unix(), |
|
|
planStartTimeShow: moment(issue.startTime).format('YYYY-MM-DD HH:mm:ss'), |
|
|
planStartTimeShow: moment(issue.startTime).format('YYYY-MM-DD'), |
|
|
planEndTimeShow: moment(issue.endTime).format('YYYY-MM-DD HH:mm:ss'), |
|
|
planEndTimeShow: moment(issue.endTime).format('YYYY-MM-DD'), |
|
|
maintenanceRequirement: issue.repairAsk |
|
|
maintenanceRequirement: issue.repairAsk |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
@ -165,7 +165,7 @@ Page({ |
|
|
// this.setData({ planStartTime: '' })
|
|
|
// this.setData({ planStartTime: '' })
|
|
|
} else if (e.target.dataset.option == 'confirmed') { |
|
|
} else if (e.target.dataset.option == 'confirmed') { |
|
|
this.setData({ |
|
|
this.setData({ |
|
|
planStartTimeShow: this.data.planStartTime ? moment(this.data.planStartTime).format('YYYY-MM-DD HH:mm') : '' |
|
|
planStartTimeShow: this.data.planStartTime ? moment(this.data.planStartTime).format('YYYY-MM-DD') : '' |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -186,7 +186,7 @@ Page({ |
|
|
this.setData({ planEndTimePopupShow: false }) |
|
|
this.setData({ planEndTimePopupShow: false }) |
|
|
if (e.target.dataset.option == 'confirmed') { |
|
|
if (e.target.dataset.option == 'confirmed') { |
|
|
this.setData({ |
|
|
this.setData({ |
|
|
planEndTimeShow: this.data.planEndTime ? moment(this.data.planEndTime).format('YYYY-MM-DD HH:mm') : '' |
|
|
planEndTimeShow: this.data.planEndTime ? moment(this.data.planEndTime).format('YYYY-MM-DD') : '' |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|