单据提交日志相关界面修改

20231126-yw
anthonywj 2 years ago
parent 800110a30a
commit 0055477982

@ -92,7 +92,7 @@
<el-table-column label="提交时间" prop="submitTime" width="200"></el-table-column> <el-table-column label="提交时间" prop="submitTime" width="200"></el-table-column>
<el-table-column label="提交状态" prop="exportStatus" width="100"> <el-table-column label="提交状态" prop="exportStatus" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag :type="(scope.row.status ) | statusFilterType">{{ <el-tag :type="statusFilterType(scope.row.status)">{{
statusMap[scope.row.status] statusMap[scope.row.status]
}} }}
</el-tag> </el-tag>
@ -164,7 +164,7 @@ export default {
page: 1, page: 1,
limit: 20 limit: 20
}, },
actDateRange:[], actDateRange: [],
loading: false, loading: false,
list: [], list: [],
total: 0, total: 0,
@ -172,7 +172,8 @@ export default {
0: "未提交", 0: "未提交",
1: "正在提交", 1: "正在提交",
2: "提交成功", 2: "提交成功",
3: "提交失败" 3: "提交失败",
4: "单据异常"
}, },
pickerOptions: { pickerOptions: {
disabledDate(time) { disabledDate(time) {
@ -197,7 +198,7 @@ export default {
page: 1, page: 1,
limit: 20 limit: 20
} }
this.actDateRange=[]; this.actDateRange = [];
this.onSubmit(); this.onSubmit();
}, },
onSubmit() { onSubmit() {
@ -246,16 +247,16 @@ export default {
this.$message.info("已取消删除"); this.$message.info("已取消删除");
}) })
}, },
},
filters: {
statusFilterType(status) { statusFilterType(status) {
const statusMap = { const statusMap = {
false: "success", 2: "success",
true: "warning", 4: "warning",
3: "danger",
}; };
return statusMap[status]; return statusMap[status];
}, },
}, },
filters: {},
mounted() { mounted() {
document.body.ondrop = function (event) { document.body.ondrop = function (event) {
event.preventDefault(); event.preventDefault();

@ -99,9 +99,9 @@
@current-change="handleSelectionChange"> @current-change="handleSelectionChange">
<el-table-column type="selection" width="55"></el-table-column> <el-table-column type="selection" width="55"></el-table-column>
<el-table-column label="序号" type="index"></el-table-column> <el-table-column label="序号" type="index"></el-table-column>
<el-table-column label="单据号" prop="billNo" show-overflow-tooltip width="180"></el-table-column> <el-table-column label="单据号" prop="billNo" show-overflow-tooltip width="150"></el-table-column>
<el-table-column label="单据类型" prop="billTypeName" width="150"></el-table-column> <el-table-column label="单据类型" prop="billTypeName" width="150"></el-table-column>
<el-table-column label="往来单位" prop="fromName" width="220"> <el-table-column label="往来单位" prop="fromName" width="180">
</el-table-column> </el-table-column>
<el-table-column label="创建时间" prop="createTime" show-overflow-tooltip width="150" <el-table-column label="创建时间" prop="createTime" show-overflow-tooltip width="150"
sortable="custom" sortable="custom"
@ -146,7 +146,7 @@
</el-table-column> </el-table-column>
<el-table-column label="提交状态" prop="exportStatus" width="100"> <el-table-column label="提交状态" prop="exportStatus" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag :type="(scope.row.status ===-1 ) | statusFilterType">{{ <el-tag :type="statusFilterType(scope.row.exportStatus)">{{
exportStatusMap[scope.row.exportStatus] exportStatusMap[scope.row.exportStatus]
}} }}
</el-tag> </el-tag>
@ -160,7 +160,7 @@
</el-tag> </el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" width="150"> <el-table-column label="操作" width="100" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
type="text" type="text"
@ -220,6 +220,11 @@
prop="coName" prop="coName"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column
label="DI/物资编码"
prop="nameCode"
show-overflow-tooltip
></el-table-column>
<el-table-column <el-table-column
label="规格型号" label="规格型号"
prop="spec" prop="spec"
@ -470,6 +475,7 @@ export default {
2: "提交失败" 2: "提交失败"
}, },
checkDateStatus: { checkDateStatus: {
null:"未确认",
1: '已确认', 1: '已确认',
0: '未确认' 0: '未确认'
}, },
@ -706,15 +712,18 @@ export default {
} }
return statusMap[status] return statusMap[status]
}, },
},
filters: {
statusFilterType(status) { statusFilterType(status) {
const statusMap = { const statusMap = {
false: "success", null: "",
true: "warning", 1: "success",
0: "warning",
2: "danger"
}; };
return statusMap[status]; return statusMap[status];
}, },
},
filters: {
}, },
mounted() { mounted() {
document.body.ondrop = function (event) { document.body.ondrop = function (event) {

Loading…
Cancel
Save