Commit 86f0956e authored by 李苏's avatar 李苏 💬

周一功能

parent 2d49c043
......@@ -486,6 +486,46 @@ export const powerRoutes = [
name: 'mpzy',
path: "mpzy",
},
/* 合托入库*/
{
component: 'ccgl/rkgl/htrk/index',
hidden: false,
meta: {
"title": "合托入库",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920031000,
},
name: 'htrk',
path: "htrk",
},
{
component: 'ccgl/rkgl/slk/index',
hidden: false,
meta: {
"title": "上立库",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920031100,
},
name: 'slk',
path: "slk",
},
{
component: 'ccgl/rkgl/spk/index',
hidden: false,
meta: {
"title": "上平库",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920031200,
},
name: 'spk',
path: "spk",
},
],
},
......@@ -504,8 +544,7 @@ export const powerRoutes = [
redirect: 'ckd',
name: 'ckgl',
path: "ckgl",
children: [
{
children: [{
// erpComponent: true,
component: 'ccgl/ckgl/ckdj/index',
hidden: false,
......@@ -630,6 +669,20 @@ export const powerRoutes = [
name: 'lkckrw',
path: "lkckrw",
},
{
erpComponent: false,
component: 'ccgl/ckgl/xpk/index',
hidden: false,
meta: {
"title": "下平库",
"icon": "",
"noCache": false,
"link": null,
"mkid": '920041000',
},
name: 'xpk',
path: "xpk",
},
],
},
/* 调拨管理 */
......@@ -792,18 +845,18 @@ export const powerRoutes = [
path: "sjgz",
},
{
component: 'ccgl/zygz/kczzgz/index',
hidden: false,
meta: {
"title": "库存周转规则",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920020400,
},
name: 'kczzgz',
path: "kczzgz",
}
component: 'ccgl/zygz/kczzgz/index',
hidden: false,
meta: {
"title": "库存周转规则",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920020400,
},
name: 'kczzgz',
path: "kczzgz",
}
]
},
/* 库内管理*/
......@@ -835,150 +888,150 @@ export const powerRoutes = [
path: "zt",
},
{
component: 'ccgl/kngl/bz/index',
hidden: false,
meta: {
"title": "包装",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920070500,
},
name: 'bz',
path: "bz",
},
{
component: 'ccgl/kngl/sapdb/index',
hidden: false,
meta: {
"title": "SAP调拨",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920070505,
},
name: 'sapdb',
path: "sapdb",
},
/* 包装作业*/
{
component: 'ccgl/kngl/bzzy/index',
hidden: false,
meta: {
"title": "包装作业",
"icon": "",
"noCache": false,
"link": null,
"mkid": '920030800',
},
name: 'bzzy',
path: "bzzy",
},
/* */
{
component: 'ccgl/kngl/zlhbg/index',
hidden: false,
meta: {
"title": "制令号变更",
"icon": "",
"noCache": false,
"link": null,
"mkid": '920070800',
},
name: 'zlhbg',
path: "zlhbg",
},
{
component: 'ccgl/kngl/kwtzd/index',
hidden: false,
meta: {
"title": "库位调整单",
"icon": "",
"noCache": false,
"link": null,
"mkid": '920070600',
},
name: 'kwtzd',
path: "kwtzd",
},
{
component: 'ccgl/kngl/kwtzdj/index',
hidden: false,
meta: {
"title": "库位调整登记",
"icon": "",
"noCache": false,
"link": null,
"mkid": '920070700',
},
name: 'kwtzdj',
path: "kwtzdj",
},
{
component: 'ccgl/kngl/phsd/index',
hidden: false,
meta: {
"title": "批号锁定",
"icon": "",
"noCache": false,
"link": null,
"mkid": '920071300',
},
name: 'phsd',
path: "phsd",
},
{
component: 'ccgl/kngl/rqrz/index',
hidden: false,
meta: {
"title": "容器日志",
"icon": "",
"noCache": false,
"link": null,
"mkid": '920071500',
},
name: 'rqrz',
path: "rqrz",
},
{
component: 'ccgl/kngl/wymrz/index',
hidden: false,
meta: {
"title": "唯一码日志",
"icon": "",
"noCache": false,
"link": null,
"mkid": '920071600',
},
name: 'wymrz',
path: "wymrz",
},
{
component: 'ccgl/kngl/tpck/index',
hidden: false,
meta: {
"title": "托盘出库",
"icon": "",
"noCache": false,
"link": null,
"mkid": '920071000',
},
name: 'tpck',
path: "tpck",
},
{
component: 'ccgl/kngl/tprk/index',
hidden: false,
meta: {
"title": "托盘入库",
"icon": "",
"noCache": false,
"link": null,
"mkid":920070900,
},
name: 'tprk',
path: "tprk",
}
component: 'ccgl/kngl/bz/index',
hidden: false,
meta: {
"title": "包装",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920070500,
},
name: 'bz',
path: "bz",
},
{
component: 'ccgl/kngl/sapdb/index',
hidden: false,
meta: {
"title": "SAP调拨",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920070505,
},
name: 'sapdb',
path: "sapdb",
},
/* 包装作业*/
{
component: 'ccgl/kngl/bzzy/index',
hidden: false,
meta: {
"title": "包装作业",
"icon": "",
"noCache": false,
"link": null,
"mkid": '920030800',
},
name: 'bzzy',
path: "bzzy",
},
/* */
{
component: 'ccgl/kngl/zlhbg/index',
hidden: false,
meta: {
"title": "制令号变更",
"icon": "",
"noCache": false,
"link": null,
"mkid": '920070800',
},
name: 'zlhbg',
path: "zlhbg",
},
{
component: 'ccgl/kngl/kwtzd/index',
hidden: false,
meta: {
"title": "库位调整单",
"icon": "",
"noCache": false,
"link": null,
"mkid": '920070600',
},
name: 'kwtzd',
path: "kwtzd",
},
{
component: 'ccgl/kngl/kwtzdj/index',
hidden: false,
meta: {
"title": "库位调整登记",
"icon": "",
"noCache": false,
"link": null,
"mkid": '920070700',
},
name: 'kwtzdj',
path: "kwtzdj",
},
{
component: 'ccgl/kngl/phsd/index',
hidden: false,
meta: {
"title": "批号锁定",
"icon": "",
"noCache": false,
"link": null,
"mkid": '920071300',
},
name: 'phsd',
path: "phsd",
},
{
component: 'ccgl/kngl/rqrz/index',
hidden: false,
meta: {
"title": "容器日志",
"icon": "",
"noCache": false,
"link": null,
"mkid": '920071500',
},
name: 'rqrz',
path: "rqrz",
},
{
component: 'ccgl/kngl/wymrz/index',
hidden: false,
meta: {
"title": "唯一码日志",
"icon": "",
"noCache": false,
"link": null,
"mkid": '920071600',
},
name: 'wymrz',
path: "wymrz",
},
{
component: 'ccgl/kngl/tpck/index',
hidden: false,
meta: {
"title": "托盘出库",
"icon": "",
"noCache": false,
"link": null,
"mkid": '920071000',
},
name: 'tpck',
path: "tpck",
},
{
component: 'ccgl/kngl/tprk/index',
hidden: false,
meta: {
"title": "托盘入库",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920070900,
},
name: 'tprk',
path: "tprk",
}
]
......@@ -1012,76 +1065,70 @@ export const powerRoutes = [
path: "kwxq",
},
{
component: 'ccgl/cxfx/wymcx/index',
hidden: false,
meta: {
"title": "唯一码查询",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920190500,
},
name: 'wymcx',
path: "wymcx",
component: 'ccgl/cxfx/wymcx/index',
hidden: false,
meta: {
"title": "唯一码查询",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920190500,
},
name: 'wymcx',
path: "wymcx",
},
{
component: 'ccgl/cxfx/rqcx/index',
hidden: false,
meta: {
"title": "容器查询",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920190100,
},
name: 'rqcx',
path: "rqcx",
},
{
component: 'ccgl/cxfx/sfhzcx/index',
hidden: false,
meta: {
"title": "收发汇总查询",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920190400,
},
name: 'sfhzcx',
path: "sfhzcx",
},
{
component: 'ccgl/cxfx/sfmxcx/index',
hidden: false,
meta: {
"title": "收发明细查询",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920190600,
},
name: 'sfmxcx',
path: "sfmxcx",
},
{
component: 'ccgl/cxfx/pcxxcx/index',
hidden: false,
meta: {
"title": "批次信息查询",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920192000,
},
name: 'pcxxcx',
path: "pcxxcx",
},
component: 'ccgl/cxfx/rqcx/index',
hidden: false,
meta: {
"title": "容器查询",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920190100,
},
name: 'rqcx',
path: "rqcx",
},
{
component: 'ccgl/cxfx/sfhzcx/index',
hidden: false,
meta: {
"title": "收发汇总查询",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920190400,
},
name: 'sfhzcx',
path: "sfhzcx",
},
{
component: 'ccgl/cxfx/sfmxcx/index',
hidden: false,
meta: {
"title": "收发明细查询",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920190600,
},
name: 'sfmxcx',
path: "sfmxcx",
},
{
component: 'ccgl/cxfx/pcxxcx/index',
hidden: false,
meta: {
"title": "批次信息查询",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920192000,
},
name: 'pcxxcx',
path: "pcxxcx",
},
]
},
{
......@@ -1112,18 +1159,18 @@ export const powerRoutes = [
path: "rkth",
},
{
component: 'ccgl/thgl/ckth/index',
hidden: false,
meta: {
"title": "出库退货",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920100200,
},
name: 'ckth',
path: "ckth",
}
component: 'ccgl/thgl/ckth/index',
hidden: false,
meta: {
"title": "出库退货",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920100200,
},
name: 'ckth',
path: "ckth",
}
]
},
/* 盘点*/
......@@ -1142,19 +1189,18 @@ export const powerRoutes = [
name: 'kcpd',
path: "kcpd",
children: [{
component: 'ccgl/kcpd/pdd/index',
hidden: false,
meta: {
"title": "盘点单",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920070701,
},
name: 'pdd',
path: "pdd",
component: 'ccgl/kcpd/pdd/index',
hidden: false,
meta: {
"title": "盘点单",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920070701,
},
]
name: 'pdd',
path: "pdd",
}, ]
},
/* 初期库存*/
{
......@@ -1172,19 +1218,18 @@ export const powerRoutes = [
name: 'cqgl',
path: "cqgl",
children: [{
component: 'ccgl/cqgl/cskc/index',
hidden: false,
meta: {
"title": "初始库存",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920140100,
},
name: 'cskc',
path: "cskc",
component: 'ccgl/cqgl/cskc/index',
hidden: false,
meta: {
"title": "初始库存",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920140100,
},
]
name: 'cskc',
path: "cskc",
}, ]
},
/*wcs任务管理 */
{
......@@ -1215,18 +1260,18 @@ export const powerRoutes = [
path: "wcsrw",
},
{
component: 'ccgl/wcsrwgl/wcszy/index',
hidden: false,
meta: {
"title": "WCS作业",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920110200,
},
name: 'wcszy',
path: "wcszy",
component: 'ccgl/wcsrwgl/wcszy/index',
hidden: false,
meta: {
"title": "WCS作业",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920110200,
},
name: 'wcszy',
path: "wcszy",
},
]
},
/* 大屏看板*/
......@@ -1258,18 +1303,18 @@ export const powerRoutes = [
path: "22kwkb",
},
{
component: 'ccgl/dpkb/lkkb/index',
hidden: false,
meta: {
"title": "立库看板",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920150999,
},
name: 'lkkb',
path: "lkkb",
}
component: 'ccgl/dpkb/lkkb/index',
hidden: false,
meta: {
"title": "立库看板",
"icon": "",
"noCache": false,
"link": null,
"mkid": 920150999,
},
name: 'lkkb',
path: "lkkb",
}
]
}
......
<template>
<BasePage @getRow='getRow' ref="basePage" :power='power' :toolButton='false' class="min_full" style="height: 100%;border-top: 0px;" :autoQuery='false'
:config="config">
<BasePage @getRow='getRow' ref="basePage" :power='power' :toolButton='false' class="min_full"
style="height: 100%;border-top: 0px;" :autoQuery='false' :config="config">
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
......@@ -20,7 +20,7 @@
},
mixins:[wlsx,wlphsx],
mixins: [wlsx, wlphsx],
data() {
return {
power: {
......@@ -40,60 +40,52 @@
},
config: {
/* 基本配置*/
url: 'wms/rkgl/mpzy',
queryUrl: 'wms/rkgl/mpzy/query/detail',
tableTitle: [
url: 'lxyl/rkgl/ulkck',
queryUrl: 'lxyl/rkgl/ulkck/query/detail',
tableTitle: [{
title: "唯一码",
field: "packCode",
width: 240
},
{
title: "物料编码",
field: "wlxxCode",
width: 140
},
{
title: "物料名称",
field: "wlxxName",
width: 140
},
{
title: "物料规格",
field: "wlxxGg",
width: 140
},
{
title: "物料批号",
field: "wlph",
width: 180
},
{
title: "制令号",
field: "zlh",
width: 180
},
{
title: "码盘数量",
field: "mpsl",
width: 140
},
{
title: "容器",
field: "rqCode",
width: 140
},
{
title: "唯一码",
field: "packCode",
width: 240
},
{
title: "维护人",
field: "whr"
},
{
title: "维护时间",
field: "whsj",
fieldType: "ftDateTime"
},
title: "制令号",
field: "zlh",
width: 180
},
{
title: "码盘数量",
field: "sl",
width: 140
},
{
title: "物料编码",
field: "wlxxCode",
width: 140
},
{
title: "物料名称",
field: "wlxxName",
width: 140
},
{
title: "物料规格",
field: "wlxxGg",
width: 140
},
{
title: "物料批号",
field: "wlph",
width: 180
},
{
title: "维护人",
field: "whr"
},
{
title: "维护时间",
field: "whsj",
fieldType: "ftDateTime"
},
],
queryParams: [],
......@@ -103,13 +95,13 @@
},
methods: {
getRow(val){
this.$emit('getRow',val)
getRow(val) {
this.$emit('getRow', val)
},
demo(ctx){
if(ctx.singleItem&&ctx.singleItem.id){
demo(ctx) {
if (ctx.singleItem && ctx.singleItem.id) {
console.log(ctx.singleItem)
}else{
} else {
this.$warning('请选中一条数据')
}
}
......
......@@ -60,8 +60,8 @@
},
config: {
/* 基本配置*/
url: 'lxyl/ckgl/cktz/query/kc',
queryUrl: 'lxyl/ckgl/cktz/query/kc',
url: 'lxyl/ckgl/ulkck/queryLkOrPkKw',
queryUrl: 'lxyl/ckgl/ulkck/queryLkOrPkKw',
tableTitle: [{
title: "库位",
field: "kwCode",
......@@ -137,6 +137,7 @@
type: 'input',
value: ''
},
{
"label": "仓库",
"prop": "ckid",
......@@ -165,6 +166,10 @@
type: 'input',
value: ''
},
{
prop: 'flId',
value: 'L'
},
]
],
......@@ -178,11 +183,24 @@
},
methods: {
saveGw(form){
let list=this.$refs.basePage.$refs.TablePager.selectedList.map(item=>{
let ml={
rqid:item.rqid,
kwid:item.kwid
}
return ml
})
let params={
datas:this.$refs.basePage.$refs.TablePager.selectedList,
datas:list,
gwid:form.gwid
}
console.log(params)
this.$post('/lxyl/ckgl/ulkck/saveLkCk',params).then(res=>{
if(res.success){
this.$success('操作成功')
this.app.showDialog=false
this.app.refresh()
}
})
},
save() {
let list = this.$refs.basePage.$refs.TablePager.selectedList || []
......
<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">
<Xzgw v-if="showDialog" :app='this' />
<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>
......@@ -13,10 +13,10 @@
import {
editMixin
} from 'common'
import Xzgw from './xzgw.vue'
export default {
componets:{
Xzgw
},
mixins: [editMixin],
data() {
......
<template>
<BasePage @getRow='getRow' :power='power' class="min_full" style="height: 100%;" :config="config">
<template #dialog="ctx" >
<BasePage @getRow='getRow' :power='power' class="min_full" style="height: 100%;" :config="config">
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<Akck :type="'add'" v-if="ctx.basePage.showDialog" :app='ctx.basePage' />
<Akck :type="'add'" v-if="ctx.basePage.showDialog" :app='ctx.basePage' />
</template>
<template #toolbar="ctx" >
<template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<el-button @click="akck(ctx.basePage)" size='mini' type="primary">按库存开</el-button>
</template>
......@@ -15,9 +15,9 @@
<script>
import Edit from './edit.vue'
import Akck from './akck.vue'
export default{
data(){
return{
export default {
data() {
return {
power: {
add: false,
copy: false,
......@@ -33,60 +33,111 @@
showSelection: false,
saveSelected: false
},
config:{
config: {
/* 基本配置*/
url:'jcsj/gysfl',
tableTitle: [
{title: "单据号", field: "djid", fieldType:"upper", width: 140},
{title: "工位", field: "gwName", width: 140},
{title: "库位", field: "gwName", width: 140},
{title: "容器", field: "rqCode", width: 140},
{title: "状态", field: "zt",fieldType:"tybz"},
{title: "业务日期", field: "tyrq", fieldType:"ftDate"},
{title: "维护人", field: "whr"},
{title: "维护时间", field: "whsj", fieldType:"ftDateTime"},
url: 'lxyl/ckgl/ulkck',
tableTitle: [{
title: "状态",
field: "zt",
width: 80,
"transform": {
"url": "lxyl/ckgl/ulkck/init/zt",
"label": "name",
"value": "id"
}
},
{
title: "单据号",
field: "djid",
fieldType: "upper",
width: 140
},
{
title: "工位",
field: "gwName",
width: 140
},
{
title: "库位",
field: "gwName",
width: 140
},
{
title: "容器",
field: "rqCode",
width: 140
},
{
title: "业务日期",
field: "tyrq",
fieldType: "ftDate"
},
{
title: "维护人",
field: "whr",
width: 120
},
{
title: "维护时间",
field: "whsj",
fieldType: "ftDateTime"
},
],
queryParams:[
// [
// {
// label: '编码',
// prop: 'code',
// span: 6,
// type: 'input',
// value:''
// },
// {
// label: '名称',
// prop: 'name',
// span: 6,
// type: 'input',
// value:''
// }
queryParams: [
[{
label: '单据号',
prop: 'djid',
span: 6,
type: 'input',
value: ''
},
{
"label": "状态",
"prop": "zt",
"span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "lxyl/ckgl/ulkck/init/zt",
"match": {
"value": "id",
"label": "name"
}
}
},
{
prop: 'type',
value: 'L'
}
// ],
],
/* 默认启停用 */
showqt:false,
],
/* 默认启停用 */
showqt: false,
}
}
}
},
methods: {
getRow(val) {
this.$emit('getRow', val)
},
/* 示例*/
akck(ctx) {
ctx.DialogTitle = '选择库存'
ctx.DialogWidth = '70vw'
ctx.showDialog = true
}
akck(ctx) {
ctx.DialogTitle = '选择库存'
ctx.DialogWidth = '70vw'
ctx.showDialog = true
}
},
components:{
Edit,Akck
components: {
Edit,
Akck
}
}
</script>
<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>
<div class="outer">
<div class=" higher flex-column">
<!-- 分层-->
<div class="top">
<Top @getRow='topGetRow' ref="top"></Top>
</div>
<div class="bottom flex">
<div class="full" >
<el-tabs class="full" v-model="activeName" >
<el-tab-pane class="full" label="明细" name="first">
<Mx ref="mx" class="full" />
</el-tab-pane>
</el-tabs>
</div>
</div>
</div>
</div>
</template>
<script>
import Top from './top/index.vue'
import Mx from './mx.vue'
export default {
components: {
Top,Mx
// Left
},
data(){
return {
activeName: 'first'
}
},
methods: {
topGetRow(row) {
/* dom赋值*/
let mid = row.id
this.$refs.mx.$refs.basePage.queryParams.mid = mid
this.$refs.mx.$refs.basePage.$refs['TablePager'].pageQuery({
setFirstCurrent: true
})
},
// rkdmxGetRow(row){
// let mid = row.id
// this.$refs.rkqd.$refs.basePage.queryParams.mid = mid
// this.$refs.rkqd.$refs.basePage.$refs['TablePager'].pageQuery()
// }
}
}
</script>
<style lang="scss" scoped>
.outer {
overflow: auto;
height: calc(100vh - 84px);
width: 100%;
.top {
width: 100%;
height: 45%;
}
.bottom {
width: 100%;
height: 55%;
.left {
width: 50%;
height: 100%;
}
.right {
width: 50%;
height: 100%;
}
}
}
.higher {
height: 140vh;
}
.flex-column {
display: flex;
flex-direction: column;
}
::v-deep .el-tabs__content{
height: calc(100% - 40px);
}
::v-deep .el-tabs__nav-scroll{
padding-left: 10px;
}
</style>
<template>
<BasePage @getRow='getRow' ref="basePage" :power='power' :toolButton='false' class="min_full"
style="height: 100%;border-top: 0px;" :autoQuery='false' :config="config">
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
<template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
</template>
</BasePage>
</template>
<script>
import wlsx from 'common/src/mixin/wlphsx.js'
import wlphsx from 'common/src/mixin/wlphsx.js'
export default {
mounted() {
},
mixins: [wlsx, wlphsx],
data() {
return {
power: {
add: false,
copy: false,
/* 手动控制删除 */
delButton: false,
/* 手动控制编辑按钮权限 */
editButton: false,
/* 是否渲染右侧操作按钮 */
operateButtons: false,
/* 是否开启工作流按钮 */
workFlow: false,
/* 表格开启选择,以及记住选择 */
showSelection: false,
saveSelected: false
},
config: {
/* 基本配置*/
url: 'lxyl/rkgl/ulkck',
queryUrl: 'lxyl/rkgl/ulkck/query/detail',
tableTitle: [{
title: "唯一码",
field: "packCode",
width: 240
},
{
title: "制令号",
field: "zlh",
width: 180
},
{
title: "码盘数量",
field: "sl",
width: 140
},
{
title: "物料编码",
field: "wlxxCode",
width: 140
},
{
title: "物料名称",
field: "wlxxName",
width: 140
},
{
title: "物料规格",
field: "wlxxGg",
width: 140
},
{
title: "物料批号",
field: "wlph",
width: 180
},
{
title: "维护人",
field: "whr"
},
{
title: "维护时间",
field: "whsj",
fieldType: "ftDateTime"
},
],
queryParams: [],
}
}
},
methods: {
getRow(val) {
this.$emit('getRow', val)
},
demo(ctx) {
if (ctx.singleItem && ctx.singleItem.id) {
console.log(ctx.singleItem)
} else {
this.$warning('请选中一条数据')
}
}
},
components: {
}
}
</script>
<style>
</style>
<template>
<DefaultDialog :app='app'>
<div slot="form" style="display: flex;height: 70vh;">
<Xzgw @saveGw='saveGw' v-if="showDialog" :app='this' />
<BasePage ref="basePage" :power='power' class="min_full" style="height: 100%;" :config="config"> ref="basePage"
:power='power' 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>
</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>
import Xzgw from './xzgw.vue'
export default {
props: {
app: {
type: Object,
default: () => {
return {}
}
}
},
async mounted() {
},
components: {
Xzgw
},
data() {
return {
showDialog: false,
DialogTitle: '选择工位',
DialogWidth: '30vw',
power: {
add: false,
copy: false,
delButton: false,
editButton: false,
operateButtons: false,
workFlow: false,
/* 表格 */
showSelection: true,
saveSelected: true
},
config: {
/* 基本配置*/
url: 'lxyl/ckgl/ulkck/queryLkOrPkKw',
queryUrl: 'lxyl/ckgl/ulkck/queryLkOrPkKw',
tableTitle: [{
title: "库位",
field: "kwCode",
width: 100,
},
{
title: "容器",
field: "rqCode",
width: 160,
},
{
title: "唯一码",
field: "packCode",
width: 180,
},
{
title: "物料编码",
field: "wlxxCode",
width: 140
},
{
title: "物料名称",
field: "wlxxName",
width: 160
},
{
title: "规格",
field: "wlxxGg",
width: 140
},
{
title: "计量单位",
field: "jldwName",
width: 140
},
{
title: "物料批号",
field: "wlph",
width: 140,
},
{
title: "库位名称",
field: "wlxxName",
width: 120,
},
{
title: "制令号",
field: "zlh",
width: 180,
},
{
title: "库存数量",
field: "kcsl",
width: 120,
fieldType: 'float'
},
{
title: "货主",
field: "hzName",
width: 180,
},
],
queryParams: [
[{
label: '物料信息',
prop: 'wlxxInfo',
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: 'rqCode',
span: 6,
type: 'input',
value: ''
},
{
label: '唯一码',
prop: 'packCode',
span: 6,
type: 'input',
value: ''
},
{
prop: 'flId',
value: 'L'
},
]
],
/* 默认启停用 */
showqt: false,
}
}
},
methods: {
saveGw(form){
let list=this.$refs.basePage.$refs.TablePager.selectedList.map(item=>{
let ml={
rqid:item.rqid,
kwid:item.kwid
}
return ml
})
let params={
datas:list,
gwid:form.gwid
}
this.$post('/lxyl/ckgl/ulkck/saveLkCk',params).then(res=>{
if(res.success){
this.$success('操作成功')
this.app.showDialog=false
this.app.refresh()
}
})
},
save() {
let list = this.$refs.basePage.$refs.TablePager.selectedList || []
if (list.length == 0) {
this.$warning('请至少勾选一条数据')
} else {
this.showDialog = true
}
}
}
}
</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 {
componets:{
},
mixins: [editMixin],
data() {
return {
showDialog:false,
DialogTitle:'选择工位',
DialogWidth:'30vw',
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 @getRow='getRow' :power='power' class="min_full" style="height: 100%;" :config="config">
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<Akck :type="'add'" v-if="ctx.basePage.showDialog" :app='ctx.basePage' />
</template>
<template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<el-button @click="akck(ctx.basePage)" size='mini' type="primary">按库存开</el-button>
</template>
</BasePage>
</template>
<script>
import Edit from './edit.vue'
import Akck from './akck.vue'
export default {
data() {
return {
power: {
add: false,
copy: false,
/* 手动控制删除 */
delButton: true,
/* 手动控制编辑按钮权限 */
editButton: false,
/* 是否渲染右侧操作按钮 */
operateButtons: true,
/* 是否开启工作流按钮 */
workFlow: false,
/* 表格开启选择,以及记住选择 */
showSelection: false,
saveSelected: false
},
config: {
/* 基本配置*/
url: 'lxyl/ckgl/ulkck',
tableTitle: [{
title: "状态",
field: "zt",
width: 80,
"transform": {
"url": "lxyl/ckgl/ulkck/init/zt",
"label": "name",
"value": "id"
}
},
{
title: "单据号",
field: "djid",
fieldType: "upper",
width: 140
},
{
title: "工位",
field: "gwName",
width: 140
},
{
title: "库位",
field: "gwName",
width: 140
},
{
title: "容器",
field: "rqCode",
width: 140
},
{
title: "业务日期",
field: "tyrq",
fieldType: "ftDate"
},
{
title: "维护人",
field: "whr",
width: 120
},
{
title: "维护时间",
field: "whsj",
fieldType: "ftDateTime"
},
],
queryParams: [
[{
label: '单据号',
prop: 'djid',
span: 6,
type: 'input',
value: ''
},
{
"label": "状态",
"prop": "zt",
"span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "lxyl/ckgl/ulkck/init/zt",
"match": {
"value": "id",
"label": "name"
}
}
},
{
prop: 'type',
value: 'L'
}
],
],
/* 默认启停用 */
showqt: false,
}
}
},
methods: {
getRow(val) {
this.$emit('getRow', val)
},
/* 示例*/
akck(ctx) {
ctx.DialogTitle = '选择库存'
ctx.DialogWidth = '70vw'
ctx.showDialog = true
}
},
components: {
Edit,
Akck
}
}
</script>
<style>
</style>
<template>
<DefaultDialog v-loading='isLoading' :element-loading-text="text" :app='app'>
<div slot="form" style="">
<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"
v-if="(item.show==false)?false:true" :prop='item.prop' :key="item.prop" :type="item.type"
:typeConfig='item.typeConfig' :rule="item.rule" />
<!-- 额外数据 -->
</el-row>
</el-form>
</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>
import {
editMixin,
editMixin_expand
} from 'common'
export default {
mixins: [editMixin, editMixin_expand],
props: {
app: {
type: Object,
default: () => {
return {}
}
}
},
async mounted() {
/* 初始化数据 */
},
data() {
return {
isLoading: false,
text: '加载中',
readonly: false,
editColItemList: [{
label: '工位',
prop: 'gwid',
span: 24,
required: true,
type: 'RelSelect',
typeConfig: {
src: 'lxyl/jcsj/ugw/query',
transform: {
value: 'id',
label: 'name'
}
}
},
]
}
},
methods: {
save() {
this.$refs['form'].validate((valid) => {
if (valid) {
this.$emit('saveGw',this.form)
this.app.showDialog=false
}
})
}
}
}
</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>
<div class="outer">
<div class=" higher flex-column">
<!-- 分层-->
<div class="top">
<Top @getRow='topGetRow' ref="top"></Top>
</div>
<div class="bottom flex">
<div class="full" >
<el-tabs class="full" v-model="activeName" >
<el-tab-pane class="full" label="明细" name="first">
<Mx ref="mx" class="full" />
</el-tab-pane>
</el-tabs>
</div>
</div>
</div>
</div>
</template>
<script>
import Top from './top/index.vue'
import Mx from './mx.vue'
export default {
components: {
Top,Mx
},
data(){
return {
activeName: 'first'
}
},
methods: {
topGetRow(row) {
/* dom赋值*/
let mid = row.id
this.$refs.mx.$refs.basePage.queryParams.mid = mid
this.$refs.mx.$refs.basePage.$refs['TablePager'].pageQuery({
setFirstCurrent: true
})
},
}
}
</script>
<style lang="scss" scoped>
.outer {
overflow: auto;
height: calc(100vh - 84px);
width: 100%;
.top {
width: 100%;
height: 45%;
}
.bottom {
width: 100%;
height: 55%;
.left {
width: 50%;
height: 100%;
}
.right {
width: 50%;
height: 100%;
}
}
}
.higher {
height: 140vh;
}
.flex-column {
display: flex;
flex-direction: column;
}
::v-deep .el-tabs__content{
height: calc(100% - 40px);
}
::v-deep .el-tabs__nav-scroll{
padding-left: 10px;
}
</style>
<template>
<BasePage @getRow='getRow' ref="basePage" :power='power' :toolButton='false' class="min_full" style="height: 100%;border-top: 0px;" :autoQuery='false'
:config="config">
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
<template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
</template>
</BasePage>
</template>
<script>
import wlsx from 'common/src/mixin/wlphsx.js'
import wlphsx from 'common/src/mixin/wlphsx.js'
export default {
mounted() {
},
mixins:[wlsx,wlphsx],
data() {
return {
power: {
add: false,
copy: false,
/* 手动控制删除 */
delButton: false,
/* 手动控制编辑按钮权限 */
editButton: false,
/* 是否渲染右侧操作按钮 */
operateButtons: false,
/* 是否开启工作流按钮 */
workFlow: false,
/* 表格开启选择,以及记住选择 */
showSelection: false,
saveSelected: false
},
config: {
/* 基本配置*/
url: 'wms/rkgl/mpzy',
queryUrl: 'wms/rkgl/mpzy/query/detail',
tableTitle: [
{
title: "唯一码",
field: "packCode",
width: 240
},
{
title: "物料编码",
field: "wlxxCode",
width: 140
},
{
title: "物料名称",
field: "wlxxName",
width: 140
},
{
title: "数量",
field: "sl",
width: 120
},
{
title: "物料规格",
field: "wlxxGg",
width: 140
},
{
title: "物料批号",
field: "wlph",
width: 180
},
{
title: "制令号",
field: "zlh",
width: 180
},
{
title: "维护人",
field: "whr"
},
{
title: "维护时间",
field: "whsj",
fieldType: "ftDateTime"
},
],
queryParams: [],
}
}
},
methods: {
getRow(val){
this.$emit('getRow',val)
},
demo(ctx){
if(ctx.singleItem&&ctx.singleItem.id){
console.log(ctx.singleItem)
}else{
this.$warning('请选中一条数据')
}
}
},
components: {
}
}
</script>
<style>
</style>
<template>
<RelDialog @beforeCopyDetail='beforeCopyDetail' bigTitle detailTable='HTRKMX' @getForm='getForm'
@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 :expandTitle='false' :phsxTitle='false' :AuxButton="false" :indexApp='app' :type='type'
ref="editTableForEdit" :editTableTitle='editTableTitle' v-if="editTableForEdit" :computedRow='computedRow'
:editTableData="formDetail">
<template v-if="type!='view'" #toolbar="ctx">
<AuxButton :dynamic='true' :component='Wym' rename='选择唯一码' code='dynamic' @save="savewym" />
</template>
</editTableForEdit>
</div>
<el-row :gutter="20" :app="this" class="editRow bottomInfo">
<EditColItem :required="item.required||false" :readonly="item.readonly?true:false "
v-for="(item,index) in editColItemList2 " :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>
<!-- editTab数据 -->
</RelDialog>
</template>
<script>
import Wym from './wym/index.vue'
import WMSRKD from './wmsRkd'
import {
toFixed,
digit,
doRkdChange
} from 'common/src/utils/blur.js'
import {
editMixin,
editMixin_expand
} from 'common'
export default {
mixins: [editMixin, editMixin_expand],
methods: {
beforeCopyDetail(list) {
// list.forEach(item => {
// item.jhsl = 0
// item.cksl = 0
// })
},
getForm(val) {
// val.djly = 'M'
},
/* 需要整体row时的回调 */
computedRow(row) {
// this.$refs.editTableForEdit.$forceUpdate()
},
/* 选择list时的回调 */
/* 选择库存回调 */
savewym(list) {
list.forEach(item => {
// 转换并且push
delete item.id
this.formDetail.push(_.cloneDeep(item))
})
}
},
mounted() {
// this.form.llrName = this.username
// this.form.llrid = this.userid
},
data() {
return {
Wym: Wym,
form: {
// djly:'M'
},
/* 常规edit数据 */
editColItemList: [{
label: '容器',
prop: 'rqid',
span: 8,
required: true,
type: 'AuxInput',
typeConfig: {
isRequest: false,
code: 'RQGL',
label: 'rqCode',
transform: {
value: 'id',
label: 'code'
}
}
},
{
label: '入库单',
prop: 'lydjid',
span: 8,
required: true,
type: 'AuxInput',
typeConfig: {
isRequest: false,
code: true,
dynamic: true,
component: WMSRKD,
label: 'lydjDjid',
transform: {
value: 'id',
label: 'djid'
}
}
}
],
/* 从表编辑数据 */
editTableTitle: [{
title: "序号",
field: "xh",
width: 50,
align: "center"
},
{
title: "唯一码",
field: "packCode",
width: 180,
},
{
title: "物料编码",
field: "wlxxCode",
width: 180,
},
{
title: "物料名称",
field: "wlxxName",
width: 160
},
{
title: "规格",
field: "wlxxGg",
width: 140
},
{
title: "物料批号",
field: "wlph",
width: 180,
},
{
title: "制令号",
field: "zlh",
type: 'inputText',
width: 180,
}
]
}
}
}
</script>
<style lang="scss" scoped>
@import url("~common/src/assets/styles/editDetail.scss");
</style>
<template>
<BasePage @getRow='getRow' :power='power' class="min_full" style="height: 100%;" :config="config">
<template #dialog="ctx" >
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
<template #toolbar="ctx" >
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
</template>
</BasePage>
</template>
<script>
import Edit from './edit.vue'
export default{
data(){
return{
power: {
add: true,
copy: true,
/* 手动控制删除 */
delButton: true,
/* 手动控制编辑按钮权限 */
editButton: true,
/* 是否渲染右侧操作按钮 */
operateButtons: true,
/* 是否开启工作流按钮 */
workFlow: false,
/* 表格开启选择,以及记住选择 */
showSelection: false,
saveSelected: false
},
config:{
/* 基本配置*/
url:'jcsj/gysfl',
tableTitle: [
{title: "唯一码", field: "packCode", fieldType:"upper", width: 140},
{title: "容器", field: "rqCode", width: 140},
{title: "库位", field: "kwCode", width: 140},
{title: "物料", field: "wlxxName", width: 140},
{title: "物料编码", field: "wlxxCode", width: 140},
{title: "物料批号", field: "wlph", width: 140},
{title: "物料规格", field: "wlxxGg", width: 140},
{title: "来源单据", field: "lydjDjid", width: 140},
{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:false,
}
}
},
methods: {
},
components:{
Edit
}
}
</script>
<style>
</style>
<template>
<BasePage ref="basePage" :power='power' 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>
export default {
data() {
return {
power: {
add: false,
copy: false,
delButton: false,
editButton: false,
operateButtons: false,
workFlow: false,
/* 表格 */
showSelection: false,
saveSelected: false
},
config: {
/* 基本配置*/
url: 'wms/rkgl/mpzy/query/rktz',
queryUrl:'wms/rkgl/mpzy/query/rktz',
tableTitle: [
{
title: "状态",
field: "bzzt",
fieldType: "ftString",
align: 'center',
width: 80,
"transform": {
"url": "wms/rkgl/rktz/init/bzzt",
"label": "name",
"value": "id"
}
},
{
title: "入库单号",
field: "djid",
width: 140
},
{
title: "入库日期",
field: "ywrq",
fieldType: 'ftDate'
},
// {
// title: "入库人",
// field: "rkr",
// width: 140
// },
{
title: "事务类型",
field: "swlxName",
width: 100
},
{
title: "仓库",
field: "ckid",
width: 140,
hidden: true
},
{
title: "仓库",
field: "ckName",
width: 140
},
{
title: "入库部门",
field: "bmName",
width: 140
},
{
title: "备注",
field: "bz",
width: 240
},
{
title: "维护人",
field: "whr"
},
{
title: "维护时间",
field: "whsj",
fieldType: 'ftDateTime'
}
],
queryParams: [
[
{
label: '开始日期',
prop: 'start',
span: 6,
type: 'date',
value: ''
},
{
label: '开始日期',
prop: 'end',
span: 6,
type: 'date',
value: ''
},
{
"label": "仓库",
"prop": "ckid",
"span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "jcsj/common/ck/queryCkid",
"match": {
"value": "id",
"label": "name"
}
}
},
{
label: '单据编号',
prop: 'djid',
span: 6,
type: 'input',
value: ''
}
],[
{
label: '状态',
prop: 'zt',
span: 6,
type: 'RelSelect',
typeConfig: {
src: 'wms/rkgl/rktz/init/zt'
}
},
{
label: '事务类型',
prop: 'swlxid',
span: 6,
type: 'RelSelect',
typeConfig: {
src: 'wms/rkgl/rktz/init/swlx'
}
}
]
],
/* 默认启停用 */
showqt: false,
}
}
},
methods: {
/* 示例*/
// demo(basePage){
// }
},
components: {
}
}
</script>
<style>
</style>
<template>
<BasePage ref="basePage" :power='power' 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>
export default {
data() {
return {
power: {
add: false,
copy: false,
/* 手动控制删除 */
delButton: false,
/* 手动控制编辑按钮权限 */
editButton: false,
/* 是否渲染右侧操作按钮 */
operateButtons: false,
/* 是否开启工作流按钮 */
workFlow: false,
/* 表格开启选择,以及记住选择 */
showSelection: true,
saveSelected: true
},
config: {
/* 基本配置*/
url: 'wms/jcsj/pack/queryPackDetail',
queryUrl:'wms/jcsj/pack/queryPackDetail',
tableTitle: [
{
title: "唯一码",
field: "packCode",
width: 140
},
{
title: "容器码",
field: "rqCode",
width: 140
},
{
title: "货主编码",
field: "hzCode",
width: 140
},
{
title: "货主",
field: "hzName",
width: 140
},
{
title: "状态",
field: "packZt",
width: 140,
transform: {
"url": "wms/jcsj/rq/init/zt",
"label": "name",
"value": "id"
}
},
{
title: "库存状态",
field: "packKczt",
width: 140,
transform: {
"url": "wms/jcsj/rq/init/kczt",
"label": "name",
"value": "id"
}
},
{
title: "容量状态",
field: "packRlzt",
width: 140,
transform: {
"url": "wms/jcsj/rq/init/rlzt",
"label": "name",
"value": "id"
}
},
{
title: "运输状态",
field: "packYszt",
width: 140,
transform: {
"url": "wms/jcsj/rq/init/yszt",
"label": "name",
"value": "id"
}
},
{
title: "物料编码",
field: "wlxxCode",
width: 140
},
{
title: "物料批号",
field: "wlph",
width: 180
},
{
title: "物料名称",
field: "wlxxName",
width: 140
},
{
title: "制令号",
field: "zlh",
width: 180
},
{
title: "数量",
field: "sl",
width: 140
},
{
title: "入库单号",
field: "rktzDjid",
width: 180
}
],
queryParams: [
[{
label: '唯一码',
prop: 'packCode',
span: 6,
type: 'input',
},
{
"label": "状态",
"prop": "zt",
"span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "wms/jcsj/pack/init/zt",
"match": {
"value": "id",
"label": "name"
}
}
},
{
"label": "库存状态",
"prop": "kczt",
"span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "wms/jcsj/pack/init/kczt",
"match": {
"value": "id",
"label": "name"
}
}
},
{
label: '物料批号',
prop: 'wlph',
span: 6,
type: 'input',
}
],
[{
label: '物料',
prop: 'wlid',
span: 6,
required: false,
type: 'AuxInput',
typeConfig: {
give: (row) => {
},
isRequest: false,
code: 'WMSWLXX',
label: 'name',
transform: {
value: 'id',
label: 'name'
}
}
}, ]
],
/* 默认启停用 */
showqt: false,
}
}
},
mounted() {
},
methods: {
/* 示例*/
// demo(basePage){
// }
},
components: {
// Edit
}
}
</script>
<style>
</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>
<div class="outer">
<div class=" higher flex-column">
<!-- 分层-->
<div class="top">
<Top @getRow='topGetRow' ref="top"></Top>
</div>
<div class="bottom flex">
<div class="full" >
<el-tabs class="full" v-model="activeName" >
<el-tab-pane class="full" label="明细" name="first">
<Mx ref="mx" class="full" />
</el-tab-pane>
</el-tabs>
</div>
</div>
</div>
</div>
</template>
<script>
import Top from './top/index.vue'
import Mx from './mx.vue'
export default {
components: {
Top,Mx
},
data(){
return {
activeName: 'first'
}
},
methods: {
topGetRow(row) {
/* dom赋值*/
let mid = row.id
this.$refs.mx.$refs.basePage.queryParams.mid = mid
this.$refs.mx.$refs.basePage.$refs['TablePager'].pageQuery({
setFirstCurrent: true
})
},
}
}
</script>
<style lang="scss" scoped>
.outer {
overflow: auto;
height: calc(100vh - 84px);
width: 100%;
.top {
width: 100%;
height: 45%;
}
.bottom {
width: 100%;
height: 55%;
.left {
width: 50%;
height: 100%;
}
.right {
width: 50%;
height: 100%;
}
}
}
.higher {
height: 140vh;
}
.flex-column {
display: flex;
flex-direction: column;
}
::v-deep .el-tabs__content{
height: calc(100% - 40px);
}
::v-deep .el-tabs__nav-scroll{
padding-left: 10px;
}
</style>
<template>
<BasePage @getRow='getRow' ref="basePage" :power='power' :toolButton='false' class="min_full" style="height: 100%;border-top: 0px;" :autoQuery='false'
:config="config">
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
<template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
</template>
</BasePage>
</template>
<script>
import wlsx from 'common/src/mixin/wlphsx.js'
import wlphsx from 'common/src/mixin/wlphsx.js'
export default {
mounted() {
},
mixins:[wlsx,wlphsx],
data() {
return {
power: {
add: false,
copy: false,
/* 手动控制删除 */
delButton: false,
/* 手动控制编辑按钮权限 */
editButton: false,
/* 是否渲染右侧操作按钮 */
operateButtons: false,
/* 是否开启工作流按钮 */
workFlow: false,
/* 表格开启选择,以及记住选择 */
showSelection: false,
saveSelected: false
},
config: {
/* 基本配置*/
url: 'wms/rkgl/mpzy',
queryUrl: 'wms/rkgl/mpzy/query/detail',
tableTitle: [
{
title: "唯一码",
field: "packCode",
width: 240
},
{
title: "物料编码",
field: "wlxxCode",
width: 140
},
{
title: "物料名称",
field: "wlxxName",
width: 140
},
{
title: "数量",
field: "sl",
width: 120
},
{
title: "物料规格",
field: "wlxxGg",
width: 140
},
{
title: "物料批号",
field: "wlph",
width: 180
},
{
title: "制令号",
field: "zlh",
width: 180
},
{
title: "维护人",
field: "whr"
},
{
title: "维护时间",
field: "whsj",
fieldType: "ftDateTime"
},
],
queryParams: [],
}
}
},
methods: {
getRow(val){
this.$emit('getRow',val)
},
demo(ctx){
if(ctx.singleItem&&ctx.singleItem.id){
console.log(ctx.singleItem)
}else{
this.$warning('请选中一条数据')
}
}
},
components: {
}
}
</script>
<style>
</style>
<template>
<RelDialog @beforeCopyDetail='beforeCopyDetail' bigTitle detailTable='HTRKMX' @getForm='getForm'
@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 :expandTitle='false' :phsxTitle='false' :AuxButton="false" :indexApp='app' :type='type'
ref="editTableForEdit" :editTableTitle='editTableTitle' v-if="editTableForEdit" :computedRow='computedRow'
:editTableData="formDetail">
<template v-if="type!='view'" #toolbar="ctx">
<AuxButton :dynamic='true' :component='Wym' rename='选择唯一码' code='dynamic' @save="savewym" />
</template>
</editTableForEdit>
</div>
<el-row :gutter="20" :app="this" class="editRow bottomInfo">
<EditColItem :required="item.required||false" :readonly="item.readonly?true:false "
v-for="(item,index) in editColItemList2 " :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>
<!-- editTab数据 -->
</RelDialog>
</template>
<script>
import Wym from './wym/index.vue'
import WMSRKD from './wmsRkd'
import {
toFixed,
digit,
doRkdChange
} from 'common/src/utils/blur.js'
import {
editMixin,
editMixin_expand
} from 'common'
export default {
mixins: [editMixin, editMixin_expand],
methods: {
beforeCopyDetail(list) {
// list.forEach(item => {
// item.jhsl = 0
// item.cksl = 0
// })
},
getForm(val) {
// val.djly = 'M'
},
/* 需要整体row时的回调 */
computedRow(row) {
// this.$refs.editTableForEdit.$forceUpdate()
},
/* 选择list时的回调 */
/* 选择库存回调 */
savewym(list) {
list.forEach(item => {
// 转换并且push
item.lydjid = item.id
delete item.id
this.formDetail.push(_.cloneDeep(item))
})
}
},
mounted() {
// this.form.llrName = this.username
// this.form.llrid = this.userid
},
data() {
return {
Wym: Wym,
form: {
// djly:'M'
},
/* 常规edit数据 */
editColItemList: [{
"label": "仓库",
"prop": "ckid",
"span": 8,
"type": "RelSelect",
"value": "",
"required": true,
"typeConfig": {
"src": "lxyl/common/ck/queryCkid",
"match": {
"value": "id",
"label": "name"
}
}
},
{
label: '容器',
prop: 'rqid',
span: 8,
required: true,
type: 'AuxInput',
typeConfig: {
isRequest: false,
code: 'RQGL',
label: 'rqCode',
transform: {
value: 'id',
label: 'code'
}
}
},
{
label: '工位',
prop: 'gwid',
span: 8,
required: true,
type: 'AuxInput',
typeConfig: {
isRequest: true,
code: 'GWID',
label: 'gwName',
transform: {
value: 'id',
label: 'name'
}
},
},
{
label: '入库单',
prop: 'lydjid',
span: 8,
required: true,
type: 'AuxInput',
typeConfig: {
isRequest: false,
code: true,
dynamic: true,
component: WMSRKD,
label: 'lydjDjid',
transform: {
value: 'id',
label: 'djid'
}
}
}
],
/* 从表编辑数据 */
editTableTitle: [{
title: "序号",
field: "xh",
width: 50,
align: "center"
},
{
title: "唯一码",
field: "packCode",
width: 180,
},
{
title: "物料编码",
field: "wlxxCode",
width: 180,
},
{
title: "物料名称",
field: "wlxxName",
width: 160
},
{
title: "数量",
field: "sl",
type: 'inputText',
width: 160
},
{
title: "规格",
field: "wlxxGg",
width: 140
},
{
title: "物料批号",
field: "wlph",
width: 180,
},
{
title: "制令号",
field: "zlh",
// type: 'inputText',
width: 180,
}
]
}
}
}
</script>
<style lang="scss" scoped>
@import url("~common/src/assets/styles/editDetail.scss");
</style>
<template>
<BasePage @getRow='getRow' :power='power' class="min_full" style="height: 100%;" :config="config">
<template #dialog="ctx" >
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
<template #toolbar="ctx" >
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
</template>
</BasePage>
</template>
<script>
import Edit from './edit.vue'
export default{
data(){
return{
power: {
add: true,
copy: true,
/* 手动控制删除 */
delButton: true,
/* 手动控制编辑按钮权限 */
editButton: false,
/* 是否渲染右侧操作按钮 */
operateButtons: true,
/* 是否开启工作流按钮 */
workFlow: false,
/* 表格开启选择,以及记住选择 */
showSelection: false,
saveSelected: false
},
config:{
/* 基本配置*/
url:'jcsj/gysfl',
tableTitle: [
{title: "仓库", field: "ckName", width: 140},
{title: "容器", field: "rqCode", width: 140},
{title: "工位", field: "gwName", width: 140},
{title: "来源单据", field: "lydjDjid", width: 140},
{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:false,
}
}
},
methods: {
},
components:{
Edit
}
}
</script>
<style>
</style>
<template>
<BasePage ref="basePage" :power='power' 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>
export default {
data() {
return {
power: {
add: false,
copy: false,
delButton: false,
editButton: false,
operateButtons: false,
workFlow: false,
/* 表格 */
showSelection: false,
saveSelected: false
},
config: {
/* 基本配置*/
url: 'wms/rkgl/mpzy/query/rktz',
queryUrl:'wms/rkgl/mpzy/query/rktz',
tableTitle: [
{
title: "状态",
field: "bzzt",
fieldType: "ftString",
align: 'center',
width: 80,
"transform": {
"url": "wms/rkgl/rktz/init/bzzt",
"label": "name",
"value": "id"
}
},
{
title: "入库单号",
field: "djid",
width: 140
},
{
title: "入库日期",
field: "ywrq",
fieldType: 'ftDate'
},
// {
// title: "入库人",
// field: "rkr",
// width: 140
// },
{
title: "事务类型",
field: "swlxName",
width: 100
},
{
title: "仓库",
field: "ckid",
width: 140,
hidden: true
},
{
title: "仓库",
field: "ckName",
width: 140
},
{
title: "入库部门",
field: "bmName",
width: 140
},
{
title: "备注",
field: "bz",
width: 240
},
{
title: "维护人",
field: "whr"
},
{
title: "维护时间",
field: "whsj",
fieldType: 'ftDateTime'
}
],
queryParams: [
[
{
label: '开始日期',
prop: 'start',
span: 6,
type: 'date',
value: ''
},
{
label: '开始日期',
prop: 'end',
span: 6,
type: 'date',
value: ''
},
{
"label": "仓库",
"prop": "ckid",
"span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "jcsj/common/ck/queryCkid",
"match": {
"value": "id",
"label": "name"
}
}
},
{
label: '单据编号',
prop: 'djid',
span: 6,
type: 'input',
value: ''
}
],[
{
label: '状态',
prop: 'zt',
span: 6,
type: 'RelSelect',
typeConfig: {
src: 'wms/rkgl/rktz/init/zt'
}
},
{
label: '事务类型',
prop: 'swlxid',
span: 6,
type: 'RelSelect',
typeConfig: {
src: 'wms/rkgl/rktz/init/swlx'
}
}
]
],
/* 默认启停用 */
showqt: false,
}
}
},
methods: {
/* 示例*/
// demo(basePage){
// }
},
components: {
}
}
</script>
<style>
</style>
<template>
<BasePage ref="basePage" :power='power' 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>
export default {
data() {
return {
power: {
add: false,
copy: false,
/* 手动控制删除 */
delButton: false,
/* 手动控制编辑按钮权限 */
editButton: false,
/* 是否渲染右侧操作按钮 */
operateButtons: false,
/* 是否开启工作流按钮 */
workFlow: false,
/* 表格开启选择,以及记住选择 */
showSelection: true,
saveSelected: true
},
config: {
/* 基本配置*/
url: 'wms/jcsj/pack/queryPackDetail',
queryUrl:'wms/jcsj/pack/queryPackDetail',
tableTitle: [
{
title: "唯一码",
field: "packCode",
width: 140
},
{
title: "容器码",
field: "rqCode",
width: 140
},
{
title: "货主编码",
field: "hzCode",
width: 140
},
{
title: "货主",
field: "hzName",
width: 140
},
{
title: "状态",
field: "packZt",
width: 140,
transform: {
"url": "wms/jcsj/rq/init/zt",
"label": "name",
"value": "id"
}
},
{
title: "库存状态",
field: "packKczt",
width: 140,
transform: {
"url": "wms/jcsj/rq/init/kczt",
"label": "name",
"value": "id"
}
},
{
title: "容量状态",
field: "packRlzt",
width: 140,
transform: {
"url": "wms/jcsj/rq/init/rlzt",
"label": "name",
"value": "id"
}
},
{
title: "运输状态",
field: "packYszt",
width: 140,
transform: {
"url": "wms/jcsj/rq/init/yszt",
"label": "name",
"value": "id"
}
},
{
title: "物料编码",
field: "wlxxCode",
width: 140
},
{
title: "物料批号",
field: "wlph",
width: 180
},
{
title: "物料名称",
field: "wlxxName",
width: 140
},
{
title: "制令号",
field: "zlh",
width: 180
},
{
title: "数量",
field: "sl",
width: 140
},
{
title: "入库单号",
field: "rktzDjid",
width: 180
}
],
queryParams: [
[{
label: '唯一码',
prop: 'packCode',
span: 6,
type: 'input',
},
{
"label": "状态",
"prop": "zt",
"span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "wms/jcsj/pack/init/zt",
"match": {
"value": "id",
"label": "name"
}
}
},
{
"label": "库存状态",
"prop": "kczt",
"span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "wms/jcsj/pack/init/kczt",
"match": {
"value": "id",
"label": "name"
}
}
},
{
label: '物料批号',
prop: 'wlph',
span: 6,
type: 'input',
}
],
[{
label: '物料',
prop: 'wlid',
span: 6,
required: false,
type: 'AuxInput',
typeConfig: {
give: (row) => {
},
isRequest: false,
code: 'WMSWLXX',
label: 'name',
transform: {
value: 'id',
label: 'name'
}
}
}, ]
],
/* 默认启停用 */
showqt: false,
}
}
},
mounted() {
},
methods: {
/* 示例*/
// demo(basePage){
// }
},
components: {
// Edit
}
}
</script>
<style>
</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>
<div class="outer">
<div class=" higher flex-column">
<!-- 分层-->
<div class="top">
<Top @getRow='topGetRow' ref="top"></Top>
</div>
<div class="bottom flex">
<div class="full" >
<el-tabs class="full" v-model="activeName" >
<el-tab-pane class="full" label="明细" name="first">
<Mx ref="mx" class="full" />
</el-tab-pane>
</el-tabs>
</div>
</div>
</div>
</div>
</template>
<script>
import Top from './top/index.vue'
import Mx from './mx.vue'
export default {
components: {
Top,Mx
},
data(){
return {
activeName: 'first'
}
},
methods: {
topGetRow(row) {
/* dom赋值*/
let mid = row.id
this.$refs.mx.$refs.basePage.queryParams.mid = mid
this.$refs.mx.$refs.basePage.$refs['TablePager'].pageQuery({
setFirstCurrent: true
})
},
}
}
</script>
<style lang="scss" scoped>
.outer {
overflow: auto;
height: calc(100vh - 84px);
width: 100%;
.top {
width: 100%;
height: 45%;
}
.bottom {
width: 100%;
height: 55%;
.left {
width: 50%;
height: 100%;
}
.right {
width: 50%;
height: 100%;
}
}
}
.higher {
height: 140vh;
}
.flex-column {
display: flex;
flex-direction: column;
}
::v-deep .el-tabs__content{
height: calc(100% - 40px);
}
::v-deep .el-tabs__nav-scroll{
padding-left: 10px;
}
</style>
<template>
<BasePage @getRow='getRow' ref="basePage" :power='power' :toolButton='false' class="min_full" style="height: 100%;border-top: 0px;" :autoQuery='false'
:config="config">
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
<template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
</template>
</BasePage>
</template>
<script>
import wlsx from 'common/src/mixin/wlphsx.js'
import wlphsx from 'common/src/mixin/wlphsx.js'
export default {
mounted() {
},
mixins:[wlsx,wlphsx],
data() {
return {
power: {
add: false,
copy: false,
/* 手动控制删除 */
delButton: false,
/* 手动控制编辑按钮权限 */
editButton: false,
/* 是否渲染右侧操作按钮 */
operateButtons: false,
/* 是否开启工作流按钮 */
workFlow: false,
/* 表格开启选择,以及记住选择 */
showSelection: false,
saveSelected: false
},
config: {
/* 基本配置*/
url: 'wms/rkgl/mpzy',
queryUrl: 'wms/rkgl/mpzy/query/detail',
tableTitle: [
{
title: "唯一码",
field: "packCode",
width: 240
},
{
title: "物料编码",
field: "wlxxCode",
width: 140
},
{
title: "物料名称",
field: "wlxxName",
width: 140
},
{
title: "数量",
field: "sl",
width: 120
},
{
title: "物料规格",
field: "wlxxGg",
width: 140
},
{
title: "物料批号",
field: "wlph",
width: 180
},
{
title: "制令号",
field: "zlh",
width: 180
},
{
title: "维护人",
field: "whr"
},
{
title: "维护时间",
field: "whsj",
fieldType: "ftDateTime"
},
],
queryParams: [],
}
}
},
methods: {
getRow(val){
this.$emit('getRow',val)
},
demo(ctx){
if(ctx.singleItem&&ctx.singleItem.id){
console.log(ctx.singleItem)
}else{
this.$warning('请选中一条数据')
}
}
},
components: {
}
}
</script>
<style>
</style>
<template>
<RelDialog @beforeCopyDetail='beforeCopyDetail' bigTitle detailTable='HTRKMX' @getForm='getForm'
@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 :expandTitle='false' :phsxTitle='false' :AuxButton="false" :indexApp='app' :type='type'
ref="editTableForEdit" :editTableTitle='editTableTitle' v-if="editTableForEdit" :computedRow='computedRow'
:editTableData="formDetail">
<template v-if="type!='view'" #toolbar="ctx">
<AuxButton :dynamic='true' :component='Wym' rename='选择唯一码' code='dynamic' @save="savewym" />
</template>
</editTableForEdit>
</div>
<el-row :gutter="20" :app="this" class="editRow bottomInfo">
<EditColItem :required="item.required||false" :readonly="item.readonly?true:false "
v-for="(item,index) in editColItemList2 " :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>
<!-- editTab数据 -->
</RelDialog>
</template>
<script>
import Wym from './wym/index.vue'
import WMSRKD from './wmsRkd'
import {
toFixed,
digit,
doRkdChange
} from 'common/src/utils/blur.js'
import {
editMixin,
editMixin_expand
} from 'common'
export default {
mixins: [editMixin, editMixin_expand],
methods: {
beforeCopyDetail(list) {
// list.forEach(item => {
// item.jhsl = 0
// item.cksl = 0
// })
},
getForm(val) {
// val.djly = 'M'
},
/* 需要整体row时的回调 */
computedRow(row) {
// this.$refs.editTableForEdit.$forceUpdate()
},
/* 选择list时的回调 */
/* 选择库存回调 */
savewym(list) {
list.forEach(item => {
// 转换并且push
item.lydjid = item.id
delete item.id
this.formDetail.push(_.cloneDeep(item))
})
}
},
mounted() {
// this.form.llrName = this.username
// this.form.llrid = this.userid
},
data() {
return {
Wym: Wym,
form: {
ckid:''
},
/* 常规edit数据 */
editColItemList: [{
"label": "仓库",
"prop": "ckid",
"span": 8,
"type": "RelSelect",
"value": "",
"required": true,
"typeConfig": {
"src": "lxyl/common/ck/queryCkid",
"match": {
"value": "id",
"label": "name"
}
}
},
{
label: '库位',
prop: 'kwCode',
span: 8,
required: true,
type: 'AuxInput',
typeConfig: {
queryParams:()=>{
return{
ckid:this.form.ckid
}
},
isRequest: false,
code: 'WMSKWWH',
label: 'kwCode',
transform: {
value: 'id',
label: 'code'
}
},
},
{
label: '容器',
prop: 'rqid',
span: 8,
required: true,
type: 'AuxInput',
typeConfig: {
isRequest: false,
code: 'RQGL',
label: 'rqCode',
transform: {
value: 'id',
label: 'code'
}
}
},
{
label: '工位',
prop: 'gwid',
span: 8,
required: true,
type: 'AuxInput',
typeConfig: {
isRequest: true,
code: 'GWID',
label: 'gwName',
transform: {
value: 'id',
label: 'name'
}
},
},
{
label: '入库单',
prop: 'lydjid',
span: 8,
required: true,
type: 'AuxInput',
typeConfig: {
isRequest: false,
code: true,
dynamic: true,
component: WMSRKD,
label: 'lydjDjid',
transform: {
value: 'id',
label: 'djid'
}
}
}
],
/* 从表编辑数据 */
editTableTitle: [{
title: "序号",
field: "xh",
width: 50,
align: "center"
},
{
title: "唯一码",
field: "packCode",
width: 180,
},
{
title: "物料编码",
field: "wlxxCode",
width: 180,
},
{
title: "物料名称",
field: "wlxxName",
width: 160
},
{
title: "数量",
field: "sl",
type: 'inputText',
width: 160
},
{
title: "规格",
field: "wlxxGg",
width: 140
},
{
title: "物料批号",
field: "wlph",
width: 180,
},
{
title: "制令号",
field: "zlh",
// type: 'inputText',
width: 180,
}
]
}
}
}
</script>
<style lang="scss" scoped>
@import url("~common/src/assets/styles/editDetail.scss");
</style>
<template>
<BasePage @getRow='getRow' :power='power' class="min_full" style="height: 100%;" :config="config">
<template #dialog="ctx" >
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
<template #toolbar="ctx" >
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
</template>
</BasePage>
</template>
<script>
import Edit from './edit.vue'
export default{
data(){
return{
power: {
add: true,
copy: true,
/* 手动控制删除 */
delButton: true,
/* 手动控制编辑按钮权限 */
editButton: false,
/* 是否渲染右侧操作按钮 */
operateButtons: true,
/* 是否开启工作流按钮 */
workFlow: false,
/* 表格开启选择,以及记住选择 */
showSelection: false,
saveSelected: false
},
config:{
/* 基本配置*/
url:'jcsj/gysfl',
tableTitle: [
{title: "仓库", field: "ckName", width: 140},
{title: "库位", field: "kwCode", width: 140},
{title: "容器", field: "rqCode", width: 140},
{title: "工位", field: "gwName", width: 140},
{title: "来源单据", field: "lydjDjid", width: 140},
{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:false,
}
}
},
methods: {
},
components:{
Edit
}
}
</script>
<style>
</style>
<template>
<BasePage ref="basePage" :power='power' 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>
export default {
data() {
return {
power: {
add: false,
copy: false,
delButton: false,
editButton: false,
operateButtons: false,
workFlow: false,
/* 表格 */
showSelection: false,
saveSelected: false
},
config: {
/* 基本配置*/
url: 'wms/rkgl/mpzy/query/rktz',
queryUrl:'wms/rkgl/mpzy/query/rktz',
tableTitle: [
{
title: "状态",
field: "bzzt",
fieldType: "ftString",
align: 'center',
width: 80,
"transform": {
"url": "wms/rkgl/rktz/init/bzzt",
"label": "name",
"value": "id"
}
},
{
title: "入库单号",
field: "djid",
width: 140
},
{
title: "入库日期",
field: "ywrq",
fieldType: 'ftDate'
},
// {
// title: "入库人",
// field: "rkr",
// width: 140
// },
{
title: "事务类型",
field: "swlxName",
width: 100
},
{
title: "仓库",
field: "ckid",
width: 140,
hidden: true
},
{
title: "仓库",
field: "ckName",
width: 140
},
{
title: "入库部门",
field: "bmName",
width: 140
},
{
title: "备注",
field: "bz",
width: 240
},
{
title: "维护人",
field: "whr"
},
{
title: "维护时间",
field: "whsj",
fieldType: 'ftDateTime'
}
],
queryParams: [
[
{
label: '开始日期',
prop: 'start',
span: 6,
type: 'date',
value: ''
},
{
label: '开始日期',
prop: 'end',
span: 6,
type: 'date',
value: ''
},
{
"label": "仓库",
"prop": "ckid",
"span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "jcsj/common/ck/queryCkid",
"match": {
"value": "id",
"label": "name"
}
}
},
{
label: '单据编号',
prop: 'djid',
span: 6,
type: 'input',
value: ''
}
],[
{
label: '状态',
prop: 'zt',
span: 6,
type: 'RelSelect',
typeConfig: {
src: 'wms/rkgl/rktz/init/zt'
}
},
{
label: '事务类型',
prop: 'swlxid',
span: 6,
type: 'RelSelect',
typeConfig: {
src: 'wms/rkgl/rktz/init/swlx'
}
}
]
],
/* 默认启停用 */
showqt: false,
}
}
},
methods: {
/* 示例*/
// demo(basePage){
// }
},
components: {
}
}
</script>
<style>
</style>
<template>
<BasePage ref="basePage" :power='power' 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>
export default {
data() {
return {
power: {
add: false,
copy: false,
/* 手动控制删除 */
delButton: false,
/* 手动控制编辑按钮权限 */
editButton: false,
/* 是否渲染右侧操作按钮 */
operateButtons: false,
/* 是否开启工作流按钮 */
workFlow: false,
/* 表格开启选择,以及记住选择 */
showSelection: true,
saveSelected: true
},
config: {
/* 基本配置*/
url: 'wms/jcsj/pack/queryPackDetail',
queryUrl:'wms/jcsj/pack/queryPackDetail',
tableTitle: [
{
title: "唯一码",
field: "packCode",
width: 140
},
{
title: "容器码",
field: "rqCode",
width: 140
},
{
title: "货主编码",
field: "hzCode",
width: 140
},
{
title: "货主",
field: "hzName",
width: 140
},
{
title: "状态",
field: "packZt",
width: 140,
transform: {
"url": "wms/jcsj/rq/init/zt",
"label": "name",
"value": "id"
}
},
{
title: "库存状态",
field: "packKczt",
width: 140,
transform: {
"url": "wms/jcsj/rq/init/kczt",
"label": "name",
"value": "id"
}
},
{
title: "容量状态",
field: "packRlzt",
width: 140,
transform: {
"url": "wms/jcsj/rq/init/rlzt",
"label": "name",
"value": "id"
}
},
{
title: "运输状态",
field: "packYszt",
width: 140,
transform: {
"url": "wms/jcsj/rq/init/yszt",
"label": "name",
"value": "id"
}
},
{
title: "物料编码",
field: "wlxxCode",
width: 140
},
{
title: "物料批号",
field: "wlph",
width: 180
},
{
title: "物料名称",
field: "wlxxName",
width: 140
},
{
title: "制令号",
field: "zlh",
width: 180
},
{
title: "数量",
field: "sl",
width: 140
},
{
title: "入库单号",
field: "rktzDjid",
width: 180
}
],
queryParams: [
[{
label: '唯一码',
prop: 'packCode',
span: 6,
type: 'input',
},
{
"label": "状态",
"prop": "zt",
"span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "wms/jcsj/pack/init/zt",
"match": {
"value": "id",
"label": "name"
}
}
},
{
"label": "库存状态",
"prop": "kczt",
"span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "wms/jcsj/pack/init/kczt",
"match": {
"value": "id",
"label": "name"
}
}
},
{
label: '物料批号',
prop: 'wlph',
span: 6,
type: 'input',
}
],
[{
label: '物料',
prop: 'wlid',
span: 6,
required: false,
type: 'AuxInput',
typeConfig: {
give: (row) => {
},
isRequest: false,
code: 'WMSWLXX',
label: 'name',
transform: {
value: 'id',
label: 'name'
}
}
}, ]
],
/* 默认启停用 */
showqt: false,
}
}
},
mounted() {
},
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