add:二期出库

This commit is contained in:
2024-01-24 14:01:54 +08:00
parent d93fe3a4ed
commit b3da793a4c
21 changed files with 2442 additions and 34 deletions

View File

@@ -425,6 +425,7 @@ export default {
this.openParam = res
this.structshow = true
this.openRow = this.currentRow
this.openRow.stor_id = this.rowmst.stor_id
this.loadingAlldiv = false
}).catch(() => {
this.loadingAlldiv = false
@@ -452,6 +453,8 @@ export default {
}
},
deleteRow(row) {
row.stor_id = this.mstrow.stor_id
row.cancel_type = '3'
checkoutbill.oneCancel(row).then(res => {
this.queryTableDtl()
})
@@ -509,6 +512,7 @@ export default {
// return
// }
this.loadingAlldiv = true
this.mstrow.div_type = '1'
checkoutbill.allDiv(this.mstrow).then(res => {
this.crud.notify('分配成功!', CRUD.NOTIFICATION_TYPE.INFO)
this.queryTableDtl()
@@ -522,19 +526,21 @@ export default {
// this.crud.notify('请先选择库区!', CRUD.NOTIFICATION_TYPE.INFO)
// return
// }
this.loadingAutodiv = true
this.loadingAlldiv = true
if (this.currentRow.iostorinvdtl_id !== null) {
this.mstrow.iostorinvdtl_id = this.currentRow.iostorinvdtl_id
checkoutbill.allDivOne(this.mstrow).then(res => {
this.currentRow.div_type = '2'
this.currentRow.stor_id = this.rowmst.stor_id
checkoutbill.allDivOne(this.currentRow).then(res => {
this.queryTableDtl()
this.loadingAutodiv = false
this.loadingAlldiv = false
}).catch(() => {
this.loadingAutodiv = false
this.loadingAlldiv = false
})
}
},
allCancel() {
this.loadingAlldiv = true
this.mstrow.cancel_type = '1'
checkoutbill.allCancel(this.mstrow).then(res => {
this.queryTableDtl()
this.loadingAlldiv = false
@@ -544,6 +550,8 @@ export default {
},
oneCancel() {
this.loadingAlldiv = true
this.currentRow.stor_id = this.mstrow.stor_id
this.currentRow.cancel_type = '2'
if (this.currentRow.iostorinvdtl_id !== null) {
checkoutbill.allCancel(this.currentRow).then(res => {
this.queryTableDtl()
@@ -653,7 +661,8 @@ export default {
'point_code': this.form2.point_code,
'iostorinv_id': this.mstrow.iostorinv_id,
'bill_code': this.mstrow.bill_code,
'checked': this.checked
'checked': this.checked,
'stor_id': this.mstrow.stor_id
}
checkoutbill.allSetPoint(data).then(res => {
this.queryTableDdis(this.currentRow.iostorinvdtl_id)