Commit 44ef361e authored by 李苏's avatar 李苏 💬

cxfx

parent 44fd9137
<template>
<BasePage :autoQuery='false' ref="basePage" :power='power' class="min_full" :config="config">
<BasePage :autoQuery='false' ref="basePage" :power='power' class="min_full" :config="config">
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
......@@ -53,11 +53,6 @@
field: "wlxxGg",
width: 140
},
{
title: "库位",
field: "kwName",
width: 140
},
{
title: "货主",
field: "hzName",
......@@ -78,11 +73,31 @@
field: "jldwname",
width: 80
},
{title: "期初结存数量(辅)", field: "fqcjcsl", width: 140, fieldType: 'float'},
{title: "期初结存数量(辅)", field: "qmjcsl", width: 140, fieldType: 'float'},
{title: "本期入库数量(辅)", field: "fbqrksl", width: 140, fieldType: 'float'},
{title: "本期出库数量(辅)", field: "fbqcksl", width: 140, fieldType: 'float'},
{
title: "期初结存数量",
field: "fqcjcsl",
width: 140,
fieldType: 'float'
},
{
title: "期初结存数量",
field: "qmjcsl",
width: 140,
fieldType: 'float'
},
{
title: "本期入库数量",
field: "fbqrksl",
width: 140,
fieldType: 'float'
},
{
title: "本期出库数量",
field: "fbqcksl",
width: 140,
fieldType: 'float'
},
],
queryParams: [
......@@ -133,46 +148,46 @@
// },
// },
{
"label": "查询方式",
"prop": "cxdx",
"span": 8,
"type": "RelSelect",
"value": "",
"typeConfig": {
'hasValue':true,
'clearable':false,
"src": "wms/cxfx/sfhzcx/cxfs/init",
"match": {
"value": "id",
"label": "name"
},
onChange:(v)=>{
if(v){
let list=[]
if( v.id=="ck,wl"){
list=['wlph','zlh']
}else if(v.id=="wl,ph") {
list=['ckName','zlh']
}else if(v.id=="ck") {
list=['wlxxCode','wlxxName','wlph','jldwname','wlxxGg','zlh']
}else if(v.id=="wl") {
list=['ckName','wlph','zlh']
}
/* */
this.$refs.basePage.$refs.TablePager.newGridList.forEach(item=>{
if( list.includes(item.prop) ){
item.show=false
}else{
item.show=true
}
})
console.log(this.$refs.basePage.$refs.TablePager.newGridList)
// let tabList=
"label": "查询方式",
"prop": "cxdx",
"span": 8,
"type": "RelSelect",
"value": "",
"typeConfig": {
'hasValue': true,
'clearable': false,
"src": "wms/cxfx/sfhzcx/cxfs/init",
"match": {
"value": "id",
"label": "name"
},
onChange: (v) => {
if (v) {
let list = []
if (v.id == "ck,wl") {
list = ['wlph', 'zlh']
} else if (v.id == "wl,ph") {
list = ['ckName', 'zlh']
} else if (v.id == "ck") {
list = ['wlxxCode', 'wlxxName', 'wlph', 'jldwname', 'wlxxGg', 'zlh']
} else if (v.id == "wl") {
list = ['ckName', 'wlph', 'zlh']
}
/* */
this.$refs.basePage.$refs.TablePager.newGridList.forEach(item => {
if (list.includes(item.prop)) {
item.show = false
} else {
item.show = true
}
this.$refs.basePage.refresh()
})
console.log(this.$refs.basePage.$refs.TablePager.newGridList)
// let tabList=
}
},
this.$refs.basePage.refresh()
}
},
},
{
......@@ -213,4 +228,4 @@
</script>
<style>
</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