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

1

parent 195008cd
......@@ -48,7 +48,10 @@
this.$refs.mx.$refs.basePage.refresh()
},
topGetRow(row) {
/*
*/
let mid = row.id
this.$refs.mx.$refs.basePage.$row=row
this.$refs.mx.$refs.basePage.queryParams.mid = mid
this.$refs.mx.$refs.basePage.$refs['TablePager'].pageQuery({
setFirstCurrent: true
......@@ -57,7 +60,6 @@
this.$refs.sjhz.$refs.basePage.$refs['TablePager'].pageQuery()
this.$refs.sjjg.$refs.basePage.queryParams.mid = mid
this.$refs.sjjg.$refs.basePage.$refs['TablePager'].pageQuery()
},
}
......
......@@ -2,8 +2,16 @@
<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" />
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
<template slot="tabCustom2">
<el-table-column label="操作" width="100" header-align="center" fixed="right">
<template slot-scope="scope">
<div style="cursor: pointer;color: cornflowerblue;text-align: center;width: 80px;" @click.prevent.self="sj(scope.$index,scope,scope.row)" ><i class="el-icon-edit"></i>上架</div>
</template>
</el-table-column>
</template>
</BasePage>
......@@ -11,6 +19,7 @@
<script>
// import wlphsx from 'common/src/mixin/wlphsx.js'
import mxDialog from './mxDialog.vue'
export default {
// mixins:[wlphsx],
data() {
......@@ -112,6 +121,11 @@
},
methods: {
sj(){
this.$refs.basePage.DialogTitle='上架'
this.$refs.basePage.DialogWidth='50vw'
this.$refs.basePage.showDialog=true
},
getRow(val) {
this.$emit('getRow', val)
},
......@@ -125,7 +139,7 @@
},
components: {
mxDialog
}
}
......
<template>
<DefaultDialog :app='app'>
<div slot="form" style="display: flex;">
<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"
: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>
export default {
props: {
app: {
type: Object,
default: ()=>{
return {}
}
}
},
async mounted() {
},
data() {
return {
form: {
},
/* 常规edit数据 */
editColItemList: [
{
label: '库位',
prop: 'kwid',
span: 12,
"required": true,
type: 'AuxInput',
typeConfig: {
code: 'KWWHK',
label: 'kwName',
transform: {
value: 'id',
label: 'name'
},
queryParams:{
ckid:this.app.$row.ckid,
kqid:this.app.$row.kqid
}
},
}
],
}
}
,
methods: {
}
}
</script>
<style scoped>
</style>
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