Commit 5d322fb7 authored by jingnan's avatar jingnan 👀

验收入库申请

parent 786ef599
......@@ -19,7 +19,7 @@
class="list-table"
:basic-data=" { selectData: selectData }"
:lay-config="{ typeName: 'InStorageRequestItem', layKey: 'material_table'}"
@freshData="freshData"
@freshData="freshData('Material')"
/>
</el-tab-pane>
<el-tab-pane :label="'机载系统设备验收单(' + totals.AirEquipmentTotal + ')'" name="AirEquipment">
......@@ -28,6 +28,7 @@
class="list-table"
:lay-config="{ typeName: 'InStorageRequestItem', layKey: 'airEquipment_table'}"
:basic-data=" { selectData: selectData }"
@freshData="freshData('AirEquipment')"
/>
</el-tab-pane>
<el-tab-pane :label="'外包产品验收单(' + totals.OutSourceTotal + ')'" name="OutSource">
......@@ -36,6 +37,7 @@
class="list-table"
:lay-config="{ typeName: 'InStorageRequestItem', layKey: 'outSource_table'}"
:basic-data=" { selectData: selectData }"
@freshData="freshData('OutSource')"
/>
</el-tab-pane>
</el-tabs>
......@@ -91,21 +93,22 @@ export default {
},
// 组件方法
methods: {
freshData() {
freshData(tabName) {
setTimeout(() => {
this.changeTotal()
this.changeTotal(tabName)
}, 1000)
},
changeTotal(init) {
this.tabNames.forEach(item => {
const el = this.$refs[item + 'Table']
changeTotal(tabName) {
const el = this.$refs[tabName + 'Table']
if (el && el.$refs.asCom) {
this.$set(this.totals, item + 'Total', el.$refs.asCom.pagination.total)
this.$set(this.totals, tabName + 'Total', el.$refs.asCom.pagination.total)
}
})
},
searchEvent(val) {
this.searchItems = val.items
this.getTableData()
},
getTableData() {
this.tabNames.forEach(item => {
const el = this.$refs[item + 'Table']
if (el && el.$refs.asCom) {
......
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