Commit c0408107 authored by jingnan's avatar jingnan 👀

批量签审验收入库申请

parent 60e670a3
<template>
<div class="MyPlanTaskPage">
<div class="TaskComponentView" :class="{'height_class':heightClass}">
<compnent is="WarehouseApply" :select-data="selectData" :sub-type="subType" :def-state="state" />
<compnent :is="selectData.router" :select-data="selectData" :sub-type="subType" :def-state="state" />
</div>
</div>
</template>
......
......@@ -19,6 +19,7 @@
class="list-table"
:basic-data=" { selectData: selectData }"
:lay-config="{ typeName: 'InStorageRequestItem', layKey: 'material_table'}"
@freshData="freshData"
/>
</el-tab-pane>
<el-tab-pane :label="'机载系统设备验收单(' + totals.AirEquipmentTotal + ')'" name="AirEquipment">
......@@ -85,33 +86,32 @@ export default {
}
},
created() {
// this.getDict()
},
mounted() {
// 获取total在界面渲染 临时渲染数据, 待修改
setTimeout(() => {
this.tabNames.forEach(item => {
const el = this.$refs[item + 'Table']
this.$set(this.totals, item + 'Total', el.$refs.asCom.pagination.total)
})
}, 2000)
},
// 组件方法
methods: {
getTableData() {
freshData() {
setTimeout(() => {
this.changeTotal()
}, 1000)
},
changeTotal(init) {
this.tabNames.forEach(item => {
const el = this.$refs[item + 'Table']
if (el && el.$refs.asCom) {
el.$refs.asCom.getData(this.searchItems)
setTimeout(() => {
this.$set(this.totals, item + 'Total', el.$refs.asCom.pagination.total)
}, 1000) // 临时渲染数据, 待修改
this.$set(this.totals, item + 'Total', el.$refs.asCom.pagination.total)
}
})
},
searchEvent(val) {
this.searchItems = val.items
this.getTableData()
this.tabNames.forEach(item => {
const el = this.$refs[item + 'Table']
if (el && el.$refs.asCom) {
el.$refs.asCom.getData(this.searchItems)
}
})
}
}
}
......
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