feat: 出库分页

This commit is contained in:
2025-06-19 10:32:39 +08:00
parent 46af237886
commit b70e252432
9 changed files with 326 additions and 2 deletions

View File

@@ -96,6 +96,7 @@
<el-table
ref="table"
:data="tableDtl"
v-loading="loading"
style="width: 100%;"
max-height="300"
size="mini"
@@ -126,6 +127,7 @@
<el-table
ref="table2"
:data="tabledis"
v-loading="loading2"
style="width: 100%;"
max-height="300"
size="mini"
@@ -172,6 +174,8 @@ export default {
data() {
return {
dialogVisible: false,
loading2: false,
loading: true,
tableDtl: [],
tabledis: [],
billtypelist: [],
@@ -212,6 +216,8 @@ export default {
this.tableDtl = []
this.tabledis = []
this.$emit('TaskChanged')
this.loading = true
this.loading2 = false
},
bill_statusFormat(row) {
return this.dict.label.io_bill_status[row.bill_status]
@@ -229,6 +235,7 @@ export default {
if (current !== null) {
this.tabledis = []
this.currentdtl = current
this.loading2 = true
this.queryTableDdis()
} else {
this.tabledis = []
@@ -248,14 +255,17 @@ export default {
queryTableDtl() {
checkoutbill.getOutBillDtl({ 'iostorinv_id': this.form.iostorinv_id }).then(res => {
this.tableDtl = res
this.loading = false
})
},
queryTableDdis() {
if (this.currentdtl !== null) {
checkoutbill.getOutBillTask({ 'iostorinvdtl_id': this.currentdtl.iostorinvdtl_id }).then(res => {
checkoutbill.getOutBillTask2({ 'iostorinvdtl_id': this.currentdtl.iostorinvdtl_id }).then(res => {
this.tabledis = res
}).catch(() => {
this.tabledis = []
}).finally(() => {
this.loading2 = false
})
}
}

View File

@@ -1,5 +1,6 @@
<template>
<div class="app-container">
<!-- 出库管理 -->
<!--工具栏-->
<div class="head-container">
<div v-if="crud.props.searchToggle">