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

控制查询明细

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