@ -1,6 +1,6 @@
< template >
< template >
< section >
< el -row class = "page-main" v-show ="batchEditVisible==false" >
< section class = "padding" >
< el -row v-show ="batchEditVisible==false" >
< el -button class = "hidden-md-and-down" @click ="loadTasksToXmProjectPhase(sels)" v-loading ="load.edit" icon="el-icon-s-data" > 由任务汇总进度数据 < / el -button >
< el -button class = "hidden-md-and-down" @click ="loadTasksToXmProjectPhase(sels)" v-loading ="load.edit" icon="el-icon-s-data" > 由任务汇总进度数据 < / el -button >
< el -button @click ="batchEditVisible=true" v-loading ="load.edit" icon="el-icon-edit" > 批量修改 < / el -button >
< el -button @click ="batchEditVisible=true" v-loading ="load.edit" icon="el-icon-edit" > 批量修改 < / el -button >
< span v -if = " batchEditVisible ! = true " >
< span v -if = " batchEditVisible ! = true " >
@ -58,31 +58,20 @@
< / e l - p o p o v e r >
< / e l - p o p o v e r >
< / e l - r o w >
< / e l - r o w >
< el -row class = "app-container hidden-md-and-down" v-show ="batchEditVisible==false" >
< el -row class = "padding-top hidden-md-and-down" v-show ="batchEditVisible==false" >
< span style = "margin-left:10px;font-size:14px;" > 项目总预算 : < / span > < el -tag type = 'success' > { { toFixed ( selProject . planTotalCost / 10000 , 2 ) } } 万 , 剩 { { toFixed ( phaseBudgetData . surplusPlanCostAt / 10000 , 2 ) } } 万 < / e l - t a g >
< span style = "margin-left:10px;font-size:14px;" > 项目总预算 : < / span > < el -tag type = 'success' > { { toFixed ( selProject . planTotalCost / 10000 , 2 ) } } 万 , 剩 { { toFixed ( phaseBudgetData . surplusPlanCostAt / 10000 , 2 ) } } 万 < / e l - t a g >
< span style = "margin-left:10px;font-size:14px;" > 非人力总预算 : < / span > < el -tag :type ="phaseBudgetData.surplusPlanNouserAt>0?'warning':'danger'" > { { toFixed ( selProject . planNouserAt / 10000 , 2 ) } } 万 , 剩 { { toFixed ( phaseBudgetData . surplusPlanNouserAt / 10000 , 2 ) } } 万 < / e l - t a g >
< span style = "margin-left:10px;font-size:14px;" > 非人力总预算 : < / span > < el -tag :type ="phaseBudgetData.surplusPlanNouserAt>0?'warning':'danger'" > { { toFixed ( selProject . planNouserAt / 10000 , 2 ) } } 万 , 剩 { { toFixed ( phaseBudgetData . surplusPlanNouserAt / 10000 , 2 ) } } 万 < / e l - t a g >
< span style = "margin-left:10px;font-size:14px;" > 内部人力总预算 : < / span > < el -tag :type ="phaseBudgetData.surplusPlanInnerUserAt>0?'warning':'danger'" > { { toFixed ( selProject . planInnerUserAt / 10000 , 2 ) } } 万 , 剩 { { toFixed ( phaseBudgetData . surplusPlanInnerUserAt / 10000 , 2 ) } } 万 < / e l - t a g >
< span style = "margin-left:10px;font-size:14px;" > 内部人力总预算 : < / span > < el -tag :type ="phaseBudgetData.surplusPlanInnerUserAt>0?'warning':'danger'" > { { toFixed ( selProject . planInnerUserAt / 10000 , 2 ) } } 万 , 剩 { { toFixed ( phaseBudgetData . surplusPlanInnerUserAt / 10000 , 2 ) } } 万 < / e l - t a g >
< span style = "margin-left:10px;font-size:14px;" > 外购人力总预算 : < / span > < el -tag :type ="phaseBudgetData.surplusPlanOutUserAt>0?'warning':'danger'" > { { toFixed ( selProject . planOutUserAt / 10000 , 2 ) } } 万 , 剩 { { toFixed ( phaseBudgetData . surplusPlanOutUserAt / 10000 , 2 ) } } 万 < / e l - t a g >
< span style = "margin-left:10px;font-size:14px;" > 外购人力总预算 : < / span > < el -tag :type ="phaseBudgetData.surplusPlanOutUserAt>0?'warning':'danger'" > { { toFixed ( selProject . planOutUserAt / 10000 , 2 ) } } 万 , 剩 { { toFixed ( phaseBudgetData . surplusPlanOutUserAt / 10000 , 2 ) } } 万 < / e l - t a g >
< / e l - r o w >
< / e l - r o w >
< el -row class = "page-main " v-show ="batchEditVisible==false" >
< el -row class = "padding-top " v-show ="batchEditVisible==false" >
<!-- 列表 XmProjectPhase xm_project_phase -- >
<!-- 列表 XmProjectPhase xm_project_phase -- >
< el -table ref = "table" :height ="tableHeight" v-show ="!gstcVisible " default-expand-all :data="projectPhaseTreeData" :summary-method="getSummariesForNoBatchEdit" :show-summary="true" row-key="id" :tree-props="{children: 'children', hasChildren: 'hasChildren'}" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;" >
< el -table ref = "table" :height ="tableHeight" v-show ="!gstcVisible " default-expand-all :data="projectPhaseTreeData" :summary-method="getSummariesForNoBatchEdit" :show-summary="true" row-key="id" :tree-props="{children: 'children', hasChildren: 'hasChildren'}" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;" >
< el -table -column prop = "phaseName" label = "阶段名称" min -width = " 150 " show -overflow -tooltip >
< el -table -column prop = "phaseName" label = "阶段名称" min -width = " 150 " show -overflow -tooltip >
< template slot -scope = " scope " >
< template slot -scope = " scope " >
< span > { { scope . row . seqNo } } & nbsp ; & nbsp ; < el -link type = "primary" @click ="showEdit(scope.row)" > {{ scope.row.phaseName }} < / el -link > < / span >
< font style = "float:right;" >
< span >
< el -button type = "text" v-if ="!scope.row.mngUserid" v-model="scope.row.mngUsername" @click="groupUserSelectVisible=true" icon="el-icon-setting" > 去设置 < / el -button >
< el -link v -else type = "primary" @click ="groupUserSelectVisible=true" > {{ scope.row.mngUsername }} < / el -link >
< / span >
< span >
< el -tag :type ="scope.row.actRate>=100?'success':'primary'" > { { ( scope . row . actRate != null ? scope . row . actRate : 0 ) + '%' } } < / e l - t a g >
< / span >
< span >
< span >
< font class = "hidden-md-and-down" > { { formatDate ( scope . row . beginDate ) } } < br > { { formatDate ( scope . row . endDate ) } } < / font >
< font v-for ="item in [calcTaskStateByTime(scope.row.beginDate,scope.row.endDate,scope.row.actRate,scope.phaseStatus)]" :key="item.status"><el-tag :type="item.status" > {{ item.remark }} < / el -tag > < / font >
< / span >
{ { scope . row . seqNo } } & nbsp ; & nbsp ;
< span >
< span >
< el -dropdown @command ="handleCommand" :hide-on-click ="false" >
< el -dropdown @command ="handleCommand" :hide-on-click ="false" >
< span class = "el-dropdown-link" >
< span class = "el-dropdown-link" >
@ -102,6 +91,21 @@
< / e l - d r o p d o w n - m e n u >
< / e l - d r o p d o w n - m e n u >
< / e l - d r o p d o w n >
< / e l - d r o p d o w n >
< / span >
< / span >
< span >
< el -button type = "text" v-if ="!scope.row.mngUserid" v-model="scope.row.mngUsername" @click="groupUserSelectVisible=true" icon="el-icon-setting" > 去设置 < / el -button >
< el -link v -else type = "primary" @click ="groupUserSelectVisible=true" > {{ scope.row.mngUsername }} < / el -link >
< / span >
< span >
< el -tag :type ="scope.row.actRate>=100?'success':'primary'" > { { ( scope . row . actRate != null ? scope . row . actRate : 0 ) + '%' } } < / e l - t a g >
< / span >
< el -link type = "primary" @click ="showEdit(scope.row)" > {{ scope.row.phaseName }} < / el -link >
< / span >
< font style = "float:right;" >
< span >
< font class = "hidden-md-and-down" > { { formatDate ( scope . row . beginDate ) } } { { formatDate ( scope . row . endDate ) } } < / font >
< font v-for ="item in [calcTaskStateByTime(scope.row.beginDate,scope.row.endDate,scope.row.actRate,scope.phaseStatus)]" :key="item.status"><el-tag :type="item.status" > {{ item.remark }} < / el -tag > < / font >
< / span >
< / font >
< / font >
< / template >
< / template >
< / e l - t a b l e - c o l u m n >
< / e l - t a b l e - c o l u m n >