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