Commit 46850459 authored by 周毅's avatar 周毅

修复bug

parent 3c8e9a50
...@@ -40,12 +40,14 @@ ...@@ -40,12 +40,14 @@
field: "djid", field: "djid",
width: 130, width: 130,
formatter: function(row, index, value) { formatter: function(row, index, value) {
if (row.xh == 0) { if (row){
return "期初" if (row.xh == 0) {
} else if (row.xh == 2) { return "期初"
return "期末" } else if (row.xh == 2) {
} else { return "期末"
return value } else {
return value
}
} }
} }
}, },
......
...@@ -44,37 +44,43 @@ ...@@ -44,37 +44,43 @@
config: { config: {
/* 基本配置*/ /* 基本配置*/
url: 'lxyl/ckgl/usofh', url: 'lxyl/ckgl/usofh',
tableTitle: [{ tableTitle: [
title: "工厂编码", {
field: "hzCode", title: "状态",
fieldType: "upper", field: "zt",
width: 140 "transform": {
"url": "lxyl/ckgl/usofh/init/zt",
"label": "name",
"value": "id"
},
width: 60
}, },
{ {
title: "工厂", title: "已过账",
field: "hzName", field: "gzzt",
width: 140 width: 60,
fieldType:"checkbox"
}, },
{ {
title: "仓库编码", title: "工厂",
field: "ckCode", field: "hzName",
fieldType: "upper", width: 100
width: 140
}, },
{ {
title: "仓库", title: "仓库",
field: "ckName", field: "ckName",
width: 140 width: 120
}, },
{ {
title: "销售交货单", title: "销售交货单",
field: "vbeln", field: "vbeln",
width: 140 width: 120
}, },
{ {
title: "行项目", title: "行项目",
field: "posnr", field: "posnr",
width: 140 fieldType:"int",
width:60
}, },
{ {
title: "物料编码", title: "物料编码",
...@@ -89,12 +95,12 @@ ...@@ -89,12 +95,12 @@
{ {
title: "交货数量", title: "交货数量",
field: "lfimg", field: "lfimg",
width: 140 fieldType:"float"
}, },
{ {
title: "实发数量", title: "实发数量",
field: "sfsl", field: "sfsl",
width: 140 fieldType:"float"
}, },
{ {
title: "已开入(出)库单", title: "已开入(出)库单",
...@@ -109,25 +115,17 @@ ...@@ -109,25 +115,17 @@
} }
}, },
{
title: "状态",
field: "zt",
"transform": {
"url": "lxyl/ckgl/usofh/init/zt",
"label": "name",
"value": "id"
},
width: 100
},
{ {
title: "销售订单号", title: "销售订单号",
field: "kdauf", field: "kdauf",
width: 140 width: 120
}, },
{ {
title: "销售行项目", title: "销售行项目",
field: "kdpos", field: "kdpos",
width: 140 fieldType:"int",
width:60
}, },
{ {
title: "特殊库存", title: "特殊库存",
...@@ -159,19 +157,6 @@ ...@@ -159,19 +157,6 @@
"value": "id" "value": "id"
}, },
}, },
{
title: "过账状态",
field: "gzzt",
width: 140,
formatter(a, b, v) {
let map = {
Y: '是',
N: '否'
}
return map[v]
}
},
{ {
title: "关闭人", title: "关闭人",
field: "gbrName", field: "gbrName",
......
This diff is collapsed.
<template> <template>
<BasePage :toolButtonConfig="{ <BasePage
showExcel:false, :toolButtonConfig="{
showPrint:false, showExcel: false,
showField:true showPrint: false,
}" ref="basePage" :power='power' class="min_full" :config="config"> showField: true,
<template #dialog="ctx"> }"
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 --> ref="basePage"
</template> :power="power"
<template #toolbar="ctx"> class="min_full"
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 --> :config="config"
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> --> >
</template> <template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</BasePage> </template>
<template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> -->
</template>
</BasePage>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
power: { power: {
add: false, add: false,
copy: false, copy: false,
delButton: false, delButton: false,
editButton: false, editButton: false,
operateButtons: false, operateButtons: false,
workFlow: false, workFlow: false,
/* 表格 */ /* 表格 */
showSelection: false, showSelection: false,
saveSelected: false saveSelected: false,
}, },
config: { config: {
/* 基本配置*/ /* 基本配置*/
url: 'lxyl/rkgl/sjrw/pkrk/query/rktz', url: "lxyl/rkgl/sjrw/pkrk/query/rktz",
queryUrl:'lxyl/rkgl/sjrw/pkrk/query/rktz', queryUrl: "lxyl/rkgl/sjrw/pkrk/query/rktz",
tableTitle: [ tableTitle: [
// { // {
// title: "状态", // title: "状态",
// field: "bzzt", // field: "bzzt",
// fieldType: "ftString", // fieldType: "ftString",
// align: 'center', // align: 'center',
// width: 80, // width: 80,
// "transform": { // "transform": {
// "url": "wms/rkgl/rktz/init/bzzt", // "url": "wms/rkgl/rktz/init/bzzt",
// "label": "name", // "label": "name",
// "value": "id" // "value": "id"
// } // }
// }, // },
{ {
title: "入库单号", title: "入库单号",
field: "djid", field: "djid",
width: 140 width: 140,
}, },
{ {
title: "入库日期", title: "入库日期",
field: "ywrq", field: "ywrq",
fieldType: 'ftDate' fieldType: "ftDate",
}, },
// { // {
// title: "入库人", // title: "入库人",
// field: "rkr", // field: "rkr",
// width: 140 // width: 140
// }, // },
{ {
title: "事务类型", title: "事务类型",
field: "swlxName", field: "swlxName",
width: 100 width: 100,
}, },
{ {
title: "仓库", title: "仓库",
field: "ckid", field: "ckid",
width: 140, width: 140,
hidden: true hidden: true,
}, },
{ {
title: "仓库", title: "仓库",
field: "ckName", field: "ckName",
width: 140 width: 140,
}, },
{ {
title: "来源单号", title: "来源单号",
field: "lydjDjid", field: "lydjDjid",
width: 140 width: 140,
}, },
{ {
title: "备注", title: "备注",
field: "bz", field: "bz",
width: 240 width: 240,
}, },
{ {
title: "维护人", title: "维护人",
field: "whr" field: "whr",
}, },
{ {
title: "维护时间", title: "维护时间",
field: "whsj", field: "whsj",
fieldType: 'ftDateTime' fieldType: "ftDateTime",
} },
], ],
queryParams: [ queryParams: [
[ [
{ {
label: '开始日期', label: "开始日期",
prop: 'start', prop: "start",
span: 6, span: 6,
type: 'date', type: "date",
value: '' value: "",
}, },
{ {
label: '开始日期', label: "开始日期",
prop: 'end', prop: "end",
span: 6, span: 6,
type: 'date', type: "date",
value: '' value: "",
}, },
{ {
"label": "仓库", label: "仓库",
"prop": "ckid", prop: "ckid",
"span": 6, span: 6,
"type": "RelSelect", type: "RelSelect",
"value": "", value: "",
"typeConfig": { typeConfig: {
"src": "jcsj/common/ck/queryCkid", src: "jcsj/common/ck/queryCkid",
"match": { match: {
"value": "id", value: "id",
"label": "name" label: "name",
} },
} },
}, },
{ {
label: '单据编号', label: "单据编号",
prop: 'djid', prop: "djidInfo",
span: 6, span: 6,
type: 'input', type: "input",
value: '' value: "",
} },
],
[
],[ {
{ label: "状态",
label: '状态', prop: "zt",
prop: 'zt', span: 6,
span: 6, type: "RelSelect",
type: 'RelSelect', typeConfig: {
typeConfig: { src: "wms/rkgl/rktz/init/zt",
src: 'wms/rkgl/rktz/init/zt' },
} },
}, {
{ label: "事务类型",
label: '事务类型', prop: "swlxid",
prop: 'swlxid', span: 6,
span: 6, type: "RelSelect",
type: 'RelSelect', typeConfig: {
typeConfig: { src: "wms/rkgl/rktz/init/swlx",
src: 'wms/rkgl/rktz/init/swlx' },
} },
} ],
] ],
], /* 默认启停用 */
/* 默认启停用 */ showqt: false,
showqt: false, },
};
},
} methods: {
} /* 示例*/
// demo(basePage){
}, // }
methods: { },
/* 示例*/ components: {},
// demo(basePage){ };
// }
},
components: {
}
}
</script> </script>
<style> <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