|
@@ -372,7 +372,7 @@
|
|
|
<el-option v-for="item in domain.auditUserList" :label="item.auditorName" :value="item.auditorId" :key="item.id"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <!-- 相关维度 -->
|
|
|
+ <!-- 相关维度/自定义维度 -->
|
|
|
<el-form-item :label="yonghuUser.customDegreeName" v-if="domain.projectId && yonghuUser.customDegreeActive == 1">
|
|
|
<el-select v-model="domain.degreeId" clearable placeholder="请选择" :disabled="!canEdit">
|
|
|
<el-option v-for="item in domain.wuduList" :key="item.value" :label="item.name" :value="item.id">
|
|
@@ -698,6 +698,24 @@
|
|
|
<el-option v-for="item in zhoBao.auditUserList" :key="item.id" :label="item.auditorName" :value="item.auditorId"></el-option>
|
|
|
</el-select>
|
|
|
</div>
|
|
|
+ <!-- 自定义维度 -->
|
|
|
+ <div class="zhoFel" v-if="user.timeType.customDegreeActive">
|
|
|
+ <p>{{user.timeType.customDegreeName}}</p>
|
|
|
+ <el-select v-model="zhoBao.degreeId" placeholder="请选择" clearable="true" style="width: 355px">
|
|
|
+ <el-option v-for="item in zhoBao.wuduList" :key="item.id" :label="item.name" :value="item.id"></el-option>
|
|
|
+ </el-select>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <!-- 自定义数值 -->
|
|
|
+ <div class="zhoFel" v-if="user.timeType.customDataActive">
|
|
|
+ <p>{{user.timeType.customDataName}}</p>
|
|
|
+ <el-input-number :id="'weekData_num'" :disabled="!canEdit" v-model="zhoBao.customData" style="width:200px;" @keyup.native="restrictNumber('weekData_num')"></el-input-number>
|
|
|
+ </div>
|
|
|
+ <!-- 自定义文本 -->
|
|
|
+ <div class="zhoFel" v-if="user.timeType.customTextActive">
|
|
|
+ <p>{{user.timeType.customTextName}}</p>
|
|
|
+ <el-input :disabled="!canEdit" v-model="zhoBao.customText" style="width:355px;" maxlength="25" show-word-limit></el-input>
|
|
|
+ </div>
|
|
|
<div class="zhoFel" v-if="reportTimeType.type == 2">
|
|
|
<p>选择时间</p>
|
|
|
<el-time-picker style="width: 355px" is-range v-model="zhoBao.time" format="HH:mm" value-format="HH:mm" range-separator="至" start-placeholder="开始时间" end-placeholder="结束时间" placeholder="选择时间范围"></el-time-picker>
|
|
@@ -1465,6 +1483,7 @@
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+
|
|
|
filterNode(value, data) {
|
|
|
// console.log(value, data, '搜索')
|
|
|
if (!value) return true;
|
|
@@ -3674,7 +3693,7 @@
|
|
|
},
|
|
|
// 按周填报里内容的填写
|
|
|
tianxies(item, i, names, row) {
|
|
|
- // console.log(item, i, names, row[0], '你好')
|
|
|
+ // console.log(item, i, names, row, '你好')
|
|
|
var idd = ''
|
|
|
var obj = {}
|
|
|
for(var l in this.projectList) {
|
|
@@ -3686,6 +3705,7 @@
|
|
|
this.tianxieDialogVisible = true
|
|
|
this.scopess = item
|
|
|
var sss = {}
|
|
|
+
|
|
|
sss.projectId = idd;
|
|
|
sss.con = item.con
|
|
|
sss.progress = item.progress
|
|
@@ -3718,6 +3738,7 @@
|
|
|
//只有一个审核人,自动设置上去
|
|
|
sss.projectAuditorId = sss.auditUserList[0].auditorId;
|
|
|
}
|
|
|
+ sss.wuduList = row[0].wuduList
|
|
|
// console.log(sss, '数据')
|
|
|
that.zhoBaoIdx = i
|
|
|
that.zhoBaoName = names
|
|
@@ -4114,7 +4135,7 @@
|
|
|
for(var j in zhoD) {
|
|
|
if(j != 'zhoDataTime' && j != 'he' && zhoD[j].time && zhoD[j].time.length > 0 && zhoD[j].time != null && zhoD[j].time != 'null') {
|
|
|
flgs = true
|
|
|
- formData.append("degreeId", "-1");
|
|
|
+ // formData.append("degreeId", "-1");
|
|
|
formData.append("id", '-1');
|
|
|
for(var s in this.projectList) {
|
|
|
if(j == this.projectList[s].projectName) {
|
|
@@ -4151,6 +4172,21 @@
|
|
|
} else {
|
|
|
formData.append("basecostId", 0);
|
|
|
}
|
|
|
+ if(this.user.timeType.customDegreeActive && zhoD[j].degreeId){
|
|
|
+ formData.append('degreeId',zhoD[j].degreeId)
|
|
|
+ }else{
|
|
|
+ formData.append("degreeId", "-1");
|
|
|
+ }
|
|
|
+ if(this.user.timeType.customDataActive && zhoD[j].customData){
|
|
|
+ formData.append('customData',zhoD[j].customData)
|
|
|
+ }else if(this.user.timeType.customDataActive){
|
|
|
+ formData.append('customData',0)
|
|
|
+ }
|
|
|
+ if(this.user.timeType.customTextActive && zhoD[j].customText){
|
|
|
+ formData.append('customText',zhoD[j].customText)
|
|
|
+ }else if(this.user.timeType.customTextActive){
|
|
|
+ formData.append('customText','-')
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -4162,7 +4198,7 @@
|
|
|
for(var j in zhoD) {
|
|
|
if(j != 'zhoDataTime' && j != 'he' && zhoD[j].time && zhoD[j].time.length > 0 && zhoD[j].time != null && zhoD[j].time != 'null') {
|
|
|
flgs = true
|
|
|
- formData.append("degreeId", "-1");
|
|
|
+ // formData.append("degreeId", "-1");
|
|
|
formData.append("id", '-1');
|
|
|
for(var s in this.projectList) {
|
|
|
if(j == this.projectList[s].projectName) {
|
|
@@ -4188,13 +4224,28 @@
|
|
|
} else {
|
|
|
formData.append("basecostId", 0);
|
|
|
}
|
|
|
+ if(this.user.timeType.customDegreeActive && zhoD[j].degreeId){
|
|
|
+ formData.append('degreeId',zhoD[j].degreeId)
|
|
|
+ }else{
|
|
|
+ formData.append("degreeId", "-1");
|
|
|
+ }
|
|
|
+ if(this.user.timeType.customDataActive && zhoD[j].customData){
|
|
|
+ formData.append('customData',zhoD[j].customData)
|
|
|
+ }else if(this.user.timeType.customDataActive){
|
|
|
+ formData.append('customData',0)
|
|
|
+ }
|
|
|
+ if(this.user.timeType.customTextActive && zhoD[j].customText){
|
|
|
+ formData.append('customText',zhoD[j].customText)
|
|
|
+ }else if(this.user.timeType.customTextActive){
|
|
|
+ formData.append('customText','-')
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
for(var j in zhoD) {
|
|
|
if(j != 'zhoDataTime' && j != 'he' && zhoD[j].workingTime && zhoD[j].workingTime.length > 0 && zhoD[j].workingTime > 0 && zhoD[j].workingTime != null && zhoD[j].workingTime != 'null') {
|
|
|
flgs = true
|
|
|
- formData.append("degreeId", "-1");
|
|
|
+ // formData.append("degreeId", "-1");
|
|
|
formData.append("id", '-1');
|
|
|
for(var s in this.projectList) {
|
|
|
if(j == this.projectList[s].projectName) {
|
|
@@ -4228,12 +4279,29 @@
|
|
|
} else {
|
|
|
formData.append("basecostId", 0);
|
|
|
}
|
|
|
+ if(this.user.timeType.customDegreeActive && zhoD[j].degreeId){
|
|
|
+ formData.append('degreeId',zhoD[j].degreeId)
|
|
|
+ }else{
|
|
|
+ formData.append("degreeId", "-1");
|
|
|
+ }
|
|
|
+ if(this.user.timeType.customDataActive && zhoD[j].customData){
|
|
|
+ formData.append('customData',zhoD[j].customData)
|
|
|
+ }else if(this.user.timeType.customDataActive){
|
|
|
+ formData.append('customData',0)
|
|
|
+ }
|
|
|
+ if(this.user.timeType.customTextActive && zhoD[j].customText){
|
|
|
+ formData.append('customText',zhoD[j].customText)
|
|
|
+ }else if(this.user.timeType.customTextActive){
|
|
|
+ formData.append('customText','-')
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
+ }
|
|
|
|
|
|
+ // 自定义维度
|
|
|
+
|
|
|
this.http.uploadFile( this.port.report.editPort, formData,
|
|
|
res => {
|
|
|
// this.listLoading = false;
|