设备 维修------->设备完好率

yangwl
A0010407 11 months ago
parent 0030b3590f
commit ece6265cf1

@ -1729,7 +1729,7 @@ export default {
indexMethod(index) { indexMethod(index) {
return index + 1; return index + 1;
}, },
// - // -
listeningTime() { listeningTime() {
if (this.form.workEndTime != null && this.form.workStartTime != null) { if (this.form.workEndTime != null && this.form.workStartTime != null) {
var time1 = moment(this.form.workStartTime); var time1 = moment(this.form.workStartTime);
@ -1738,26 +1738,14 @@ export default {
let { _data } = duration; let { _data } = duration;
console.log("打印维修时间", _data); console.log("打印维修时间", _data);
// //
this.form.workCostTime = this.form.workCostTime = (_data.days*24 + _data.hours + (_data.minutes/60) + (_data.seconds/3600)).toFixed(1)+ "小时" ;
_data.years +
"年" +
_data.months +
"月" +
_data.days +
"日" +
_data.hours +
"小时" +
_data.minutes +
"分" +
_data.seconds +
"秒";
} }
}, },
// - // -
// listeningDownTime() { // listeningTime() {
// if (this.form.actualDownEndTime != null && this.form.actualDownStartTime != null) { // if (this.form.workEndTime != null && this.form.workStartTime != null) {
// var time1 = moment(this.form.actualDownStartTime); // var time1 = moment(this.form.workStartTime);
// var time2 = moment(this.form.actualDownEndTime); // var time2 = moment(this.form.workEndTime);
// let duration = moment.duration(time2.diff(time1)); // let duration = moment.duration(time2.diff(time1));
// let { _data } = duration; // let { _data } = duration;
// console.log("", _data); // console.log("", _data);

Loading…
Cancel
Save