|
|
@@ -8,11 +8,11 @@
|
|
|
<div class="status-l">
|
|
|
<div class="status-title">{{ handleTagType(detail?.flowStatus) }}</div>
|
|
|
<div class="status-sub" v-if="triggerDateText && (detail?.flowStatus == -1 || detail?.flowStatus == -2)">
|
|
|
- 执行时间已经过去 {{ daysDiff }} 天了
|
|
|
+ 执行时间已经过去 {{ Math.abs(daysDiff) }} 天了
|
|
|
</div>
|
|
|
<div class="status-sub" v-if="detail?.flowStatus === 3">
|
|
|
<template v-if="daysDiff > 0">
|
|
|
- 距离执行时间还差 {{ daysDiff }} 天
|
|
|
+ 距离执行时间还差 {{ Math.abs(daysDiff) }} 天
|
|
|
</template>
|
|
|
<template v-else-if="daysDiff === 0">
|
|
|
执行时间为今天
|
|
|
@@ -70,7 +70,7 @@
|
|
|
{{ detail.remark || "--" }}
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="form-item">
|
|
|
+ <div class="form-item" v-if="hasAnyAvailableExecutionMethod(prescription)">
|
|
|
<div class="item-name">药肥处方</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -282,7 +282,7 @@ const daysDiff = computed(() => {
|
|
|
const diffTime = executeDate.getTime() - today.getTime();
|
|
|
const diffDays = Math.floor(diffTime / (1000 * 60 * 60 * 24));
|
|
|
|
|
|
- return detail.value?.flowStatus === 3 ? diffDays : Math.abs(diffDays);
|
|
|
+ return diffDays;
|
|
|
});
|
|
|
|
|
|
// 执行方式 Tab 配置
|
|
|
@@ -335,7 +335,7 @@ const stageList = computed(() => {
|
|
|
const d = detail.value;
|
|
|
if (!d) return [];
|
|
|
|
|
|
- if (Array.isArray(d.pesticideList) && d.pesticideList.length) {
|
|
|
+ // if (Array.isArray(d.pesticideList) && d.pesticideList.length) {
|
|
|
return [
|
|
|
{
|
|
|
...d,
|
|
|
@@ -347,9 +347,9 @@ const stageList = computed(() => {
|
|
|
),
|
|
|
},
|
|
|
];
|
|
|
- }
|
|
|
+ // }
|
|
|
|
|
|
- return [];
|
|
|
+ // return [];
|
|
|
});
|
|
|
|
|
|
|