Commit 7defc3d0 authored by 李苏's avatar 李苏 💬

库区管理定制页面

parent 60c2211a
...@@ -74,7 +74,7 @@ export const powerRoutes = [ ...@@ -74,7 +74,7 @@ export const powerRoutes = [
path: "ckgl", path: "ckgl",
}, },
{ {
erpComponent: true, // erpComponent: true,
component: 'ccgl/jcsj/kqgl/index', component: 'ccgl/jcsj/kqgl/index',
hidden: false, hidden: false,
meta: { meta: {
......
<template>
<RelDialog :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<!-- 填写表单内容,slot=form必写-->
<el-form slot="form" ref="form" :model="form" label-width="80px" :rules="rules">
<el-row :gutter="20">
<el-col :span="12">
<el-form-item v-rule="{
required:true,
rules:rules,
}" label="仓库" ref="ckid" prop="ckid">
<RelSelect style="width: 100%;" src='wms/common/query/kwgl/ck' clearable :match="{value:'id',label:'name'}" v-model='form.ckid' ></RelSelect>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item v-rule="{
required:true,
rules:rules,
}" label="编码" ref="code" prop="code">
<el-input :readonly="readonly" v-model="form.code"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item v-rule="{
required:true,
rules:rules,
}" label="名称" ref="name" prop="name">
<el-input :readonly="readonly" v-model="form.name"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item v-rule="{
required:true,
rules:rules,
}" label="库区类型" ref="type" prop="type">
<RelSelect style="width: 100%;" src='lxyl/jcsj/kq/init/type' clearable :match="{value:'id',label:'name'}" v-model='form.type' ></RelSelect>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="备注" ref="bz" prop="bz">
<el-input :readonly="readonly" v-model="form.bz"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</RelDialog>
</template>
<script>
import {editMixin} from 'common'
export default {
mixins: [editMixin],
/* 存放index页面传递的额外参数*/
mounted() {
},
/* 组件名称*/
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data() {
return {
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form: {
code:'',
id:'',
name:'',
ckid:'',
bz:'',
// type:'N'
}
}
},
methods: {
}
}
</script>
<style scoped lang="scss">
</style>
<template>
<BasePage class="min_full" :config="config">
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
<template #toolbar="ctx">
</template>
</BasePage>
</template>
<script>
import Edit from './edit.vue'
export default {
data() {
return {
config: {
/* 基本配置*/
url: 'lxyl/jcsj/kq',
tableTitle: [
{
title: "仓库",
field: "ckName",
width: 120
},
{
title: "编码",
field: "code",
with:120,
},
{
title: "名称",
field: "name",
width: 140,
},
{
title: "库区类型",
field: "type",
width: 140,
"transform": {
"url": "lxyl/jcsj/kq/init/type",
"label": "name",
"value": "id"
}
},
{
title: "状态",
field: "tybz",
fieldType:"tybz"
},
{
title: "停用日期",
field: "tyrq",
fieldType: 'ftDate'
},
{
title: "备注",
field: "bz",
width: 240
},
{
title: "维护人",
field: "whr"
},
{
title: "维护时间",
field: "whsj",
fieldType: 'ftDateTime'
},
{
title: "创建人",
field: "cjr",
hidden:true
},
{
title: "创建时间",
field: "cjsj",
fieldType: 'ftDateTime',
hidden:true
}
],
queryParams: [
[
{
"label": "仓库",
"prop": "ckid",
"span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "wms/common/query/kwgl/ck",
"match": {
"value": "id",
"label": "name"
}
}
},
{
"label": "库区编号",
"prop": "code",
"type": "input",
}
]
],
/* 默认启停用 */
showqt:true,
}
}
},
methods: {
/* 示例*/
// demo(basePage){
// }
},
components: {
Edit
}
}
</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