|
@@ -279,7 +279,7 @@
|
|
|
<span style="margin-left:10px;">{{ $t('gongZuoZhiZe') }} :{{ item2.extraField2? item2.extraField2Name:''}}</span>
|
|
<span style="margin-left:10px;">{{ $t('gongZuoZhiZe') }} :{{ item2.extraField2? item2.extraField2Name:''}}</span>
|
|
|
<span style="margin-left:10px;">{{ $t('gongZuoNeiRong') }} :{{ item2.extraField3? item2.extraField3Name:''}}</span></p>
|
|
<span style="margin-left:10px;">{{ $t('gongZuoNeiRong') }} :{{ item2.extraField3? item2.extraField3Name:''}}</span></p>
|
|
|
|
|
|
|
|
- <p v-if="(user.companyId == 4811 || user.companyId == 10) && item2.constructionStageStr">
|
|
|
|
|
|
|
+ <p v-if="(user.companyId == 4811) && item2.constructionStageStr">
|
|
|
<span>施工分项工程 :{{item2.constructionStageStr}}</span>
|
|
<span>施工分项工程 :{{item2.constructionStageStr}}</span>
|
|
|
</p>
|
|
</p>
|
|
|
|
|
|
|
@@ -435,7 +435,6 @@
|
|
|
<el-button type="default" style="margin-left:5px;" size="small" :loading="syncTimeLoading" icon="el-icon-refresh"
|
|
<el-button type="default" style="margin-left:5px;" size="small" :loading="syncTimeLoading" icon="el-icon-refresh"
|
|
|
@click="refreshAttendance(workForm.createDate)"></el-button>
|
|
@click="refreshAttendance(workForm.createDate)"></el-button>
|
|
|
</template>
|
|
</template>
|
|
|
-
|
|
|
|
|
<!-- AI智能填报 -->
|
|
<!-- AI智能填报 -->
|
|
|
<el-button type="primary" @click="getAIReport()" v-if="!hasWrittenReport" style="margin-left:5px;" >{{ $t('zhiNengTianBao') }}</el-button>
|
|
<el-button type="primary" @click="getAIReport()" v-if="!hasWrittenReport" style="margin-left:5px;" >{{ $t('zhiNengTianBao') }}</el-button>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -474,11 +473,13 @@
|
|
|
<span v-if="user.companyId==5978" style="margin-left:5px;" class="themeFontColor"><i class="el-icon-warning"></i>{{$t('other.kaoqingTimeTip')}}</span>
|
|
<span v-if="user.companyId==5978" style="margin-left:5px;" class="themeFontColor"><i class="el-icon-warning"></i>{{$t('other.kaoqingTimeTip')}}</span>
|
|
|
|
|
|
|
|
<!--针对羲和超导的异常填报功能-->
|
|
<!--针对羲和超导的异常填报功能-->
|
|
|
- <template v-if="user.companyId == 8555 && (!workForm.time || !workForm.time.workHours)">
|
|
|
|
|
|
|
+ <template v-if="(user.companyId == 8555 || user.companyId ==5792 ) && (!workForm.time || !workForm.time.workHours)">
|
|
|
<span style="margin-left:70px;color:#666;">异常填报</span>
|
|
<span style="margin-left:70px;color:#666;">异常填报</span>
|
|
|
<el-switch v-model="workForm.abnormalTime" :disabled="!canEdit"></el-switch>
|
|
<el-switch v-model="workForm.abnormalTime" :disabled="!canEdit"></el-switch>
|
|
|
</template>
|
|
</template>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
+ <!--加班申请时长-->
|
|
|
|
|
+ <el-form-item label="加班时长" v-if="workForm.overtime"><span style="color:#FFA500;">{{ workForm.overtime.toFixed(1) }} h</span></el-form-item>
|
|
|
<!-- 000000 -->
|
|
<!-- 000000 -->
|
|
|
<div v-for="(domain, index) in workForm.domains" :key="domain.id" :style="index>0?'padding-top:25px;':''" >
|
|
<div v-for="(domain, index) in workForm.domains" :key="domain.id" :style="index>0?'padding-top:25px;':''" >
|
|
|
<div v-if="reportTimeType.multiWorktime==0">
|
|
<div v-if="reportTimeType.multiWorktime==0">
|
|
@@ -608,14 +609,14 @@
|
|
|
<!-- <el-link type="primary" v-if="canEdit"
|
|
<!-- <el-link type="primary" v-if="canEdit"
|
|
|
:underline="false" style="margin-left:10px;" @click="copyProject(index)">复制</el-link> -->
|
|
:underline="false" style="margin-left:10px;" @click="copyProject(index)">复制</el-link> -->
|
|
|
<!--针对柘中,显示项目对应的工程分类-->
|
|
<!--针对柘中,显示项目对应的工程分类-->
|
|
|
- <template v-if="(user.companyId == 10 || user.companyId == 4811) && workForm.domains[index].projectId">
|
|
|
|
|
|
|
+ <template v-if="(user.companyId == 4811) && workForm.domains[index].projectId">
|
|
|
<span style="margin-left:10px;">工程分类:{{ workForm.domains[index].engineeringCategory }}</span>
|
|
<span style="margin-left:10px;">工程分类:{{ workForm.domains[index].engineeringCategory }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item :label="$t('other.projectDescription')" v-if="user.company.packageProject==0&&domain.projectId&&fillProjectList.filter(p=>p.id == domain.projectId).length>0&&fillProjectList.filter(p=>p.id == domain.projectId)[0].projectDesc">
|
|
<el-form-item :label="$t('other.projectDescription')" v-if="user.company.packageProject==0&&domain.projectId&&fillProjectList.filter(p=>p.id == domain.projectId).length>0&&fillProjectList.filter(p=>p.id == domain.projectId)[0].projectDesc">
|
|
|
<span>{{fillProjectList.filter(p=>p.id == domain.projectId)[0].projectDesc}}</span>
|
|
<span>{{fillProjectList.filter(p=>p.id == domain.projectId)[0].projectDesc}}</span>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <el-form-item label="施工分项工程" v-if="(user.companyId == 10 || user.companyId == 4811) && workForm.domains[index].engineeringCategory != null && workForm.domains[index].engineeringCategory != ''" :rules="{ required: true, message: '请填写', trigger: ['change','blur'] }">
|
|
|
|
|
|
|
+ <el-form-item label="施工分项工程" v-if="(user.companyId == 4811) && workForm.domains[index].engineeringCategory != null && workForm.domains[index].engineeringCategory != ''" :rules="{ required: true, message: '请填写', trigger: ['change','blur'] }">
|
|
|
<!-- <el-select v-model="domain.extraField1" :disabled="!domain.canEdit" @change="$forceUpdate()" style="width:200px;" filterable>
|
|
<!-- <el-select v-model="domain.extraField1" :disabled="!domain.canEdit" @change="$forceUpdate()" style="width:200px;" filterable>
|
|
|
<el-option v-for="item in domain.constructionStages" :label="item.name" :value="item.id" :key="item.id"></el-option>
|
|
<el-option v-for="item in domain.constructionStages" :label="item.name" :value="item.id" :key="item.id"></el-option>
|
|
|
</el-select> -->
|
|
</el-select> -->
|
|
@@ -632,17 +633,6 @@
|
|
|
</el-input-number> {{ item.unit }} </el-col>
|
|
</el-input-number> {{ item.unit }} </el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <!-- <el-form-item label="完成数量" v-if="(user.companyId == 10 || user.companyId == 4811) && domain.extraField1" :rules="{ required: true, message: '请填写', trigger: ['change','blur'] }">
|
|
|
|
|
- <el-input-number
|
|
|
|
|
- v-model="domain.extraField2"
|
|
|
|
|
- :disabled="!domain.canEdit"
|
|
|
|
|
- :precision="0"
|
|
|
|
|
- :step="1"
|
|
|
|
|
- :min="0"
|
|
|
|
|
- style="width:200px;">
|
|
|
|
|
- </el-input-number>
|
|
|
|
|
- <span style="margin-left:10px;">{{(domain.constructionStages && domain.constructionStages.length>0 && domain.constructionStages.find(item => item.id === domain.extraField1) != null)?domain.constructionStages.find(item => item.id === domain.extraField1).unit || '' :'' }}</span>
|
|
|
|
|
- </el-form-item> -->
|
|
|
|
|
<!--如果设置了工时成本预警的预算成本项-->
|
|
<!--如果设置了工时成本预警的预算成本项-->
|
|
|
<el-form-item :label="$t('lable.budgetSource')" v-if="user.company.packageProject==1&&timeBasecostList &&timeBasecostList.length>0">
|
|
<el-form-item :label="$t('lable.budgetSource')" v-if="user.company.packageProject==1&&timeBasecostList &&timeBasecostList.length>0">
|
|
|
<el-select v-model="domain.basecostId" :disabled="!domain.canEdit" @change="$forceUpdate()" style="width:200px;">
|
|
<el-select v-model="domain.basecostId" :disabled="!domain.canEdit" @change="$forceUpdate()" style="width:200px;">
|
|
@@ -845,7 +835,7 @@
|
|
|
:disabled="workForm.domains.length==0?true:(workForm.domains[index].state>=2?false:true)" @change="onTaskSelected(domain)">
|
|
:disabled="workForm.domains.length==0?true:(workForm.domains[index].state>=2?false:true)" @change="onTaskSelected(domain)">
|
|
|
<el-option v-for="item in domain.taskList" :key="item.taskId" :label="item.taskName" :value="item.taskId"></el-option>
|
|
<el-option v-for="item in domain.taskList" :key="item.taskId" :label="item.taskName" :value="item.taskId"></el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
- <!-- <el-checkbox v-model="domain.taskFinish" v-if="domain.taskId != undefined && user.companyId != '5608'">{{$t('state.completed')}}</el-checkbox> -->
|
|
|
|
|
|
|
+ <el-checkbox v-model="domain.taskFinish" v-if="domain.taskId != undefined && user.timeType.finishTaskInReport">{{$t('state.completed')}}</el-checkbox>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<!--针对依斯贝的SAP服务-->
|
|
<!--针对依斯贝的SAP服务-->
|
|
|
<el-form-item v-if="user.companyId==3092" :label="$t('fuWu')" :prop="'domains.' + index + '.sapServiceId'"
|
|
<el-form-item v-if="user.companyId==3092" :label="$t('fuWu')" :prop="'domains.' + index + '.sapServiceId'"
|
|
@@ -863,7 +853,7 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<!-- 拍照上传 -->
|
|
<!-- 拍照上传 -->
|
|
|
- <el-form-item :label="$t('tuPianShangChuan')" v-if="user.timeType.choseFromAlbum == 1 || (user.companyId == 8555 && workForm.abnormalTime)" :prop="'domains.' + index + '.imgListUrl'"
|
|
|
|
|
|
|
+ <el-form-item :label="$t('tuPianShangChuan')" v-if="user.timeType.choseFromAlbum == 1 || ((user.companyId == 8555 || user.companyId ==5792 ) && workForm.abnormalTime)" :prop="'domains.' + index + '.imgListUrl'"
|
|
|
:rules="isCustomization(user, reportPictureRequired) ? { required: true, message: $t('pleaseselectpictures'), trigger: 'blur' } : null">
|
|
:rules="isCustomization(user, reportPictureRequired) ? { required: true, message: $t('pleaseselectpictures'), trigger: 'blur' } : null">
|
|
|
<div class="photos">
|
|
<div class="photos">
|
|
|
<div>
|
|
<div>
|
|
@@ -1701,6 +1691,7 @@
|
|
|
<el-link
|
|
<el-link
|
|
|
type="primary"
|
|
type="primary"
|
|
|
@click="exportMembWorkHours()"
|
|
@click="exportMembWorkHours()"
|
|
|
|
|
+ v-loading="exportLoading"
|
|
|
>{{$t('export.exportData')}}</el-link
|
|
>{{$t('export.exportData')}}</el-link
|
|
|
>
|
|
>
|
|
|
</div>
|
|
</div>
|
|
@@ -1870,6 +1861,7 @@
|
|
|
type="primary"
|
|
type="primary"
|
|
|
style="float: right; vertical-align: middle;height:32px"
|
|
style="float: right; vertical-align: middle;height:32px"
|
|
|
@click="exportMembNotWorkHours()"
|
|
@click="exportMembNotWorkHours()"
|
|
|
|
|
+ v-loading="exportLoading"
|
|
|
>{{$t('export.exportData')}}</el-link
|
|
>{{$t('export.exportData')}}</el-link
|
|
|
>
|
|
>
|
|
|
</div>
|
|
</div>
|
|
@@ -1979,6 +1971,7 @@
|
|
|
type="primary"
|
|
type="primary"
|
|
|
style="float: right; vertical-align: middle;height:32px"
|
|
style="float: right; vertical-align: middle;height:32px"
|
|
|
@click="exportMissingCardTimeUserList()"
|
|
@click="exportMissingCardTimeUserList()"
|
|
|
|
|
+ v-loading="exportLoading"
|
|
|
>{{$t('export.exportData')}}</el-link
|
|
>{{$t('export.exportData')}}</el-link
|
|
|
>
|
|
>
|
|
|
</div>
|
|
</div>
|
|
@@ -2017,7 +2010,7 @@
|
|
|
<el-alert style="position:absolute;bottom:0;z-index:10;" v-if="isMore" :title="$t('message.noMoreData')" type="success" center show-icon></el-alert>
|
|
<el-alert style="position:absolute;bottom:0;z-index:10;" v-if="isMore" :title="$t('message.noMoreData')" type="success" center show-icon></el-alert>
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
|
|
|
|
|
- <el-tab-pane :label="$t('cardtimenotfull')" name="fourth" v-if="(user.timeType.syncCorpwxTime==1 || user.timeType.syncFanwei == 1 || user.timeType.syncDingding == 1) && user.companyId!=5978 && user.companyId != 8555">
|
|
|
|
|
|
|
+ <el-tab-pane :label="$t('cardtimenotfull')" name="fourth" v-if="(user.timeType.syncCorpwxTime==1 || user.timeType.syncFanwei == 1 || user.timeType.syncDingding == 1) && user.companyId!=5978 && user.companyId != 8555 && user.companyId != 5792">
|
|
|
<div class="selectworktime_export" style="margin-top:10px">
|
|
<div class="selectworktime_export" style="margin-top:10px">
|
|
|
<div class="selectworktime_export_l">
|
|
<div class="selectworktime_export_l">
|
|
|
<el-date-picker
|
|
<el-date-picker
|
|
@@ -2690,6 +2683,7 @@
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ exportLoading: false,
|
|
|
allConstructionStages:[],
|
|
allConstructionStages:[],
|
|
|
quickWords: [],//用于AI解析快速输入的历史日报填报关键字
|
|
quickWords: [],//用于AI解析快速输入的历史日报填报关键字
|
|
|
remindering: false,
|
|
remindering: false,
|
|
@@ -3133,7 +3127,7 @@
|
|
|
if (this.user.companyId == this.yuzhongCompId) {
|
|
if (this.user.companyId == this.yuzhongCompId) {
|
|
|
this.getJobResponList();
|
|
this.getJobResponList();
|
|
|
}
|
|
}
|
|
|
- if (this.user.companyId == 10 || this.user.companyId == 4811) {
|
|
|
|
|
|
|
+ if (this.user.companyId == 4811) {
|
|
|
this.getConstructionStageList();
|
|
this.getConstructionStageList();
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -3831,7 +3825,7 @@
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- refreshAttendance(workdate) {
|
|
|
|
|
|
|
+ refreshAttendance(workdate) {
|
|
|
if (!workdate) return;
|
|
if (!workdate) return;
|
|
|
if (this.isSubstitude && this.workForm.userId == null) return;
|
|
if (this.isSubstitude && this.workForm.userId == null) return;
|
|
|
this.syncTimeLoading = true;
|
|
this.syncTimeLoading = true;
|
|
@@ -4444,6 +4438,8 @@
|
|
|
if (this.user.companyId == 8264 || this.user.companyId == 8261 || this.user.companyId == 8138 || this.user.companyId == 8268) {
|
|
if (this.user.companyId == 8264 || this.user.companyId == 8261 || this.user.companyId == 8138 || this.user.companyId == 8268) {
|
|
|
url = "/report/importNewDataZhengbei"
|
|
url = "/report/importNewDataZhengbei"
|
|
|
formData.append("isPass", this.isPass);
|
|
formData.append("isPass", this.isPass);
|
|
|
|
|
+ } else if (this.user.companyId == 10 || this.user.companyId == 5792) {//羲合超导-合肥定制的临时导入工时功能
|
|
|
|
|
+ url = "/report/importNewDataXiHe"
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
this.http.uploadFile(url, formData,
|
|
this.http.uploadFile(url, formData,
|
|
@@ -4894,6 +4890,7 @@
|
|
|
},
|
|
},
|
|
|
// 导出缺考勤人员列表
|
|
// 导出缺考勤人员列表
|
|
|
exportMissingCardTimeUserList() {
|
|
exportMissingCardTimeUserList() {
|
|
|
|
|
+ this.exportLoading = true;
|
|
|
this.http.post(
|
|
this.http.post(
|
|
|
"/report/exportMissingCardTimeUserList",
|
|
"/report/exportMissingCardTimeUserList",
|
|
|
{
|
|
{
|
|
@@ -4902,6 +4899,7 @@
|
|
|
departmentId: this.deptIdForNoReport.length>0?this.deptIdForNoReport[this.deptIdForNoReport.length-1]:null
|
|
departmentId: this.deptIdForNoReport.length>0?this.deptIdForNoReport[this.deptIdForNoReport.length-1]:null
|
|
|
},
|
|
},
|
|
|
(res) => {
|
|
(res) => {
|
|
|
|
|
+ this.exportLoading = false;
|
|
|
if (res.code == "ok") {
|
|
if (res.code == "ok") {
|
|
|
let url = res.data;
|
|
let url = res.data;
|
|
|
this.downloadByA('缺考勤人员列表.xlsx', url);
|
|
this.downloadByA('缺考勤人员列表.xlsx', url);
|
|
@@ -4916,7 +4914,8 @@
|
|
|
);
|
|
);
|
|
|
},
|
|
},
|
|
|
//导出员工每日填报工时数
|
|
//导出员工每日填报工时数
|
|
|
- exportMembWorkHours() {
|
|
|
|
|
|
|
+ exportMembWorkHours() {
|
|
|
|
|
+ this.exportLoading = true;
|
|
|
this.http.post(
|
|
this.http.post(
|
|
|
"/report/exportUserDailyWorkTime",
|
|
"/report/exportUserDailyWorkTime",
|
|
|
{
|
|
{
|
|
@@ -4926,6 +4925,7 @@
|
|
|
hasReportDeptId: this.deptIdForHasReport.length>0?this.deptIdForHasReport[this.deptIdForHasReport.length-1]:null,
|
|
hasReportDeptId: this.deptIdForHasReport.length>0?this.deptIdForHasReport[this.deptIdForHasReport.length-1]:null,
|
|
|
},
|
|
},
|
|
|
(res) => {
|
|
(res) => {
|
|
|
|
|
+ this.exportLoading = false;
|
|
|
if (res.code == "ok") {
|
|
if (res.code == "ok") {
|
|
|
let url = res.data;
|
|
let url = res.data;
|
|
|
this.downloadByA(this.$t('template.Staffdailyworkinghoursstatistics') + '.xlsx', url);
|
|
this.downloadByA(this.$t('template.Staffdailyworkinghoursstatistics') + '.xlsx', url);
|
|
@@ -4962,7 +4962,7 @@
|
|
|
);
|
|
);
|
|
|
},
|
|
},
|
|
|
exportMembNotWorkHours() {
|
|
exportMembNotWorkHours() {
|
|
|
-
|
|
|
|
|
|
|
+ this.exportLoading = true;
|
|
|
this.http.post(
|
|
this.http.post(
|
|
|
"/report/exportNoReportUserList",
|
|
"/report/exportNoReportUserList",
|
|
|
{
|
|
{
|
|
@@ -4973,6 +4973,7 @@
|
|
|
noReportDeptId: this.deptIdForNoReport.length>0?this.deptIdForNoReport[this.deptIdForNoReport.length-1]:null
|
|
noReportDeptId: this.deptIdForNoReport.length>0?this.deptIdForNoReport[this.deptIdForNoReport.length-1]:null
|
|
|
},
|
|
},
|
|
|
(res) => {
|
|
(res) => {
|
|
|
|
|
+ this.exportLoading = false;
|
|
|
if (res.code == "ok") {
|
|
if (res.code == "ok") {
|
|
|
let url = res.data;
|
|
let url = res.data;
|
|
|
this.downloadByA(this.$t('template.Staffdailyworkinghoursstatistics') + '.xlsx', url);
|
|
this.downloadByA(this.$t('template.Staffdailyworkinghoursstatistics') + '.xlsx', url);
|
|
@@ -7324,7 +7325,7 @@
|
|
|
var abnormalTime = false;
|
|
var abnormalTime = false;
|
|
|
for(var i in list.report) {
|
|
for(var i in list.report) {
|
|
|
var flg = null
|
|
var flg = null
|
|
|
- if (this.user.companyId == 8555) {
|
|
|
|
|
|
|
+ if ((this.user.companyId == 8555 || this.user.companyId ==5792 )) {
|
|
|
if (list.report[i].extraField1) {
|
|
if (list.report[i].extraField1) {
|
|
|
abnormalTime = true;
|
|
abnormalTime = true;
|
|
|
}
|
|
}
|
|
@@ -7437,7 +7438,8 @@
|
|
|
userId:null,
|
|
userId:null,
|
|
|
time: list.time,
|
|
time: list.time,
|
|
|
showRefresh: list.showRefresh,
|
|
showRefresh: list.showRefresh,
|
|
|
- abnormalTime: abnormalTime
|
|
|
|
|
|
|
+ abnormalTime: abnormalTime,
|
|
|
|
|
+ overtime: list.overtime
|
|
|
}
|
|
}
|
|
|
if(res.data.timeType.type == 3) {
|
|
if(res.data.timeType.type == 3) {
|
|
|
const reportCalculationReportList = res.data.report || []
|
|
const reportCalculationReportList = res.data.report || []
|
|
@@ -7472,7 +7474,8 @@
|
|
|
userId:null,
|
|
userId:null,
|
|
|
userNames:null,
|
|
userNames:null,
|
|
|
time: this.report.time,
|
|
time: this.report.time,
|
|
|
- showRefresh: list.showRefresh
|
|
|
|
|
|
|
+ showRefresh: list.showRefresh,
|
|
|
|
|
+ overtime: list.overtime
|
|
|
}
|
|
}
|
|
|
if(res.data.timeType.type == 3) {
|
|
if(res.data.timeType.type == 3) {
|
|
|
copyWorkForm.totalDuration = res.data.timeType.allday
|
|
copyWorkForm.totalDuration = res.data.timeType.allday
|
|
@@ -9464,7 +9467,7 @@
|
|
|
//批量填报不校验考勤时长,交给后台校验
|
|
//批量填报不校验考勤时长,交给后台校验
|
|
|
|
|
|
|
|
if (!this.isBatch) {
|
|
if (!this.isBatch) {
|
|
|
- if (this.user.companyId == 8555 && this.workForm.abnormalTime) {
|
|
|
|
|
|
|
+ if ((this.user.companyId == 8555 || this.user.companyId ==5792 ) && this.workForm.abnormalTime) {
|
|
|
//异常上报情况,需要上传图片
|
|
//异常上报情况,需要上传图片
|
|
|
var findImg = false;
|
|
var findImg = false;
|
|
|
for (var t=0;t<this.workForm.domains.length; t++) {
|
|
for (var t=0;t<this.workForm.domains.length; t++) {
|
|
@@ -9790,7 +9793,7 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- if (this.user.timeType.reportWorkflow) {
|
|
|
|
|
|
|
+ if (this.user.timeType.reportWorkflow && this.user.timeType.reportAuditType == 0) {
|
|
|
//校验部门节点是否有审核人
|
|
//校验部门节点是否有审核人
|
|
|
for (var t=0;t<this.workForm.domains[i].auditWorkflow.length; t++) {
|
|
for (var t=0;t<this.workForm.domains[i].auditWorkflow.length; t++) {
|
|
|
var node = this.workForm.domains[i].auditWorkflow[t];
|
|
var node = this.workForm.domains[i].auditWorkflow[t];
|
|
@@ -9808,7 +9811,7 @@
|
|
|
formData.append('extraField2', this.workForm.domains[i].extraField2);
|
|
formData.append('extraField2', this.workForm.domains[i].extraField2);
|
|
|
formData.append('extraField3', this.workForm.domains[i].extraField3);
|
|
formData.append('extraField3', this.workForm.domains[i].extraField3);
|
|
|
}
|
|
}
|
|
|
- if (this.user.companyId == 10 || this.user.companyId == 4811) {
|
|
|
|
|
|
|
+ if (this.user.companyId == 4811) {
|
|
|
// formData.append('extraField1', this.workForm.domains[i].extraField1 || -1);//避免null造成数字类型转化错误
|
|
// formData.append('extraField1', this.workForm.domains[i].extraField1 || -1);//避免null造成数字类型转化错误
|
|
|
// formData.append('extraField2', this.workForm.domains[i].extraField2 || 0);
|
|
// formData.append('extraField2', this.workForm.domains[i].extraField2 || 0);
|
|
|
let constructionStagesStr = JSON.stringify(this.workForm.domains[i].constructionStages).replace(/,/g,"@");
|
|
let constructionStagesStr = JSON.stringify(this.workForm.domains[i].constructionStages).replace(/,/g,"@");
|
|
@@ -9869,7 +9872,7 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
//羲合超导的异常工时上报
|
|
//羲合超导的异常工时上报
|
|
|
- if (this.user.companyId == 8555) {
|
|
|
|
|
|
|
+ if ((this.user.companyId == 8555 || this.user.companyId ==5792 )) {
|
|
|
if (this.workForm.abnormalTime) {
|
|
if (this.workForm.abnormalTime) {
|
|
|
formData.append('abnormalTime', this.workForm.abnormalTime);
|
|
formData.append('abnormalTime', this.workForm.abnormalTime);
|
|
|
}
|
|
}
|