add:二期出库
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -266,7 +266,9 @@ export default {
|
||||
}
|
||||
})
|
||||
this.fullscreenLoading = true
|
||||
checkoutbill.manualDiv({ 'row': this.queryrow, 'rows': rows }).then(res => {
|
||||
this.queryrow.stor_id = this.rowmst.stor_id
|
||||
debugger
|
||||
checkoutbill.manualDiv({ 'row': this.queryrow, 'rows': rows, 'stor_id': this.rowmst.stor_id }).then(res => {
|
||||
this.$emit('update:dialogShow', false)
|
||||
this.$emit('StructIvtClosed')
|
||||
this.fullscreenLoading = false
|
||||
@@ -283,7 +285,7 @@ export default {
|
||||
}
|
||||
})
|
||||
this.fullscreenLoading = true
|
||||
checkoutbill.manualDiv({ 'row': this.queryrow, 'rows': rows }).then(res => {
|
||||
checkoutbill.manualDiv({ 'row': this.queryrow, 'rows': rows, 'stor_id': this.rowmst.stor_id }).then(res => {
|
||||
this.$emit('update:dialogShow', false)
|
||||
this.$emit('StructIvtClosed')
|
||||
this.fullscreenLoading = false
|
||||
|
||||
@@ -531,7 +531,7 @@ export default {
|
||||
},
|
||||
confirm() {
|
||||
this.loadingConfirm = true
|
||||
checkoutbill.confirm({ 'iostorinv_id': this.currentRow.iostorinv_id }).then(res => {
|
||||
checkoutbill.confirm({ 'iostorinv_id': this.currentRow.iostorinv_id, 'stor_id': this.currentRow.stor_id }).then(res => {
|
||||
this.querytable()
|
||||
this.crud.notify('出库成功!', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
this.loadingConfirm = false
|
||||
|
||||
Reference in New Issue
Block a user