Commit 1587bbba authored by 李苏's avatar 李苏 💬

调整

parent 3ebad309
......@@ -28,8 +28,378 @@ import Layout from '@/layout'
}
*/
export const powerRoutes=[
/* erp 基础数据*/
/* 乐心医疗定制路由 基础数据*/
/* 仓储管理 */
{
path: '/ccgl',
component: "Layout",
hidden: false,
alwaysShow: true,
redirect: 'template',
meta: {
title: "仓储管理",
icon: "fa-cog",
noCache: false,
link: null,
mkid: '910000000'
},
children: [
/* 基础数据 */
{
erpComponent: true,
component: 'template/index',
hidden: false,
meta: {
"title": "基础数据",
"icon": "",
"noCache": false,
"link": null,
"mkid":'920010000',
},
redirect: 'ckgl',
name: 'jcsj',
path: "jcsj",
children: [
{
erpComponent: true,
component: 'ccgl/jcsj/ckgl/index',
hidden: false,
meta: {
"title": "仓库管理",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920010100,
},
name: 'ckgl',
path: "ckgl",
},
{
erpComponent: true,
component: 'ccgl/jcsj/kqgl/index',
hidden: false,
meta: {
"title": "库区管理",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920010200,
},
name: 'kqgl',
path: "kqgl",
},
{
erpComponent: true,
component: 'ccgl/jcsj/kwgl/index',
hidden: false,
meta: {
"title": "库位管理",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920010300,
},
name: 'kwgl',
path: "kwgl",
},
{
erpComponent: true,
component: 'ccgl/jcsj/rqgl/index',
hidden: false,
meta: {
"title": "容器管理",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920010400,
},
name: 'rqgl',
path: "rqgl",
},
{
erpComponent: true,
component: 'ccgl/jcsj/rqfl/index',
hidden: false,
meta: {
"title": "容器分类",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920010500,
},
name: 'rqfl',
path: "rqfl",
},
{
erpComponent: true,
component: 'ccgl/jcsj/bcgl/index',
hidden: false,
meta: {
"title": "包材管理",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920010700,
},
name: 'bcgl',
path: "bcgl",
},
{
erpComponent: true,
component: 'ccgl/jcsj/pcsxsz/index',
hidden: false,
meta: {
"title": "批次属性设置",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920010800,
},
name: 'pcsxsz',
path: "pcsxsz",
},
],
},
/* 入库管理 */
{
erpComponent: true,
component: 'template/index',
hidden: false,
meta: {
"title": "入库管理",
"icon": "",
"noCache": false,
"link": null,
"mkid":'920030000',
},
redirect: 'rkd',
name: 'rkgl',
path: "rkgl",
children: [
{
erpComponent: true,
component: 'ccgl/rkgl/rkd/index',
// component: 'kcgl/rkgl/rkd/index',
hidden: false,
meta: {
"title": "入库单",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920030100,
},
name: 'rkd',
path: "rkd",
},
{
component: 'ccgl/rkgl/dbrkd/index',
// component: 'kcgl/rkgl/dbrkd/index',
hidden: false,
meta: {
"title": "调拨入库单",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920030200,
},
name: 'dbrkd',
path: "dbrkd",
},
{
erpComponent: true,
component: 'ccgl/rkgl/sjrw/index',
hidden: false,
meta: {
"title": "上架单",
"icon": "",
"noCache": false,
"link": null,
"mkid":920030300,
},
name: 'sjrw',
path: "sjrw",
},
{
erpComponent: true,
component: 'ccgl/rkgl/sjzy/index',
hidden: false,
meta: {
"title": "上架作业",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920030400,
},
name: 'sjzy',
path: "sjzy",
},
],
},
/* 出库管理 */
{
erpComponent: true,
component: 'template/index',
hidden: false,
meta: {
"title": "出库管理",
"icon": "",
"noCache": false,
"link": null,
"mkid":'920040000',
},
redirect: 'ckd',
name: 'ckgl',
path: "ckgl",
children: [
{
erpComponent: true,
component: 'ccgl/ckgl/ckd/index',
hidden: false,
meta: {
"title": "出库单",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920040100,
},
name: 'ckd',
path: "ckd",
},
{
component: 'ccgl/ckgl/dbckd/index',
hidden: false,
meta: {
"title": "调拨出库单",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920040200,
},
name: 'dbckd',
path: "dbckd",
},
// {
// erpComponent: true,
// component: 'ccgl/ckgl/ckdj/index',
// hidden: false,
// meta: {
// "title": "出库登记",
// "icon": "",
// "noCache": false,
// "link": null,
// "mkid": 920040200,
// },
// name: 'ckdj',
// path: "ckdj",
// },
{
erpComponent: true,
component: 'ccgl/ckgl/jhd/index',
hidden: false,
meta: {
"title": "拣货单",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920040300,
},
name: 'jhd',
path: "jhd",
},
{
erpComponent: true,
component: 'ccgl/ckgl/xjzy/index',
hidden: false,
meta: {
"title": "下架作业",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920040400,
},
name: 'xjzy',
path: "xjzy",
},
],
},
/* 调拨管理 */
{
erpComponent: true,
component: 'template/index',
hidden: false,
meta: {
"title": "调拨管理",
"icon": "",
"noCache": false,
"link": null,
"mkid":'920050000',
},
redirect: 'dbckd',
name: 'dbgl',
path: "dbgl",
children: [
{
erpComponent: true,
component: 'ccgl/dbgl/dbckd/index',
hidden: false,
meta: {
"title": "调拨出库单",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920050100,
},
name: 'dbckd',
path: "dbckd",
},
{
erpComponent: true,
// component: 'ccgl/dbgl/dbckdj/index',
component: 'kcgl/ckgl/dbck/index',
hidden: false,
meta: {
"title": "调拨出库登记",
"icon": "",
"noCache": false,
"link": null,
"mkid":920050200,
},
name: 'dbckdj',
path: "dbckdj",
},
{
erpComponent: true,
component: 'ccgl/dbgl/dbrkd/index',
hidden: false,
meta: {
"title": "调拨入库单",
"icon": "",
"noCache": false,
"link": null,
"mkid":920050500,
},
name: 'dbrkd',
path: "dbrkd",
},
{
erpComponent: true,
// component: 'ccgl/dbgl/dbrkdj/index',
component: 'kcgl/rkgl/dbrk/index',
hidden: false,
meta: {
"title": "调拨入库登记",
"icon": "",
"noCache": false,
"link": null,
"mkid":920050600,
},
name: 'dbrkdj',
path: "dbrkdj",
},
],
},
]
}
]
......
<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:'jcsj/gysfl',
tableTitle: [
{title: "编码", field: "code", fieldType:"upper", width: 140},
{title: "名称", field: "name", width: 140},
{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: 'name',
span: 6,
type: 'input',
value:''
}
]],
/* 默认启停用 */
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>
<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 bigTitle detailTable='DBRKMX' @getFormDetail='getFormDetail' width="70%" :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" class="editRow">
<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>
<div class="editTab">
<editTableForEdit :indexApp='app' :type='type' @save='save' ref="editTableForEdit"
:editTableTitle='editTableTitle' v-if="editTableForEdit" :computedRow='computedRow'
:editTableData="formDetail" />
</div>
<el-row class="bottomInfo" :gutter="20">
<el-col class="center" :span="12">
创建人:{{
form.cjr||localUser
}}
</el-col>
<el-col class="center" :span="12">
创建时间:{{
$moment(form.cjsj).format('YYYY-MM-DD HH:mm:ss')||$moment().format('YYYY-MM-DD HH:mm:ss')
}}
</el-col>
</el-row>
</el-form>
<!-- editTab数据 -->
</RelDialog>
</template>
<script>
import {
toFixed,
doRkdChange
} from 'common/src/utils/blur.js'
import {
editMixin,
editMixin_expand
} from 'common'
export default {
mixins: [editMixin, editMixin_expand],
methods: {
/* 需要整体row时的回调 */
computedRow(row) {
// this.$refs.editTableForEdit.$forceUpdate()
},
/* 选择list时的回调 */
save(list) {
list.forEach(item => {
// 转换并且push
item.wlid = item.id
item.wlmc = item.name
item.wlcode = item.code
item.xqsl = 0
item.xqrq = new Date().getTime()
delete item.id
this.formDetail.push(_.cloneDeep(item))
})
}
},
data() {
return {
/* 常规edit数据 */
editColItemList: [{
label: '入库单号',
prop: 'djid',
span: 8,
type: 'input',
},
{
label: '入库日期',
prop: 'ywrq',
span: 8,
type: 'date',
value: new Date().getTime(),
"required": true,
},
{
"label": "调入仓库",
"prop": "ckid",
"span": 8,
"type": "RelSelect",
"value": "",
"required": true,
"typeConfig": {
"src": "jcsj/common/ck/queryCkid",
"match": {
"value": "id",
"label": "name"
}
}
},
{
"label": "调出仓库",
"prop": "dfckid",
"span": 8,
"type": "RelSelect",
"value": "",
"required": true,
"typeConfig": {
"src": "jcsj/common/ck/queryCkid",
"match": {
"value": "id",
"label": "name"
}
}
},
{
"label": "事务类型",
"prop": "swlxid",
"span": 8,
"type": "RelSelect",
"value": "",
"required": true,
"typeConfig": {
"src": "wms/rkgl/dbrk/init/swlx",
"match": {
"value": "id",
"label": "name"
}
}
},
{
"label": "部门",
"prop": "bmid",
"span": 8,
"type": "RelSelect",
"value": "",
"required": true,
"typeConfig": {
"src": "jcsj/common/bm/query",
"match": {
"value": "id",
"label": "bmmc"
}
}
},
{
label: '备注',
prop: 'bz',
span: 24,
type: 'input',
},
],
/* 从表编辑数据 */
editTableTitle: [{
title: "序号",
field: "xh",
width: 50,
align: "center"
},
{
title: "物料编号",
field: "code",
width: 240,
type: 'AuxInput',
typeConfig: {
"code": "MATERIAL",
"label": "wlcode",
"transform": {
"value": "code",
"label": "code"
},
give(data) {
this.form.wlid = data.id
this.form.wlmc = data.name
this.form.wlcode = data.code
}
}
},
{
title: "物料名称",
field: "wlmc",
width: 160
},
{
title: "规格",
field: "gg",
width: 140
},
{
title: "计量单位",
field: "jldwname",
width: 100,
allowEdit: false
},
{
title: "制令号",
field: "zlh",
type: 'inputText',
width: 100,
allowEdit: true
},
{
title: "调拨数量",
field: "drsl",
allowEdit: true,
type: 'inputNumber',
width: 200,
blur: toFixed(null),
},
/* 不可编辑*/
{
title: "入库数量",
field: "rksl",
width: 200,
},
{
title: "物料批号",
field: "wlph",
type: 'inputText',
width: 200,
show: JSON.parse(localStorage.getItem('isPhgl'))
},
{
title: "库位",
field: "kwid",
width: 240,
type: 'AuxInput',
typeConfig: {
isRequest: false,
"code": "KWWH",
"label": "kwName",
queryParams: (row) => {
return {
ckid: this.form.ckid
}
},
"transform": {
"value": "id",
"label": "name"
}
},
show: JSON.parse(localStorage.getItem('isKwgl')),
},
{
title: "备注",
field: "bz",
width: 200,
type: 'inputText',
allowEdit: true
}
]
}
}
}
</script>
<style lang="scss" scoped>
@import url("~common/src/assets/styles/editDetail.scss");
</style>
<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> -->
<ImportButton @success="()=>{
ctx.basePage.refresh()
}" :url="'/wms/rkgl/dbrk/import'" />
<el-button @click="demo(ctx.basePage)" size='mini' type="primary" style="margin-left: 10px;">直接入库demo</el-button>
</template>
</BasePage>
</template>
<script>
import Edit from './edit.vue'
export default {
data() {
return {
config: {
/* 基本配置*/
url: 'wms/rkgl/dbrk',
tableTitle: [{
title: "入库单号",
field: "djid",
fieldType: "upper",
width: 140
},
{
title: "入库日期",
field: "ywrq",
fieldType: "ftDateTime"
},
{
title: "调入仓库",
field: "ckName",
width: 140
},
{
title: "调拨出库仓库",
field: "dfckName",
width: 140
},
{
title: "部门",
field: "bmName",
width: 140
},
{
title: "事务类型",
field: "swlxid",
width: 140
},
{
title: "单据来源",
field: "djly",
width: 140
},
{
title: "状态",
field: "zt",
width: 140
},
{
title: "备注",
field: "bz",
width: 140
},
{
title: "维护人",
field: "whr"
},
{
title: "维护时间",
field: "whsj",
fieldType: "ftDateTime"
},
],
queryParams: [
[{
label: '入库日期',
startProp: "ywrqb",
endProp: "ywrqe",
span: 12,
type: 'RelDaterangeV2',
startValue: new Date().getTime() - 1000 * 60 * 60 * 24 * 30,
endValue: new Date().getTime(),
},
{
label: '入库单号',
prop: 'djid',
span: 6,
type: 'input',
value: ''
},
{
"label": "调入仓库",
"prop": "ckid",
"span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "jcsj/common/ck/queryCkid",
"match": {
"value": "id",
"label": "name"
}
}
},
],
[{
"label": "调出仓库",
"prop": "dfckid",
"span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "jcsj/common/ck/queryCkid",
"match": {
"value": "id",
"label": "name"
}
}
},
{
label: '状态',
prop: 'zt',
span: 6,
type: 'RelSelect',
typeConfig: {
src: 'wms/rkgl/dbrk/init/zt'
}
}
]
],
/* 默认启停用 */
showqt: false,
}
}
},
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