| | |
| | | <div class="head-container"> |
| | | <div v-if="crud.props.searchToggle"> |
| | | <!-- 搜索 --> |
| | | <el-input v-model="query.blurry" clearable placeholder="请输入项目名" style="width: 185px" class="filter-item" @keyup.enter.native="crud.toQuery" /> |
| | | <el-select v-model="query.distinguish" filterable clearable placeholder="请选择项目区分" style="width: 185px;" class="filter-item" @keyup.enter.native="crud.toQuery"> |
| | | <el-option |
| | | v-for="item in dict[projectDistinguish]" |
| | | :key="item.id" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | /> |
| | | </el-select> |
| | | <el-select v-model="query.belongYear" filterable clearable placeholder="请选择年度" style="width: 185px;" class="filter-item"> |
| | | <el-select v-model="query.belongYear" filterable clearable placeholder="年度" style="width: 185px;" class="filter-item" @keyup.enter.native="crud.toQuery"> |
| | | <el-option |
| | | v-for="item in belongYearList" |
| | | :key="item" |
| | |
| | | :value="item" |
| | | /> |
| | | </el-select> |
| | | <el-select v-model="query.belongWeek" filterable clearable placeholder="请选择周数" style="width: 185px;" class="filter-item" @keyup.enter.native="crud.toQuery"> |
| | | <el-select v-model="query.belongWeek" filterable clearable placeholder="周数" style="width: 185px;" class="filter-item" @keyup.enter.native="crud.toQuery"> |
| | | <el-option |
| | | v-for="item in belongWeekList" |
| | | :key="item" |
| | | :label="item" |
| | | :value="item" |
| | | /> |
| | | </el-select> |
| | | <el-select v-model="query.projectId" filterable clearable placeholder="所属项目" style="width: 185px;" class="filter-item" @keyup.enter.native="crud.toQuery"> |
| | | <el-option |
| | | v-for="item in projectList" |
| | | :key="item.id" |
| | | :label="item.name" |
| | | :value="item.id" |
| | | /> |
| | | </el-select> |
| | | <el-select v-model="query.distinguish" filterable clearable placeholder="项目区分" style="width: 185px;" class="filter-item" @keyup.enter.native="crud.toQuery"> |
| | | <el-option |
| | | v-for="item in dict[projectDistinguish]" |
| | | :key="item.id" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | /> |
| | | </el-select> |
| | | <rrOperation :crud="crud" /> |
| | |
| | | <!--表单组件--> |
| | | <el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="500px"> |
| | | <el-form ref="form" :model="form" :rules="rules" size="small" label-width="80px"> |
| | | <el-form-item label="项目" prop="project.id"> |
| | | <el-form-item label="所属项目" prop="project.id"> |
| | | <el-select v-model="form.project.id" filterable clearable placeholder="请选择" style="width: 370px;" :disabled="disabled || crud.status.add !== 1"> |
| | | <el-option |
| | | v-for="item in projectList" |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="年度" prop="belongYear"> |
| | | <el-select v-model="form.belongYear" filterable clearable placeholder="请选择" style="width: 370px;" :disabled="disabled || crud.status.add !== 1"> |
| | | <el-option |
| | | v-for="item in belongYearList" |
| | | :key="item" |
| | | :label="item" |
| | | :value="item" |
| | | /> |
| | | </el-select> |
| | | <el-input v-model="form.belongYear" style="width: 370px;" :disabled="disabled || crud.status.add !== 1" /> |
| | | </el-form-item> |
| | | <el-form-item label="周数" prop="belongWeek"> |
| | | <el-select v-model="form.belongWeek" filterable clearable placeholder="请选择" style="width: 370px;" :disabled="disabled || crud.status.add !== 1"> |
| | | <el-option |
| | | v-for="item in belongWeekList2" |
| | | :key="item" |
| | | :label="item" |
| | | :value="item" |
| | | :disabled="item.approveStatus == approveStatusUnsettled" |
| | | /> |
| | | </el-select> |
| | | <el-input v-model="form.belongWeek" style="width: 370px;" :disabled="disabled || crud.status.add !== 1" /> |
| | | </el-form-item> |
| | | <el-form-item label="项目进度" prop="projectProgress"> |
| | | <el-input v-model="form.projectProgress" style="width: 370px;" :disabled="disabled"> |
| | | <template slot="append">%</template> |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="批准状态" prop="approveStatus"> |
| | | <el-form-item label="承认状态" prop="approveStatus"> |
| | | <el-select v-model="form.approveStatus" filterable clearable :disabled="disabled" placeholder="请选择" style="width: 370px;"> |
| | | <el-option |
| | | v-for="item in dict[approveStatus]" |
| | |
| | | <!--表格渲染--> |
| | | <el-table ref="table" v-loading="crud.loading" :data="crud.data" size="small" style="width: 100%;" @selection-change="crud.selectionChangeHandler"> |
| | | <el-table-column type="selection" width="55" /> |
| | | <el-table-column prop="belongYear" label="年度" width="70" /> |
| | | <el-table-column prop="belongWeek" label="周数" width="50" /> |
| | | <el-table-column prop="projectName" label="项目" show-overflow-tooltip width="170"> |
| | | <el-table-column show-overflow-tooltip prop="belongYear" label="年度" /> |
| | | <el-table-column show-overflow-tooltip prop="belongWeek" label="周数" /> |
| | | <el-table-column show-overflow-tooltip prop="projectName" label="所属项目" width="140"> |
| | | <template slot-scope="scope"> |
| | | <el-tag>{{ scope.row.project.name }}</el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="lastedProgress" label="预计进度" show-overflow-tooltip width="70"> |
| | | <el-table-column show-overflow-tooltip prop="lastedProgress" label="预计进度"> |
| | | <template slot-scope="scope"> |
| | | {{ (scope.row.lastedProgress ? scope.row.lastedProgress : 0) + '%' }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="projectProgress" label="实际进度" show-overflow-tooltip width="70"> |
| | | <el-table-column show-overflow-tooltip prop="projectProgress" label="实际进度"> |
| | | <template slot-scope="scope"> |
| | | <el-tag v-if="scope.row.lastedProgress > scope.row.projectProgress" type="danger">{{ (scope.row.projectProgress ? scope.row.projectProgress : 0) + '%' }}</el-tag> |
| | | <el-tag v-else>{{ (scope.row.projectProgress ? scope.row.projectProgress : 0) + '%' }}</el-tag> |
| | | <span :style="{ color: scope.row.lastedProgress > scope.row.projectProgress ? 'red' : '' }">{{ (scope.row.projectProgress ? scope.row.projectProgress : 0) + '%' }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="approveStatus" label="批准状态" width="80"> |
| | | <el-table-column show-overflow-tooltip prop="approveStatus" label="承认状态"> |
| | | <template slot-scope="scope"> |
| | | <el-tag>{{ dict.label[approveStatus][scope.row.approveStatus] }}</el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="moneyTotalInit" label="计划总成本" align="center" width="100"> |
| | | <el-table-column show-overflow-tooltip prop="moneyTotalInit" label="计划总成本"> |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.moneyTotalInit != null && scope.row.moneyTotalInit != '' ? crud.toMoney(scope.row.moneyTotalInit) : 0 }} |
| | | ({{ scope.row.lastProjectProcess.moneyTotalInit != null && scope.row.lastProjectProcess.moneyTotalInit != '' ? crud.toMoney(scope.row.moneyTotalInit - scope.row.lastProjectProcess.moneyTotalInit) : 0 }}) |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="moneyTotalCost" label="总消耗成本" align="center" width="100"> |
| | | <el-table-column show-overflow-tooltip prop="moneyTotalCost" label="总消耗成本"> |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.moneyTotalCost != null && scope.row.moneyTotalCost != '' ? crud.toMoney(scope.row.moneyTotalCost) : 0 }} |
| | | ({{ scope.row.lastProjectProcess.moneyTotalCost != null && scope.row.lastProjectProcess.moneyTotalCost != '' ? crud.toMoney(scope.row.moneyTotalCost - scope.row.lastProjectProcess.moneyTotalCost) : 0 }}) |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="realLastCost" label="本周消化工时" align="center" width="100" /> |
| | | <el-table-column prop="workTotalInit" label="总工作量" align="center" width="100"> |
| | | <el-table-column show-overflow-tooltip prop="realLastCost" label="本周消化工时" /> |
| | | <el-table-column show-overflow-tooltip prop="workTotalInit" label="总工作量"> |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.workTotalInit != null && scope.row.workTotalInit != '' ? crud.toMoney(scope.row.workTotalInit) : 0 }} |
| | | ({{ scope.row.lastProjectProcess.workTotalInit != null && scope.row.lastProjectProcess.workTotalInit != '' ? crud.toMoney(scope.row.workTotalInit - scope.row.lastProjectProcess.workTotalInit) : 0 }}) |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="workTotalCost" label="总消耗工作量" align="center" width="100"> |
| | | <el-table-column show-overflow-tooltip prop="workTotalCost" label="总消耗工作量"> |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.workTotalCost != null && scope.row.workTotalCost != '' ? crud.toMoney(scope.row.workTotalCost) : 0 }} |
| | | ({{ scope.row.lastProjectProcess.workTotalCost != null && scope.row.lastProjectProcess.workTotalCost != '' ? crud.toMoney(scope.row.workTotalCost - scope.row.lastProjectProcess.workTotalCost) : 0 }}) |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="remarks" label="备注" show-overflow-tooltip /> |
| | | <el-table-column show-overflow-tooltip prop="remarks" label="备注" width="140" /> |
| | | <el-table-column show-overflow-tooltip prop="createTime" label="创建时间" width="140" /> |
| | | <el-table-column v-if="checkPer(['admin','projectProgress:edit','projectProgress:del'])" label="操作" width="150px" align="center"> |
| | | <template slot-scope="scope"> |
| | | <udOperation |