Commit 29ec0f73 authored by jingnan's avatar jingnan 👀

领用及供外出库编辑时删除数据后重新添加占用,调整占用时拿不到库房

parent 68cfd60d
...@@ -108,7 +108,8 @@ export default { ...@@ -108,7 +108,8 @@ export default {
// 'extSupportingItemIdType': this.selection.subTypeName, // 'extSupportingItemIdType': this.selection.subTypeName,
'takeAmount': this.selection.takeAmount, 'takeAmount': this.selection.takeAmount,
'unableAmount': this.selection.unableAmount, 'unableAmount': this.selection.unableAmount,
'reqAmount': this.applyForm.reqAmount 'reqAmount': this.applyForm.reqAmount,
'parExtWorkCenterName': this.basicData.extWorkCenter ? this.basicData.extWorkCenter.extname : '' // 用于编辑时删除数据后重新添加占用,调整占用时拿不到库房
}] }]
if (typeName === 'swapUse') { if (typeName === 'swapUse') {
data[0].extSupportingItemVO = this.selectDatas[0].extSupportingItemVO data[0].extSupportingItemVO = this.selectDatas[0].extSupportingItemVO
......
...@@ -116,10 +116,12 @@ export default { ...@@ -116,10 +116,12 @@ export default {
if (val && val.useRequestType) { if (val && val.useRequestType) {
this.$set(this.cmpOptions, 'layKey', `add_outStorageUseItem_${val.useRequestType}`) this.$set(this.cmpOptions, 'layKey', `add_outStorageUseItem_${val.useRequestType}`)
} }
if (val && val.id) {
this.getDetailsData(val.id)
} }
} }
},
mounted() {
if (this.basicData && this.basicData.id) {
this.getDetailsData(this.basicData.id)
} }
}, },
created() { created() {
...@@ -281,6 +283,7 @@ export default { ...@@ -281,6 +283,7 @@ export default {
}) })
}) })
this.tableData = tableData this.tableData = tableData
this.$utils.showMessageSuccess('占用成功!')
}).catch((err) => { }).catch((err) => {
console.log(err) console.log(err)
}) })
......
...@@ -82,7 +82,8 @@ export default { ...@@ -82,7 +82,8 @@ export default {
// 'extSupportingItemIdType': this.selection.subTypeName, // 'extSupportingItemIdType': this.selection.subTypeName,
'takeAmount': this.selection.takeAmount, 'takeAmount': this.selection.takeAmount,
'unableAmount': this.selection.unableAmount, 'unableAmount': this.selection.unableAmount,
'reqAmount': this.applyForm.reqAmount 'reqAmount': this.applyForm.reqAmount,
'parExtWorkCenterName': this.basicData && this.basicData.extWorkCenter ? this.basicData.extWorkCenter.extname : '' // 用于编辑时删除数据后重新添加占用,调整占用时拿不到库房
} }
this.$emit('submitEvent', { formData: data, addContinue }) this.$emit('submitEvent', { formData: data, addContinue })
} else { } else {
......
...@@ -108,7 +108,7 @@ export default { ...@@ -108,7 +108,7 @@ export default {
const id = this.selectDatas[0] ? this.selectDatas[0].id : this.basicData.id || '' const id = this.selectDatas[0] ? this.selectDatas[0].id : this.basicData.id || ''
if (!param.includes(undefined)) { if (!param.includes(undefined)) {
post('InStorageRequestItem/adjust/reTake?itemId=' + id, param).then(res => { post('InStorageRequestItem/adjust/reTake?itemId=' + id, param).then(res => {
this.$utils.showMessageSuccess('占用成功!') this.$utils.showMessageSuccess('调整占用成功!')
this.refresh() this.refresh()
}).catch((err) => { }).catch((err) => {
console.log(err) console.log(err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment