Commit c0408107 authored by jingnan's avatar jingnan 👀

批量签审验收入库申请

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