Commit a5e92760 authored by jingnan's avatar jingnan 👀

配套退库申请及配套退库确认联调

parent be77f7dc
...@@ -99,6 +99,7 @@ export default { ...@@ -99,6 +99,7 @@ export default {
if (this.selection.subTypeName === 'JobResponseOutStorageMatch') { // 历史配套数据(配套退库使用) if (this.selection.subTypeName === 'JobResponseOutStorageMatch') { // 历史配套数据(配套退库使用)
responseName = 'oldOutStorage' responseName = 'oldOutStorage'
scrapCount = -(this.selection.scrapCount) scrapCount = -(this.selection.scrapCount)
delete this.selection.erpInventory
} else { } else {
responseName = 'jobResponseSorting' responseName = 'jobResponseSorting'
} }
...@@ -126,7 +127,7 @@ export default { ...@@ -126,7 +127,7 @@ export default {
'aoPlan': aoNo, 'aoPlan': aoNo,
'mdsItemCode': inventoryData.extMaterial.resCode 'mdsItemCode': inventoryData.extMaterial.resCode
}] }]
data[0][responseName] = this.selection data[0][responseName] = JSON.parse(JSON.stringify(this.selection))
this.$emit('submitEvent', { formData: data, addContinue }) this.$emit('submitEvent', { formData: data, addContinue })
addContinue && this.cleanAddForm() addContinue && this.cleanAddForm()
} else { } else {
......
...@@ -126,8 +126,13 @@ export default { ...@@ -126,8 +126,13 @@ export default {
appId: 1626782774851 appId: 1626782774851
}, },
{ {
taskType: '配套自动退库确认', taskType: '配套退库申请',
type: 'ERP_MatchAutoReturnConfirm', type: 'ERP_MatchReturnApply',
appId: 1626782774851
},
{
taskType: '配套退库确认',
type: 'ERP_MatchReturnConfirm',
appId: 1626782774851 appId: 1626782774851
}, },
{ {
...@@ -230,7 +235,7 @@ export default { ...@@ -230,7 +235,7 @@ export default {
get(`/indexTask/task/ProdTask`, {}).then(res => { get(`/indexTask/task/ProdTask`, {}).then(res => {
this.$set(this.quickAccessList[index], 'taskCount', res.items.count) this.$set(this.quickAccessList[index], 'taskCount', res.items.count)
}) })
} else if (item.taskType === '准备工出库调整' || item.taskType === '操作工确认' || item.taskType === '配套自动退库确认') { } else if (item.taskType === '准备工出库调整' || item.taskType === '操作工确认' || item.taskType === '配套退库确认') {
post(`/ErpSorting/currentUserSortingTaskCount`, {}).then(res => { post(`/ErpSorting/currentUserSortingTaskCount`, {}).then(res => {
let resKey = '' let resKey = ''
switch (item.taskType) { switch (item.taskType) {
...@@ -240,7 +245,7 @@ export default { ...@@ -240,7 +245,7 @@ export default {
case '操作工确认': case '操作工确认':
resKey = '操作工任务数量' resKey = '操作工任务数量'
break break
case '配套自动退库确认': case '配套退库确认':
resKey = '自动配套退库任务' resKey = '自动配套退库任务'
break break
default: default:
...@@ -248,6 +253,30 @@ export default { ...@@ -248,6 +253,30 @@ export default {
} }
this.$set(this.quickAccessList[index], 'taskCount', res.items[resKey]) this.$set(this.quickAccessList[index], 'taskCount', res.items[resKey])
}) })
} else if (item.taskType === '配套退库申请') {
post(`/ErpRetirementRequest/searchBackApplyTaskCount`, {
'searchItems': {
'items': [
{
'fieldName': 'state',
'operator': 'EQ',
'value': 'Apply'
},
{
'fieldName': 'subTypeName',
'operator': 'EQ',
'value': 'MatchStockBackRequest'
},
{
'fieldName': 'creatorId',
'operator': 'EQ',
'value': localStorage.getItem('userId')
}
]
}
}).then(res => {
this.$set(this.quickAccessList[index], 'taskCount', res.items)
})
} else if (item.taskType === '库内退库确认') { } else if (item.taskType === '库内退库确认') {
post(`/ErpRetirementRequest/searchBackTaskCount`, {}).then(res => { post(`/ErpRetirementRequest/searchBackTaskCount`, {}).then(res => {
this.$set(this.quickAccessList[index], 'taskCount', res.items) this.$set(this.quickAccessList[index], 'taskCount', res.items)
...@@ -305,7 +334,7 @@ export default { ...@@ -305,7 +334,7 @@ export default {
} }
}) })
this.$store.dispatch('app/closeSideBar', false) this.$store.dispatch('app/closeSideBar', false)
} else if (['准备工出库调整', '操作工确认', '配套自动退库确认', '库内退库确认', '领用出库确认', '入库台账确认'].includes(item.taskType)) { } else if (['准备工出库调整', '操作工确认', '配套退库申请', '配套退库确认', '库内退库确认', '领用出库确认', '入库台账确认'].includes(item.taskType)) {
let pageNo = '' let pageNo = ''
switch (item.taskType) { switch (item.taskType) {
case '准备工出库调整': case '准备工出库调整':
...@@ -314,7 +343,10 @@ export default { ...@@ -314,7 +343,10 @@ export default {
case '操作工确认': case '操作工确认':
pageNo = '038a430e-facf-4fcb-9b98-2bf75c226681' pageNo = '038a430e-facf-4fcb-9b98-2bf75c226681'
break break
case '配套自动退库确认': case '配套退库申请':
pageNo = '4db88bc5-b77d-4020-84fb-01271a75dd3d'
break
case '配套退库确认':
pageNo = '102e307a-342e-4786-8a9a-a50465ab1721' pageNo = '102e307a-342e-4786-8a9a-a50465ab1721'
break break
case '库内退库确认': case '库内退库确认':
......
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