rev:出库页面优化

This commit is contained in:
2023-08-25 10:16:02 +08:00
parent 6ca13d6d8a
commit b3394dac77
2 changed files with 26 additions and 2 deletions

View File

@@ -51,6 +51,7 @@
<el-button
slot="left"
class="filter-item"
:loading="loadingAlldiv"
type="primary"
icon="el-icon-plus"
size="mini"
@@ -61,7 +62,7 @@
<el-button
slot="left"
class="filter-item"
:loading="loadingAutodiv"
:loading="loadingAlldiv"
type="primary"
icon="el-icon-check"
size="mini"
@@ -75,6 +76,7 @@
class="filter-item"
type="primary"
icon="el-icon-check"
:loading="loadingAlldiv"
size="mini"
:disabled="button2"
@click="oneCancel()"
@@ -87,6 +89,7 @@
type="primary"
icon="el-icon-plus"
size="mini"
:loading="loadingAlldiv"
:disabled="button3"
@click="openStructIvt"
>
@@ -417,10 +420,14 @@ export default {
openStructIvt() {
this.currentRow.remark = ''
this.currentRow.stor_id = this.storId
this.loadingAlldiv = true
checkoutbill.getStructIvt(this.currentRow).then(res => {
this.openParam = res
this.structshow = true
this.openRow = this.currentRow
this.loadingAlldiv = false
}).catch(() => {
this.loadingAlldiv = false
})
},
sectQueryChange(val) {
@@ -527,14 +534,22 @@ export default {
}
},
allCancel() {
this.loadingAlldiv = true
checkoutbill.allCancel(this.mstrow).then(res => {
this.queryTableDtl()
this.loadingAlldiv = false
}).catch(() => {
this.loadingAlldiv = false
})
},
oneCancel() {
this.loadingAlldiv = true
if (this.currentRow.iostorinvdtl_id !== null) {
checkoutbill.allCancel(this.currentRow).then(res => {
this.queryTableDtl()
this.loadingAlldiv = false
}).catch(() => {
this.loadingAlldiv = false
})
}
},