Commit 5805897a authored by 李苏's avatar 李苏 💬

基础数据

parent 5e250964
......@@ -242,6 +242,35 @@ export const powerRoutes=[
name: 'hz',
path: "hz",
},
{
erpComponent: false,
component: 'ccgl/jcsj/gwwh/index',
hidden: false,
meta: {
"title": "工位维护",
"icon": "",
"noCache": false,
"link": null,
"mkid":'920011500',
},
name: 'gwwh',
path: "gwwh",
},
/* 工位如出口*/
{
erpComponent: false,
component: 'ccgl/jcsj/lkrck/index',
hidden: false,
meta: {
"title": "立库入出口",
"icon": "",
"noCache": false,
"link": null,
"mkid":'920011600',
},
name: 'lkrck',
path: "lkrck",
},
],
......
<template>
<DefaultDialog :app='app'>
<div slot="form" style="display: flex;height: 70vh;">
DialogTitle:'新增',
showDialog:false,
</div>
<div slot="reFooter" class="refooter" >
<span slot="footer" class="dialog-footer" >
<el-button @click="app.showDialog=false">取 消</el-button>
<el-button type="primary" @click="save()">保 存</el-button>
</span>
</div>
</DefaultDialog>
</template>
<script>
export default {
props: {
app: {
type: Object,
default: ()=>{
return {}
}
}
},
async mounted() {
},
data() {
return {
}
},
methods: {
}
}
</script>
<style scoped>
</style>
<template>
<RelDialog width="50%" :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<el-row :gutter="20" :app="this">
<EditColItem :required="item.required||false" :readonly="item.readonly?true:false "
v-for="(item,index) in editColItemList " :value="item.value" :span="item.span" :label="item.label"
:prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig' :rule="item.rule" />
</el-row>
</el-form>
</RelDialog>
</template>
<script>
import {
editMixin
} from 'common'
export default {
mixins: [editMixin],
data() {
return {
editColItemList: [
{
label: '编码',
prop: 'code',
span: 12,
type: 'input',
required: true,
},
{
label: '名称',
prop: 'name',
span: 12,
type: 'input',
required: true,
},
{
label: '工位别名',
prop: 'alias',
span: 12,
type: 'input',
},
{
label: '类型',
prop: 'type',
span: 12,
type: 'RelSelect',
typeConfig: {
src: "lxyl/jcsj/ugw/init/gwlx"
},
required: true,
},
]
}
}
}
</script>
<template>
<BasePage 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>
import Edit from './edit.vue'
export default {
data() {
return {
config: {
showqt:true,
/* 基本配置*/
url: 'lxyl/jcsj/ugw',
tableTitle: [{
title: "编码",
field: "code",
fieldType: "upper",
width: 140
},
{
title: "名称",
field: "name",
width: 140
},
// {
// title: "工站id",
// field: "stationid",
// width: 140
// },
{
title: "工位状态",
field: "status",
width: 140,
"transform": {
"url": "lxyl/jcsj/ugw/init/status",
"label": "name",
"value": "id"
}
},
{
title: "工位别名",
field: "alias",
width: 140
},
{
title: "类型",
field: "type",
width: 140,
"transform": {
"url": "lxyl/jcsj/ugw/init/gwlx",
"label": "name",
"value": "id"
}
},
{title: "停用", field: "tybz",fieldType:"tybz"},
{title: "停用日期", field: "tyrq", fieldType:"ftDate"},
{
title: "维护人",
field: "whr"
},
{
title: "维护时间",
field: "whsj",
fieldType: "ftDateTime"
},
],
queryParams: [
[{
label: '编码',
prop: 'code',
span: 6,
type: 'input',
value: ''
},
{
"label": "工位类型",
"prop": "type",
"span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "lxyl/jcsj/ugw/init/gwlx",
"match": {
"value": "id",
"label": "name"
}
}
},
]
],
/* 默认启停用 */
}
}
},
methods: {
/* 示例*/
// demo(basePage){
// }
},
components: {
Edit
}
}
</script>
<style>
</style>
......@@ -20,11 +20,7 @@
/* 基本配置*/
url: 'lxyl/jcsj/hj',
tableTitle: [
{
title: "仓库",
field: "ckName",
width: 200
},
{
title: "编码",
field: "code",
......@@ -82,6 +78,11 @@
fieldType: "tybz",
width: 200
},
{
title: "仓库",
field: "ckName",
width: 200
},
{
title: "停用日期",
field: "tyrq",
......
<template>
<DefaultDialog :app='app'>
<div slot="form" style="display: flex;height: 70vh;">
DialogTitle:'新增',
showDialog:false,
</div>
<div slot="reFooter" class="refooter" >
<span slot="footer" class="dialog-footer" >
<el-button @click="app.showDialog=false">取 消</el-button>
<el-button type="primary" @click="save()">保 存</el-button>
</span>
</div>
</DefaultDialog>
</template>
<script>
export default {
props: {
app: {
type: Object,
default: ()=>{
return {}
}
}
},
async mounted() {
},
data() {
return {
}
},
methods: {
}
}
</script>
<style scoped>
</style>
<template>
<RelDialog width="50%" :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
<el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<el-row :gutter="20" :app="this">
<EditColItem :required="item.required||false" :readonly="item.readonly?true:false " v-for="(item,index) in editColItemList " :value="item.value" :span="item.span" :label="item.label" :prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig' :rule="item.rule" />
</el-row>
</el-form>
</RelDialog>
</template>
<script>
import {
editMixin
} from 'common'
export default {
mixins: [editMixin],
data() {
return {
editColItemList: [
{
label: '货架',
prop: 'hjid',
span: 12,
required: true,
type: 'AuxInput',
typeConfig: {
isRequest: true,
code: 'HJID',
label: 'hjName',
transform: {
value: 'id',
label: 'name'
}
}
},
{
label: '工位',
prop: 'gwid',
span: 12,
required: true,
type: 'AuxInput',
typeConfig: {
isRequest: true,
code: 'GWID',
label: 'gwName',
transform: {
value: 'id',
label: 'name'
}
},
},
{
label: '备注',
prop: 'bz',
span: 24,
type: 'input'
},
]
}
}
}
</script>
<template>
<BasePage 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>
import Edit from './edit.vue'
export default {
data() {
return {
config: {
/* 基本配置*/
url: 'lxyl/jcsj/ulkcrksz',
tableTitle: [{
title: "工位",
field: "gwName",
fieldType: "upper",
width: 140
},
{
title: "货架",
field: "hjName",
width: 140
},
// {
// title: "状态",
// field: "zt",
// "transform": {
// "url": "lxyl/jcsj/ulkcrksz/init/zt",
// "label": "name",
// "value": "id"
// }
// },
{
title: "类型",
field: "type",
width: 140,
"transform": {
"url": "lxyl/jcsj/ugw/init/gwlx",
"label": "name",
"value": "id"
}
},
{
title: "备注",
field: "bz",
width: 260
},
{
title: "维护人",
field: "whr",
width: 140
},
{
title: "维护时间",
field: "whsj",
fieldType: "ftDateTime"
},
],
queryParams: [
[{
label: '工位编码',
prop: 'gwCode',
span: 6,
type: 'input',
value: ''
},
{
label: '货架编码',
prop: 'hjCode',
span: 6,
type: 'input',
value: ''
},
]
],
/* 默认启停用 */
}
}
},
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