Commit 3ade07f3 authored by 李苏's avatar 李苏 💬

查询分析

parent 14295529
...@@ -35,7 +35,7 @@ export const powerRoutes = [ ...@@ -35,7 +35,7 @@ export const powerRoutes = [
component: "Layout", component: "Layout",
hidden: false, hidden: false,
alwaysShow: true, alwaysShow: true,
redirect: 'template', redirect: 'rkgl',
meta: { meta: {
title: "仓储管理", title: "仓储管理",
icon: "fa-cog", icon: "fa-cog",
...@@ -722,6 +722,41 @@ export const powerRoutes = [ ...@@ -722,6 +722,41 @@ export const powerRoutes = [
] ]
}, },
/* 查询分析*/
{
erpComponent: false,
component: 'template/index',
hidden: false,
meta: {
"title": "查询分析",
"icon": "",
"noCache": false,
"link": null,
"mkid": '920190000',
},
redirect: 'kwxq',
name: 'cxfx',
path: "cxfx",
children: [{
component: 'ccgl/cxfx/kwxq/index',
hidden: false,
meta: {
"title": "库位详情",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920190200,
},
name: 'kwxq',
path: "kwxq",
},
]
},
] ]
} }
......
...@@ -154,6 +154,7 @@ const permission = { ...@@ -154,6 +154,7 @@ const permission = {
res.data = dynamicRouter([...newCommonList, ...newErpList, ...newPowerRoutes], asymenus) || [... res.data = dynamicRouter([...newCommonList, ...newErpList, ...newPowerRoutes], asymenus) || [...
newCommonList, ...newErpList, ...newPowerRoutes newCommonList, ...newErpList, ...newPowerRoutes
] ]
console.log(res.data,'router finally')
/* 重置首页路由*/ /* 重置首页路由*/
// let hompePage = treeToList([...newCommonList,...newErpList,...newPowerRoutes]).filter(item=>item.mkid==localStorage.getItem('homeMkid')) // let hompePage = treeToList([...newCommonList,...newErpList,...newPowerRoutes]).filter(item=>item.mkid==localStorage.getItem('homeMkid'))
let ttlist = treeToList([...newCommonList, ...newErpList, ...newPowerRoutes]) let ttlist = treeToList([...newCommonList, ...newErpList, ...newPowerRoutes])
......
<template>
<DefaultDialog :app='app'>
<div slot="form" style="display: flex;height: 70vh;">
DialogTitle:'新增',
showDialog:false,
</div>
<div slot="reFooter" class="refooter" >
<span slot="footer" class="dialog-footer" >
<el-button @click="app.showDialog=false">取 消</el-button>
<el-button type="primary" @click="save()">保 存</el-button>
</span>
</div>
</DefaultDialog>
</template>
<script>
export default {
props: {
app: {
type: Object,
default: ()=>{
return {}
}
}
},
async mounted() {
},
data() {
return {
}
},
methods: {
}
}
</script>
<style scoped>
</style>
<template>
<RelDialog width="50%" :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<el-row :gutter="20" :app="this">
<EditColItem :required="item.required||false" :readonly="item.readonly?true:false " v-for="(item,index) in editColItemList " :value="item.value" :span="item.span" :label="item.label" :prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig' :rule="item.rule" />
</el-row>
</el-form>
</RelDialog>
</template>
<script>
import {
editMixin
} from 'common'
export default {
mixins: [editMixin],
data() {
return {
editColItemList: [
{
label: '编码',
prop: 'code',
span: 12,
type: 'input',
required:true,
},
{
label: '名称',
prop: 'name',
span: 12,
type: 'input',
required:true,
},
{
label: '备注',
prop: 'bz',
span: 24,
type: 'input'
},
]
}
}
}
</script>
<template>
<BasePage 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> -->
</template>
</BasePage>
</template>
<script>
import Edit from './edit.vue'
export default {
data() {
return {
config: {
/* 基本配置*/
url: 'wms/cxfx/kwmx',
tableTitle: [{
title: "状态",
field: "zt",
width: 140,
transform: {
"url": "wms/jcsj/kw/init/zt",
"label": "name",
"value": "id"
}
},
{
title: "存储状态",
field: "kczt",
width: 140,
transform: {
"url": "wms/jcsj/kw/init/kczt ",
"label": "name",
"value": "id"
}
},
{
title: "库位编码",
field: "kwCode",
width: 140
},
{
title: "库位名称",
field: "kwName",
width: 140
},
{
title: "容器编码",
field: "rqCode",
width: 140
},
{
title: "唯一码",
field: "packCode",
width: 140
},
{
title: "物料编码",
field: "wlxxCode",
width: 140
},
{
title: "物料名称",
field: "wlxxName",
width: 140
},
{
title: "规格",
field: "wlxxGg",
width: 140
},
{
title: "物料批号",
field: "wlph",
width: 140
},
{
title: "制令号",
field: "zlh",
width: 140
},
{
title: "数量",
field: "sl",
width: 140
}
],
queryParams: [
[{
"label": "仓库",
"prop": "ckid",
"span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "wms/common/query/kwgl/ck",
"match": {
"value": "id",
"label": "name"
}
}
},
{
label: '库区',
prop: 'kqid',
span: 6,
type: 'RelSelect',
typeConfig: {
src: "wms/jcsj/kq/query",
linkage: true,
linkParams: ['ckid']
},
},
{
label: '库位',
prop: 'kwInfo',
span: 6,
type: 'input',
},
{
label: '物料信息',
prop: 'wlxxInfo',
span: 6,
type: 'input',
}
],
[{
label: '物料批号',
prop: 'wlph',
span: 6,
type: 'input',
},
{
label: '制令号',
prop: 'zlhInfo',
span: 6,
type: 'input',
},
{
label: '唯一码',
prop: 'packCode',
span: 6,
type: 'input',
},
{
label: '容器',
prop: 'rqCode',
span: 6,
type: 'input',
},
]
],
/* 默认启停用 */
showqt: false,
// qtUrl:'',
/* 树的支持*/
// hasTree:false,
// treeTitle:'',
// treeDefaultProps: {
// children: 'children',
// label: 'name',
// fatherId: 'pid',
// sonId: 'id',
// rootName: "全部",
// rootId:'root'
// },
// treeQueryParams:{
// },
// treeUrl:''
}
}
},
methods: {
/* 示例*/
// demo(basePage){
// }
},
components: {
// Edit
}
}
</script>
<style>
</style>
\ No newline at end of file
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