|
@@ -475,12 +475,12 @@
|
|
|
<el-form-item :label="$t('lable.taskGrouping')" v-if="user.company.packageProject == 1"
|
|
|
>
|
|
|
<!-- 任务分组 -->
|
|
|
- <span style="color:red;">*</span><el-select v-model="domain.groupId" :placeholder="$t('defaultText.pleaseSelectaTaskGroup')" style="width:200px;" clearable="true"
|
|
|
+ <el-select v-model="domain.groupId" :placeholder="$t('defaultText.pleaseSelectaTaskGroup')" style="width:200px;" clearable="true"
|
|
|
:disabled="workForm.domains.length==0?true:(workForm.domains[index].state>=2?false:true)" @change="getGroupStages(domain, index)">
|
|
|
<el-option v-for="item in domain.taskGroups" :key="item.id" :label="item.name" :value="item.id"></el-option>
|
|
|
</el-select>
|
|
|
<!-- 项目的阶段 -->
|
|
|
- <span v-if="domain.stages != null && domain.stages.length> 0" ><span style="color:red; padding:3px;margin-left:30px;">*</span>{{$t('other.inputStage')}}</span>
|
|
|
+ <span v-if="domain.stages != null && domain.stages.length> 0" >{{$t('other.inputStage')}}</span>
|
|
|
<el-select v-model="domain.stage" :placeholder="$t('defaultText.pleaseChoose')" style="width:200px;margin-left:10px;"
|
|
|
clearable="true" v-if="domain.stages != null && domain.stages.length> 0"
|
|
|
@change="changeStages(domain, index)"
|
|
@@ -936,14 +936,14 @@
|
|
|
</div>
|
|
|
<!-- 任务分组 -->
|
|
|
<div class="zhoFel" v-if="user.company.packageProject == 1">
|
|
|
- <p><span style="color:red;">*</span>{{$t('lable.taskGrouping')}}</p>
|
|
|
+ <p>{{$t('lable.taskGrouping')}}</p>
|
|
|
<el-select v-model="zhoBao.groupId" :placeholder="$t('defaultText.pleaseSelectaTaskGroup')" clearable="true" style="width: 355px"
|
|
|
@change="getGroupStages(zhoBao, 0)">
|
|
|
<el-option v-for="item in zhoBao.taskGroups" :key="item.id" :label="item.name" :value="item.id"></el-option>
|
|
|
</el-select>
|
|
|
</div>
|
|
|
<div class="zhoFel" v-if="user.company.packageProject == 1 && zhoBao.stages != null && zhoBao.stages.length> 0">
|
|
|
- <p><span style="color:red;">*</span>{{$t('other.inputStage')}}</p>
|
|
|
+ <p>{{$t('other.inputStage')}}</p>
|
|
|
<el-select v-model="zhoBao.stage" :placeholder="$t('defaultText.pleaseChoose')" style="width: 355px" clearable="true" >
|
|
|
<el-option v-for="item in zhoBao.stages" :key="item.id" :label="item.stagesName" :value="item.stagesName"></el-option>
|
|
|
</el-select>
|
|
@@ -1636,7 +1636,7 @@
|
|
|
<el-link v-if="active==0" style="float:right;margin-right:100px;" type="primary" @click="downloadProjectRatio">下载填报工时占比表</el-link>
|
|
|
<el-link v-if="active==0 && user.companyId == 469 && user.roleName.indexOf('管理员') > 0" style="float:right;margin-right:100px;" type="primary" @click="importCardTimeVisi = true">导入考勤时长</el-link>
|
|
|
<el-link v-if="active==0 && user.companyId == 469 && user.roleName == '超级管理员'" style="float:right;margin-right:50px;" type="primary" @click="showBatchDeleteReport = true; startDeleting = false;">批量删除日报</el-link>
|
|
|
- <el-link v-if="active==0 && user.companyId == 469 && user.roleName == '超级管理员'" style="float:right;margin-right:50px;" type="primary" @click="showBatchSimpleApproveReport = true; startDeleting = false;">批量审核日报</el-link>
|
|
|
+ <el-link v-if="active==0 && user.companyId == 469 && user.roleName == '超级管理员'" style="float:right;margin-right:50px;" type="primary" @click="showBatchSimpleApproveReport = true; startDeleting = false;getDepartmentForApprove();">批量审核日报</el-link>
|
|
|
</div>
|
|
|
|
|
|
<span slot="footer">
|
|
@@ -1693,6 +1693,16 @@
|
|
|
:end-placeholder="$t('time.endDate')"
|
|
|
></el-date-picker>
|
|
|
</div>
|
|
|
+ <div style="margin-top:15px;">
|
|
|
+ <span>选择部门:</span>
|
|
|
+ <el-cascader v-model="deleteReportParam.departmentId" placeholder="全部部门" style="width: 350px;margin-left:25px;"
|
|
|
+ :options="deptOptionList" :props="{ checkStrictly: false,expandTrigger: 'hover' }" :show-all-levels="false" clearable
|
|
|
+ size="small" v-if="user.userNameNeedTranslate != 1"
|
|
|
+ ></el-cascader>
|
|
|
+ <vueCascader :size="'small'" :widthStr="'191'" :clearable="true" :subject="deptOptionList" :radios="false" :distinction="'1'" @vueCasader="vueCasader" v-if="user.userNameNeedTranslate == 1"></vueCascader>
|
|
|
+
|
|
|
+ </div>
|
|
|
+
|
|
|
<span slot="footer">
|
|
|
<el-button @click="confirmBatchApproveReport" :loading="startDeleting" >审批通过</el-button>
|
|
|
</span>
|
|
@@ -1997,6 +2007,7 @@
|
|
|
allData:{},
|
|
|
batchShowData:{},
|
|
|
option: [],
|
|
|
+ deptOptionList: [],
|
|
|
depData: {
|
|
|
id: -1,
|
|
|
label: this.$t('lable.allStaff'),
|
|
@@ -2261,10 +2272,17 @@
|
|
|
})
|
|
|
.then(() => {
|
|
|
this.startDeleting = true;
|
|
|
- this.http.post('/report/batchApproveByDate',{
|
|
|
+ let obj = {
|
|
|
startDate: this.deleteReportParam.date[0],
|
|
|
- endDate: this.deleteReportParam.date[1],
|
|
|
- },res => {
|
|
|
+ endDate: this.deleteReportParam.date[1]
|
|
|
+ }
|
|
|
+ if(this.deleteReportParam.departmentId) {
|
|
|
+ obj.departmentId = this.deleteReportParam.departmentId[this.deleteReportParam.departmentId.length - 1]
|
|
|
+ } else {
|
|
|
+ obj.departmentId = null
|
|
|
+ }
|
|
|
+
|
|
|
+ this.http.post('/report/batchApproveByDate',obj,res => {
|
|
|
if (res.code == "ok") {
|
|
|
this.$message({
|
|
|
message: '审核通过',
|
|
@@ -4362,7 +4380,30 @@
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
+ // 获取部门列表
|
|
|
+ getDepartmentForApprove() {
|
|
|
+ this.http.post( this.port.manage.depList, {},
|
|
|
+ res => {
|
|
|
+ if (res.code == "ok") {
|
|
|
+ var list1 = JSON.parse(JSON.stringify(res.data));
|
|
|
+
|
|
|
+ this.deptOptionList = this.changeArr(list1);
|
|
|
+ console.log(this.deptOptionList, '部门')
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ message: res.msg,
|
|
|
+ type: "error"
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error => {
|
|
|
+ this.$message({
|
|
|
+ message: error,
|
|
|
+ type: "error"
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
// 获取部门列表
|
|
|
getDepartment() {
|
|
|
let day = (this.choseDay+1) > 9 ? "-" + (this.choseDay + 1) : "-0" + (this.choseDay + 1);
|
|
@@ -5391,7 +5432,7 @@
|
|
|
// 按周填报里内容的填写点击确定
|
|
|
setWeekProItemData() {
|
|
|
//专业版模式下,任务分组和阶段必填
|
|
|
- if (this.user.company.packageProject == 1) {
|
|
|
+ if (this.user.company.packageProject == 1 && this.user.companyId === 3917) {
|
|
|
if (!this.zhoBao.groupId || !this.zhoBao.stage) {
|
|
|
this.$message({
|
|
|
message: '任务分组和阶段必填,请检查',
|