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

djidinfo=>511新增

parent 1816db6b
...@@ -616,6 +616,20 @@ export const powerRoutes = [ ...@@ -616,6 +616,20 @@ export const powerRoutes = [
name: 'bldj', name: 'bldj',
path: "bldj", path: "bldj",
}, },
{
erpComponent: false,
component: 'ccgl/ckgl/lkckrw/index',
hidden: false,
meta: {
"title": "立库出库任务",
"icon": "",
"noCache": false,
"link": null,
"mkid": '920040800',
},
name: 'lkckrw',
path: "lkckrw",
},
], ],
}, },
/* 调拨管理 */ /* 调拨管理 */
......
...@@ -11,9 +11,9 @@ ...@@ -11,9 +11,9 @@
<el-tab-pane class="full" label="明细" name="first"> <el-tab-pane class="full" label="明细" name="first">
<Mx ref="mx" class="full" /> <Mx ref="mx" class="full" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane class="full" label="登记结果" name="fourth"> <!-- <el-tab-pane class="full" label="登记结果" name="fourth">
<Jg ref="jg" class="full" /> <Jg ref="jg" class="full" />
</el-tab-pane> </el-tab-pane> -->
<!-- <el-tab-pane class="full" label="拣货清单" name="second"> <!-- <el-tab-pane class="full" label="拣货清单" name="second">
<Qd ref="qd" class="full" /> <Qd ref="qd" class="full" />
</el-tab-pane> </el-tab-pane>
......
<template> <template>
<BasePage @getRow='getRow' ref="basePage" :power='power' :toolButton='false' class="min_full" <BasePage @getRow='getRow' ref="basePage" :power='power' :toolButton='false' class="min_full" style="height: 100%;"
style="height: 100%;" :autoQuery='false' :config="config"> :autoQuery='false' :config="config">
<template #dialog="ctx"> <template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<Tzqd :app='ctx.basePage' v-if="ctx.basePage.showDialog" /> <Tzqd :app='ctx.basePage' v-if="ctx.basePage.showDialog" />
...@@ -39,76 +39,57 @@ ...@@ -39,76 +39,57 @@
/* 基本配置*/ /* 基本配置*/
url: 'lxyl/ckgl/ubldj/query/detail', url: 'lxyl/ckgl/ubldj/query/detail',
queryUrl: 'lxyl/ckgl/ubldj/query/detail', queryUrl: 'lxyl/ckgl/ubldj/query/detail',
tableTitle: [ tableTitle: [{
{title: "物料编码", title: "唯一码",
field: "wlxxCode", field: "packCode",
fieldType: "upper", width: 140
width: 140 },
}, {
{ title: "物料编码",
title: "物料名称", field: "wlxxCode",
field: "wlxxName", fieldType: "upper",
width: 140 width: 140
}, },
{ {
title: "物料规格", title: "物料名称",
field: "wlxxGg", field: "wlxxName",
width: 140 width: 140
}, },
{ {
title: "制令号", title: "物料规格",
field: "zlh", field: "wlxxGg",
width: 180, width: 140
}, },
{ {
title: "物料批号", title: "制令号",
field: "wlph", field: "zlh",
width: 180 width: 180,
}, },
{ {
title: "数量", title: "物料批号",
field: "sl", field: "wlph",
type: 'inputNumber', width: 180
width: 100, },
allowEdit: true, {
}, title: "数量",
{ field: "sl",
title: "入库数量", type: 'inputNumber',
field: "rksl", width: 100,
type: 'inputNumber', allowEdit: true,
width: 100, },
allowEdit: false, {
}, title: "维护人",
{ field: "whr",
title: "出库数量", width: 200
field: "cksl", },
type: 'inputNumber', ],
width: 100, queryParams: [],
allowEdit: false,
},
{
title: "状态",
field: "zt",
width: 100,
"transform": {
"url": "lxyl/ckgl/ubldj/init/zt",
"label": "name",
"value": "id"
}
},
{
title: "维护人",
field: "whr",
width: 200
},
],
queryParams: [],
}
} }
}
}, },
methods: { methods: {
getRow(val) { getRow(val) {
this.$emit('getRow', val) this.$emit('getRow', val)
}, },
......
<template> <template>
<RelDialog bigTitle detailTable='U_BLDJMX' @getFormDetail='getFormDetail' width="70%" :type='type' :editApp='editApp' <RelDialog width="50%" :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
:app='app' :buttonApp='buttonApp'>
<el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules"> <el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<!-- 操作逻辑类似选择入库单 --> <el-row :gutter="20" :app="this">
<xzckd @save='xzckdSave' :app='this' v-if="showDialog&&DialogTitle=='选择拣货单'" />
<!-- <xzdbckd @save='xzdbckdSave' :app='this' v-if="showDialog&&DialogTitle=='选择调拨出库单'" /> -->
<el-row :gutter="20" :app="this" class="editRow">
<EditColItem :required="item.required||false" :readonly="item.readonly?true:false " <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-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" /> :prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig' :rule="item.rule" />
<!-- 额外数据 -->
</el-row>
<div class="editTab">
<editTableForEdit :phsxTitle='false' :expandTitle='false' :AuxButton='false' :indexApp='app' :type='type' @save='save' ref="editTableForEdit"
:editTableTitle='editTableTitle' v-if="editTableForEdit" :computedRow='computedRow'
:editTableData="formDetail">
<template v-if="type!='view'" #toolbar="ctx">
<el-button @click="xzckd" size="mini" style="display: inline-block;" type="primary">选择拣货单</el-button>
<!-- <el-button @click="xzdbckd" size="mini" style="display: inline-block;margin-right: 10px;"
type="primary">选择调拨出库单</el-button> -->
</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-row>
</el-form> </el-form>
<!-- editTab数据 -->
</RelDialog> </RelDialog>
</template> </template>
<script> <script>
import xzckd from './xzckd.vue' import RqComponents from './rqgl/index.vue'
// import xzdbckd from './xzdbckd.vue'
import { import {
toFixed, editMixin
digit,
doRkdChange
} from 'common/src/utils/blur.js'
import {
editMixin,
editMixin_expand
} from 'common' } from 'common'
export default { export default {
mixins: [editMixin, editMixin_expand], mixins: [editMixin],
components: {
xzckd,
// xzdbckd
},
methods: {
/* 需要整体row时的回调 */
computedRow(row) {
// this.$refs.editTableForEdit.$forceUpdate()
},
/* 选择list时的回调 */
xzckdSave(obj) {
let {
list,
row
} = obj
this.form.jhtzdjid = row.djid
this.form.cktzDjid = row.lydjDjid
this.form.ckid = row.ckid
this.form.zrrid=row.jhrid
this.form.zrrName=row.jhrName
delete this.form.jhrid
delete this.form.jhrName
let length = this.formDetail.length
this.formDetail.splice(0, length)
list.forEach(item => {
item.lydid = item.id
item.sl = item.jhsl
delete item.id
delete item.zt
this.formDetail.push(_.cloneDeep(item))
})
},
// xzdbckdSave(obj) {
// let {
// list,
// row
// } = obj
// this.form.swlxid = row.swlxid
// this.form.lydjid = row.id
// this.form.ckid = row.ckid
// this.form.bmid = row.bmid
// this.form.ywrq = row.ywrq
// this.form.djly = 'DBCK'
// let length = this.formDetail.length
// this.formDetail.splice(0, length)
// list.forEach(item => {
// item.lydjid = item.id
// item.jhsl = item.bcsl
// delete item.id
// delete item.zt
// this.formDetail.push(_.cloneDeep(item))
// })
// },
xzckd() {
this.DialogTitle = '选择拣货单'
this.showDialog = true
},
xzdbckd() {
this.DialogTitle = '选择调拨出库单'
this.showDialog = true
},
save() {},
/* 选择库存回调 */
savekc(list) {
list.forEach(item => {
// 转换并且push
delete item.id
this.formDetail.push(_.cloneDeep(item))
})
}
},
mounted() {
this.form.jhrName = this.username
this.form.jhrid = this.userid
},
data() { data() {
return { return {
/* dialog*/
showDialog: false,
DialogTitle: '选择拣货单',
DialogWidth: '80vw',
/* 常规edit数据 */
editColItemList: [{ editColItemList: [{
label: '拣货单号', label: '容器',
prop: 'djid', prop: 'rqid',
span: 8, span: 12,
type: 'input', type: 'AuxInput',
// "required": true, required: true,
}, typeConfig: {
{ isRequest: false,
readonly:true, code: true,
"label": "仓库", dynamic: true,
"prop": "ckid", label: 'rqCode',
"span": 8, component: RqComponents,
"type": "RelSelect", dialogTitle: '选择容器',
"value": "", transform: {
"required": true, value: 'id',
"typeConfig": { label: 'code'
"src": "jcsj/common/ck/queryCkid",
"match": {
"value": "id",
"label": "name"
}, },
} }
}, },
{ {
"label": "责任人", label: '库位',
"prop": "zrrid", prop: 'kwid',
"span": 8, span: 12,
"type": "AuxInput", type: 'AuxInput',
"value": "", required: true,
"required": false, typeConfig: {
"typeConfig": { isRequest: false,
"isRequest": false, "code": "WMSKWWH",
"code": "USER", "label": "kwCode",
"label": "zrrName",
"transform": { "transform": {
"value": "id", "value": "id",
"label": "username" "label": "name"
} }
} }
}, }
{
label: '业务日期',
prop: 'ywrq',
span: 8,
type: 'date',
value: new Date().getTime(),
"required": true,
},
// {
// label: '拣货单号',
// prop: 'jhdh',
// span: 8,
// type: 'input',
// },
{
label: '拣货单号',
prop: 'jhtzdjid',
span: 8,
type: 'input',
readonly:true
},
{
label: '出库单号',
prop: 'cktzDjid',
span: 8,
type: 'input',
readonly:true
},
{
label: '备注',
prop: 'bz',
span: 24,
type: 'input',
},
],
/* 从表编辑数据 */
editTableTitle: [{
title: "物料编码",
field: "wlxxCode",
fieldType: "upper",
width: 140
},
{
title: "物料名称",
field: "wlxxName",
width: 140
},
{
title: "物料规格",
field: "wlxxGg",
width: 140
},
{
title: "制令号",
field: "zlh",
width: 180,
},
{
title: "物料批号",
field: "wlph",
width: 180
},
{
title: "数量",
field: "sl",
type: 'inputNumber',
width: 100,
allowEdit: false,
},
{
title: "入库数量",
field: "rksl",
type: 'inputNumber',
width: 100,
allowEdit: false,
},
{
title: "出库数量",
field: "cksl",
type: 'inputNumber',
width: 100,
allowEdit: false,
},
] ]
} }
} }
} }
</script> </script>
<style lang="scss" scoped>
@import url("~common/src/assets/styles/editDetail.scss");
</style>
...@@ -59,25 +59,15 @@ ...@@ -59,25 +59,15 @@
width: 140 width: 140
}, },
{ {
title: "拣货单号", title: "容器",
field: "jhtzDjid", field: "rqCode",
width: 140 width: 140
}, },
{ {
title: "出库单号", title: "库位",
field: "cktzDjid", field: "kwName",
width: 140 width: 140
}, },
// {
// title: "状态",
// field: "zt",
// width: 100,
// "transform": {
// "url": "lxyl/ckgl/ubldj/init/zt",
// "label": "name",
// "value": "id"
// }
// },
{ {
title: "责任人", title: "责任人",
field: "zrrName", field: "zrrName",
......
<template>
<BasePage ref="basePage" class="min_full" :config="config">
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
<template #toolbar="ctx">
</template>
</BasePage>
</template>
<script>
export default {
data() {
return {
config: {
/* 基本配置*/
url: 'wms/jcsj/rq',
tableTitle: [{
title: "状态",
field: "zt",
width: 120,
transform: {
"url": "wms/jcsj/rq/init/zt",
"label": "name",
"value": "id"
}
},
{
title: "编号",
field: "code",
width: 120
},
{
title: "容器类型",
field: "type",
width: 120,
transform: {
"url": "wms/jcsj/rq/init/type",
"label": "name",
"value": "id"
}
},
{
title: "启停状态",
field: "tybz",
width: 80,
formatter(a, b, v) {
let map = {
Y: '停用',
N: '正常'
}
return map[v]
}
},
{
title: "库存状态",
field: "kczt",
width: 80,
transform: {
"url": "wms/jcsj/rq/init/kczt",
"label": "name",
"value": "id"
}
},
{
title: "库位编码",
field: "kwCode",
width: 120
},
{
title: "容量状态",
field: "rlzt",
width: 140,
transform: {
"url": "wms/jcsj/rq/init/rlzt",
"label": "name",
"value": "id"
}
},
{
title: "运输状态",
field: "yszt",
width: 140,
transform: {
"url": "wms/jcsj/rq/init/yszt",
"label": "name",
"value": "id"
}
},
{
title: "停用日期",
field: "tyrq",
fieldType: 'ftDate'
},
{
title: "创建时间",
field: "cjsj",
fieldType: 'ftDateTime'
},
{
title: "维护人",
field: "whr"
},
{
title: "维护时间",
field: "whsj",
fieldType: 'ftDateTime'
},
{
title: "备注",
field: "bz",
width: 200
}
],
queryParams: [
[{
"label": "容器编码",
"prop": "rqCode",
"type": "input",
},
{
"label": "状态",
"prop": "zt",
"span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "wms/jcsj/rq/init/zt",
"match": {
"value": "id",
"label": "name"
}
}
},
{
"label": "库存状态",
"prop": "kczt",
"span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "wms/jcsj/rq/init/kczt",
"match": {
"value": "id",
"label": "name"
}
}
},
]
],
/* 默认启停用 */
showqt: true,
}
}
},
methods: {
/* 示例*/
// demo(basePage){
// }
},
components: {
}
}
</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
// 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: 'wms/rkgl/mpzy',
queryUrl: 'wms/rkgl/mpzy/query/detail',
tableTitle: [
{
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"
},
],
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/cktz/query/kc',
queryUrl: 'lxyl/ckgl/cktz/query/kc',
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: ''
},
]
],
/* 默认启停用 */
showqt: false,
}
}
},
methods: {
saveGw(form){
let params={
datas:this.$refs.basePage.$refs.TablePager.selectedList,
gwid:form.gwid
}
console.log(params)
},
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">
<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>
</el-form>
</RelDialog>
</template>
<script>
import {
editMixin
} from 'common'
import Xzgw from './xzgw.vue'
export default {
componets:{
Xzgw
},
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:'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"},
],
queryParams:[
// [
// {
// label: '编码',
// prop: 'code',
// span: 6,
// type: 'input',
// value:''
// },
// {
// label: '名称',
// prop: 'name',
// span: 6,
// type: 'input',
// value:''
// }
// ],
],
/* 默认启停用 */
showqt:false,
}
}
},
methods: {
/* 示例*/
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>
...@@ -178,7 +178,7 @@ ...@@ -178,7 +178,7 @@
}, },
{ {
label: '单据编号', label: '单据编号',
prop: 'djid', prop: 'djidinfo',
span: 8, span: 8,
type: 'input', type: 'input',
value: '' value: ''
......
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