|
@@ -47,7 +47,7 @@
|
|
|
<HcListItem title="中途暂停之后开启计划起止工时(天):" isCenter>
|
|
|
<span class="text-red text-xl">{{ openPlan?.openPlanStartEndDays }}</span>
|
|
|
</HcListItem>
|
|
|
- <div class="mt-8">
|
|
|
+ <div class="mt-8" v-if="openPlan.isShowTips">
|
|
|
<el-alert type="warning" title="提示:" description="该计划暂停之后开启的工时加上暂停前的工时已经超出原计划工时,是否安排不合理,请从新安排!" :closable="false"/>
|
|
|
</div>
|
|
|
</HcDialog>
|
|
@@ -230,10 +230,12 @@ const openPlanSaveClick = async() => {
|
|
|
const betweenTime = ref(null)
|
|
|
const betweenTimeUpdate =async ({arr, query}) => {
|
|
|
arr[0]=openPlan.value.openPlanStartTime
|
|
|
- // openPlan.value.openPlanStartTime=arr[0]
|
|
|
openPlan.value.openPlanEndTime=arr[1]
|
|
|
- let day=await getWorkDays(openPlan.value.openPlanStartTime,openPlan.value.openPlanEndTime)
|
|
|
- openPlan.value.openPlanStartEndDays=day
|
|
|
+ const {error, code, data,msg} = await sectionApi.updateOpenTime( openPlan.value)
|
|
|
+ openPlanSaveLoaing.value=false
|
|
|
+ if (!error && code === 200) {
|
|
|
+ openPlan.value=data
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|