|
@@ -69,7 +69,9 @@
|
|
<el-form-item style="margin-left:20px;">
|
|
<el-form-item style="margin-left:20px;">
|
|
<el-link type="primary" @click="recordList(),recordDialogVisible = true,pageIndexList = 1,pageSizeList = 20">{{ $t('Auditrecords') }}</el-link>
|
|
<el-link type="primary" @click="recordList(),recordDialogVisible = true,pageIndexList = 1,pageSizeList = 20">{{ $t('Auditrecords') }}</el-link>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
-
|
|
|
|
|
|
+ <el-form-item style="margin-left:20px;" v-if="user.companyId == 469">
|
|
|
|
+ <el-link type="primary" @click="exportListByState" :loading="exportLoading">导出待审核日报</el-link>
|
|
|
|
+ </el-form-item>
|
|
<!-- 调试 -->
|
|
<!-- 调试 -->
|
|
<!-- <cascaderOption></cascaderOption> -->
|
|
<!-- <cascaderOption></cascaderOption> -->
|
|
<!-- </div> -->
|
|
<!-- </div> -->
|
|
@@ -224,7 +226,7 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="dateStr" :label="$t('weekDay.date')" sortable>
|
|
<el-table-column prop="dateStr" :label="$t('weekDay.date')" sortable>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="reportTime" :label="$t('screening.workTime') + '(h)'" >
|
|
|
|
|
|
+ <el-table-column prop="reportTime" :label="$t('screening.workTime') + '(h)'" v-if="user.companyId != 469">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
{{scope.row.reportTime | amounts}}
|
|
{{scope.row.reportTime | amounts}}
|
|
</template>
|
|
</template>
|
|
@@ -234,6 +236,12 @@
|
|
{{scope.row.cardHours?scope.row.cardHours.toFixed(1):'-'}}
|
|
{{scope.row.cardHours?scope.row.cardHours.toFixed(1):'-'}}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+
|
|
|
|
+ <el-table-column label="项目工时" v-if="user.companyId == 469">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span v-for="(projItem, projIndex) in scope.row.data">{{ projItem.project+'('+projItem.time+'h)' + (projIndex < scope.row.data.length-1?',':'')}}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column :label="$t('other.matters')" v-if="user.companyId == 469">
|
|
<el-table-column :label="$t('other.matters')" v-if="user.companyId == 469">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
{{scope.row.data.length == 0?'':scope.row.data[0].content}}
|
|
{{scope.row.data.length == 0?'':scope.row.data[0].content}}
|
|
@@ -518,6 +526,7 @@
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ exportLoading: false,
|
|
yuzhongCompId: 3385,
|
|
yuzhongCompId: 3385,
|
|
roleList:[{value: 1,label: 'CRC&LM'},{value: 2,label: 'PM'}],
|
|
roleList:[{value: 1,label: 'CRC&LM'},{value: 2,label: 'PM'}],
|
|
batchDenyLoading: false,
|
|
batchDenyLoading: false,
|
|
@@ -602,13 +611,41 @@
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
batchRevokeClick(row, index) {
|
|
batchRevokeClick(row, index) {
|
|
- console.log(row, index, '<===== 点击了撤销')
|
|
|
|
this.undoBathForm = {
|
|
this.undoBathForm = {
|
|
reason: '',
|
|
reason: '',
|
|
reportAuditLogId: row.id
|
|
reportAuditLogId: row.id
|
|
}
|
|
}
|
|
this.undoBathFormDialog = true
|
|
this.undoBathFormDialog = true
|
|
},
|
|
},
|
|
|
|
+ exportListByState() {
|
|
|
|
+ let url = '/report/exportListByState';
|
|
|
|
+ this.exportLoading = true;
|
|
|
|
+ this.http.post(url, this.search,
|
|
|
|
+ res => {
|
|
|
|
+ this.exportLoading = false;
|
|
|
|
+ if (res.code == "ok") {
|
|
|
|
+ var filePath = res.data;
|
|
|
|
+ const a = document.createElement('a'); // 创建a标签
|
|
|
|
+ var data = filePath.split("/");
|
|
|
|
+ a.setAttribute('download', data[data.length-1]);// download属性
|
|
|
|
+ a.setAttribute('href', filePath);// href链接
|
|
|
|
+ a.click(); //自执行点击事件
|
|
|
|
+ a.remove();
|
|
|
|
+ } else {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: res.msg,
|
|
|
|
+ type: "error"
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ error => {
|
|
|
|
+ this.exportLoading = false;
|
|
|
|
+ this.$message({
|
|
|
|
+ message: error,
|
|
|
|
+ type: "error"
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ },
|
|
clickBathCancel() {
|
|
clickBathCancel() {
|
|
this.undoBathFormLoading = true
|
|
this.undoBathFormLoading = true
|
|
this.http.post('/report/batchDenyHisReport', this.undoBathForm,
|
|
this.http.post('/report/batchDenyHisReport', this.undoBathForm,
|