Commit 29ec0f73 authored by jingnan's avatar jingnan 👀

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

parent 68cfd60d
......@@ -108,7 +108,8 @@ export default {
// 'extSupportingItemIdType': this.selection.subTypeName,
'takeAmount': this.selection.takeAmount,
'unableAmount': this.selection.unableAmount,
'reqAmount': this.applyForm.reqAmount
'reqAmount': this.applyForm.reqAmount,
'parExtWorkCenterName': this.basicData.extWorkCenter ? this.basicData.extWorkCenter.extname : '' // 用于编辑时删除数据后重新添加占用,调整占用时拿不到库房
}]
if (typeName === 'swapUse') {
data[0].extSupportingItemVO = this.selectDatas[0].extSupportingItemVO
......
......@@ -116,12 +116,14 @@ export default {
if (val && 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() {
this.$bus.$on('swapUseData', (data) => {
if (data && data.length) {
......@@ -281,6 +283,7 @@ export default {
})
})
this.tableData = tableData
this.$utils.showMessageSuccess('占用成功!')
}).catch((err) => {
console.log(err)
})
......
......@@ -82,7 +82,8 @@ export default {
// 'extSupportingItemIdType': this.selection.subTypeName,
'takeAmount': this.selection.takeAmount,
'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 })
} else {
......
......@@ -108,7 +108,7 @@ export default {
const id = this.selectDatas[0] ? this.selectDatas[0].id : this.basicData.id || ''
if (!param.includes(undefined)) {
post('InStorageRequestItem/adjust/reTake?itemId=' + id, param).then(res => {
this.$utils.showMessageSuccess('占用成功!')
this.$utils.showMessageSuccess('调整占用成功!')
this.refresh()
}).catch((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