|
@@ -18,7 +18,7 @@
|
|
<HcTable :isIndex="false" :column="tableColumn" :datas="tableData" :row-style="tableRowStyle" hasChildren="hasChildren1" children="childrenList">
|
|
<HcTable :isIndex="false" :column="tableColumn" :datas="tableData" :row-style="tableRowStyle" hasChildren="hasChildren1" children="childrenList">
|
|
<template #projectProcessValue="{row,index}">
|
|
<template #projectProcessValue="{row,index}">
|
|
<template v-if="row.taskFinishedStatus === 1">
|
|
<template v-if="row.taskFinishedStatus === 1">
|
|
- <el-popover placement="top-start" title="" :width="200" :hide-after="0" :content="'成本增加! 该项计划完成时间超出当初测算工作时长 1天)'">
|
|
|
|
|
|
+ <el-popover placement="top-start" title="" :width="200" :hide-after="0" :content="row?.outMoneyTips">
|
|
<template #reference>
|
|
<template #reference>
|
|
<span class="text-hover">{{row.projectProcessValue}}</span>
|
|
<span class="text-hover">{{row.projectProcessValue}}</span>
|
|
</template>
|
|
</template>
|
|
@@ -29,7 +29,7 @@
|
|
|
|
|
|
<template #budgetTypeValue="{row,index}">
|
|
<template #budgetTypeValue="{row,index}">
|
|
<template v-if="row.taskFinishedStatus === 1">
|
|
<template v-if="row.taskFinishedStatus === 1">
|
|
- <el-popover placement="top-start" title="" :width="200" :hide-after="0" :content="'成本增加! 该项计划完成时间超出当初测算工作时长 1天)'">
|
|
|
|
|
|
+ <el-popover placement="top-start" title="" :width="200" :hide-after="0" :content="row?.outMoneyTips">
|
|
<template #reference>
|
|
<template #reference>
|
|
<span class="text-hover">{{row.budgetTypeValue}}</span>
|
|
<span class="text-hover">{{row.budgetTypeValue}}</span>
|
|
</template>
|
|
</template>
|
|
@@ -39,7 +39,7 @@
|
|
</template>
|
|
</template>
|
|
<template #taskDetailValue="{row,index}">
|
|
<template #taskDetailValue="{row,index}">
|
|
<template v-if="row.taskFinishedStatus === 1">
|
|
<template v-if="row.taskFinishedStatus === 1">
|
|
- <el-popover placement="top-start" title="" :width="200" :hide-after="0" :content="'成本增加! 该项计划完成时间超出当初测算工作时长 1天)'">
|
|
|
|
|
|
+ <el-popover placement="top-start" title="" :width="200" :hide-after="0" :content="row?.outMoneyTips">
|
|
<template #reference>
|
|
<template #reference>
|
|
<span class="text-hover">{{row.taskDetailValue}}</span>
|
|
<span class="text-hover">{{row.taskDetailValue}}</span>
|
|
</template>
|
|
</template>
|
|
@@ -49,7 +49,7 @@
|
|
</template>
|
|
</template>
|
|
<template #planTaskType="{row,index}">
|
|
<template #planTaskType="{row,index}">
|
|
<template v-if="row.taskFinishedStatus === 1">
|
|
<template v-if="row.taskFinishedStatus === 1">
|
|
- <el-popover placement="top-start" title="" :width="200" :hide-after="0" :content="'成本增加! 该项计划完成时间超出当初测算工作时长 1天)'">
|
|
|
|
|
|
+ <el-popover placement="top-start" title="" :width="200" :hide-after="0" :content="row?.outMoneyTips">
|
|
<template #reference>
|
|
<template #reference>
|
|
<el-select v-model="row.planTaskType" v-if="row.isEdit" clearable>
|
|
<el-select v-model="row.planTaskType" v-if="row.isEdit" clearable>
|
|
<el-option v-for="item in taskTypeList" :label="item.dictName" :value="item.id" />
|
|
<el-option v-for="item in taskTypeList" :label="item.dictName" :value="item.id" />
|
|
@@ -68,7 +68,7 @@
|
|
</template>
|
|
</template>
|
|
<template #planTaskDesc="{row,index}">
|
|
<template #planTaskDesc="{row,index}">
|
|
<template v-if="row.taskFinishedStatus === 1">
|
|
<template v-if="row.taskFinishedStatus === 1">
|
|
- <el-popover placement="top-start" title="" :width="200" :hide-after="0" :content="'成本增加! 该项计划完成时间超出当初测算工作时长 1天)'">
|
|
|
|
|
|
+ <el-popover placement="top-start" title="" :width="200" :hide-after="0" :content="row?.outMoneyTips">
|
|
<template #reference>
|
|
<template #reference>
|
|
<el-input v-model="row.planTaskDesc" v-if="row.isEdit" clearable/>
|
|
<el-input v-model="row.planTaskDesc" v-if="row.isEdit" clearable/>
|
|
<span v-else>{{row.planTaskDesc}}</span>
|
|
<span v-else>{{row.planTaskDesc}}</span>
|
|
@@ -82,7 +82,7 @@
|
|
</template>
|
|
</template>
|
|
<template #planTarget="{row,index}">
|
|
<template #planTarget="{row,index}">
|
|
<template v-if="row.taskFinishedStatus === 1">
|
|
<template v-if="row.taskFinishedStatus === 1">
|
|
- <el-popover placement="top-start" title="" :width="200" :hide-after="0" :content="'成本增加! 该项计划完成时间超出当初测算工作时长 1天)'">
|
|
|
|
|
|
+ <el-popover placement="top-start" title="" :width="200" :hide-after="0" :content="row?.outMoneyTips">
|
|
<template #reference>
|
|
<template #reference>
|
|
<el-input v-model="row.planTarget" v-if="row.isEdit" clearable/>
|
|
<el-input v-model="row.planTarget" v-if="row.isEdit" clearable/>
|
|
<span v-else>{{row.planTarget}}</span>
|
|
<span v-else>{{row.planTarget}}</span>
|
|
@@ -96,7 +96,7 @@
|
|
</template>
|
|
</template>
|
|
<template #key7="{row,index}">
|
|
<template #key7="{row,index}">
|
|
<template v-if="row.taskFinishedStatus === 1">
|
|
<template v-if="row.taskFinishedStatus === 1">
|
|
- <el-popover placement="top-start" title="" :width="200" :hide-after="0" :content="'成本增加! 该项计划完成时间超出当初测算工作时长 1天)'">
|
|
|
|
|
|
+ <el-popover placement="top-start" title="" :width="200" :hide-after="0" :content="row?.outMoneyTips">
|
|
<template #reference>
|
|
<template #reference>
|
|
<HcDatePicker :dates="[row.planStartTime,row.planEndTime]" @change="betweenTimeUpdate($event,row)" v-if="row.isEdit" clearable/>
|
|
<HcDatePicker :dates="[row.planStartTime,row.planEndTime]" @change="betweenTimeUpdate($event,row)" v-if="row.isEdit" clearable/>
|
|
<span v-else>
|
|
<span v-else>
|
|
@@ -117,12 +117,12 @@
|
|
</span>
|
|
</span>
|
|
</template>
|
|
</template>
|
|
<!-- <template #planDays="{row,index}">
|
|
<!-- <template #planDays="{row,index}">
|
|
- <el-input v-model="row.planDays" v-if="row.isEdit" disabled clearable/>
|
|
|
|
|
|
+ <el-input v-model="row.planDays" v-if="row.isEdit" />
|
|
<span v-else>{{row.planDays}}</span>
|
|
<span v-else>{{row.planDays}}</span>
|
|
</template> -->
|
|
</template> -->
|
|
- <template #planDays="{row,index}">
|
|
|
|
|
|
+ <template #planDays="{row,index}" >
|
|
<template v-if="row.taskFinishedStatus === 1">
|
|
<template v-if="row.taskFinishedStatus === 1">
|
|
- <el-popover placement="top-start" title="" :width="200" :hide-after="0" :content="'成本增加! 该项计划完成时间超出当初测算工作时长 1天)'">
|
|
|
|
|
|
+ <el-popover placement="top-start" title="" :width="200" :hide-after="0" :content="row?.outMoneyTips">
|
|
<template #reference>
|
|
<template #reference>
|
|
<el-input v-model="row.planDays" v-if="row.isEdit" disabled clearable/>
|
|
<el-input v-model="row.planDays" v-if="row.isEdit" disabled clearable/>
|
|
<span v-else>{{row.planDays}}</span>
|
|
<span v-else>{{row.planDays}}</span>
|
|
@@ -136,7 +136,7 @@
|
|
</template>
|
|
</template>
|
|
<template #postTypeValue="{row,index}">
|
|
<template #postTypeValue="{row,index}">
|
|
<template v-if="row.taskFinishedStatus === 1">
|
|
<template v-if="row.taskFinishedStatus === 1">
|
|
- <el-popover placement="top-start" title="" :width="200" :hide-after="0" :content="'成本增加! 该项计划完成时间超出当初测算工作时长 1天)'">
|
|
|
|
|
|
+ <el-popover placement="top-start" title="" :width="200" :hide-after="0" :content="row?.outMoneyTips">
|
|
<template #reference>
|
|
<template #reference>
|
|
<span class="text-hover">{{row.postTypeValue}}</span>
|
|
<span class="text-hover">{{row.postTypeValue}}</span>
|
|
</template>
|
|
</template>
|
|
@@ -146,7 +146,7 @@
|
|
</template>
|
|
</template>
|
|
<template #staffCount="{row,index}">
|
|
<template #staffCount="{row,index}">
|
|
<template v-if="row.taskFinishedStatus === 1">
|
|
<template v-if="row.taskFinishedStatus === 1">
|
|
- <el-popover placement="top-start" title="" :width="200" :hide-after="0" :content="'成本增加! 该项计划完成时间超出当初测算工作时长 1天)'">
|
|
|
|
|
|
+ <el-popover placement="top-start" title="" :width="200" :hide-after="0" :content="row?.outMoneyTips">
|
|
<template #reference>
|
|
<template #reference>
|
|
<span class="text-hover">{{row.staffCount}}</span>
|
|
<span class="text-hover">{{row.staffCount}}</span>
|
|
</template>
|
|
</template>
|
|
@@ -156,7 +156,7 @@
|
|
</template>
|
|
</template>
|
|
<template #budgetStaffCost="{row,index}">
|
|
<template #budgetStaffCost="{row,index}">
|
|
<template v-if="row.taskFinishedStatus === 1">
|
|
<template v-if="row.taskFinishedStatus === 1">
|
|
- <el-popover placement="top-start" title="" :width="200" :hide-after="0" :content="'成本增加! 该项计划完成时间超出当初测算工作时长 1天)'">
|
|
|
|
|
|
+ <el-popover placement="top-start" title="" :width="200" :hide-after="0" :content="row?.outMoneyTips">
|
|
<template #reference>
|
|
<template #reference>
|
|
<span class="text-hover">{{row.budgetStaffCost}}</span>
|
|
<span class="text-hover">{{row.budgetStaffCost}}</span>
|
|
</template>
|
|
</template>
|
|
@@ -166,7 +166,7 @@
|
|
</template>
|
|
</template>
|
|
<template #budgetTravelExpense="{row,index}">
|
|
<template #budgetTravelExpense="{row,index}">
|
|
<template v-if="row.taskFinishedStatus === 1">
|
|
<template v-if="row.taskFinishedStatus === 1">
|
|
- <el-popover placement="top-start" title="" :width="200" :hide-after="0" :content="'成本增加! 该项计划完成时间超出当初测算工作时长 1天)'">
|
|
|
|
|
|
+ <el-popover placement="top-start" title="" :width="200" :hide-after="0" :content="row?.outMoneyTips">
|
|
<template #reference>
|
|
<template #reference>
|
|
<span class="text-hover">{{row.budgetTravelExpense}}</span>
|
|
<span class="text-hover">{{row.budgetTravelExpense}}</span>
|
|
</template>
|
|
</template>
|
|
@@ -176,7 +176,7 @@
|
|
</template>
|
|
</template>
|
|
<template #outsourceUnitPrice="{row,index}">
|
|
<template #outsourceUnitPrice="{row,index}">
|
|
<template v-if="row.taskFinishedStatus === 1">
|
|
<template v-if="row.taskFinishedStatus === 1">
|
|
- <el-popover placement="top-start" title="" :width="200" :hide-after="0" :content="'成本增加! 该项计划完成时间超出当初测算工作时长 1天)'">
|
|
|
|
|
|
+ <el-popover placement="top-start" title="" :width="200" :hide-after="0" :content="row?.outMoneyTips">
|
|
<template #reference>
|
|
<template #reference>
|
|
<span class="text-hover">{{row.outsourceUnitPrice}}</span>
|
|
<span class="text-hover">{{row.outsourceUnitPrice}}</span>
|
|
</template>
|
|
</template>
|
|
@@ -186,7 +186,7 @@
|
|
</template>
|
|
</template>
|
|
<template #outsourcePeopleCount="{row,index}">
|
|
<template #outsourcePeopleCount="{row,index}">
|
|
<template v-if="row.taskFinishedStatus === 1">
|
|
<template v-if="row.taskFinishedStatus === 1">
|
|
- <el-popover placement="top-start" title="" :width="200" :hide-after="0" :content="'成本增加! 该项计划完成时间超出当初测算工作时长 1天)'">
|
|
|
|
|
|
+ <el-popover placement="top-start" title="" :width="200" :hide-after="0" :content="row?.outMoneyTips">
|
|
<template #reference>
|
|
<template #reference>
|
|
<span class="text-hover">{{row.outsourcePeopleCount}}</span>
|
|
<span class="text-hover">{{row.outsourcePeopleCount}}</span>
|
|
</template>
|
|
</template>
|
|
@@ -196,7 +196,7 @@
|
|
</template>
|
|
</template>
|
|
<template #outsourceCountMoney="{row,index}">
|
|
<template #outsourceCountMoney="{row,index}">
|
|
<template v-if="row.taskFinishedStatus === 1">
|
|
<template v-if="row.taskFinishedStatus === 1">
|
|
- <el-popover placement="top-start" title="" :width="200" :hide-after="0" :content="'成本增加! 该项计划完成时间超出当初测算工作时长 1天)'">
|
|
|
|
|
|
+ <el-popover placement="top-start" title="" :width="200" :hide-after="0" :content="row?.outMoneyTips">
|
|
<template #reference>
|
|
<template #reference>
|
|
<span class="text-hover">{{row.outsourceCountMoney}}</span>
|
|
<span class="text-hover">{{row.outsourceCountMoney}}</span>
|
|
</template>
|
|
</template>
|
|
@@ -206,7 +206,7 @@
|
|
</template>
|
|
</template>
|
|
<template #otherBudgetMoney="{row,index}">
|
|
<template #otherBudgetMoney="{row,index}">
|
|
<template v-if="row.taskFinishedStatus === 1">
|
|
<template v-if="row.taskFinishedStatus === 1">
|
|
- <el-popover placement="top-start" title="" :width="200" :hide-after="0" :content="'成本增加! 该项计划完成时间超出当初测算工作时长 1天)'">
|
|
|
|
|
|
+ <el-popover placement="top-start" title="" :width="200" :hide-after="0" :content="row?.outMoneyTips">
|
|
<template #reference>
|
|
<template #reference>
|
|
<span class="text-hover">{{row.otherBudgetMoney}}</span>
|
|
<span class="text-hover">{{row.otherBudgetMoney}}</span>
|
|
</template>
|
|
</template>
|
|
@@ -216,7 +216,7 @@
|
|
</template>
|
|
</template>
|
|
<template #budgetCountMoney="{row,index}">
|
|
<template #budgetCountMoney="{row,index}">
|
|
<template v-if="row.taskFinishedStatus === 1">
|
|
<template v-if="row.taskFinishedStatus === 1">
|
|
- <el-popover placement="top-start" title="" :width="200" :hide-after="0" :content="'成本增加! 该项计划完成时间超出当初测算工作时长 1天)'">
|
|
|
|
|
|
+ <el-popover placement="top-start" title="" :width="200" :hide-after="0" :content="row?.outMoneyTips">
|
|
<template #reference>
|
|
<template #reference>
|
|
<span class="text-hover">{{row.budgetCountMoney}}</span>
|
|
<span class="text-hover">{{row.budgetCountMoney}}</span>
|
|
</template>
|
|
</template>
|
|
@@ -226,7 +226,7 @@
|
|
</template>
|
|
</template>
|
|
<template #budgetRemark="{row,index}">
|
|
<template #budgetRemark="{row,index}">
|
|
<template v-if="row.taskFinishedStatus === 1">
|
|
<template v-if="row.taskFinishedStatus === 1">
|
|
- <el-popover placement="top-start" title="" :width="200" :hide-after="0" :content="'成本增加! 该项计划完成时间超出当初测算工作时长 1天)'">
|
|
|
|
|
|
+ <el-popover placement="top-start" title="" :width="200" :hide-after="0" :content="row?.outMoneyTips">
|
|
<template #reference>
|
|
<template #reference>
|
|
<span class="text-hover">{{row.budgetRemark}}</span>
|
|
<span class="text-hover">{{row.budgetRemark}}</span>
|
|
</template>
|
|
</template>
|
|
@@ -309,7 +309,7 @@
|
|
<script setup>
|
|
<script setup>
|
|
|
|
|
|
import {useRouter, useRoute} from 'vue-router'
|
|
import {useRouter, useRoute} from 'vue-router'
|
|
-import {onActivated, ref,watch} from "vue";
|
|
|
|
|
|
+import {onActivated, ref,watch,getCurrentInstance} from "vue";
|
|
import projectApi from '~api/program/project.js';
|
|
import projectApi from '~api/program/project.js';
|
|
import contractApi from '~api/project/project-contract.js';
|
|
import contractApi from '~api/project/project-contract.js';
|
|
import {getArrValue,getObjValue} from "js-fast-way"
|
|
import {getArrValue,getObjValue} from "js-fast-way"
|
|
@@ -481,6 +481,12 @@ const betweenTimeUpdate = ({arr, query},item) => {
|
|
item.planStartTime=arr[0]
|
|
item.planStartTime=arr[0]
|
|
item.planEndTime=arr[1]
|
|
item.planEndTime=arr[1]
|
|
item.betweenTime=arr
|
|
item.betweenTime=arr
|
|
|
|
+ // if(arr.length>0){
|
|
|
|
+ // item.planDays=null
|
|
|
|
+ // getWorkDays(item)
|
|
|
|
+ // }else{
|
|
|
|
+ // item.planDays=null
|
|
|
|
+ // }
|
|
}
|
|
}
|
|
//日期时间被选择
|
|
//日期时间被选择
|
|
const subbetweenTime = ref(null)
|
|
const subbetweenTime = ref(null)
|
|
@@ -565,25 +571,25 @@ const getWorkDays=async(row)=>{
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
+
|
|
//编辑主计划
|
|
//编辑主计划
|
|
const updateMainPlanClick=async(row)=>{
|
|
const updateMainPlanClick=async(row)=>{
|
|
- row.isEdit = false
|
|
|
|
const {planTaskType}=row
|
|
const {planTaskType}=row
|
|
taskTypeList.value.forEach((ele)=>{
|
|
taskTypeList.value.forEach((ele)=>{
|
|
if(ele.id===planTaskType){
|
|
if(ele.id===planTaskType){
|
|
row.planTaskTypeValue=ele.dictName
|
|
row.planTaskTypeValue=ele.dictName
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- console.log(tableData.value,'tableData');
|
|
|
|
const {error, code, data,msg} = await projectApi.updateMainPlan(
|
|
const {error, code, data,msg} = await projectApi.updateMainPlan(
|
|
row
|
|
row
|
|
)
|
|
)
|
|
if (!error && code === 200) {
|
|
if (!error && code === 200) {
|
|
- if(data){
|
|
|
|
- row=getObjValue(data)
|
|
|
|
- console.log(data,'data');
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ if(data){
|
|
|
|
+ row.planDays=data.planDays
|
|
|
|
+ row.isEdit=false
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|