|
@@ -27,7 +27,8 @@
|
|
|
<span v-if="reportBoolean">{{ prod.userName }}</span>
|
|
|
</div>
|
|
|
<div v-if="prod.plan_type == 0">{{ prod.product_scheduling_num }}</div>
|
|
|
- <div>{{ prod.start_date.replace(/-/g, '') }}-{{ (!prod.end_date || prod.end_date == 'null') ? "" : prod.end_date.replace(/-/g, '') }}</div>
|
|
|
+ <!-- <div>{{ prod.start_date.replace(/-/g, '') }}-{{ (!prod.end_date || prod.end_date == 'null') ? "" : prod.end_date.replace(/-/g, '') }}</div> -->
|
|
|
+ <div>{{ dateBack(prod.start_date) }}-{{ dateBack(prod.end_date) }}</div>
|
|
|
<div v-if="prod.vehicle_num_start && prod.vehicle_num_end">{{ prod.vehicle_num_start }}-{{ prod.vehicle_num_end
|
|
|
}}</div>
|
|
|
</div>
|
|
@@ -231,7 +232,7 @@ export default {
|
|
|
plan_name: item.planName,
|
|
|
product_name: item.productName,
|
|
|
product_scheduling_num: item.productSchedulingNum,
|
|
|
- start_date: item.startDate.join('-'),
|
|
|
+ start_date: item.startDate,
|
|
|
task_change_notice_num: item.taskChangeNoticeNum,
|
|
|
task_name: item.taskName,
|
|
|
task_type_name: item.taskTypeName,
|
|
@@ -309,6 +310,13 @@ export default {
|
|
|
if(this.crewMember.length > 1) {
|
|
|
this.popupShow = true
|
|
|
}
|
|
|
+ },
|
|
|
+ // 数组日期回显
|
|
|
+ dateBack(date) {
|
|
|
+ if (date && date.length > 0) {
|
|
|
+ return date.join('-')
|
|
|
+ }
|
|
|
+ return ''
|
|
|
}
|
|
|
},
|
|
|
};
|