|
@@ -98,7 +98,7 @@
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
|
|
|
|
<el-table :data="reviewLis" style="width: 100%" :height="400">
|
|
<el-table :data="reviewLis" style="width: 100%" :height="400">
|
|
- <el-table-column prop="userName" :label="$t('other.operator')">
|
|
|
|
|
|
+ <el-table-column prop="userName" :label="$t('other.operator')" width="100">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div>
|
|
<div>
|
|
<span v-if="user.userNameNeedTranslate == '1'"><ww-open-data type='userName' :openid='scope.row.userName'></ww-open-data></span>
|
|
<span v-if="user.userNameNeedTranslate == '1'"><ww-open-data type='userName' :openid='scope.row.userName'></ww-open-data></span>
|
|
@@ -106,8 +106,8 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="ymonth" :label="$t('BelongsIn')"></el-table-column>
|
|
|
|
- <el-table-column prop="fileName" :label="$t('filename')">
|
|
|
|
|
|
+ <el-table-column prop="ymonth" :label="$t('BelongsIn')" width="100"></el-table-column>
|
|
|
|
+ <el-table-column prop="fileName" :label="$t('filename')" >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div>
|
|
<div>
|
|
<el-link type="primary" @click="downloadByA({name:scope.row.fileName,url:scope.row.serverName})"> {{scope.row.fileName}}</el-link>
|
|
<el-link type="primary" @click="downloadByA({name:scope.row.fileName,url:scope.row.serverName})"> {{scope.row.fileName}}</el-link>
|
|
@@ -128,13 +128,13 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="indate" :label="$t('Uploadtime')"></el-table-column>
|
|
|
|
- <el-table-column prop="date" :label="$t('operation')" v-if="(tabPosition == 1 || tabPosition == 0) && (reviewerRuleForm.auditorId == user.id)">
|
|
|
|
|
|
+ <el-table-column prop="indate" :label="$t('Uploadtime')" width="150"></el-table-column>
|
|
|
|
+ <el-table-column prop="date" :label="$t('operation')" v-if="(tabPosition == 1 || tabPosition == 0) && (reviewerRuleForm.auditorId == user.id)" :width="tabPosition==0?210:120">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div>
|
|
<div>
|
|
- <el-button type="primary" size="small" v-if="tabPosition == 0" @click="operationList(0, scope.row.id)">{{ $t('btn.through') }}</el-button>
|
|
|
|
- <el-button type="warning" size="small" v-if="tabPosition == 0" @click="operationList(1, scope.row.id)">{{ $t('btn.rejected') }}</el-button>
|
|
|
|
- <el-button type="warning" size="small" v-if="tabPosition == 1" @click="operationList(2, scope.row.id)">{{ $t('btn.undo') }}</el-button>
|
|
|
|
|
|
+ <el-button type="primary" size="small" :loading="operating" v-if="tabPosition == 0" @click="operationList(0, scope.row.id)">{{ $t('btn.through') }}</el-button>
|
|
|
|
+ <el-button type="warning" size="small" :loading="operating" v-if="tabPosition == 0" @click="operationList(1, scope.row.id)">{{ $t('btn.rejected') }}</el-button>
|
|
|
|
+ <el-button type="warning" size="small" :loading="operating" v-if="tabPosition == 1" @click="operationList(2, scope.row.id)">{{ $t('btn.undo') }}</el-button>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -593,6 +593,7 @@ import { error } from 'dingtalk-jsapi';
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ operating: false,
|
|
showMissingDialog: false,
|
|
showMissingDialog: false,
|
|
missingFinanceUserList: [],
|
|
missingFinanceUserList: [],
|
|
groupByCategory:0,
|
|
groupByCategory:0,
|
|
@@ -1627,6 +1628,7 @@ import { error } from 'dingtalk-jsapi';
|
|
},
|
|
},
|
|
// 审核操作
|
|
// 审核操作
|
|
operationList(zhi, id) {
|
|
operationList(zhi, id) {
|
|
|
|
+ if (this.operating) return;
|
|
let urls
|
|
let urls
|
|
if(zhi == 0) {
|
|
if(zhi == 0) {
|
|
urls = '/finance-import/agree'
|
|
urls = '/finance-import/agree'
|
|
@@ -1635,16 +1637,19 @@ import { error } from 'dingtalk-jsapi';
|
|
} else {
|
|
} else {
|
|
urls = '/finance-import/cancel'
|
|
urls = '/finance-import/cancel'
|
|
}
|
|
}
|
|
|
|
+ this.operating = true;
|
|
this.http.post(urls, {
|
|
this.http.post(urls, {
|
|
id: id,
|
|
id: id,
|
|
},
|
|
},
|
|
res => {
|
|
res => {
|
|
if (res.code == "ok") {
|
|
if (res.code == "ok") {
|
|
|
|
+ this.operating = false;
|
|
this.$message({
|
|
this.$message({
|
|
message: this.$t('operationissuccessful'),
|
|
message: this.$t('operationissuccessful'),
|
|
type: "success"
|
|
type: "success"
|
|
});
|
|
});
|
|
- this.getReviewList()
|
|
|
|
|
|
+ this.getReviewList();
|
|
|
|
+ this.loadMonthData();
|
|
} else {
|
|
} else {
|
|
this.$message({
|
|
this.$message({
|
|
message: res.msg,
|
|
message: res.msg,
|