Commit 3f295e2b authored by 李苏's avatar 李苏 💬

备料选择清单多选

parent 2687ab9f
<template>
<BasePage :setFirstCurrent='false' :power='power' @getRow='getRow' class="min_full" style="height: 100%;"
<BasePage ref="basePage" :setFirstCurrent='false' :power='power' @getRow='getRow' class="min_full" style="height: 100%;"
:config="config">
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
......@@ -17,17 +17,17 @@
export default {
data() {
return {
power: {
add: false,
copy: false,
delButton: false,
editButton: false,
operateButtons: false,
workFlow: false,
/* 表格 */
showSelection: false,
saveSelected: false
},
power:{
add: false,
copy: false,
delButton: false,
editButton: false,
operateButtons: false,
workFlow: false,
/* 表格 */
showSelection: true,
saveSelected: true
},
config: {
queryDetail: true,
/* 基本配置*/
......
......@@ -2,9 +2,9 @@
<DefaultDialog :app='app'>
<div slot="form" style="display: flex;height: 70vh;">
<div class="full">
<el-tabs class="full" v-model="activeName">
<el-tabs @tab-click='tabclick' class="full" v-model="activeName">
<el-tab-pane class="full" label="拣货单" name="first">
<Rkd @getRow='getRow' />
<Rkd ref="rkd" @getRow='getRow' />
</el-tab-pane>
<el-tab-pane class="full" label="拣货单明细" name="second">
<Rkqd ref="rkqd" />
......@@ -48,6 +48,26 @@
}
},
methods: {
tabclick(val){
this.$nextTick(()=>{
if(val.index==1){
/* 查询明细*/
let list =this.$refs.rkd.$refs.basePage.$refs.TablePager.selectedList||[]
if(list.length==0){
this.$warning('请至少勾选一条入库单查询')
}else{
this.row=list[0]
this.$refs.rkqd.$refs.basePage.queryParams.mids = list.map(item=>item.id)
this.$refs.rkqd.$refs.basePage.$refs['TablePager'].pageQuery({
})
}
// this.activeName = 'second'
}
})
},
save() {
let list=this.$refs.rkqd.$refs.basePage.$refs.TablePager.selectedList||[]
if(list.length==0){
......@@ -63,12 +83,7 @@
// if()
},
getRow(val) {
this.row=val
this.$refs.rkqd.$refs.basePage.queryParams.mid = val.id
this.$refs.rkqd.$refs.basePage.$refs['TablePager'].pageQuery({
// setFirstCurrent: true
})
this.activeName = 'second'
}
}
......
......@@ -54,7 +54,7 @@
/* 查询明细*/
let list =this.$refs.rkd.$refs.basePage.$refs.TablePager.selectedList||[]
if(list.length==0){
this.$warning('请只是勾选一条入库单查询')
this.$warning('请至少勾选一条入库单查询')
}else{
this.row=list[0]
this.$refs.rkqd.$refs.basePage.queryParams.mids = list.map(item=>item.id)
......
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