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

按钮页面调整

parent 47027afb
......@@ -2,9 +2,13 @@
<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">
<mxDialog :app='ctx.basePage' v-if="ctx.basePage.showDialog" />
<mxDialog :app='ctx.basePage' v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='上架'" />
<Kwbg :app='ctx.basePage' v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='库位变更'" />
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
<template #toolbar="ctx">
<el-button @click="kwbg(ctx.basePage)" size='mini' type="primary">库位变更</el-button>
</template>
<template slot="tabCustom2">
<el-table-column label="操作" width="150" header-align="center">
<template slot-scope="scope">
......@@ -29,6 +33,7 @@
<script>
import mxDialog from './mxDialog.vue'
import Kwbg from './top/kwbg.vue'
export default {
mounted() {
......@@ -88,6 +93,17 @@
},
methods: {
kwbg(ctx){
if (ctx.singleItem && ctx.singleItem.id) {
ctx.DialogWidth = '30vw'
ctx.DialogTitle = '库位变更'
ctx.showDialog = true
} else {
this.$warning('请选中一条数据')
}
},
xj(a,b,c){
this.$confirm('是否继续?', '提示', {
confirmButtonText: '确定',
......@@ -122,7 +138,8 @@
},
components: {
mxDialog
mxDialog,
Kwbg
}
}
......
......@@ -7,11 +7,8 @@
<template #toolbar="ctx">
<el-button @click="tjkw(ctx.basePage)" size='mini' type="primary">推荐库位</el-button>
<el-button @click="qktjkw(ctx.basePage)" size='mini' type="primary">清空推荐库位</el-button>
<el-button style="margin-left: 10px;" @click="kwbg(ctx.basePage)" size='mini'
type="primary">库位变更</el-button>
<!-- <ImportButton @success="()=>{
ctx.basePage.refresh()
}" :url="'/wms/rkgl/rktz/import'" /> -->
<!-- <el-button style="margin-left: 10px;" @click="kwbg(ctx.basePage)" size='mini'
type="primary">库位变更</el-button> -->
</template>
</BasePage>
......
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