领料出库
This commit is contained in:
parent
2f2d4355b6
commit
4a1252fbff
|
|
@ -726,6 +726,8 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
userId: sessionStorage.getItem('userId'),
|
||||
keyId: null,
|
||||
loading: true,
|
||||
loadingTwo: false,
|
||||
loadingView: false, // 查看弹窗的加载状态
|
||||
|
|
@ -1149,12 +1151,17 @@ export default {
|
|||
} else if (this.maCodeList.length > this.outNum) {
|
||||
this.$modal.msgError('出库编码数量不可大于待出库数量!')
|
||||
} else {
|
||||
if (!this.keyId) {
|
||||
this.keyId = this.userId + '-' + new Date().getTime()
|
||||
}
|
||||
this.maCodeList.forEach(item => {
|
||||
item.code = this.currentRow.code
|
||||
item.keyId = this.keyId
|
||||
})
|
||||
let param = { leaseOutDetailsList: this.maCodeList }
|
||||
submitOut(param).then(response => {
|
||||
this.$modal.msgSuccess('出库成功')
|
||||
this.keyId = null
|
||||
this.openCode = false
|
||||
this.handleQueryOutInfo()
|
||||
this.handleQuery()
|
||||
|
|
@ -1282,10 +1289,15 @@ export default {
|
|||
this.outNumList[0].remark = this.numOutForm.remark
|
||||
this.outNumList[0].leaseType = 0
|
||||
this.outNumList[0].publishTask = this.publishTask
|
||||
if (!this.keyId) {
|
||||
this.keyId = this.userId + '-' + new Date().getTime()
|
||||
}
|
||||
this.outNumList[0].keyId = this.keyId
|
||||
let param = { leaseOutDetailsList: this.outNumList }
|
||||
console.log(param, '数量出库时参数')
|
||||
submitNumOut(param).then(response => {
|
||||
this.$modal.msgSuccess('出库成功')
|
||||
this.keyId = null
|
||||
this.openNum = false
|
||||
this.handleQueryOutInfo()
|
||||
this.handleQuery()
|
||||
|
|
|
|||
Loading…
Reference in New Issue