Commit 0a8b576d authored by 李苏's avatar 李苏 💬

基础数据调整

parent 6d188609
...@@ -130,6 +130,35 @@ export const powerRoutes=[ ...@@ -130,6 +130,35 @@ export const powerRoutes=[
name: 'rqfl', name: 'rqfl',
path: "rqfl", path: "rqfl",
}, },
{
erpComponent: false,
component: 'ccgl/jcsj/wlzwh/index',
hidden: false,
meta: {
"title": "物料组维护",
"icon": "",
"noCache": false,
"link": null,
"mkid":'920011000',
},
name: 'wlzwh',
path: "wlzwh",
},
{
erpComponent: false,
component: 'ccgl/jcsj/cgywh/index',
hidden: false,
meta: {
"title": "仓管员",
"icon": "",
"noCache": false,
"link": null,
"mkid":'test',
},
name: 'cgywh',
path: "cgywh",
},
{ {
erpComponent: true, erpComponent: true,
component: 'ccgl/jcsj/bcgl/index', component: 'ccgl/jcsj/bcgl/index',
......
...@@ -40,18 +40,18 @@ ...@@ -40,18 +40,18 @@
queryUrl: 'wms/ckgl/llck/query/detail', queryUrl: 'wms/ckgl/llck/query/detail',
tableTitle: [{ tableTitle: [{
title: "物料编号", title: "物料编号",
field: "wlcode", field: "wlxxCode",
fieldType: "upper", fieldType: "upper",
width: 140 width: 140
}, },
{ {
title: "物料名称", title: "物料名称",
field: "wlmc", field: "wlxxName",
width: 140 width: 140
}, },
{ {
title: "物料规格", title: "物料规格",
field: "gg", field: "wlxxGg",
width: 140 width: 140
}, },
{ {
......
...@@ -66,9 +66,9 @@ ...@@ -66,9 +66,9 @@
item.kcsl = res.data.records.kcsl || 0 item.kcsl = res.data.records.kcsl || 0
// 转换并且push // 转换并且push
item.wlid = item.id item.wlid = item.id
item.wlmc = item.name item.wlxxName = item.name
item.wlcode = item.code item.wlxxCode = item.code
item.hsjg = 0 item.wlxxGg = item.gg
delete item.id delete item.id
this.formDetail.push(_.cloneDeep(item)) this.formDetail.push(_.cloneDeep(item))
...@@ -166,7 +166,6 @@ ...@@ -166,7 +166,6 @@
label: '货主', label: '货主',
prop: 'hzid', prop: 'hzid',
span: 8, span: 8,
"required": true,
type: 'RelSelect', type: 'RelSelect',
"typeConfig": { "typeConfig": {
"src": "jcsj/common/hz/query", "src": "jcsj/common/hz/query",
...@@ -192,17 +191,17 @@ ...@@ -192,17 +191,17 @@
}, },
{ {
title: "物料编号", title: "物料编号",
field: "wlcode", field: "wlxxCode",
width: 240, width: 240,
}, },
{ {
title: "物料名称", title: "物料名称",
field: "wlmc", field: "wlxxName",
width: 160 width: 160
}, },
{ {
title: "规格", title: "规格",
field: "gg", field: "wlxxGg",
width: 140 width: 140
}, },
{ {
......
...@@ -145,7 +145,6 @@ ...@@ -145,7 +145,6 @@
label: '货主', label: '货主',
prop: 'hzid', prop: 'hzid',
span: 8, span: 8,
"required": true,
type: 'RelSelect', type: 'RelSelect',
"typeConfig": { "typeConfig": {
"src": "jcsj/common/hz/query", "src": "jcsj/common/hz/query",
...@@ -154,7 +153,7 @@ ...@@ -154,7 +153,7 @@
"label": "name" "label": "name"
} }
} }
}, },
{ {
label: '备注', label: '备注',
......
<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: 'hzid',
span: 12,
type: 'input',
required:true,
},
{
label: '物料组',
prop: 'wlzid',
span: 12,
type: 'input',
required:true,
},
{
label: '负责人',
prop: 'fzrid',
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/ckglysz',
tableTitle: [{
title: "货主",
field: "hzName",
width: 140
},
{
title: "物料组",
field: "wlzName",
width: 140
},{
title: "负责人",
field: "fzrName",
width: 140
},
{
title: "维护人",
field: "whr",
width: 140
},
{
title: "维护时间",
field: "whsj",
fieldType: "ftDateTime"
},
],
queryParams: [
[{
label: '物料组',
prop: 'wlz',
span: 6,
type: 'input',
value: ''
},
{
label: '货主',
prop: 'hz',
span: 6,
type: 'input',
value: ''
}]
],
}
}
},
methods: {
/* 示例*/
// demo(basePage){
// }
},
components: {
Edit
}
}
</script>
<style>
</style>
<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: '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/uwlz',
tableTitle: [{
title: "编码",
field: "code",
fieldType: "upper",
width: 140
},
{
title: "名称",
field: "name",
width: 140
},
{
title: "库区",
field: "kqid",
width: 140,
transform: {
"url": "wms/jcsj/kq/query",
"label": "name",
"value": "id"
}
},
{
title: "备注",
field: "bz",
width: 240
},
{
title: "维护人",
field: "whr",
width: 120
},
{
title: "维护时间",
field: "whsj",
fieldType: "ftDateTime"
},
],
queryParams: [
[{
label: '编码',
prop: 'wlz',
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