|
@@ -320,7 +320,7 @@
|
|
|
@change="selectProject(domain, index)"
|
|
|
:disabled="workForm.domains.length==0?true:(workForm.domains[index].state>=2?false:true)">
|
|
|
<!-- <el-option v-for="item in projectList" :disabled="item.status>=2" :key="item.id" :label="item.projectName" :value="item.id"></el-option> -->
|
|
|
- <el-option v-for="item in projectList" :disabled="item.status>=2" :key="item.id" :label="item.projectName + item.projectCode" :value="item.id">
|
|
|
+ <el-option v-for="item in fillProjectList" :disabled="item.status>=2" :key="item.id" :label="item.projectName + '\u3000' + item.projectCode" :value="item.id">
|
|
|
<span style="float: left; color: #8492a6; font-size: 13px;">{{ item.projectCode }}</span>
|
|
|
<span style="float: right;margin-left: 20px">{{ item.projectName }}</span>
|
|
|
</el-option>
|
|
@@ -426,7 +426,7 @@
|
|
|
<el-select v-model="domain.projectId" placeholder="请选择项目" style="width:200px;" clearable="true" filterable="true"
|
|
|
@change="selectProject(domain, index)"
|
|
|
:disabled="workForm.domains.length==0?true:(workForm.domains[index].state>=2?false:true)">
|
|
|
- <el-option v-for="item in projectList" :disabled="item.status>=2" :key="item.id" :label="item.projectName + item.projectCode" :value="item.id">
|
|
|
+ <el-option v-for="item in fillProjectList" :disabled="item.status>=2" :key="item.id" :label="item.projectName + '\u3000' + item.projectCode" :value="item.id">
|
|
|
<span style="float: left; color: #8492a6; font-size: 13px;">{{ item.projectCode }}</span>
|
|
|
<span style="float: right;margin-left: 20px">{{ item.projectName }}</span>
|
|
|
</el-option>
|
|
@@ -631,7 +631,7 @@
|
|
|
<div class="selConStyle_title">请选择要填报的项目</div>
|
|
|
<el-select v-model="selCon" multiple placeholder="请选择" filterable>
|
|
|
<el-option
|
|
|
- v-for="item in projectList"
|
|
|
+ v-for="item in fillProjectList"
|
|
|
:disabled="item.status>=2"
|
|
|
:key="item.id"
|
|
|
:label="item.projectName"
|
|
@@ -1310,6 +1310,7 @@
|
|
|
listLoading: false,
|
|
|
|
|
|
projectList: [], //项目列表
|
|
|
+ fillProjectList: [],
|
|
|
reportList: [], //日报列表
|
|
|
reportNames:[], //批量审批列表
|
|
|
|
|
@@ -1839,7 +1840,7 @@
|
|
|
}
|
|
|
|
|
|
}
|
|
|
- console.log('domain',quanbu);
|
|
|
+ // console.log('domain',quanbu);
|
|
|
},
|
|
|
iptChang() {
|
|
|
var sl = this.workForm.domains
|
|
@@ -2047,7 +2048,7 @@
|
|
|
if (res.code == "ok") {
|
|
|
this.tbload = false;
|
|
|
this.pickDateArray = res.data.days;
|
|
|
- console.log('dataarray',res.data.days);
|
|
|
+ // console.log('dataarray',res.data.days);
|
|
|
this.monthWorkData = res.data.list;
|
|
|
// this.monthWorkDataS = this.monthWorkData
|
|
|
// this.monthWorkDataS1 = res.data.list
|
|
@@ -2188,7 +2189,7 @@
|
|
|
this.isFlag = true
|
|
|
let datalist = this.monthNotWorkDateS1.slice(0,this.monthNotWorkDateS.length + 50)
|
|
|
this.monthNotWorkDateS = datalist
|
|
|
- console.log('length',this.monthNotWorkDateS.length)
|
|
|
+ // console.log('length',this.monthNotWorkDateS.length)
|
|
|
setTimeout(()=>{
|
|
|
this.isFlag = false
|
|
|
},300)
|
|
@@ -3429,7 +3430,7 @@
|
|
|
}
|
|
|
}
|
|
|
this.projectList = res.data;
|
|
|
- console.log("项目列表",this.projectList);
|
|
|
+ // console.log("项目列表",this.projectList);
|
|
|
} else {
|
|
|
this.$message({
|
|
|
message: res.msg,
|
|
@@ -3445,6 +3446,33 @@
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
+ // 获取填报日报的项目下拉列表
|
|
|
+ getFillProjectList() {
|
|
|
+ this.http.post( this.port.project.list, {
|
|
|
+ forReport: 1
|
|
|
+ },res => {
|
|
|
+ if (res.code == "ok") {
|
|
|
+ for(var i in res.data) {
|
|
|
+ if(res.data[i].projectCode == null || res.data[i].projectCode == 'null') {
|
|
|
+ res.data[i].projectCode = ''
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.fillProjectList = res.data;
|
|
|
+
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ message: res.msg,
|
|
|
+ type: "error"
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error => {
|
|
|
+ this.$message({
|
|
|
+ message: error,
|
|
|
+ type: "error"
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
getBasecostItemList() {
|
|
|
this.http.post('/project-basecost-setting/getReportBasecostList', {
|
|
|
companyId: this.user.companyId
|
|
@@ -3594,7 +3622,7 @@
|
|
|
|
|
|
// 打开日报填写
|
|
|
fillInReport(i, isBatch) {
|
|
|
- console.log(this.user.timeType.type, '选择时长')
|
|
|
+ // console.log(this.user.timeType.type, '选择时长')
|
|
|
if(i != 1) {
|
|
|
this.falsss = false
|
|
|
} else {
|
|
@@ -3614,7 +3642,7 @@
|
|
|
this.workForm.createDate = this.date + day; // 获取个人某天的日报
|
|
|
this.getReport(i);
|
|
|
} else {
|
|
|
- console.log('执行到了这里')
|
|
|
+ // console.log('执行到了这里')
|
|
|
this.jsTime = 0
|
|
|
this.jsDay = 0
|
|
|
this.workForm = {
|
|
@@ -3634,7 +3662,7 @@
|
|
|
if(this.user.timeType.type == 1) {
|
|
|
this.workForm.domains[0].workingTime = this.user.timeType.allday+'.0'
|
|
|
}
|
|
|
- console.log(this.workForm)
|
|
|
+ // console.log(this.workForm)
|
|
|
if (this.timeBasecostList&&this.timeBasecostList.length>0) {
|
|
|
this.workForm.domains[0].basecostId = this.timeBasecostList[0].id;
|
|
|
}
|
|
@@ -4884,6 +4912,7 @@
|
|
|
this.getAllDate();
|
|
|
this.getReportList();
|
|
|
this.getProjectList();
|
|
|
+ this.getFillProjectList();
|
|
|
this.getTimeType();
|
|
|
this.getDepartment();
|
|
|
this.scrollFunction()
|