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

add function SJGZ

parent 94612cfc
......@@ -638,6 +638,36 @@ export const powerRoutes = [
}
]
},
/* 上架规则*/
{
erpComponent: true,
component: 'template/index',
hidden: false,
meta: {
"title": "作业规则",
"icon": "",
"noCache": false,
"link": null,
"mkid": '920020000',
},
redirect: 'sjgz',
name: 'zygz',
path: "zygz",
children: [{
component: 'ccgl/zygz/sjgz/index',
hidden: false,
meta: {
"title": "上架规则",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920020100,
},
name: 'sjgz',
path: "sjgz",
}
]
},
/* 库内管理*/
{
erpComponent: false,
......
......@@ -146,31 +146,7 @@
endValue: new Date().getTime(),
},
{
"label": "仓库",
"prop": "ckid",
"span": 8,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "jcsj/common/ck/queryCkid",
"match": {
"value": "id",
"label": "name"
}
}
},
{
label: '库区',
prop: 'kqid',
span: 8,
type: 'RelSelect',
typeConfig: {
src: "wms/jcsj/kq/query",
linkage: true,
linkParams:['ckid']
},
},
],[
{
......
<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: 'zxsx',
span: 12,
type: 'input',
},
{
"label": "规则",
"prop": "gzid",
"span": 12,
"type": "RelSelect",
"value": "",
"required": true,
"typeConfig": {
"src": "lxyl/zygz/usjgz/init/gz",
"match": {
"value": "id",
"label": "name"
}
}
},
{
"label": "仓库",
"prop": "ckid",
"span": 12,
"type": "RelSelect",
"value": "",
"required": true,
"typeConfig": {
"src": "jcsj/common/ck/queryCkid",
"match": {
"value": "id",
"label": "name"
},
}
},
{
"label": "库区",
"prop": "kqid",
"span": 12,
"type": "RelSelect",
"value": "",
"required": true,
"typeConfig": {
"src": "wms/jcsj/kq/query",
"match": {
"value": "id",
"label": "name"
},
linkage: true,
linkParams: ['ckid']
}
},
{
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/zygz/usjgz',
tableTitle: [{
title: "执行顺序",
field: "zxsx",
width: 140
},
{
title: "规则",
field: "gzid",
width: 140,
"transform": {
"url": "lxyl/zygz/usjgz/init/gz",
"label": "name",
"value": "id"
}
},
{
title: "仓库",
field: "ckName",
width: 130
},
{
title: "库区",
field: "kqName",
width: 130
},
{
title: "备注",
field: "bz"
},
],
queryParams: [
[{
"label": "仓库",
"prop": "ckid",
"span": 8,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "jcsj/common/ck/queryCkid",
"match": {
"value": "id",
"label": "name"
}
}
},
{
label: '库区',
prop: 'kqid',
span: 8,
type: 'RelSelect',
typeConfig: {
src: "wms/jcsj/kq/query",
linkage: true,
linkParams: ['ckid']
},
},
]
],
/* 默认启停用 */
showqt: true,
// qtUrl:'',
/* 树的支持*/
// hasTree:false,
// treeTitle:'',
// treeDefaultProps: {
// children: 'children',
// label: 'name',
// fatherId: 'pid',
// sonId: 'id',
// rootName: "全部",
// rootId:'root'
// },
// treeQueryParams:{
// },
// treeUrl:''
}
}
},
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