Commit 59c2dc94 authored by 李苏's avatar 李苏 💬

新增sap库存对比

parent fbe8af79
......@@ -33,6 +33,10 @@
},
/* 监听路由*/
$route(val) {
if(val.meta.noCache){
this.showCache = false
return
}
let name = val.name
if (this.addBz) {
if (this.cacheList.includes(name)) {
......
......@@ -1206,6 +1206,19 @@ export const powerRoutes = [
},
name: 'kchzcx',
path: "kchzcx",
},
{
component: 'ccgl/cxfx/sapkcdb/index',
hidden: false,
meta: {
"title": "SAP库存对比",
"icon": "",
"noCache": true,
"link": null,
"mkid": 920191300,
},
name: 'sapkcdb',
path: "sapkcdb",
}
]
},
......@@ -1371,7 +1384,7 @@ export const powerRoutes = [
component: 'template/index',
hidden: false,
meta: {
"title": "大屏看板",
"title": "大屏看板",
"icon": "",
"noCache": false,
"link": null,
......
<template>
<BasePage @pageQueryFinally='pageQueryFinally' :power='power' :fePage='true' class="min_full" :config="config">
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
<template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> -->
<div class="queryTime">
当前数据查询时间:{{queryTime}}
</div>
</template>
</BasePage>
</template>
<script>
export default {
name: 'sapkcdb',
data() {
return {
queryTime:'暂无',
power: {
add: false,
copy: false,
/* 手动控制删除 */
delButton: false,
/* 手动控制编辑按钮权限 */
editButton: false,
/* 是否渲染右侧操作按钮 */
operateButtons: false,
/* 是否开启工作流按钮 */
workFlow: false,
/* 表格开启选择,以及记住选择 */
showSelection: false,
saveSelected: false,
},
config: {
/* 基本配置*/
url: 'lxyl/cxfx/sapKcdb',
tableTitle: [{
title: "物料编码",
field: "wlxxCode",
fieldType: "upper",
width: 140
},
{
title: "物料名称",
field: "wlxxName",
width: 350
},
{
title: "工厂",
field: "hzName",
width: 140
},
{
title: "库存地点",
field: "sapCkid",
width: 140,
transform: {
"url": "lxyl/cxfx/sapKcdb/initCk",
"label": "name",
"value": "id"
}
},
{
title: "WMS库存总数",
field: "kcsl ",
fieldType:"float"
},
{
title: "SAP库存总数",
field: "sapKcsl",
fieldType:"float"
},
{
title: "库存差异数量",
field: "cysl",
fieldType:"float"
}
],
queryParams: [
[{
"label": "工厂",
"prop": "hzid",
"span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "lxyl/cxfx/sapKcdb/initGc",
"match": {
"value": "id",
"label": "name"
}
}
},
{
label: '库存地点',
prop: 'sapCkid',
span: 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "lxyl/cxfx/sapKcdb/initCk",
"match": {
"value": "id",
"label": "name"
}
}
}, {
label: '是否差异',
prop: 'sfcy',
span: 6,
type: 'RelSelect',
"typeConfig": {
"optionsData": [{
id: 'Y',
name: '是'
},
{
id: 'N',
name: '否'
}
],
"match": {
"value": "id",
"label": "name"
}
},
value: ''
}
]
],
/* 默认启停用 */
}
}
},
methods: {
/* 示例*/
pageQueryFinally(list,res){
let serverTime =res.data.serverTime
this.queryTime=this.$moment(serverTime).format('YYYY-MM-DD HH:mm:ss');
}
},
components: {
}
}
</script>
<style scoped lang="scss">
.queryTime{
font-size: 13px;
color: #999;
float: right;
margin-right: 30px;
line-height: 28px;
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment