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

控制查询明细

parent 2b528d06
......@@ -43,12 +43,7 @@
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()
// }
}
}
}
......
......@@ -40,8 +40,8 @@
},
config: {
/* 基本配置*/
url: 'wms/rkgl/mpzy',
queryUrl: 'wms/rkgl/mpzy/query/detail',
url: 'lxyl/rkgl/sjrw/lkrk',
queryUrl: 'lxyl/rkgl/sjrw/lkrk/query/detail',
tableTitle: [
{
title: "唯一码",
......
......@@ -2,12 +2,12 @@
<BasePage ref="basePage" @getRow='getRow' :power='power' class="min_full" style="height: 100%;" :config="config">
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<Xzgw @saveGw='saveGw' :app='ctx.basePage' v-if="ctx.basePage.showDialog" />
<Xzgw @saveGw='saveGw' :app='ctx.basePage' v-if="ctx.basePage.showDialog" />
</template>
<template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<el-button @click="sj(ctx.basePage)" size='mini' type="primary">上架</el-button>
<el-button @click="sj(ctx.basePage)" size='mini' type="primary">上架</el-button>
</template>
......@@ -156,8 +156,8 @@
"value": "id",
"label": "name"
},
params:{
flid:'L'
params: {
flid: 'L'
}
}
},
......@@ -211,33 +211,37 @@
},
methods: {
saveGw(form){
let params={
gwid:form.gwid,
rqid:form.rqid
getRow(val) {
this.$emit('getRow', val)
},
saveGw(form) {
let params = {
gwid: form.gwid,
rqid: form.rqid
}
this.$post('lxyl/rkgl/sjrw/lkrk/start',params).then(res=>{
if(res.success){
this.$post('lxyl/rkgl/sjrw/lkrk/start', params).then(res => {
if (res.success) {
this.$refs.basePage.refresh()
}
})
},
sj(ctx){
if(ctx.singleItem&&ctx.singleItem.id){
ctx.DialogTitle='上架选择工位'
ctx.DialogWidth='30vw'
ctx.showDialog=true
}else{
this.warning('请选中一条数据')
}
sj(ctx) {
if (ctx.singleItem && ctx.singleItem.id) {
ctx.DialogTitle = '上架选择工位'
ctx.DialogWidth = '30vw'
ctx.showDialog = true
} else {
this.warning('请选中一条数据')
}
}
}
},
components: {
Edit,Xzgw
Edit,
Xzgw
}
}
......
......@@ -40,8 +40,8 @@
},
config: {
/* 基本配置*/
url: 'wms/rkgl/mpzy',
queryUrl: 'wms/rkgl/mpzy/query/detail',
url: 'lxyl/rkgl/sjrw/pkrk',
queryUrl: 'lxyl/rkgl/sjrw/pkrk/query/detail',
tableTitle: [
{
title: "唯一码",
......
......@@ -160,6 +160,9 @@
},
methods: {
getRow(val) {
this.$emit('getRow', val)
},
},
components: {
......
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