|
@@ -273,7 +273,7 @@
|
|
|
<el-select v-model="domain.workingTime" style="width:200px;"
|
|
|
v-if="reportTimeType.type == 1"
|
|
|
:disabled="workForm.domains.length==0?true:(workForm.domains[index].state>=2?false:true)"
|
|
|
- placeholder="请选择工作时长"
|
|
|
+ :placeholder="'请选择工作时长' + domain.workingTime"
|
|
|
@change="seleChn(0,domain)">
|
|
|
<el-option v-for="item in timeRange" :key="item" :value="item.toFixed(1)">{{item.toFixed(1)}}</el-option>
|
|
|
</el-select>
|
|
@@ -321,8 +321,8 @@
|
|
|
: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">
|
|
|
- <span style="float: left">{{ item.projectName }}</span>
|
|
|
- <span style="float: right; color: #8492a6; font-size: 13px;margin-left: 20px">{{ item.projectCode }}</span>
|
|
|
+ <span style="float: left; color: #8492a6; font-size: 13px;">{{ item.projectCode }}</span>
|
|
|
+ <span style="float: right;margin-left: 20px">{{ item.projectName }}</span>
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
<span v-if="domain.subProjectList != null && domain.subProjectList.length> 0 && domain.projectId != ''"
|
|
@@ -427,8 +427,8 @@
|
|
|
@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">
|
|
|
- <span style="float: left">{{ item.projectName }}</span>
|
|
|
- <span style="float: right; color: #8492a6; font-size: 13px;margin-left: 20px">{{ item.projectCode }}</span>
|
|
|
+ <span style="float: left; color: #8492a6; font-size: 13px;">{{ item.projectCode }}</span>
|
|
|
+ <span style="float: right;margin-left: 20px">{{ item.projectName }}</span>
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
<span v-if="domain.subProjectList != null && domain.subProjectList.length> 0 && domain.projectId != ''"
|
|
@@ -1248,6 +1248,7 @@
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ alalal: '8.0',
|
|
|
timeBasecostList:null,
|
|
|
tbload: false,
|
|
|
exportTimeDialog: false,
|
|
@@ -3422,8 +3423,13 @@
|
|
|
res => {
|
|
|
this.listLoading = false;
|
|
|
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.projectList = res.data;
|
|
|
- // console.log("项目列表",this.projectList);
|
|
|
+ console.log("项目列表",this.projectList);
|
|
|
} else {
|
|
|
this.$message({
|
|
|
message: res.msg,
|
|
@@ -3541,6 +3547,9 @@
|
|
|
userNames:null,
|
|
|
time: this.report.time
|
|
|
}
|
|
|
+ if(this.user.timeType.type == 1) {
|
|
|
+ this.workForm.domains[0].workingTime = this.user.timeType.allday+'.0'
|
|
|
+ }
|
|
|
if (this.timeBasecostList && this.timeBasecostList.length > 0) {
|
|
|
//默认给第一个,必填字段
|
|
|
this.workForm.domains[0].basecostId = this.timeBasecostList[0].id;
|
|
@@ -3585,6 +3594,7 @@
|
|
|
|
|
|
// 打开日报填写
|
|
|
fillInReport(i, isBatch) {
|
|
|
+ console.log(this.user.timeType.type, '选择时长')
|
|
|
if(i != 1) {
|
|
|
this.falsss = false
|
|
|
} else {
|
|
@@ -3604,6 +3614,7 @@
|
|
|
this.workForm.createDate = this.date + day; // 获取个人某天的日报
|
|
|
this.getReport(i);
|
|
|
} else {
|
|
|
+ console.log('执行到了这里')
|
|
|
this.jsTime = 0
|
|
|
this.jsDay = 0
|
|
|
this.workForm = {
|
|
@@ -3620,6 +3631,10 @@
|
|
|
worktimeList:[{}],
|
|
|
}],
|
|
|
}
|
|
|
+ if(this.user.timeType.type == 1) {
|
|
|
+ this.workForm.domains[0].workingTime = this.user.timeType.allday+'.0'
|
|
|
+ }
|
|
|
+ console.log(this.workForm)
|
|
|
if (this.timeBasecostList&&this.timeBasecostList.length>0) {
|
|
|
this.workForm.domains[0].basecostId = this.timeBasecostList[0].id;
|
|
|
}
|