Commit 5e0cb1c5 authored by jingnan's avatar jingnan 👀

配套出库审核批量流程界面修改

parent 3693dffe
<template> <template>
<div class="outStorageMatchExamineRight"> <div class="outStorageMatchExamineRight">
<split-pane <dee-as-com
ref="splitPane" ref="outStorageMatch"
:min-percent="30" table-height="auto"
:default-percent="60" :basic-data=" { selectData,selectionRows }"
split="horizontal" :lay-config="{ typeName: 'OutStorageMatch', layKey: 'batchSign_0utStorageMatchExamine'}"
:class="['detail-pane','collapse']" @selectionChange="selectionChange"
> />
<template slot="paneL"> <dee-as-com
<div class="table-box"> ref="outStorageMatchItem"
<dee-as-com :lay-config="{ typeName: 'OutStorageMatchItem', layKey: 'batchSign_outStorageMatchExamine_top'}"
:basic-data=" {...(currentAo&&currentAo.joExecutePlan&&currentAo.joExecutePlan[0]||{})}" table-height="auto"
:lay-config="{ typeName: 'JoExecutePlan', layKey: 'batchSign_proPreConfirm_aoInfo'}" @selectionChange="selectionChange_item"
/> />
<dee-as-com <dee-as-com
ref="outStorageMatch" ref="jobResponseOutStorageMatch"
:basic-data=" { selectData: selectData }" table-height="auto"
:lay-config="{ typeName: 'ExtSupportingItem', layKey: 'batchSign_proPreConfirm_rightTop'}" :lay-config="{ typeName: 'JobResponseOutStorageMatch', layKey: 'batchSign_JobResOutStorageMatch_Examine'}"
:table-height="autoTopHeight" @selectionChange="selectionChange_jobRes"
/> />
</div> </div>
</template> </template>
<template slot="paneR">
<div class="detail"> <script>
<dee-as-com export default {
ref="outStorageMatchItem" name: 'OutStorageMatchExamineRight',
:lay-config="{ typeName: 'OutStorageMatchItem', layKey: 'batchSign_outStorageMatchExamine_rightBottom'}" components: {},
:table-height="autoBottomHeight" props: {
:basic-data=" { selectData,selectionRows }" selectData: {
@selectionChange="selectionChange" type: Object,
/> default: () => {}
</div> },
</template> currentAo: {
</split-pane> type: Object,
</div> default: () => {}
</template> }
},
<script> data() {
export default { return {
name: 'OutStorageMatchExamineRight', selectionRows: [],
components: {}, selectionItemRows: [],
props: { selectionJobResRows: []
selectData: { }
type: Object, },
default: () => {} computed: {},
}, watch: {},
currentAo: { created() {},
type: Object, mounted() {
default: () => {} this.$bus.$on('reloadModuleList', (hasFlag) => {
} this.$nextTick(() => {
}, this.init()
data() { })
return { })
selectionRows: [], },
autoBottomHeight: '100%', // 组件方法
autoTopHeight: '480px' methods: {
} selectionChange(val) {
}, this.selectionRows = val
computed: {}, const requestIds = val && val.map(item => item.id)
watch: {}, this.$refs.outStorageMatchItem.$refs.asCom.getData(requestIds)
created() {}, },
mounted() { selectionChange_item(val) {
this.$bus.$on('reloadModuleList', (hasFlag) => { this.selectionItemRows = val
this.$nextTick(() => { const itemIds = val && val.map(item => item.id)
this.init() this.$refs.jobResponseOutStorageMatch.$refs.asCom.getData(itemIds)
}) },
}) selectionChange_jobRes(val) {
this.$nextTick(function() { this.selectionJobResRows = val
const splitPane = this.$refs.splitPane },
const height = document.getElementById('app').offsetHeight - 120 init(currentAo) {
if (splitPane) { setTimeout(() => {
this.$watch( this.$refs.outStorageMatch && this.$refs.outStorageMatch.$refs.asCom.getData(currentAo && currentAo.id || 0)
function() { }, 100)
return splitPane.percent }
}, }
(val, oval) => { }
this.autoTopHeight = val / 100 * height - 80 + 'px' </script>
// this.autoBottomHeight = (100 - val) / 100 * height - 270 + 'px'
} <style lang='scss'>
) .outStorageMatchExamineRight{
} overflow: auto;
}) width: 100%;
}, height: 100%;
// 组件方法 box-sizing: border-box;
methods: { padding-left: 8px;
selectionChange(val) { .sub-title{
this.selectionRows = val padding-top: 0px!important;
}, }
init(currentAo) { .dee-table{
setTimeout(() => { .dee-tools {
this.$refs.outStorageMatch && this.$refs.outStorageMatch.$refs.asCom.getData(currentAo && currentAo.id || 0) margin: 2px 0!important;
this.$refs.outStorageMatchItem && this.$refs.outStorageMatchItem.$refs.asCom.getData(currentAo && currentAo.id || 0) }
}, 100) .dee-table-config-bar{
} margin: 2px 0!important;
} }
} .dee-table-pagination {
</script> margin-top: 12px!important;
}
<style lang='scss'> }
.outStorageMatchExamineRight{
overflow: auto; }
width: 100%; </style>
height: 100%;
box-sizing: border-box;
padding-left: 8px;
// .sub-title{
// padding-top: 10px!important;
// }
.splitter-pane-resizer.horizontal {
opacity: 1;
background-color: #F1F4F5;
height: 8px;
border-bottom: 1px solid #e0e0e0;
border-top: 1px solid #e0e0e0;
}
.detail{
height: 100%;
background-color: #fff;
}
.dee-table{
.dee-tools {
margin: 2px 0!important;
}
.dee-table-config-bar{
margin: 2px 0!important;
}
.dee-table-pagination {
margin-top: 12px!important;
}
}
}
</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