|
|
@@ -2695,7 +2695,7 @@ const FacilityDetail = async () => {
|
|
|
|
|
|
// 日产量上报上机时间
|
|
|
if (response.code === 0) {
|
|
|
- if(response.data === null){
|
|
|
+ if(response.data.length === 0){
|
|
|
if (currentHour < 8 || (currentHour === 8 && minutes < 30)) {
|
|
|
// 如果当前时间早于08:30, 则设置为前一天的晚班时间20:30
|
|
|
// 需要将日期减一天
|
|
|
@@ -2711,11 +2711,13 @@ const FacilityDetail = async () => {
|
|
|
}else{
|
|
|
// formData.value.上机时间 = response.data.sj1
|
|
|
formData.value.上机时间 = currentDate.split('-')[0]+'-'+response.data[0]['生产时间段'].split('>')[1]+':00'
|
|
|
+
|
|
|
}
|
|
|
CLMXData.splice(0, CLMXData.length, ...Object.values(response.data));
|
|
|
formData.value.production_now=response.data[0].产量
|
|
|
formData.value.production_all=response.data.total.产量
|
|
|
}
|
|
|
+
|
|
|
};
|
|
|
|
|
|
//获取拉料人员
|
|
|
@@ -3980,6 +3982,7 @@ function onClear() {
|
|
|
huanxingstatus.value=false
|
|
|
huanxingVisible.value=true
|
|
|
RemodelGetTab()
|
|
|
+ FacilityDetail()
|
|
|
}
|
|
|
|
|
|
const gzSelVisible = ref(false)
|