|
@@ -1040,7 +1040,7 @@
|
|
<div v-if="scope.row.canFill == 1">
|
|
<div v-if="scope.row.canFill == 1">
|
|
<template v-if="user.company.packageProject == 0 && user.timeType.type == 1">
|
|
<template v-if="user.company.packageProject == 0 && user.timeType.type == 1">
|
|
<div v-if="reportTimeType.multiWorktime == 0" slot="reference">
|
|
<div v-if="reportTimeType.multiWorktime == 0" slot="reference">
|
|
- <el-input-number v-model="scope.row[item.projectName].workingTime" size="small" :step="0.5" controls-position="right" step-strictly :min="0" :max="20" :disabled="[0, 1, '0', '1'].includes(scope.row[item.projectName].state)" @change="fillInThePedometerOnAWeeklyBasis(scope.$index)"></el-input-number>
|
|
|
|
|
|
+ <el-input-number v-model="scope.row[item.projectName].workingTime" size="small" :step="0.5" controls-position="right" step-strictly :min="0" :max="20" :disabled="[0, 1, '0', '1'].includes(scope.row[item.projectName].state)" @change="fillInThePedometerOnAWeeklyBasis(scope.$index)" @input="onInputWorkTime(scope.$index)"></el-input-number>
|
|
<span v-if="scope.row[item.projectName].state != 3 && workReportStateString[scope.row[item.projectName].state]" :class="statusStyle[scope.row[item.projectName].state]">({{workReportStateString[scope.row[item.projectName].state]}})</span>
|
|
<span v-if="scope.row[item.projectName].state != 3 && workReportStateString[scope.row[item.projectName].state]" :class="statusStyle[scope.row[item.projectName].state]">({{workReportStateString[scope.row[item.projectName].state]}})</span>
|
|
<el-link type="primary" style="margin-left: 10px" @click="showWeekItemEdit(scope.row[item.projectName], scope.$index, item.id, item.projectName, workForm.domains)">编辑</el-link>
|
|
<el-link type="primary" style="margin-left: 10px" @click="showWeekItemEdit(scope.row[item.projectName], scope.$index, item.id, item.projectName, workForm.domains)">编辑</el-link>
|
|
</div>
|
|
</div>
|
|
@@ -6737,6 +6737,10 @@
|
|
const totalNum = collectionArray.reduce((accumulator, currentValue) => accumulator + currentValue, 0)
|
|
const totalNum = collectionArray.reduce((accumulator, currentValue) => accumulator + currentValue, 0)
|
|
this.zhoData[index].he = totalNum
|
|
this.zhoData[index].he = totalNum
|
|
},
|
|
},
|
|
|
|
+ //输入工时触发
|
|
|
|
+ onInputWorkTime(index) {
|
|
|
|
+ const weeklyItem = this.zhoData[index] || {}
|
|
|
|
+ },
|
|
|
|
|
|
// 按周填报里内容的填写
|
|
// 按周填报里内容的填写
|
|
showWeekItemEdit(item, i, projectId,names, row) {
|
|
showWeekItemEdit(item, i, projectId,names, row) {
|
|
@@ -7762,6 +7766,9 @@
|
|
formData.append("createDate",zhoD.zhoDataTime)
|
|
formData.append("createDate",zhoD.zhoDataTime)
|
|
if (zhoD[j].projectAuditorId) {
|
|
if (zhoD[j].projectAuditorId) {
|
|
formData.append("projectAuditorId",zhoD[j].projectAuditorId)
|
|
formData.append("projectAuditorId",zhoD[j].projectAuditorId)
|
|
|
|
+ } else {
|
|
|
|
+ //对齐数据
|
|
|
|
+ formData.append("projectAuditorId",'-');
|
|
}
|
|
}
|
|
if(zhoD[j].basecostId) {
|
|
if(zhoD[j].basecostId) {
|
|
formData.append("basecostId", zhoD[j].basecostId);
|
|
formData.append("basecostId", zhoD[j].basecostId);
|
|
@@ -7859,6 +7866,9 @@
|
|
formData.append("createDate",zhoD.zhoDataTime)
|
|
formData.append("createDate",zhoD.zhoDataTime)
|
|
if (zhoD[j].projectAuditorId) {
|
|
if (zhoD[j].projectAuditorId) {
|
|
formData.append("projectAuditorId",zhoD[j].projectAuditorId)
|
|
formData.append("projectAuditorId",zhoD[j].projectAuditorId)
|
|
|
|
+ } else {
|
|
|
|
+ //对齐数据
|
|
|
|
+ formData.append("projectAuditorId",'-')
|
|
}
|
|
}
|
|
if(zhoD[j].basecostId) {
|
|
if(zhoD[j].basecostId) {
|
|
formData.append("basecostId", zhoD[j].basecostId);
|
|
formData.append("basecostId", zhoD[j].basecostId);
|