单据上传记录

fengcang
anthonyywj2 3 years ago
parent 47cee0ee49
commit 5b74ee432c

@ -135,7 +135,7 @@ export default {
thirdBillNo: null, thirdBillNo: null,
submitTime: null, submitTime: null,
status: null, status: null,
fromType: 1, fromType: 2,
page: 1, page: 1,
limit: 20, limit: 20,
}, },
@ -160,7 +160,7 @@ export default {
methods: { methods: {
onReset() { onReset() {
this.filterQuery = { this.filterQuery = {
fromType: 1, fromType: 2,
genKey: null, genKey: null,
status: null, status: null,
page: 1, page: 1,

@ -75,8 +75,13 @@
show-overflow-tooltip show-overflow-tooltip
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ getStatusInfo(scope.row.status) }}</span> <el-tag :type="(scope.row.status ) | statusFilterType">{{
statusMap[scope.row.status]
}}
</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="结果信息" label="结果信息"
@ -141,6 +146,8 @@ export default {
list: [], list: [],
total: 0, total: 0,
statusMap: { statusMap: {
0: "未提交",
1: "正在提交",
2: "提交成功", 2: "提交成功",
3: "提交失败" 3: "提交失败"
}, },
@ -224,7 +231,15 @@ export default {
this.getList(); this.getList();
}, },
}, },
filters: {
statusFilterType(status) {
const statusMap = {
2: "success",
3: "danger",
};
return statusMap[status];
},
},
mounted() { mounted() {
}, },
created() { created() {

Loading…
Cancel
Save