main
yanzai 2 weeks ago
parent 012cf0d2bb
commit 855afb9adb

@ -256,7 +256,7 @@
<el-button type="primary" @click="PiLiangZhuanFunc(0,null)">
全部转换
</el-button>
<el-button type="primary" @click="PiLiangOpenFunc2()">
<el-button type="primary" @click="PiLiangOpenFunc2(0)">
批量勾选
</el-button>
</div>
@ -612,6 +612,7 @@
}
let ToPlanType=ref(null)
const PiLiangOpenFunc2=(type)=>{ //
ToPlanType.value=type
PiLiangDialogVisible.value=true
}
@ -684,7 +685,9 @@
start_k=i
}
if(start_k !==null && (v.time<=PiliangSelectedEndTime.value+':00' || v.time<=PiliangSelectedEndTime.value)){
if( (v.plan_type_id==SelectedPlanType.value.id && j==0) || v.plan_type_id===ToPlanType.value.id){ //
if(ToPlanType.value!==0 && ((v.plan_type_id==SelectedPlanType.value.id && j==0)
//|| v.plan_type_id===ToPlanType.value.id//
)){
console.log(v.time)
if(count<PiLiangNeedCount.value){
@ -695,6 +698,17 @@
}
}
if(ToPlanType.value===0 && (v.plan_type_id==SelectedPlanType.value.id && j==0)){
if(count<PiLiangNeedCount.value){
console.log(999999999)
timeList.value[i].class = ""
timeList.value[i].type_color =null
timeList.value[i].plan_type_id =null
PlanUseCount.value--
PlanUnuseCount.value++
count++
}
}
j++
if(j%PiLiangJianGe.value===0){
@ -704,7 +718,7 @@
})
if(count==PiLiangNeedCount.value){
PlabTypeList.value.forEach((t_v,t_i)=>{//
if(ToPlanType.value.id==t_v.id){
if(ToPlanType.value!==0 && ToPlanType.value.id==t_v.id){
t_v.count=t_v.count+count
}
if(SelectedPlanType.value.id==t_v.id){ //

Loading…
Cancel
Save