|
@@ -251,18 +251,23 @@
|
|
|
{{feeType[scope.row.type]}}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="remark" label="备注" width="250">
|
|
|
+ <el-table-column prop="remark" label="备注" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
<span style="font-size:12px;">{{scope.row.remark}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="status" label="状态" width="100">
|
|
|
+ <el-table-column prop="status" label="状态" width="80">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.status == 1" class="waiting">{{statusTxt[scope.row.status]}}</span>
|
|
|
<span v-if="scope.row.status == 2" class="rejected">{{statusTxt[scope.row.status]}}</span>
|
|
|
<span v-if="scope.row.status == 0 || scope.row.status == 3" >{{statusTxt[scope.row.status]}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column prop="denyReason" label="驳回原因" width="180">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span style="font-size:12px;">{{scope.row.denyReason}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="操作" :width="isAuditList?220:160">
|
|
|
<template slot-scope="scope" >
|
|
|
<div v-if="!isAuditList">
|
|
@@ -273,7 +278,7 @@
|
|
|
<div v-if="isAuditList">
|
|
|
<el-button size="mini" @click.stop.native="downloadByA(scope.row)" >查看</el-button>
|
|
|
<el-button size="mini" style="margin-left:5px;" @click.stop.native="approve(scope.row)" >通过</el-button>
|
|
|
- <el-button size="mini" style="margin-left:5px;" @click.stop.native="deny(scope.row)" >驳回</el-button>
|
|
|
+ <el-button size="mini" style="margin-left:5px;" @click.stop.native="denyReason(scope.row)" >驳回</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -503,6 +508,17 @@
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
</el-dialog>
|
|
|
+
|
|
|
+ <!-- 驳回弹出框 -->
|
|
|
+ <el-dialog title="请输入原因" v-if="denyReasonDialog" :visible.sync="denyReasonDialog" :close-on-click-modal="false" customClass="customWidth" width="500px">
|
|
|
+ <div>
|
|
|
+ <el-input type="textarea" v-model="denyForm.reason" rows="2" :placeholder="'请输入您决定驳回的原因'" />
|
|
|
+ </div>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="denyReasonDialog = false" >取消</el-button>
|
|
|
+ <el-button type="primary" @click="deny()" >确定</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
</section>
|
|
|
</template>
|
|
|
|
|
@@ -513,6 +529,13 @@ export default {
|
|
|
props: {},
|
|
|
data() {
|
|
|
return {
|
|
|
+ denyReasonDialog: false,
|
|
|
+ denyForm:{
|
|
|
+ reason: '',
|
|
|
+ id: null
|
|
|
+ },
|
|
|
+
|
|
|
+
|
|
|
fileList: [],
|
|
|
muHeight: document.documentElement.clientHeight || document.body.clientHeight,
|
|
|
imgs: [],
|
|
@@ -795,12 +818,21 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
- deny(item) {
|
|
|
+ denyReason(item){
|
|
|
+ this.denyForm.id = item.id
|
|
|
+ this.denyForm.reason = ''
|
|
|
+ this.denyReasonDialog = true
|
|
|
+ },
|
|
|
+ deny() {
|
|
|
//审核驳回
|
|
|
- this.http.post('/expense-sheet/deny', {id:item.id
|
|
|
+
|
|
|
+ this.http.post('/expense-sheet/deny', {
|
|
|
+ id: this.denyForm.id,
|
|
|
+ denyReason: this.denyForm.reason
|
|
|
},
|
|
|
res => {
|
|
|
if (res.code == "ok") {
|
|
|
+ this.denyReasonDialog = false
|
|
|
this.getList();
|
|
|
} else {
|
|
|
this.$message({
|
|
@@ -825,6 +857,11 @@ export default {
|
|
|
this.allExpList = res.data;
|
|
|
this.customTypeList = res.data
|
|
|
this.expenseTypeList = this.allExpList.filter(a=>a.mainType == 0);
|
|
|
+ if(!res.data != res.data.length == 0){
|
|
|
+ this.http.post('/company/settingExpenseType',{},res => {
|
|
|
+ if(res.code == 'ok'){}else{this.$message({message: res.msg,type: 'error'})}
|
|
|
+ },err => {this.$message({message: err,type: 'error'})})
|
|
|
+ }
|
|
|
} else {
|
|
|
this.$message({
|
|
|
message: res.msg,
|
|
@@ -1400,10 +1437,10 @@ export default {
|
|
|
var sl = zhi.toFixed(2)
|
|
|
sl += ' 元';
|
|
|
} else {
|
|
|
- sums[index] = 'N/A';
|
|
|
+ sums[index] = '';
|
|
|
}
|
|
|
} else {
|
|
|
- sums[index] = 'N/A';
|
|
|
+ sums[index] = '';
|
|
|
}
|
|
|
|
|
|
});
|