|
@@ -144,6 +144,7 @@
|
|
|
<!--部门负责人给个导出工时的功能 -->
|
|
|
<el-link type="primary" v-if="user.manageDeptId != 0" style="margin-right:10px;" :underline="false" @click="showExportTimeDialog">{{$t('textLink.exportingTimeStatistics')}}</el-link>
|
|
|
<el-link type="primary" v-if="user.timeType.pushReportData == 1 && permissions.reportPush" :underline="false" @click="pushWorkTime">推送工时</el-link>
|
|
|
+ <el-link type="primary" v-if="user.timeType.pushReportData == 1 && permissions.reportPush" :underline="false" @click="pushWorkTimeLogDig=true,getPushWorkLogData()">工时推送日志</el-link>
|
|
|
<!-- <el-button v-if="user.timeType.pushReportData == 1 && permissions.reportPush" style="margin-left:10px;" icon="iconfont firerock-icontuisong" size="mini" @click="pushWorkTime"></el-button> -->
|
|
|
|
|
|
</span>
|
|
@@ -342,6 +343,28 @@
|
|
|
</el-card>
|
|
|
</div>
|
|
|
|
|
|
+ <!-- 工时推送日志弹窗 -->
|
|
|
+ <el-dialog title="工时推送日志" :visible.sync="pushWorkTimeLogDig" width="70%" :before-close="handleClose">
|
|
|
+ <template>
|
|
|
+ <el-table :data="pushWorkTimeLogData" style="width: 100%" height="500" >
|
|
|
+ <el-table-column prop="syncTime" label="推送时间" width="150"></el-table-column>
|
|
|
+ <el-table-column prop="remark" label="推送名称" width="180"></el-table-column>
|
|
|
+ <el-table-column prop="operator" label="操作人员" width="150"></el-table-column>
|
|
|
+ <el-table-column prop="syncType" label="推送方式" width="150"></el-table-column>
|
|
|
+ <el-table-column prop="result" label="推送结果" width="250">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span style="color:green;" v-if="scope.row.result.includes('成功')">{{scope.row.result}}</span>
|
|
|
+ <span style="color:red;" v-if="scope.row.result.includes('失败')">{{scope.row.result}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="resultRemark" label="备注" width="400"></el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </template>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button type="primary" @click="pushWorkTimeLogDig = false">关 闭</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
<!-- 填写日报的dialog -->
|
|
|
<el-dialog :title="editTitle[isBatch]" :visible.sync="dialogVisible" width="60%" :close-on-click-modal="false" @closed="guanbi()" :top="'5.5vh'" custom-class="editReportDialog" ref="editReportDialog">
|
|
|
<div style="height: 65vh;overflow: auto;">
|
|
@@ -2223,7 +2246,9 @@
|
|
|
// id: 10,
|
|
|
name: '陕西柘中建设工程有限公司'
|
|
|
}
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ pushWorkTimeLogDig:false,
|
|
|
+ pushWorkTimeLogData:[],
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
@@ -3479,6 +3504,12 @@
|
|
|
},
|
|
|
|
|
|
pushWorkTime(){
|
|
|
+ let url=''
|
|
|
+ if(this.user.timeType.syncSap == 1){
|
|
|
+ url='/report/pushProjectReportToSap'
|
|
|
+ }else{
|
|
|
+ url='/report/pushReportDataToThird'
|
|
|
+ }
|
|
|
this.$confirm('确认推送'+this.date+'月的工时?', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
@@ -3490,8 +3521,7 @@
|
|
|
spinner: 'el-icon-loading',
|
|
|
background: 'rgba(0, 0, 0, 0.7)'
|
|
|
});
|
|
|
-
|
|
|
- this.http.post('/report/pushReportDataToThird',{
|
|
|
+ this.http.post(url,{
|
|
|
yearMonth: this.date
|
|
|
},res => {
|
|
|
loading.close();
|
|
@@ -6103,6 +6133,25 @@
|
|
|
zhi.he = he + 'h'
|
|
|
}
|
|
|
},
|
|
|
+ getPushWorkLogData(){
|
|
|
+ this.http.post('/sap-sync-log/list', {},
|
|
|
+ res => {
|
|
|
+ if (res.code == "ok") {
|
|
|
+ this.pushWorkTimeLogData = res.data;
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ message: res.msg,
|
|
|
+ type: "error"
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error => {
|
|
|
+ this.$message({
|
|
|
+ message: error,
|
|
|
+ type: "error"
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
// 获取全部人员
|
|
|
getUsers() {
|
|
|
this.http.post('/user/getSimpleActiveUserList', {},
|