Commit 35a653dc authored by 李苏's avatar 李苏 💬

物料组辅助输入动态定制组件

parent de8aaa87
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
</RelDialog> </RelDialog>
</template> </template>
<script> <script>
import wlz from './wlz.vue'
import { import {
editMixin editMixin
} from 'common' } from 'common'
...@@ -41,8 +42,10 @@ ...@@ -41,8 +42,10 @@
required: true, required: true,
type: 'AuxInput', type: 'AuxInput',
typeConfig: { typeConfig: {
isRequest: true, isRequest: false,
code: 'WLZID', dynamic:true,
code: true,
component:wlz,
label: 'wlzName', label: 'wlzName',
transform: { transform: {
value: 'id', value: 'id',
......
<template>
<BasePage ref="basePage" :power='power' 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>
export default {
data() {
return {
power: {
add: false,
copy: false,
delButton: false,
editButton: false,
operateButtons: false,
workFlow: false,
/* 表格 */
showSelection: false,
saveSelected: false
},
config: {
/* 基本配置*/
url: 'lxyl/jcsj/uwlz',
tableTitle: [
{
title: "编码",
field: "code",
fieldType: "upper",
width: 140
},
{
title: "名称",
field: "name",
width: 140
},
{
title: "库区编码",
field: "kqCode",
width: 140
},
{
title: "库区",
field: "kqid",
width: 140,
transform: {
"url": "wms/jcsj/kq/query",
"label": "name",
"value": "id"
}
},
{
title: "工厂编码",
field: "hzCode",
width: 140
},
{
title: "工厂名称",
field: "hzName",
width: 140
},
{
title: "备注",
field: "bz",
width: 240
},
{
title: "维护人",
field: "whr",
width: 120
},
{
title: "维护时间",
field: "whsj",
fieldType: "ftDateTime"
},
],
queryParams: [
[{
label: '编码',
prop: 'wlz',
span: 6,
type: 'input',
value: ''
},
{
label: '库区编码',
prop: 'kqCode',
span: 6,
type: 'input',
value: ''
}
]
],
/* 默认启停用 */
showqt: false,
}
}
},
methods: {
/* 示例*/
// demo(basePage){
// }
},
components: {
}
}
</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