Commit e7bc8c64 authored by 李苏's avatar 李苏 💬

Adjust the order of fields

parent 58f1928e
<template> <template>
<BasePage @getRow='getRow' ref="basePage" :power='power' :toolButton='false' class="min_full" style="height: 100%;border-top: 0px;" :autoQuery='false' <BasePage @getRow='getRow' ref="basePage" :power='power' :toolButton='false' class="min_full"
:config="config"> style="height: 100%;border-top: 0px;" :autoQuery='false' :config="config">
<template #dialog="ctx"> <template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template> </template>
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
</template> </template>
<script> <script>
export default { export default {
mounted() { mounted() {
...@@ -39,72 +38,80 @@ ...@@ -39,72 +38,80 @@
config: { config: {
/* 基本配置*/ /* 基本配置*/
url: 'wms/ckgl/dbck/wms/ckgl/dbck', url: 'wms/ckgl/dbck/wms/ckgl/dbck',
queryUrl:'wms/ckgl/dbck/wms/ckgl/dbck', queryUrl: 'wms/ckgl/dbck/wms/ckgl/dbck',
tableTitle: [ tableTitle: [{
title: "库位",
field: "kwcode",
width: 100,
},
{
title: "容器",
field: "rqCode",
width: 160,
},
{
title: "唯一码",
field: "packid",
width: 180,
},
{
title: "物料编码",
field: "wlxxCode",
width: 140
},
{
title: "物料名称",
field: "wlxxName",
width: 160
},
{
title: "规格",
field: "wlxxGg",
width: 140
},
{
title: "计量单位",
field: "jldwName",
width: 140
},
{
title: "物料批号",
field: "wlph",
width: 140,
},
{ {
title: "库位", title: "库位名称",
field: "kwcode", field: "wlxxName",
width: 100, width: 120,
}, },
{
title: "库位名称", {
field: "wlxxName", title: "制令号",
width: 120, field: "zlh",
}, width: 180,
{ },
title: "物料编码", {
field: "wlxxCode", title: "库存数量",
width: 140 field: "kcsl",
}, width: 180,
{ fieldType: 'float'
title: "物料名称", },
field: "wlxxName", {
width: 160 title: "货主",
}, field: "hzName",
{ width: 180,
title: "物料批号", },
field: "wlph",
width: 140,
}, {
{ title: "库位",
title: "规格", field: "kwName",
field: "wlxxGg", width: 240,
width: 140
}, },
{
title: "货主",
field: "hzName",
width: 180,
},
{
title: "制令号",
field: "zlh",
width: 180,
},
{
title: "库存数量",
field: "kcsl",
width: 180,
fieldType:'float'
},
{
title: "库位",
field: "kwName",
width: 240,
},
{
title: "容器",
field: "rqCode",
width: 160,
},
{
title: "唯一码",
field: "packid",
width: 180,
}
], ],
queryParams: [], queryParams: [],
...@@ -113,13 +120,13 @@ ...@@ -113,13 +120,13 @@
}, },
methods: { methods: {
getRow(val){ getRow(val) {
this.$emit('getRow',val) this.$emit('getRow', val)
}, },
demo(ctx){ demo(ctx) {
if(ctx.singleItem&&ctx.singleItem.id){ if (ctx.singleItem && ctx.singleItem.id) {
console.log(ctx.singleItem) console.log(ctx.singleItem)
}else{ } else {
this.$warning('请选中一条数据') this.$warning('请选中一条数据')
} }
} }
...@@ -133,4 +140,4 @@ ...@@ -133,4 +140,4 @@
</script> </script>
<style> <style>
</style> </style>
\ No newline at end of file
...@@ -55,69 +55,77 @@ ...@@ -55,69 +55,77 @@
url: 'wms/ckgl/dbck/query/kc', url: 'wms/ckgl/dbck/query/kc',
queryUrl:'wms/ckgl/dbck/query/kc', queryUrl:'wms/ckgl/dbck/query/kc',
tableTitle: [{ tableTitle: [{
title: "库位", title: "库位",
field: "kwcode", field: "kwcode",
width: 100, width: 100,
}, },
{ {
title: "库位名称", title: "容器",
field: "wlxxName", field: "rqCode",
width: 120, width: 160,
},
{ },
title: "物料编码", {
field: "wlxxCode", title: "唯一码",
width: 140 field: "packid",
}, width: 180,
{
title: "物料名称", },
field: "wlxxName", {
width: 160 title: "物料编码",
}, field: "wlxxCode",
{ width: 140
title: "物料批号", },
field: "wlph", {
width: 140, title: "物料名称",
}, field: "wlxxName",
{ width: 160
title: "规格", },
field: "wlxxGg", {
width: 140 title: "规格",
}, field: "wlxxGg",
{ width: 140
title: "货主", },
field: "hzName", {
width: 180, title: "计量单位",
}, field: "jldwName",
{ width: 140
title: "制令号", },
field: "zlh", {
width: 180, title: "物料批号",
}, field: "wlph",
{ width: 140,
title: "库存数量", },
field: "kcsl", {
width: 180, title: "库位名称",
fieldType:'float' field: "wlxxName",
}, width: 120,
{ },
title: "库位",
field: "kwName", {
width: 240, title: "制令号",
field: "zlh",
}, width: 180,
{ },
title: "容器", {
field: "rqCode", title: "库存数量",
width: 160, field: "kcsl",
width: 180,
}, fieldType: 'float'
{ },
title: "唯一码", {
field: "packid", title: "货主",
width: 180, field: "hzName",
width: 180,
}, },
{
title: "库位",
field: "kwName",
width: 240,
},
], ],
queryParams: [ queryParams: [
......
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